Repository navigation
fix(release): allow ANSI in focused evidence logs - #129238
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs changes before merge. Reviewed August 25, 2026, 6:32 AM ET / 10:32 UTC. ClawSweeper reviewWhat this changesThe PR makes focused beta-release evidence request ANSI-preserving Actions job logs and retry without that flag only for an older GitHub CLI’s exact unknown-flag error. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open: the ANSI fallback matches the established release-summary contract, but this PR’s added test only searches source text and does not exercise the release validator. Likely related people: Vincent Koc (high confidence). Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherFocused beta evidence reads GitHub Actions logs to prove the reviewed commit before Docker recovery can publish. This change affects the GitHub CLI log-read step before the target-SHA binding check. flowchart LR
A[Focused validation workflow] --> B[Evidence validator]
B --> C[GitHub CLI job-log request]
C --> D{ANSI flag supported?}
D -->|yes| E[Read log]
D -->|legacy flag error| F[Retry without flag]
E --> G[Verify target SHA]
F --> G
G --> H[Authorize Docker recovery]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +8, Other +27. Total +35 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Use the focused validator’s existing staged closure and fake GitHub CLI to test ANSI success, exact legacy fallback, and unrelated-error propagation; retain the narrow fallback predicate. Do we have a high-confidence way to reproduce the issue? Yes—source reproducible: current main makes the unflagged job-log call, while the GitHub CLI documents the ANSI-preserving flag and the PR identifies the narrow legacy fallback path. Is this the best way to solve the issue? Yes, with the missing behavior proof: the implementation matches the tested sibling contract and keeps all non-matching failures hard. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 452e73402221. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What 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
|
|
Land-ready evidence for the reviewed head
Production/tooling: |
|
Merged via squash.
|
* fix(release): allow ANSI in focused evidence logs * test(release): exercise focused log fallback
What Problem This Solves
Beta Docker recovery now reaches the authentic focused-evidence job logs, but the validator reads those raw logs without opting into ANSI output. The current
ghwrapper rejects terminal escape sequences by default, so recovery fails before Docker publication.Why This Change Was Made
Use the same bounded compatibility contract already established in
release-ci-summary.mjs: request job logs with--allow-escape-sequences, and retry without the flag only when an olderghreports the exact unknown-flag error. All other failures continue to propagate.User Impact
Focused beta release evidence can consume genuine ANSI-bearing Actions logs, unblocking Docker-only recovery for
2026.8.1-beta.3without weakening target-SHA checks.Evidence
node scripts/run-vitest.mjs test/scripts/authorized-beta-focused-evidence.test.ts test/scripts/release-ci-summary.test.ts— 114 passednode scripts/check-changed.mjs -- scripts/validate-authorized-beta-focused-evidence.mts test/scripts/authorized-beta-focused-evidence.test.ts— passedProduction/tooling LOC: +27/-1 | Tests: +9/-0.