-
Notifications
You must be signed in to change notification settings - Fork 19
Add Concurrent CI Review Gate #143
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
Open
danchild
wants to merge
8
commits into
forge-sdlc:main
Choose a base branch
from
danchild:feat/concurrent-ci-review-gate
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
6465d53
feat: add pending_ci_event state field
danchild 4ede31c
feat: rework CI evaluation and human review gate for concurrent opera…
danchild 08fd603
refactor: extract shared post-PR lifecycle into reusable module
danchild a2805b2
feat: route CI webhooks to human_review_gate in worker
danchild d5b54f9
test: add smoke tests for concurrent CI/review gate
danchild f35d221
fix: update test imports for concurrent CI/review gate refactor
danchild 5a4850a
Fix CI webhook routing at human_review_gate to preserve current_node
eshulman2 68560fe
Re-add test coverage for review gate resume event handling
eshulman2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| You are analyzing CI failures to determine whether they are caused by changes | ||
| in this pull request or by external factors. | ||
|
|
||
| ## CI Failure Information | ||
|
|
||
| The failed checks are described in: | ||
| {failures_file_path} | ||
|
|
||
| All available log files are in `.forge/logs/`. | ||
|
|
||
| ## Your Task | ||
|
|
||
| Read the failure logs carefully. Compare the failing test names, file paths, | ||
| and error messages against the files changed in this PR. | ||
|
|
||
| To see which files this PR touches, run: | ||
| ``` | ||
| git diff --name-only HEAD~1 HEAD | ||
| ``` | ||
| or inspect the most recent commit: | ||
| ``` | ||
| git show --stat HEAD | ||
| ``` | ||
|
|
||
| Determine whether each failing check is caused by changes introduced in this PR, | ||
| or by external factors such as: | ||
| - Flaky or intermittently failing tests unrelated to the diff | ||
| - Broken test infrastructure (container images, network, environment config) | ||
| - Pre-existing failures in files not touched by this PR | ||
| - Tests that fail because of unrelated upstream changes | ||
|
|
||
| Write your verdict to `.forge/ci-attribution.json` in exactly this format: | ||
|
|
||
| ```json | ||
| { | ||
| "attributable": true, | ||
| "reason": "one sentence explaining why", | ||
| "confidence": "high" | ||
| } | ||
| ``` | ||
|
|
||
| Set `attributable` to `true` if the failure logs reference files, functions, | ||
| or test cases that appear in the PR diff. Set it to `false` if the failures | ||
| are clearly unrelated to the diff. | ||
|
|
||
| When confidence is low, set `attributable` to `true` (fail-safe: the fix | ||
| pipeline will attempt a fix, and the human can always use `/forge skip-gate` | ||
| to bypass a stuck check). | ||
|
|
||
| Do not attempt to fix anything. Write only the attribution JSON file. |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
A new local
_CI_STAGESis defined inside_handle_resume_event, shadowing the module-level_CI_STAGESwhich still references the deletedwait_for_ci_gatenode and omitshuman_review_gate.Failure scenario: the module-level
_CI_STAGESis now dead code diverging from reality. Any future refactor that removes the local shadow (e.g. extracting the skip-gate block into a helper) will silently fall back to the stale tuple, re-breaking/forge skip-gateathuman_review_gate.