Repository navigation
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.
test(dev-lead): E2E test suite for all trigger scenarios #189
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
test(dev-lead): E2E test suite for all trigger scenarios #189
Changes from all commits
915bbc23662f6ef0c087eFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
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.
The 'gh api' call for comments defaults to 30 items per page. If a PR has many comments, the exhaustion or idempotency markers might be missed. Adding '--per-page 100' or using '--paginate' would make this more robust. Keeping the error redirection inline ensures the intent to silence errors is clear for this specific tier.
References
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.
Similar to the idempotency check, this API call should handle pagination or at least increase the items per page to ensure all failure markers are counted correctly. Maintaining the inline error routing is preferred here to keep the logic explicit.
References
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.
This counts every historical
status=failedmarker on the PR, even if a laterstatus=applied,no-changes, ordry-runmarker proves the failure streak was broken. In a PR with one old engine failure, then a successful auto-fix, then one new engine failure,MAX_FAIL_ATTEMPTS=2will incorrectly post the PR-level exhaustion marker and block all future SHAs. The exhaustion check needs to consider only the latest consecutive failed attempts rather than all failed comments.Useful? React with 👍 / 👎.
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.
The exhaustion marker is PR-level (
check_idempotencyskips whenever this comment exists, regardless ofHEAD_SHA), so pushing a new commit does not re-enable automated fixing despite this message saying it does. In the exhaustion path users will follow the suggested remediation, push another commit, and still be blocked until the comment is deleted, so the comment should only advertise actions that the script actually honors.Useful? React with 👍 / 👎.
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.
There is a potential race condition here. 'post_summary' calls the GitHub API to post a comment, and 'count_recent_failures' immediately calls the API to list comments. Due to eventual consistency in GitHub's APIs, the comment just posted might not be returned in the list immediately. It is safer to count the existing failures before posting the new one. Additionally, for LLM-based tasks, ensure the script detects rate limits by checking exit codes and scanning output streams, exiting with code 2 if a limit is hit to allow for engine fallback.
References
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.