Repository navigation
Normalize CI log excerpts when check details arrive - #28694
Conversation
a025893 to
db4f840
Compare
5c19ade to
0cebc0c
Compare
The wall-clock performance suites run about 1k child workloads up to 63 MiB, so they were sharing runners with unit tests and could fail on noise. They now run only in their own `check_log_performance` job, opted in with `ORCA_CHECK_LOG_PERF=1`. - Remove the pinned-baseline checkout and `ORCA_CHECK_LOG_BASELINE_DIR`. The baseline comparison is now a manual step that reads the pinned ref from local Git history. - Run the current-implementation checks with `compareBaseline: false`, which skips baseline builds and audits.
- Replace the captured failure-log JSON with a synthetic log built by `createCheckLogFixture()`, so no scraped job output or provenance metadata is kept in the repo. - Remove the `check_log_performance` CI job. The log performance suites now run only when `ORCA_CHECK_LOG_PERF=1` is set, as a manual benchmark. - Update the benchmark scripts and tests to use the new fixture helper and drop the `fixturePath` parameter.
db4f840 to
42adb49
Compare
0cebc0c to
be61d80
Compare
42adb49 to
76febff
Compare
# Conflicts: # src/main/runtime/github-check-details-paired-cleanup.test-fixture.ts # src/main/runtime/github-check-details-paired.integration.test.ts
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to
|
Ingestion implementation and two independent reviews are complete. Final dependency integration, typecheck, changed-code quality, and affected tests pass.
ELI5
Check details from an older Orca host can contain terminal formatting and unsafe control characters. Normalize those excerpts when details arrive so the text people read, copy, and send to AI is readable and bounded.
What Changed
The store/sidebar, PR dialog, and PR page loaders each normalize one response after either IPC or RPC finishes. One reusable details normalizer calls the shared sanitizer once per string excerpt: cap the raw excerpt to 16 KiB before stripping controls, normalize line breaks, and retain independent text storage. Job metadata, supplied outcomes, and omitted legacy outcomes remain intact.
Load failures use fixed localized text without carrying captured error output. AI context describes bounded excerpts and excludes explicit log-download errors from log evidence. Copy and details-editor AI use loaded details without another request; sidebar AI keeps its existing fetch. Existing request ownership, deadlines, routing, and AI line budgets stay intact.
Why
These three loaders issue independent requests. Normalizing at each response boundary covers their existing consumers with the shared text policy, without adding downloads or sanitation during rendering and actions.
Linked Issue
No new issue created; this is part of the coordinated CI failure-output fix.
Dependencies and Merge Order
Retrieval recovery #29180 is merged into
mainas0d4eb242d7864221296b426552abbb08c9d4f9a4. This PR now targetsmaindirectly and contains only its original 18-file ingestion scope. Its original three patches are preserved; the test fixture import and benchmark input names are repaired for currentmain.UI PR #28702 remains a draft on this branch. After this PR lands, retarget #28702 to
main, refresh its head againstmain, and verify the full PR workflow before merging. Never merge it into this branch after this branch has landed.Visual Proof
Legacy check excerpt: before and staged after
Saved uncropped hidden-renderer BEFORE at
20d82e7and staged AFTER at949e5b7use the same generated legacy fixture through the actual store/preload IPC/full-details/Copy path. AFTER shows the diagnostic and stack on readable separate lines, with no unsafe controls in DOM or either Copy value. One cold details request; Copy adds zero. This is a synthetic compatibility proof, not a provider download or final layout/retry proof.Owned production blobs are unchanged after dependency integration; the completed green rendered proof is retained. The uploaded before/after images are stored outside this PR diff.
Testing
ORCA_BACKGROUND_LAUNCH=1 pnpm tc, changed-code quality against the exact base, and 175 affected tests/6 files pass at the tested head.Actually tested on macOS 26.5.1 arm64, Node 26.8.1 and the package runner. Routing/cancellation coverage uses deterministic renderer fixtures; native Windows/Linux and real SSH/paired hosts were not exercised here. The earlier staged shared-test TS6307 import errors are resolved by the integrated dependency; full typecheck now passes. Final synchronized stack checks are recorded below.
Review
Real Orca workers used requested and effective
codex gpt-6.1-sol, effortxhigh, verified in launch receipts. Design converged after two independent reviews and one fix. Both independent application reviews accepted with no findings, including the final integrated 18-file diff after dependency integration. No application fix was required; two rounds were used within the five-round limit.Agent skill upstream boundary
Notes
Excerpts and the unchanged AI line budget can omit diagnostics. Omitted legacy outcomes remain unknown. Renderer request counters do not measure physical host CLI attempts. Isolated no-Buffer retention checks retained about 266 KiB for sixteen normalized excerpts versus 32 MiB for raw slices; this is Node/V8 ownership evidence, not a total renderer/transport heap guarantee or full-app performance claim.
Checklist
Final dependency verification
Before the latest dependency restack, the synchronized stack passed 205 affected tests in nine suites, full
ORCA_BACKGROUND_LAUNCH=1 pnpm tc, and the changed-code quality gate with zero new findings across 106 files. The final shared-text affected run passed all 332 selected cases; the earlier failed 1,004-case run remains separately recorded. Large synthetic logs still have a material processing cost: about 84 ms at 8 MiB and 579 ms at 63 MiB versus 39 ms and 293 ms before. The actual captured job measured about 4 ms. This is a disclosed correctness tradeoff, not a large-log stall fix or a zero-regression claim.Merge recovery validation
The integrated recovery on current
mainpassed full typecheck, changed-code quality, and 622 affected tests in 40 files. The exact reported job was downloaded through the real hidden Electron app and rendered with its timeout diagnostic. Fresh ingestion-only tests and full CI run on this restacked head. Uncommitted local work is excluded and preserved.Ingestion-only package-runner validation: 217 tests passed in nine files.
The latest merge recovery incorporates the landed retrieval cleanup-test correction and current
main. Fresh CI runs on the updated head.Final restacked application validation against landed
main: 402 tests passed in 18 affected files, fullpnpm tc, and changed-code quality with zero new findings. Fresh PR CI is running on the updated heads.