- 
                Notifications
    You must be signed in to change notification settings 
- Fork 44
          Add AI diagnostic option for sunbeam run
          #533
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces an optional AI diagnostic feature for failed runs of the Sunbeam pipeline. The changes include an integration of a new --ai flag in the CLI, the addition of an analyze_failure function that leverages the OpenAI API, and an end‐to‐end test to verify this behavior.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description | 
|---|---|
| tests/e2e/test_sunbeam_run.py | Added an end-to-end test for the new --ai flag and its diagnostic behavior | 
| sunbeam/scripts/run.py | Introduced analyze_failure for AI-based failure diagnosis and updated main logic | 
Comments suppressed due to low confidence (1)
tests/e2e/test_sunbeam_run.py:124
- [nitpick] Consider renaming 'fake_analyze' to 'mock_analyze_failure' for improved clarity in the test context.
def fake_analyze(log):
Co-authored-by: Copilot <[email protected]>
Summary
sunbeam runfailsopenaiisn't installed--aiflagTesting
black --check --line-length=88 .snakefmt --check sunbeam/workflow/Snakefile sunbeam/workflow/rules/*.smkpytest tests/unit tests/e2e/test_sunbeam_run.py::test_sunbeam_run_ai_option -vvhttps://chatgpt.com/codex/tasks/task_e_684b204d251c8323939eb91e01f4e71f