Repository navigation
fix(ci): trust QA tooling for frozen targets - #124509
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 16, 2026, 5:36 AM ET / 09:36 UTC. ClawSweeper reviewWhat this changesThe PR validates a frozen release branch or tag before copying one current workflow-owned Anthropic QA adapter into the selected candidate checkout, with contract tests for valid and invalid contexts. Merge readinessThe patch is a focused, source-trusted repair for frozen-candidate QA parity and addresses the prior context-validation finding. Keep it open until the current head’s remaining checks complete; the post-merge frozen-candidate parity rerun is the final operational confirmation. Priority: P2 Review scores
Verification
How this fits togetherRelease checks resolve a candidate revision and run package and QA validation against it. For an older frozen candidate, this patch permits the parity lane alone to use a current trusted mock adapter while leaving candidate runtime and release artifacts unchanged. flowchart LR
A[Release-check inputs] --> B[Resolve candidate SHA]
A --> C[Validate release context]
C --> D{Eligible frozen target?}
B --> E[Candidate checkout]
D -->|yes| F[Trusted QA adapter checkout]
D -->|no| E
F --> G[QA parity build and run]
E --> G
G --> H[Release-check result]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +194, Config +100. Total +294 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the resolver-owned eligibility check and one-file sparse overlay, then record a successful QA-parity rerun for the frozen candidate after the workflow lands. Do we have a high-confidence way to reproduce the issue? Yes, by source: a frozen exact-SHA target with valid release context reaches the guarded overlay path, and the added contract test executes its valid, invalid, tag, and branch-ancestry decisions. The actual candidate rerun must wait for the workflow to land. Is this the best way to solve the issue? Yes. Keeping the candidate frozen while overlaying only the current trusted mock adapter is narrower and safer than changing candidate packages or broadly substituting workflow code. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 77902b185d44. LabelsLabel changes:
Label 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 (3 earlier review cycles)
|
|
Land-ready evidence for The trusted QA adapter overlay is now authorized only by one ClawSweeper's prior finding and rank-up moves are addressed:
Focused proof:
Known proof gap: the immutable |
e982632 to
69364c4
Compare
|
Merged via squash.
|
* fix(ci): trust QA tooling for frozen targets * fix(ci): validate frozen QA tooling context * fix(ci): verify frozen context without checkout * fix(ci): pin QA tooling to workflow revision
What Problem This Solves
Frozen-target Release Checks run the selected candidate's QA runtime. Candidate
8f382a202ff1e15833394b481615dcdda99b04d7predates the replay-stable Anthropic mock tool IDs from #123153, so its baseline lane falsely failscompaction-retry-mutating-toolandthread-memory-isolationeven though the current trusted QA tooling already repairs both scenarios.Why This Change Was Made
For runs with
target_context_ref, the QA parity job now sparse-checks out onlyextensions/qa-lab/src/providers/mock-openai/mock-anthropic-wire.tsfrom the exact trusted workflow SHA and installs that one file over the selected checkout before setup and build. The checkout is credential-free and trap-cleaned. Ordinary current-ref Release Checks skip the overlay and remain target-owned.User Impact
Release QA can evaluate frozen candidates with the current deterministic 40-character Anthropic mock ID adapter without changing candidate packages, production runtime, configuration, version, tag, or release state. The candidate's genuine missing
setup_idmigration remains visible in its separate upgrade/install/Docker failures.Evidence
3f3256906690165773410bc72de629f141c1ff4a)v2026.8.1-beta.2candidate to currentmainshows one QA runtime change inmock-anthropic-wire.ts: generated IDs move fromtoolu_plus 48 hex characters to deterministictooluplus 35 hex characters.node scripts/run-vitest.mjs test/scripts/package-acceptance-workflow.test.ts— 192 passed; the new contract test failed before the workflow repair because the trusted checkout step was absent.actionlint .github/workflows/openclaw-release-checks.yml, YAML parse, targetedoxfmt --check,git diff --check, and changed-lane classification (tooling,testRoot) passed.