Open
Conversation
Contributor
There was a problem hiding this comment.
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 <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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