Repository navigation
fix(release): fetch child job logs with --allow-escape-sequences - #136856
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 2, 2026, 11:49 PM ET / September 3, 2026, 03:49 UTC. ClawSweeper reviewWhat this changesThis PR adds GitHub CLI’s escape-sequence flag to FRV child-job log downloads so release recovery can read ANSI-containing logs. Merge readiness⛔ Blocked before merge - 3 items remain The previous P1 compatibility blocker remains: the introduced unconditional flag fixes the Octopool shim case but makes FRV fail on legacy GitHub CLI installations before it can rerun failed children. Priority: P1 Review scores
Verification
How this fits togetherFRV is OpenClaw’s full-release validation controller. It reads GitHub Actions child-job logs to verify release state and decide which failed child jobs to rerun. flowchart LR
A[Failed release child job] --> B[FRV controller]
B --> C[GitHub CLI log request]
C --> D[Job log text]
D --> E[Failed-job rerun decision]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceOther +3. Total +3 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the job-log-specific flagged request, but mirror the existing exact-error fallback and cover both the supported and legacy CLI paths in FRV’s protected GitHub-read test. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: an older gh that emits the exact unknown-flag error reaches FRV’s non-transient error path and aborts the recovery operation before reruns. Is this the best way to solve the issue? No. The flagged request is the right primary path for ANSI logs, but a job-log-specific exact-error fallback is required to preserve the established legacy GitHub CLI compatibility contract. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4af3fc294575. LabelsLabel 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
HistoryReview history (2 earlier review cycles)
|
6700f0d to
0cad6e0
Compare
The Octopool gh shim used on maintainer Macs refuses job-log bodies that contain terminal escape sequences even when stdout is not a TTY, which made `pnpm frv continue --failed` crash before rerunning any failed child. Real gh only applies that check on a TTY and ignores the flag otherwise, so passing it keeps the controller working with either binary. Formatted with oxfmt from a normal checkout; frv tests pass there.
0cad6e0 to
81754f0
Compare
|
Merged via squash.
|
…nclaw#136856) The Octopool gh shim used on maintainer Macs refuses job-log bodies that contain terminal escape sequences even when stdout is not a TTY, which made `pnpm frv continue --failed` crash before rerunning any failed child. Real gh only applies that check on a TTY and ignores the flag otherwise, so passing it keeps the controller working with either binary. Formatted with oxfmt from a normal checkout; frv tests pass there.
What Problem This Solves
pnpm frv continue --failed --run <parent>crashed on maintainer Macs withthe response contains terminal escape sequences; pass --allow-escape-sequences to output it anywaywhile fetching a failed child's job log, so the release controller could not rerun failed children (seen during the 2026.9.1 release on run 33704822889).Why This Change Was Made
The
ghon those Macs is the Octopool shim, which applies gh's escape-sequence refusal even off a TTY. Real gh only checks on a TTY and ignores--allow-escape-sequencesotherwise, so passing the flag on the job-log fetch keeps the controller working with either binary.apiTextgains an optional trailingextraArgsparameter; existing callers are unchanged.User Impact
Maintainer tooling only; no runtime change.
Evidence
pnpm frv continue --failed --run 33704822889->[frv] Command failed: gh api repos/openclaw/openclaw/actions/jobs/100491604631/logs ...(escape-sequence refusal).gh api .../logs --allow-escape-sequencesreturns the log body with the same shim.node --check scripts/frv.mjspasses.