Repository navigation
fix(ci): prevent contributor-fork artifact checks from timing out - #118530
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 3, 2026, 2:55 AM ET / 06:55 UTC. ClawSweeper reviewWhat this changesThe PR changes the required Merge readiness⛔ Blocked until stronger real behavior proof is added - 3 items remain The fork-only timeout expression is a focused, technically correct repair and the workflow guard pins the intended policy. This PR remains open because it carries the protected Priority: P2 Review scores
Verification
How this fits togetherThe CI workflow uses GitHub event and repository metadata to select job infrastructure and limits before artifact validation runs. flowchart LR
Event[GitHub event] --> Scope[Repository and fork check]
Scope --> Timeout[Select timeout]
Timeout --> Build[Build artifacts]
Build --> Checks[Artifact checks]
Checks --> Gate[Required CI gate]
Gate --> Result[PR merge readiness]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +3, Config 0. Total +3 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the narrowly scoped expression and guard, then obtain and retain a redacted completed contributor-fork Do we have a high-confidence way to reproduce the issue? Yes, at source level: current Is this the best way to solve the issue? Yes for the code path: the expression reuses existing GitHub event and fork metadata and preserves the trusted 20-minute policy everywhere else. The remaining gap is behavioral proof of the fork-only branch, not an alternative implementation design. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 48d3f2e21345. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
CI policy-owner approval: a maximum 35-minute budget is acceptable only for untrusted external pull-request build-artifact jobs on the existing GitHub-hosted runner; trusted/same-repository jobs remain at 20 minutes, with no changes to permissions, secrets, runner selection, sticky caches, concurrency, or test coverage. A same-repository maintainer PR cannot truthfully exercise the fork-only branch: exact-head remote workflow tests passed 97/97, the parsed event truth table confirms fork=35 and same-repo/push/manual=20, and the affected real contributor PR already demonstrated the old 20-minute timeout twice. The real fork execution will be verified by triggering a new pull-request event for #117992 after this policy fix lands; rerunning its existing workflow would retain the old merge-ref snapshot. This explicitly records the CI-owner decision and why pre-merge fork-runtime proof cannot be produced by this same-repository PR. |
|
Merged via squash.
|
Fork pull requests were pinned to GitHub-hosted runners while maintainer PRs rode Blacksmith. That split arrived with ci.yml's first commit (f4f990a) and was never a reasoned posture -- no rationale in docs, commit bodies, or the ci-limits skill -- and this week's Blacksmith tranches widened the gap: maintainer walls are ~3:36 while the last fork PR I measured (#124633) took 13m0s. We already paid for it once in #118530, which raised the cross-repo artifact budget to 35 minutes because contributor PR #117992 timed out twice on hosted capacity. Runner choice now follows author_association: OWNER, MEMBER, COLLABORATOR, and CONTRIBUTOR get Blacksmith; FIRST_TIME_CONTRIBUTOR, FIRST_TIMER, NONE, and MANNEQUIN stay on hosted runners, which are free for public repos, so an unreviewed author cannot spend Blacksmith capacity. Earning the fast path requires a landed commit, which requires a maintainer merge. Note for anyone tempted to trim that list: maintainers report CONTRIBUTOR here, not OWNER/MEMBER, because org membership is concealed -- steipete's 74 sampled PRs are all CONTRIBUTOR. Dropping CONTRIBUTOR would move maintainer PRs to hosted. Scope is deliberately runner-only: 27 runs-on clauses. The 34 dependency-cache/use-actions-cache conditions and 6 job ifs stay fork-gated, because cache poisoning is a different risk from runner choice -- a fork run still never writes an archive a trusted run restores. Verified by evaluating all 25 configurable runs-on expressions: maintainer PR 12/25 Blacksmith, returning-contributor fork 12/25 (identical), unknown author 0/25, FIRST_TIME_CONTRIBUTOR 0/25, push to main 12/25 unchanged. Guard tests gained trusted/untrusted fork cases; 119 pass.
Fork pull requests were pinned to GitHub-hosted runners while maintainer PRs rode Blacksmith. That split arrived with ci.yml's first commit (25270d3) and was never a reasoned posture -- no rationale in docs, commit bodies, or the ci-limits skill -- and this week's Blacksmith tranches widened the gap: maintainer walls are ~3:36 while the last fork PR I measured (openclaw#124633) took 13m0s. We already paid for it once in openclaw#118530, which raised the cross-repo artifact budget to 35 minutes because contributor PR openclaw#117992 timed out twice on hosted capacity. Runner choice now follows author_association: OWNER, MEMBER, COLLABORATOR, and CONTRIBUTOR get Blacksmith; FIRST_TIME_CONTRIBUTOR, FIRST_TIMER, NONE, and MANNEQUIN stay on hosted runners, which are free for public repos, so an unreviewed author cannot spend Blacksmith capacity. Earning the fast path requires a landed commit, which requires a maintainer merge. Note for anyone tempted to trim that list: maintainers report CONTRIBUTOR here, not OWNER/MEMBER, because org membership is concealed -- steipete's 74 sampled PRs are all CONTRIBUTOR. Dropping CONTRIBUTOR would move maintainer PRs to hosted. Scope is deliberately runner-only: 27 runs-on clauses. The 34 dependency-cache/use-actions-cache conditions and 6 job ifs stay fork-gated, because cache poisoning is a different risk from runner choice -- a fork run still never writes an archive a trusted run restores. Verified by evaluating all 25 configurable runs-on expressions: maintainer PR 12/25 Blacksmith, returning-contributor fork 12/25 (identical), unknown author 0/25, FIRST_TIME_CONTRIBUTOR 0/25, push to main 12/25 unchanged. Guard tests gained trusted/untrusted fork cases; 119 pass.
Related: #117992
What Problem This Solves
Contributor pull requests from forks fail the required CI gate when artifact validation exceeds its 20-minute budget on lower-capacity GitHub-hosted runners.
Why This Change Was Made
Give only cross-repository pull-request build-artifacts jobs 35 minutes while preserving the existing 20-minute limit for same-repository PRs, pushes, and manual runs. Add an assertion to the existing workflow-policy guard; runners, permissions, secrets, caches, and concurrency are unchanged.
User Impact
External contributors can land otherwise healthy fixes without deterministic artifact-validation timeouts; trusted maintainer and main-branch CI behavior is unchanged.
Evidence