Repository navigation
Make failed check details readable and easy to retry - #28702
Conversation
5c19ade to
0cebc0c
Compare
a59537f to
db2ef2c
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.
0cebc0c to
be61d80
Compare
db2ef2c to
8cb5f20
Compare
# Conflicts: # src/main/runtime/github-check-details-paired-cleanup.test-fixture.ts # src/main/runtime/github-check-details-paired.integration.test.ts
# Conflicts: # src/renderer/src/components/editor/CheckRunDetailsPanel.copy.test.tsx
📝 Walkthrough
Priority: ⚪ Not assessed Merge Risk: ⚪ Minimal · up to
|
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:
b8e8628d-186f-49b9-8b94-012f663f2d3d
📒 Files selected for processing: 33
src/renderer/src/components/editor/CheckRunDetailsPanel.captured-failure.test.tsxsrc/renderer/src/components/editor/CheckRunDetailsPanel.copy.test.tsxsrc/renderer/src/components/editor/CheckRunDetailsPanel.log-outcomes.test.tsxsrc/renderer/src/components/editor/CheckRunDetailsPanel.tsxsrc/renderer/src/components/editor/CheckRunJobs.tsxsrc/renderer/src/components/editor/EditorContent.tsxsrc/renderer/src/components/editor/check-details-reading-cache.tssrc/renderer/src/components/editor/check-details-reading-fixture.tssrc/renderer/src/components/editor/check-details-reading-owner.tssrc/renderer/src/components/editor/check-details-reading-viewport.test.tssrc/renderer/src/components/editor/check-details-reading-viewport.tssrc/renderer/src/components/editor/closed-check-details-cache-lifetime.test.tssrc/renderer/src/components/editor/closed-editor-tab-controller.tssrc/renderer/src/components/editor/closed-editor-tab-disposal.tssrc/renderer/src/components/editor/use-check-details-reading-position.tssrc/renderer/src/components/right-sidebar/check-job-log-captured-fixture.tssrc/renderer/src/components/right-sidebar/check-job-log-tail.outcomes.test.tsxsrc/renderer/src/components/right-sidebar/check-job-log-tail.tsxsrc/renderer/src/components/right-sidebar/check-log-initial-diagnostic-position.test.tssrc/renderer/src/components/right-sidebar/check-log-initial-diagnostic-position.tssrc/renderer/src/components/right-sidebar/checks-list-expanded-details.test.tsxsrc/renderer/src/components/right-sidebar/checks-panel-content.test.tsxsrc/renderer/src/components/right-sidebar/checks-panel/check-run-details.tsxsrc/renderer/src/components/right-sidebar/use-check-log-reading-position.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/store/slices/editor-check-details-reading.test.tssrc/renderer/src/store/slices/editor/actions/check-run-details-actions.tstests/e2e/repro-7732-gitlab-checks-job-details.spec.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
# Conflicts: # src/renderer/src/components/editor/closed-editor-tab-disposal.ts
There was a problem hiding this comment.
🧹 Nitpick comments: 1
src/renderer/src/components/right-sidebar/checks-list-expanded-details.test.tsx: 1
190-204: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winUse a job name that cannot match other rendered text.
The assertion
expect(text).toContain('startup')is meant to prove that thestartup_failurejob appears in the "Failed jobs" list. The check-level conclusion is alsostartup_failure. The status row rendersgetCheckStatusLabel(detailsStatusCheck)for that conclusion. If the label contains the lowercase substringstartup, the assertion passes even when the sidebar filter drops the job. That is the regression from the earlierisFailureStatereview. The ordering assertion at Line 205 still catches the section-order regression. The job-inclusion assertion may not catch the filter regression.Give the job a distinctive name and assert that name.
Proposed fix
{ ...checkDetails.jobs[0]!, id: 2, - name: 'startup', + name: 'boot-shard', conclusion: 'startup_failure', logTail: null } @@ const text = container.textContent ?? '' expect(text).toContain('Failed jobs') - expect(text).toContain('startup') + expect(text).toContain('boot-shard') expect(text.indexOf('Failed jobs')).toBeLessThan(text.indexOf('Verify failed'))
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
35ad9f30-fa3d-433d-ab60-482379a24f4e
📒 Files selected for processing: 4
src/renderer/src/components/editor/closed-editor-tab-controller.tssrc/renderer/src/components/editor/closed-editor-tab-disposal.tssrc/renderer/src/components/right-sidebar/checks-list-expanded-details.test.tsxsrc/renderer/src/components/right-sidebar/checks-panel/check-run-details.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
ELI5
Failed checks put the failed job and its log excerpt first, open near the diagnostic, and explain how to retry logs that could not be loaded.
What Changed
Previously, successful steps and annotations could hide the useful failure text, the excerpt opened near a generic exit message, and Refresh removed the viewer while loading. The sidebar also called its bounded details view “View full logs.”
Failed job names, failed steps and expanded Log excerpt now appear before collapsed successful/skipped steps. Meaningful provider output and external links remain available. A small diagnostic rule and rendered text coordinates position wrapped failure text and its nearby stack together. The existing tab cache and accepted-request guards preserve reading positions through Refresh, tab activity and unrelated updates.
The sidebar action is View full details. Partial log errors retain metadata and direct users to that tab's existing header Refresh. Empty, not-requested, running and older-host unknown states have distinct, truthful messages. Display and Copy use the normalized payload directly.
Why
The existing bounded excerpt retains this failure's diagnostic and stack. Reusing the combined details request, existing Refresh action and numeric reading-position cache keeps acquisition and cancellation in their current owners. Measuring rendered text handles wrapping, and retaining the mounted viewer prevents an unchanged refresh from stealing the reading position.
This PR retains the original presentation/retry scope and targets
ci-log-ingestion. Retrieval recovery #29180 has landed onmain. Ingestion #28694 now targetsmaindirectly. Merge ingestion first. Finally retarget this PR tomain, run the full PR workflow, and merge it. Never merge this PR into an already-landed parent branch.The recovery resolves current editor-cache/test conflicts and uses the generated replacement for the removed JSON test fixture. Acquisition remains in the retrieval PR and response normalization remains in the ingestion PR.
Linked Issue
Reported check: test / tests node 24 2/5. No new issue was created.
Visual Proof
Full hidden-renderer screenshots of the captured diagnostic. The before view opens at a benign logger; the after view shows the diagnostic and complete nearby stack in a 480-pixel editor pane.
The required actual-ingress retry path and older-host normalization also passed:
The small captured fixture and full 13,236-byte bounded excerpt both fit the wide/narrow reading clips. Surrounding review metadata is synthetic; request mocks use the existing main IPC seam and real renderer loaders. Media lives in attachment storage, outside this PR's diff. Full raw logs are excluded.
Testing
pnpm tc, and changed-files quality gate passed.Latest affected tests: 49 passed in three suites; changed-files quality and scoped formatting passed. Earlier 205 scoped tests, captured small/full wide/480-pixel geometry and GitLab E2E passed. Full
pnpm tcand final changed-files quality passed on this source stack; final independent review 3 passed with no blocking UI findings; no additional app or geometry rerun is planned when production blobs remain unchanged. Actual desktop validation is macOS arm64. Other host routing and mixed-version transport evidence comes from the dependency tests; no live Windows, Linux or SSH desktop run is claimed.Review
Two independent design reviews converged after one fix pass. Code reviews have corrected narrow-path clipping, generic provider headings and a later diagnostic being mistaken for an earlier logger's frame. The two code reviews found three corrections, all implemented and regression-tested. Independent final review 3 found no substantive blocking UI findings. The UI scope is complete; final shared-text review and measured performance limitations are recorded in #28671.
Agent skill upstream boundary
Notes
The final affected shared-text run passed all 332 cases after correcting the near-cap escape-stripping timeout. The earlier 14 failures remain in the historical artifact. No UI blocker remains; merging is a separate action.
The diagnostic rule is a bounded heuristic; an excerpt can omit relevant output or match benign text. The provider link remains the escape hatch. The five-job request limit, 16 KiB excerpts, existing deadlines and acquisition lifecycle remain unchanged. No full-log viewer, step parser, polling lifecycle or AI line-budget change is included.
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. A hidden Electron app downloaded the exact newly reported job through real IPC and rendered its timeout diagnostic in the full details tab. Fresh UI-only tests and full CI run on this restacked head. Uncommitted work in the original worktrees is excluded and preserved.Exact reported job after recovery
The real IPC request downloaded job
116134352883without a mock. The hidden full-details tab rendered its timeout diagnostic and source location from the available 13,865-character excerpt. The recovered UI code is unchanged by the split; the restack also incorporates current main and the retrieval cleanup-test correction.UI-only package-runner validation: 187 tests passed in 10 files.
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.