Repository navigation
refactor(ci): split PR triage into 4-job pipeline #4866
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
ba83d54
refactor(ci): split PR triage into 4-job pipeline
yiliang114 99d2d0e
fix(ci): pass untrusted event data through env vars
yiliang114 cb1fa47
refactor(skills): update /triage to dispatch to 4 independent skills
yiliang114 23a9933
fix(ci): make tmux-testing depend on review (serial pipeline)
yiliang114 904a5de
fix(ci): implement file-based verdict passing between jobs
yiliang114 3b7e94b
fix(ci): review verdict gates tmux + add push delay
yiliang114 53ea4c3
fix(ci): address review findings (P1-P3)
yiliang114 7a04c8c
fix(ci): use env var for steps.run.outcome (style consistency)
yiliang114 6c492c7
fix(ci): resolve Copilot review comments
yiliang114 10ca42e
ci(triage): tune review timeouts and run product-decision on self-hos…
yiliang114 fa5b72b
ci(triage): render stream-json logs readably and front-load PR templa…
yiliang114 69c188f
fix(triage): harden self-hosted review findings
yiliang114 e2a36d9
fix(triage): close product gate bypass, real-time logs, per-job scrat…
yiliang114 880a306
ci(triage): use REVIEW_OPENAI_* credentials for product-decision
yiliang114 6e9cb7c
ci(triage): restore queued-acknowledgement for explicit comment triggers
yiliang114 30b0ca9
ci(triage): restore review-comment and review-body trigger surfaces
yiliang114 c45cf89
ci(triage): re-check PR state after the debounce wait
yiliang114 f37c8b7
ci(triage): restore internal-author gate and timeout_minutes input
yiliang114 07bd197
ci(triage): require open PR state for comment triggers in resolve
yiliang114 86e36d0
ci: extend qwen PR review timeout to 90min and queue delay to 30min
yiliang114 cad67c1
Merge remote-tracking branch 'origin/main' into worktree-triage-ci-re…
yiliang114 86dc442
Merge branch 'ci/extend-pr-review-timeouts' (PR #4962)
yiliang114 2453112
ci(triage): align debounce comments with the 30-minute wait timer
yiliang114 a1f6a03
ci(triage): single-quote inline if: conditions for yamllint
yiliang114 d75fcf5
fix(ci): harden triage pipeline gating and ECS network resilience
yiliang114 37ae8a5
Merge remote-tracking branch 'origin/main' into worktree-triage-ci-re…
yiliang114 eeb006a
fix(ci): raise approval-decision turn limit and tolerate exit-53
yiliang114 b5c25dd
fix(ci): remove checkout retries, add tmux PR state precheck
yiliang114 6c8464c
fix(ci): restore checkout retry with 3 attempts and stall detection
yiliang114 5e7e703
fix(ci): remove checkout retries and reduce fetch-depth
yiliang114 ab84bc4
fix(ci): fail-closed verdict defaults and cover tmux in fallback
yiliang114 b36ffae
fix(ci): prune stale review worktrees before checkout; simplify runne…
yiliang114 459f029
feat(ci): auto-trigger triage for all PRs including forks
yiliang114 df1613d
fix(ci): split agent analysis from privileged publish in triage
yiliang114 95b925f
fix(ci): use find instead of ls for review JSON fallback glob
yiliang114 a3c6e32
fix(ci): use review model secrets for approval stage
yiliang114 d050856
fix(ci): checkout workflow ref during PR triage dispatch
yiliang114 64a31af
fix(ci): fail triage on missing agent outputs
yiliang114 471e5a6
fix(ci): handle unavailable review results
yiliang114 55ad9e1
fix(ci): dedupe unavailable review notices
yiliang114 3e4a561
fix(review): prewrite emit-only fallback result
yiliang114 0bb5e25
fix(ci): harden review result publishing
yiliang114 e409461
Merge remote-tracking branch 'origin/main' into HEAD
yiliang114 b298f91
fix(ci): address triage review follow-ups
yiliang114 70dc200
fix(ci): harden triage pipeline triggers
yiliang114 89e2d94
fix(ci): tighten triage pipeline permissions
yiliang114 12070a3
fix(ci): require product decision comment output
yiliang114 0610d61
fix(ci): harden triage review gates
yiliang114 38e2527
fix(ci): harden approval publish and drop persisted checkout creds
yiliang114 c92d1ca
fix(ci): bypass proxy for qwen model calls
yiliang114 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
fix(triage): close product gate bypass, real-time logs, per-job scrat…
…ch dirs Local review round 2 findings: - product-decision: propagate the qwen exit code at the end of the run step. Previously a timeout/crash left the step green, and when no verdict file was written the capture fallback defaulted to "pass" — silently waving the PR through the gate. Now the job fails and the verdict resolves to fail, matching the original action-based semantics. - jq: add --unbuffered so progress lines stream into the CI log in real time instead of arriving in block-buffered chunks. - Move runner scratch state from /tmp to runner.temp, which is emptied per job and is per runner instance: triage-results verdict dir (via TRIAGE_RESULTS_DIR env, skill falls back to /tmp locally), raw stream-json tee files, and the tmux-results artifact dir. /tmp persists across runs and is shared between runner instances on the same host, risking stale or cross-PR contamination. The approval-decision side stays on /tmp (ephemeral ubuntu-latest VM).
- Loading branch information
commit e2a36d96b40760a2bd90e4782bd0adc761e9f071
Some comments aren't visible on the classic Files Changed page.
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
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.
[Critical] The old
review-prjob validated the qwen result stream event after process exit (~20 lines checkingis_error,subtype == "success", and absence of[API Errorin the result text). The new "Run review" step only checks exit code and whether the output JSON file exists with valid structure (type == "object" and .eventis a string).If the agent exits 0 but the model aborted mid-analysis (e.g., API connection dropped after writing a partial JSON), the file may carry
event: "COMMENT"with an error-laced body orevent: "APPROVE"based on incomplete analysis. The publish step submits it as-is. The PR receives a broken-looking review and the workflow shows green.Suggested fix: After the qwen invocation, inspect the raw stream log for error indicators:
— qwen3.7-max via Qwen Code /review