Repository navigation
refactor(test): prove release validation through its harness - #124245
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 3:14 PM ET / 19:14 UTC. ClawSweeper reviewWhat this changesThe PR replaces source-text checks in the Full Release Validation test with assertions over Git and GitHub CLI calls recorded by its executable dispatch fixture. Merge readinessThe updated harness assertion resolves the prior P2: it now verifies adjacent Priority: P3 Review scores
Verification
How this fits togetherFull Release Validation creates SHA-pinned temporary refs, dispatches the release workflow, and polls the selected workflow run. Its test fixture intercepts the Git and GitHub CLI calls, turning that release-safety boundary into observable test evidence. flowchart LR
A[Release candidate inputs] --> B[Release validation script]
B --> C[Git and GitHub CLI calls]
C --> D[Executable dispatch fixture]
D --> E[Recorded arguments and responses]
E --> F[Release-safety assertions]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -1. Total -1 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Land the behavior-level fixture assertions so release-safety coverage follows the executable dispatch contract rather than source formatting. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors release-validation test coverage rather than reporting a user-facing failure; the PR body supplies a focused fixture run as validation evidence. Is this the best way to solve the issue? Yes. The executable fixture observes the dispatch and polling boundary directly, while the remaining source checks retain inexpensive guards for timing and read-timeout contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8668aeb96987. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Land-ready proof for
The prior exact ClawSweeper review identified one assertion-shape finding: #124245 (comment). The adjacent-pair parser above resolves that finding and its rank-up moves, and the corrected head has green focused proof plus exact-head CI. An automatic fresh review is currently running for the corrected head; per repository policy, this publisher/review refresh does not block landing when the only post-review change addresses the recorded finding. Production/tooling delta: 0. Test delta: -1 net line. Known proof gaps: none for this test-only release-harness refactor. No release behavior, runtime, persistent data, migration, docs, changelog, schema, protocol, or operator-state change. |
|
Merged via squash.
|
…w#124245) * refactor(test): move release validation proof to harness * test(release): assert dispatch input pairs
What Problem This Solves
The full-release validation tests partially re-read
scripts/full-release-validation-at-sha.mtsand searched for implementation strings. Those assertions broke under behavior-preserving refactors and duplicated behavior already observable through the repository's executable dispatch fixture.Why This Change Was Made
Release context, candidate SHA, unreleased-changelog policy, exact REST polling, and the absence of GraphQL or
gh run watchare now asserted from the real subprocess's recordedgit/ghcalls. The old source-order check is removed because the existing old-schema fixture already proves zero remote pushes and zero GitHub calls before trusted-harness validation succeeds.The bounded 720-minute deadline, 45-second poll interval, bounded remaining sleep, retry cap removal, and dispatch timeout distinction remain independently guarded.
This PR is AI-assisted as part of the maintainer-requested repository test-value audit.
User Impact
No release behavior changes. Maintainers keep the same release-safety coverage with less coupling to source layout and local expression spelling.
Evidence
node scripts/run-vitest.mjs test/scripts/full-release-validation-at-sha.test.ts— 19 passed after the review correction-f/key=valuepair before asserting the required release fieldsnode scripts/check-changed.mjs -- test/scripts/full-release-validation-at-sha.test.ts— passed via the documented local fallback; test typecheck, formatting, lint, and tooling guards were greengit diff --check— passedProduction/tooling delta: 0. Test delta: -1 net line. No docs, changelog, release behavior, schema, protocol, or operator-state change is required.