Repository navigation
fix(release): allow ANSI in reusable job logs - #123129
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
|
🦞👀 |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 13, 2026, 7:15 AM ET / 11:15 UTC. ClawSweeper reviewWhat this changesThe PR preserves ANSI sequences when reading reusable GitHub Actions job logs and retries without the flag only for older GitHub CLI versions. Merge readinessKeep open for maintainer handling. The patch correctly confines ANSI preservation and legacy fallback to the parent job-log read; no blocking defect was found. Priority: P2 Review scores
Verification
How this fits togetherFull-release validation reads a parent job log to verify dispatched child workflows and decide whether prior evidence can be reused. A valid read allows reuse; an invalid read triggers heavier validation work. flowchart LR
A[Prior workflow run] --> B[Release evidence reader]
B --> C[GitHub CLI job-log read]
C --> D[Child-run validation]
D --> E{Evidence reusable?}
E -->|Yes| F[Reuse validation]
E -->|No| G[Run full validation]
Decision needed
Why: The protected maintainer label requires explicit maintainer handling even though the patch is technically sound. Before merge
Agent review detailsSecurityNone. PR surfaceTests +110, Other +26. Total +136 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain this single owner-boundary change: request raw log output where supported and preserve only the exact legacy fallback, since no smaller refactor can provide both behaviors. Do we have a high-confidence way to reproduce the issue? Yes—source reproducible: current main makes an unflagged job-log read, and the local GitHub CLI confirms the exact legacy error path the patch handles. The PR body also supplies a failed workflow and reported live after-fix read. Is this the best way to solve the issue? Yes. The parent job-log reader owns this behavior, and the patch avoids changing other REST reads or artifact-download routing. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2a8b322ebf52. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer checklist disposition:
Proceeding with squash merge. |
Preserve ANSI output for reusable validation job-log reads while retaining a bounded fallback for GitHub CLI versions that do not support the raw-output flag.
What Problem This Solves
Reusable full-release validation rejected otherwise valid prior evidence when a GitHub Actions job log contained terminal escape sequences. The failed log read made the release workflow fall through into unnecessary heavy validation jobs.
Why This Change Was Made
Allow terminal escape sequences only for the parent job-log API read. Older
ghversions retry once without the flag only when stderr contains the exact unsupported-flag line; unrelated failures still propagate without retry. Other REST reads remain on their existing argv contract, and artifact ZIP downloads remain on the plainghbinary path.User Impact
Release operators can reuse exact validated evidence even when a child dispatch log contains ANSI output, avoiding a false-negative reuse decision and an unnecessary full validation rerun.
Evidence
31676494305because the job-log response contained terminal escape sequences.node scripts/run-vitest.mjs test/scripts/release-ci-summary.test.ts- 50 passed, including modern, legacy fallback, and unrelated-error contracts.94372185605with localgh 2.93.0exercised the legacy fallback and returned 50,744 bytes without stderr leakage.node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.scripts.json scripts/release-ci-summary.mjs- passed.pnpm format:check --no-error-on-unmatched-pattern -- scripts/release-ci-summary.mjs test/scripts/release-ci-summary.test.ts- passed.git diff --check- passed.Changelog: none; internal release tooling only.