Repository navigation
Recover failed-job log retrieval onto main - #29180
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to
|
d902bb5 to
d6674af
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
71cded14-d426-4686-adbb-edbaf5815149
📒 Files selected for processing: 43
mobile/src/session/github-pr-check-reply-schema.test.tsmobile/src/session/github-pr-check-reply-schema.tssrc/main/git/command-runner/exec-file-capture.test.tssrc/main/git/command-runner/exec-file-capture.tssrc/main/git/command-runner/gh-bound-account-env.tssrc/main/git/command-runner/gh-capture-lifetime.tssrc/main/git/command-runner/gh-exec-file-lifetime.test.tssrc/main/git/command-runner/gh-exec-file.tssrc/main/github/client-pr-check-details.test.tssrc/main/github/client/check/__fixtures__/gh-api-unknown-escape-flag.jsonsrc/main/github/client/check/check-details-abort.tssrc/main/github/client/check/check-details-admission-lifetime.test.tssrc/main/github/client/check/check-details-admission-lifetime.tssrc/main/github/client/check/check-details-admission-snapshot.test.tssrc/main/github/client/check/check-details-capture-diagnostics.test.tssrc/main/github/client/check/check-details-safe-diagnostics.test.tssrc/main/github/client/check/check-job-log-auth-lifetime.test.tssrc/main/github/client/check/check-job-log-cache-retention-child.mjssrc/main/github/client/check/check-job-log-capture.test.tssrc/main/github/client/check/check-job-log-download.test.tssrc/main/github/client/check/check-job-log-download.tssrc/main/github/client/check/check-job-log-execution.test.tssrc/main/github/client/check/check-job-log-execution.tssrc/main/github/client/check/check-job-log-host-measurement.mjssrc/main/github/client/check/check-job-log-host-measurement.test.tssrc/main/github/client/check/check-job-log-inflight.tssrc/main/github/client/check/check-job-log-routing.test.tssrc/main/github/client/check/check-job-log-shared-pipeline.test.tssrc/main/github/client/check/check-job-log-snapshot.test.tssrc/main/github/client/check/check-job-log-subscribers.test.tssrc/main/github/client/check/check-job-log-tails.test.tssrc/main/github/client/check/check-job-log-tails.tssrc/main/github/client/check/check-job-log-test-fixture.tssrc/main/github/client/check/get-pr-check-details.tssrc/main/github/gh-account-token.test.tssrc/main/github/gh-account-token.tssrc/main/github/gh-capability-state.test.tssrc/main/github/gh-capability-state.tssrc/main/runtime/github-check-details-paired-cleanup.test-fixture.tssrc/main/runtime/github-check-details-paired-cleanup.test.tssrc/main/runtime/github-check-details-paired.integration.test.tssrc/main/runtime/runtime-github-review-query-commands.test.tssrc/shared/github/check-types.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
ELI5
Failed GitHub checks can show only an exit code because the GitHub CLI refuses logs containing terminal controls. This restores the missing retrieval fix to
main, so Orca can download a bounded failure excerpt and retry failed downloads.What Changed
Job-log commands allow escape sequences before the shared extractor sanitizes and bounds the excerpt. Older CLIs retry without the option only for the captured unsupported-option diagnostic. Failed downloads preserve job metadata and an optional outcome, and do not enter the successful-result cache. Compatible callers share downloads while cancellation, deadlines, and process lifetimes retain their owners.
This is only the original retrieval scope from #28687, with its removed test fixture updated to the generated replacement. Renderer normalization remains in #28694 and presentation/retry guidance remains in #28702.
Why
#28671 merged into
mainfirst. #28687 later merged into the already-mergedci-log-textbranch, leaving retrieval outsidemain. This PR targetsmaindirectly. The next PR will be retargeted tomainafter this merges; no dependency will be merged into an already-landed branch.Linked Issue
Reported job: https://github.com/stablyai/orca/actions/runs/38645946865/job/116134352883
Recovers #28687. Followed by #28694, then #28702.
Visual Proof
N/A — host download/cache behavior only. The original UI PR contains rendered proof. A hidden recovery app also fetched the exact reported job through real IPC and received an available 13,865-character excerpt containing its test-timeout diagnostic.
Testing
fe63e92c76b083c556af72a3fa393ca3d4d7a1b6; all selected jobs succeeded andverifytook its documented success fast path.Local platform: macOS arm64. Existing deterministic tests cover account isolation, folder workspaces, SSH/paired execution ownership, optional-field compatibility, old CLI fallback, cancellation, and cache limits. No physical Windows/Linux/SSH validation is claimed.
Review
The original independent retrieval reviews are recorded in #28687. This recovery retains those patches and fixes their dependency on a deleted test fixture.
Agent skill upstream boundary
Notes
Existing limits remain: five sequential failed jobs, 64 MiB captures, 16 KiB excerpts, 128 successful cache entries, and existing deadlines. Shared sanitizer performance limitations are recorded in #28671. Uncommitted work in the original worktrees is excluded and preserved.
Checklist
Review correction
The injected cleanup-stall test now finishes the real paired-server shutdown before starting its 100 ms stall deadline. This keeps a slow real shutdown from masquerading as the intended timeout or racing temporary-directory removal. The 11 affected cleanup/integration tests pass; fresh CI is required for the new commit.
Merged into
mainas0d4eb242d7864221296b426552abbb08c9d4f9a4. Ingestion #28694 now targetsmain; UI #28702 remains a separate dependent PR.