Repository navigation
fix(ci): alpha promotion fails because older candidates don't accept -StepTimeoutMinutes - #2154
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR passes CI step budgets through an environment variable and checks runner arguments against an older alpha candidate. Example: Promote v2026.11.3-alpha.11 using the current Shared Tests workflow step.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — suspected predecessor, not a causality claim: source commit Possible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep open: this collaborator-authored PR repairs a promotion regression still present on main, with no concrete introduced correctness or security defect found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherAlpha promotion uses the current CI workflow with candidate-source build and test checkouts; runner arguments and environment enter those scripts, which execute tests and emit results and diagnostics. flowchart LR
A[Promotion dispatch] --> B[Current CI workflow]
B --> C[Candidate checkout]
C --> D[Candidate test runners]
B --> D
D --> E[Test results]
D --> F[Optional budget diagnostics]
Technical reviewBest possible solution: Keep the report-only budget in the step environment, retain explicit local overrides, and protect candidate argument compatibility in the existing workflow contract. Do we have a high-confidence way to reproduce the issue? The current workflow supplies a named parameter absent from the pinned alpha.11 runner declarations, establishing the failure path without executing a promotion. Is this the best way to solve the issue? This is a focused repair using existing workflow and reporting owners; the compatibility checks cover the reported parameter-name failure without replacing the release harness. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c7b75dedb52d. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 13, 2026, 2:07 AM ET / 07:07 UTC. |
…-StepTimeoutMinutes Alpha promotion runs the current ci.yml against an older candidate's runner scripts. Pass the report-only step budget through the step environment (OPENCLAW_CI_STEP_TIMEOUT_MINUTES) instead of a runner parameter, and bind every test-runner invocation's parameter names to the runners pinned at v2026.11.3-alpha.11 in the workflow contract. Co-authored-by: Copilot App <[email protected]>
2c22438 to
cb203ab
Compare
What Problem This Solves
Fixes: alpha promotion fails with a parameter-binding error when it tests an older candidate, because the current workflow passes
-StepTimeoutMinutes(added in #2141 (improve(ci): new flaky test patterns and slow CI steps go unnoticed until they fail)) to the candidate's older runner scripts, which do not declare it.User Impact
No user-visible change. Maintainers can promote alpha builds again, starting with v2026.11.3-alpha.11. CI step budgets still print and warn at 80%.
Why This Change Was Made
promote-alpha-release.ymlruns the currentci.ymlbut checks out the candidate commit and runs that commit's ownscripts\*.ps1. A new runner parameter therefore breaks every older candidate.OPENCLAW_CI_STEP_TIMEOUT_MINUTES. Older runners ignore it. The current runners read it when-StepTimeoutMinutesis not passed, so local runs can still pass the parameter.test-ci-workflow-contract.ps1now:-StepTimeoutMinutesinci.yml;timeout-minutes, with exactly one value per budgeted step and none elsewhere;ci.ymland checks that every named parameter exists, and every mandatory parameter is supplied, in both the current runners and the runners at the pinned candidate v2026.11.3-alpha.11. It fails closed on calls it cannot recognize (any other path spelling), argument splatting,--%, and parse errors.docs/TEST_COVERAGE.mdrecords the rule: a new option must be safe to ignore and passed through the environment, or must wait until the pin moves.Alphas before alpha.11 already fail for other reasons: runner options added on Nov 9–10, such as
-Configurationand-ExpectedTestCount. This change cannot restore them. A follow-up proposal covers a pipeline-owned harness that removes this class of break.Evidence
timeout-minutes25)-UiShard Allon the multi-command stable-profile step-NewKnobon a folded step@extrasplat.\scripts\backslash call${{ github.workspace }}\xvalue followed by-NewKnob--%Change Type
Scope
winnodeRequired proof pools
none: CI workflow and runner scripts only. No product behavior or capacity-dependent Windows proof is affected.Validation
Local, base main 85c8ffa (rebased onto c7b75de and rechecked: contract, promotion, gate, timing guard, docs,
git diff --check,build.ps1), PowerShell 7, isolatedOPENCLAW_TRAY_*profile:scripts\test-ci-workflow-contract.ps1scripts\test-ci-gate-results.ps1,test-alpha-promotion.ps1,test-ci-change-classifier.ps1,test-ci-test-host-exit.ps1,test-ci-native-failure-metadata.ps1,test-native-animation-preference.ps1validate-docs.ps1,validate-agent-skills.ps1,test-agent-skills-validator.ps1,git diff --check./build.ps1dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csprojCleanUninstallScriptTests.StandaloneCleanup_PassesIsolatedSafetyRegressionshit its literal 2-minute limit under load. It passes alone (1 m 43 s) and is unrelated to this change. An earlier run on the same change passed 5849/29.dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csprojTestDeterminismGuardTests(the main-only ratchet failure fixed by #2153)scripts\validate-test-timing-patterns.ps1Hanselman dual review (Claude Opus 5.5 and GPT-6 Astra, high effort) found no blocking issues.
${{ }}values and ignored parse errorsValidateSetand range)Real Behavior Proof
OPENCLAW_TRAY_*profile.pwsh -NoProfile -File .\scripts\test-ci-workflow-contract.ps1on the clean tree and on each mutation listed under Evidence.Every CI runner invocation must be checked for promotion compatibility: found 20 runner reference(s) but recognized 19.CI step 'Run latest stable profile compatibility' does not bind to the candidate test-gateway-fixture runner: unknown -NewKnobCI step 'Run latest stable profile compatibility' stops runner argument parsing with --%promote-alpha-release.ymlrun needs maintainer dispatch after merge.ValidateSetvalue or a wider range) still needs review.Security Impact
Yes, explain the risk and mitigation: N/ACompatibility and Migration
-StepTimeoutMinutesstill works locally and wins over the environment value.OPENCLAW_CI_STEP_TIMEOUT_MINUTESstep variable.Review Conversations