Skip to content

[P1] fix(checks): stop skipped and manual checks reporting as failures - #11700

Merged
nwparker merged 7 commits into
mainfrom
nwparker/p1-check-classification-regressions
Jul 31, 2026
Merged

nwparker merged 7 commits into
mainfrom
nwparker/p1-check-classification-regressions

Conversation

@nwparker

@nwparker nwparker commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Imagine a checklist on your pull request. Some items say "passed", some say "skipped, not needed here", and on GitLab some say "waiting for a human to click Deploy". Recently Orca started reading two of those as "broken".

  • GitLab's "waiting for a human" deploy gate got filed under "action required", which Orca treats as a hard failure — so perfectly green, mergeable MRs showed red failing checks.
  • On mobile, "skipped" items got filed under "unresolved" — so a PR that read "20/20 passed" in green flipped to grey "Unresolved checks" the moment you pulled to refresh. Same PR, same data, opposite answer.
  • And a single harmless "neutral" item dragged the whole PR down, greying out the checks pill and disabling the Merge button.

This PR gives all three surfaces (desktop sidebar, desktop Tasks grid, mobile) one shared rulebook: skipped means passed, a GitLab manual gate means waiting-on-a-human, and one neutral item can't outvote the checks that actually passed.

Summary

  • Added src/shared/provider-check-summary.ts:21 — a single classifyCheckOutcome / summarizeProviderChecks pair that is now the only place a provider conclusion becomes passed/failed/pending/neutral. skipped is bucketed with success; action_required stays a failure.
  • src/shared/provider-check-summary.ts:39 — resolveProviderCheckState ranks passed > 0 above neutral > 0, so one neutral (or unknown) conclusion can no longer demote a PR that has passing checks. Fixes the Tasks-grid Merge button (github-pr-merge-state.ts:50 checksPassed) and the sidebar checks dot (activity-bar-buttons.tsx:58, which hides on 'neutral').
  • src/shared/gitlab-pipeline-checks.ts:38 — GitLab manual maps back to neutral instead of action_required, restoring the intent (and comment) that fix(checks): rank successful checks above skipped and neutral #11337 deleted; action_required keeps its own branch. src/main/gitlab/mappers.ts:292 gets the same treatment for pipeline-level head_pipeline.status, so a blocked pipeline no longer paints the worktree card red.
  • mobile/src/tasks/github-check-summary.ts:13 and mobile/src/tasks/gitlab-check-summary.ts:10 now delegate to the shared helper (and to the shared GitLab job mappers) instead of keeping a third divergent copy of the rules.
  • src/shared/pr-check-status.ts:6, src/renderer/src/components/task-page-pr-check-summary.ts:5 and src/main/github/client.ts:659 (deriveWorkItemCheckSummary) all re-express themselves in terms of the shared helper, so checksStatus and checksSummary can no longer disagree about the same PR.
  • src/shared/provider-check-summary.ts:84 — getProviderChecksLabel is now the single checks-pill label, keyed off state rather than the raw neutral counter, with TaskPage.tsx:2016 and mobile/src/tasks/mobile-hosted-check-status.ts:42 both delegating to it. This keeps the label consistent with the corrected state on every surface: now that one neutral check no longer demotes an otherwise-green summary, a label derived from the raw neutral counter would still have said "1 unresolved" for a PR whose state is success. Deriving it from state removes that second source of truth.
  • fix(checks): rank successful checks above skipped and neutral #11337's actual intent is preserved: src/shared/pr-check-severity-order.ts still ranks successful checks above skipped/neutral in the checks list ordering. This change is about classification, not ordering.

Regression source

All four regressions were introduced by #11337 (6f3845baa4) — "fix(checks): rank successful checks above skipped and neutral". Alongside its ordering change it reclassified GitLab manual as action_required, added neutral buckets that demote a whole summary, and made mobile count skipped as unresolved.

Not #11071 (554892b184, "fix(github): classify all blocking check conclusions"). An earlier draft of this PR body named it as a contributing cause; that was wrong on two counts, and the correction is recorded here rather than silently dropped:

Test plan

  • New src/renderer/src/components/provider-check-classification-parity.test.ts: table-driven parity across the desktop surfaces (summarizeProviderChecks, deriveTaskPagePRCheckSummary, derivePRCheckStatus, derivePRCheckStatusFromRollup) for all success; success+skipped; all skipped; success+neutral; all neutral; success+failure; success+running; GitLab manual-only; GitLab manual+success; genuine action_required.
  • New parity block in mobile/src/tasks/github-check-summary.test.ts: same table asserted against buildGitHubCheckSummary / buildGitLabCheckSummary and pinned to the shared classifier.
  • Verified failing-then-passing: with the production files reverted to origin/main (shared test module kept), npx vitest run --config config/vitest.config.ts src/renderer/src/components/provider-check-classification-parity.test.ts fails 4/10 —
    • 'all skipped' resolves identically on every desktop surface → AssertionError: expected 'neutral' to be 'success'
    • 'GitLab manual gate only' ... → expected { state: 'failure', total: 1, ... } to deeply equal { state: 'neutral', passed: +0, ... }
    • 'GitLab manual gate alongside a green pipeline' ... → expected { state: 'failure', total: 2, ... } to deeply equal { state: 'success', passed: 1, ... }
    • 'success plus neutral' ... → expected { state: 'neutral', total: 2, ... } to deeply equal { state: 'success', passed: 1, ... }
      and the mobile file fails 7 tests, including 'success plus skipped' matches the shared desktop classifier → expected { state: 'neutral', ... } to deeply equal { state: 'success', passed: 2, ... }. Both pass after restoring the fix.
  • New src/main/github/client-work-item-check-summary.test.ts: drives getWorkItem(..., 'pr', ...) with real statusCheckRollup fixtures so deriveWorkItemCheckSummary — the desktop-main producer of the checksSummary that reaches the Tasks grid and the relay-paired mobile client — is covered directly rather than by proxy through derivePRCheckStatusFromRollup (a different normalizer). Asserts a CheckRun SKIPPED + StatusContext SUCCESS + CheckRun NEUTRAL rollup resolves to {state:'success', total:3, passed:2, neutral:1}, plus a pending, a failing and an empty rollup. Confirmed failing-then-passing: deleting the ?? raw.state StatusContext fallback fails the first case (expected 'success' to be 'pending') and nothing else in the suite notices.
  • The parity table now also asserts getProviderChecksLabel for every row: only a 'neutral' state may produce an "Unresolved" label, plus an explicit 19-success + 1-neutral case: state is success after this change, so the label must read 19/20 passed rather than "1 unresolved".
  • Updated the existing tests that had pinned the regressed behavior (src/main/gitlab/mappers.test.ts, src/shared/gitlab-pipeline-checks.test.ts, src/renderer/src/components/task-page-pr-check-summary.test.ts, src/shared/pr-check-severity-order.test.ts); each was confirmed failing against the unfixed code first, e.g. mapPipelineJobStatusToConclusion('manual') → expected 'action_required' to be 'neutral'.
  • Full desktop suite: npx vitest run --config config/vitest.config.ts → 3975 files passed, 42085 tests passed; the only failures are the 2 known GIT_CONFIG_COUNT environment assertions in src/relay/agent-exec-handler.test.ts.
  • Mobile: all 27 files / 175 tests under mobile/src/tasks pass.
  • npx oxlint on every changed file: clean. All three pnpm typecheck projects (config/tsconfig.node.json, config/tsconfig.tc.cli.json, config/tsconfig.tc.web.json) are clean. The parity table lives in the renderer tree rather than src/shared because the node and cli projects are composite and include src/shared without the renderer components directory, so a shared test importing task-page-pr-check-summary fails them with TS6307.

Found by the production release scan of v1.4.163-rc.0..origin/main.

Made with Orca 🐋


Review follow-up (dd72c9bfaf) — user-visible tone changes, disclosed

Two GitLab presentation changes ship here and are worth calling out explicitly, because both alter what a user sees on a card they did not previously have to think about.

1. A manual (blocked) GitLab pipeline now reads amber "pending" instead of red "failed".
GitLab reports pipeline-level manual only when the pipeline is genuinely blocked on a human trigger (a manual job with allow_failure: false); optional when: manual deploy buttons leave the pipeline at success. Before this PR that blocked state resolved to failure, so the worktree card's MR icon was rose and ReviewChecksBadge read "Checks: Failed" for a pipeline that had not failed. It is now pending: amber icon, "Checks: Pending" badge. Nothing is gated on the value — the merge button's enabled state and label are unchanged (HostedReviewActions.tsx:147-149 reads the merge-method label whenever directMergeAvailable, which GitLab always sets true for an open non-conflicting MR).

Resolving it to neutral was considered and rejected: worktree-review-helpers.tsx:35-41 gives neutral no check tone and then falls through to the emerald open default, so a blocked MR would have rendered identically to a passing one, with ReviewChecksBadge suppressed entirely — a false green in place of a false red.

2. The per-job "Action required" cue for GitLab manual jobs is dropped.
mapGitLabPipelineJobStatusToConclusion('manual') moves from action_required to neutral, so in the Checks tab a manual job's row goes from an amber AlertTriangle + "Action required" + "Needs a manual action … to unblock merging" to a grey CircleDashed + "Neutral". This is deliberate. A job's manual status cannot distinguish a blocking gate from an optional deploy button, and action_required is in FAILED_CONCLUSIONS — which is precisely why a green pipeline carrying one optional manual job rolled up to failure and painted the whole MR red. Recovering the cue without the false red requires a first-class manual conclusion in PRCheckDetail, plumbed through every check surface; that is a separate change.

Explicitly not changed: classifyPipelineString still resolves both skipped and canceled pipelines to neutral, even though the job rollup calls the same jobs passing and failing respectively. GitLab's own MR widget paints both grey, and allow_merge_on_skipped_pipeline defaults to false, so a skipped pipeline still blocks merging — painting that card green would be the optimistic direction. Both string-vs-array divergences are pinned by a test so neither can flip silently, and both remain product decisions for their own PR.

Route every check-classification surface through one shared helper so
desktop renderer, desktop main and mobile agree on the same verdict.

- GitLab `manual` jobs and pipelines are neutral again, not action_required/failure
- `skipped` counts as passed everywhere, including mobile
- a neutral check no longer demotes a summary that has passing checks
@greptile-apps

greptile-apps Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

Greptile Summary

This PR fixes a set of regressions introduced by #11337 where skipped checks, GitLab manual jobs, and neutral check conclusions were incorrectly classified as failures, causing green PRs to appear red or unresolvable. The fix introduces a single shared classifyCheckOutcome/summarizeProviderChecks pair in src/shared/provider-check-summary.ts that all surfaces (desktop sidebar, Tasks grid, mobile) now delegate to, eliminating the divergent local copies that drifted apart.

  • provider-check-summary.ts is the new single source of truth: skipped → passed, manual (GitLab) → neutral, action_required → failed, and neutral checks can no longer demote an otherwise-green summary.
  • All check-classifying paths in client.ts, mappers.ts, pr-check-status.ts, task-page-pr-check-summary.ts, and both mobile summary files are rewritten to delegate to the shared helper, with a parity test table asserting identical verdicts across every surface.
  • The getProviderChecksLabel / getChecksLabel functions are likewise consolidated so the pill label always agrees with the pill state.

Confidence Score: 5/5

Safe to merge; the core classification logic is well-tested across all surfaces and the parity table confirms consistent verdicts.

The shared classifyCheckOutcome/summarizeProviderChecks pair is straightforward and its key decisions (skipped=passed, manual=neutral, neutral-can't-demote-green) are each covered by a before-and-after test. The two display-only inconsistencies (a chip label using the old skipped translation key for neutral checks, and startup_failure/error landing in the wrong detail-panel bucket) are cosmetic and do not affect merge-button state or the pill's tone.

Files Needing Attention: The neutral-chip label reuse in GitHubItemDialog.tsx and PullRequestPage.tsx, and the incomplete failing-conclusion list in pr-check-counts.ts, are worth a quick follow-up but do not block this fix.

Important Files Changed

Filename Overview
src/shared/provider-check-summary.ts New canonical check-classification module; logic for skipped=passed, manual=neutral, neutral-can't-demote-green is clean and well-tested.
src/shared/gitlab-pipeline-checks.ts Correctly splits manual (→ neutral) from action_required (→ action_required), restoring the pre-#11337 intent.
src/main/gitlab/mappers.ts Pipeline-level manual now maps to pending (amber) instead of failure (red); skipped/canceled pipeline tones correctly deferred as product decisions.
src/renderer/src/components/pr-check-counts.ts Shared detail-panel breakdown used by both the PR page and work-item dialog; action_required is kept in its own bucket while skipped moves to passing. Minor: startup_failure/error are not in the local failing set but are in FAILED_CONCLUSIONS, so the pill label and the detail header can disagree for those rare conclusions.
src/renderer/src/components/GitHubItemDialog.tsx Deduplicates getCheckCounts/getChecksSummaryLabel into the shared module; SummaryIcon now keys off counts.passing rather than list.length, fixing the false-green tick. Neutral chip still uses the old skipped translation key rather than the new unresolved one added in en.json.
src/renderer/src/components/PullRequestPage.tsx Identical deduplication to GitHubItemDialog.tsx; same neutral-chip label issue applies here.
src/renderer/src/components/right-sidebar/checks-panel-content.tsx Now uses summarizeProviderChecks for all counts; adds a neutral-state strip and an unresolved chip so the panel header matches the pill for all-neutral check lists.
mobile/src/tasks/gitlab-check-summary.ts Mobile GitLab summary now routes through the shared mappers and summarizeProviderChecks, removing the private copy that kept manual as action_required.
src/renderer/src/components/provider-check-classification-parity.test.ts New cross-surface parity table with 14 cases covering all major check conclusion variants and all desktop summary functions.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Raw check data] --> B[classifyCheckOutcome]
    B -->|skipped / success| C[passed]
    B -->|failure / timed_out / cancelled / action_required / error / startup_failure| D[failed]
    B -->|pending conclusion OR status != completed| E[pending]
    B -->|otherwise| F[neutral]

    C & D & E & F --> G[summarizeProviderChecks]
    G -->|failed > 0| H[state: failure]
    G -->|pending > 0| I[state: pending]
    G -->|passed > 0| J[state: success]
    G -->|total == 0| K[state: none]
    G -->|all neutral| L[state: neutral]

    H & I & J & K & L --> M[getProviderChecksLabel]
    M --> N[Checks pill label + tone]

    subgraph Consumers
      O[client.ts deriveWorkItemCheckSummary]
      P[mappers.ts derivePipelineStatus]
      Q[pr-check-status.ts derivePRCheckStatus]
      R[task-page-pr-check-summary.ts]
      S[mobile github-check-summary.ts]
      T[mobile gitlab-check-summary.ts]
    end

    O & P & Q & R & S & T --> G

    subgraph GitLab job mapping
      U[mapGitLabPipelineJobStatusToConclusion]
      U -->|manual| V[neutral]
      U -->|action_required| W[action_required]
    end

    U --> B
Loading

Reviews (9): Last reviewed commit: "fix(checks): stop completed unknown chec..." | Re-trigger Greptile

@coderabbitai

coderabbitai Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The change adds shared provider-check classification, aggregation, state resolution, and label formatting. GitHub and GitLab integrations now use the shared utilities. GitLab manual checks map to neutral, while action-required checks remain failures. Mobile and renderer summaries delegate to shared logic. Tests cover provider parity, GitHub rollups, GitLab pipelines, status ordering, pending and failed checks, skipped checks, neutral checks, and empty results.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description provides a detailed summary, regression analysis, test plan, and verification results, but it omits several template sections. Add the Screenshots, AI Review Report, Security Audit, and Notes sections, and explicitly confirm the required cross-platform review and security checks.
Docstring Coverage ⚠️ Warning Docstring coverage is 36.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the primary fix for skipped and manual checks being incorrectly reported as failures.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🛠️ Fix failing CI checks 💡
  • Fix failing CI checks

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f417fd1b-29f0-4378-8ca5-63864f769abd

📥 Commits

Reviewing files that changed from the base of the PR and between a2d0e77 and 9744c3f.

📒 Files selected for processing (14)
  • mobile/src/tasks/github-check-summary.test.ts
  • mobile/src/tasks/github-check-summary.ts
  • mobile/src/tasks/gitlab-check-summary.ts
  • src/main/github/client.ts
  • src/main/gitlab/mappers.test.ts
  • src/main/gitlab/mappers.ts
  • src/renderer/src/components/task-page-pr-check-summary.test.ts
  • src/renderer/src/components/task-page-pr-check-summary.ts
  • src/shared/gitlab-pipeline-checks.test.ts
  • src/shared/gitlab-pipeline-checks.ts
  • src/shared/pr-check-severity-order.test.ts
  • src/shared/pr-check-status.ts
  • src/shared/provider-check-summary.test.ts
  • src/shared/provider-check-summary.ts

Comment thread src/main/gitlab/mappers.test.ts Resolved
nwparker and others added 2 commits July 30, 2026 22:22
…rer project

The parity table lived in src/shared but imported a renderer module, and both
config/tsconfig.node.json and config/tsconfig.cli.json are composite projects
that include src/shared without that renderer path, so `pnpm typecheck` failed
with TS6307 on two of its three projects. Only the web project spans both trees.

Co-authored-by: Orca <[email protected]>
The checks pill's label, tone and icon all read one ProviderCheckSummary, but
getChecksLabel short-circuited on the raw `neutral` counter while the tone and
icon key off `state`. After the classification fix a PR with 19 success + 1
neutral renders an emerald CheckCircle2 pill that reads "1 unresolved", and
mobile's own label (which keys off `state`) reads "19/20 passed" for the same
summary.

Move the label into src/shared/provider-check-summary.ts so desktop and mobile
cannot fork it again, and key it off `state`.

Also covers deriveWorkItemCheckSummary, the desktop-main producer of the summary
that reaches the Tasks grid and the relay-paired mobile client. It was rewritten
here with no test at all; the parity table stands in derivePRCheckStatusFromRollup,
which is a different normalizer. The new main-process test drives getWorkItem with
a real statusCheckRollup fixture, pinning the StatusContext `state` fallback that
would otherwise be deletable with the whole suite still green.

Co-authored-by: Orca <[email protected]>
@nwparker

Copy link
Copy Markdown
Contributor Author

Review follow-up

Fixed — CodeRabbit on src/main/gitlab/mappers.ts (array status resolver)

Verified and confirmed: the job-array branch of derivePipelineStatus carried its own copy of the rollup rules and disagreed with the shared classifier on two inputs (measured on the pre-fix branch):

jobs array resolver (before) every other surface (summarizeProviderChecks)
['manual'] success neutral
['success', <unrecognized>] neutral success

Rather than add a fourth rule, the array path now maps each job through mapPipelineJobStatusToCheckStatus / ...ToConclusion and hands the result to summarizeProviderChecks, so it is the same code path the renderer, main-process GitHub client and mobile already use. Empty/null input still resolves to neutral (CheckStatus has no none).

Parity is pinned, not just asserted locally: provider-check-classification-parity.test.ts cases now carry the originating GitLab job statuses and additionally assert derivePipelineStatus, so the array rollup is a fourth surface in the same table. New cases: manual-only, manual + green, skipped-only, success + unrecognized status, success + canceled, manual + running. All four new assertions fail on the pre-fix code (verified by reverting mappers.ts and re-running).

One pre-existing assertion changed: mappers.test.ts previously pinned ['success', 'future_status'] -> neutral. That is precisely the rule this PR exists to unify — resolveProviderCheckState says a passing check outweighs an unresolved one — so keeping it would have re-introduced the divergence. It is now split into two named tests: unknown-only still stays neutral, unknown-alongside-passing is success.

Note on blast radius: all three production call sites (src/main/gitlab/client.ts) pass the pipeline-level object/string, never an array, so this is a correctness fix on an exported helper rather than a behaviour change users can see today.

CI: package (windows) — unrelated Windows flake, proven

The verify check is only a rollup gate; the real failure was package (windows) (run 30607549937). Evidence it is flake, not this PR:

  1. The failure is in the temp-dir cleanup after every assertion passed — the log line immediately before the error is [packaged-cli-smoke] help and skills commands passed via ...\resources\bin\orca.exe, and the EBUSY is on win-unpacked\Orca.exe, a binary the smoke test never launches.
  2. An earlier run on this same branch (30606022860, commit 9744c3f) passed package (windows); the only delta to the failing commit is TypeScript check-classification code and tests, none of it reachable from the packaged-CLI smoke.
  3. Re-running the failed job on the identical commit (gh run rerun 30607549937 --failed) — package (windows) passed.

Tiny hardening included (separable, CI-only): the smoke script's rm(tempRoot, ...) now uses maxRetries: 20, retryDelay: 250, mirroring src/main/host-tree-removal.ts, which already documents this exact Windows AV/indexer stickiness for product code. A lock that never clears still throws, so a genuine leaked handle keeps failing the gate. Happy to split this out if you would rather keep the PR to check classification.

Deliberately left

classifyPipelineString (the pipeline-level string path) still has its own rules, and two of them differ from the per-check classifier: a skipped pipeline resolves to neutral (a skipped check counts as passed) and a canceled pipeline resolves to neutral (a canceled job counts as failed). Both predate this PR and are unchanged by it. I did not touch them because a whole-pipeline status is a different input space than a check list, and flipping canceled pipelines to red on the MR card is a user-visible tone change that deserves its own PR rather than riding along in a regression fix.

Verification

  • src/main/gitlab + src/shared + parity test: 3795 passed / 15 skipped
  • src/renderer/src/components + src/main/github: 12080 passed
  • config/scripts (covers the two workflow-contract tests that reference the smoke script): 613 passed / 4 skipped
  • mobile src/tasks: 175 passed (27 files)
  • tsc -p config/tsconfig.node.json and -p config/tsconfig.tc.web.json clean; config/tsconfig.tc.web.json gained src/main/gitlab/mappers.ts in its whitelist, following the existing pattern for pure main-process modules imported by renderer tests.

@nwparker

Copy link
Copy Markdown
Contributor Author

Review follow-up: all three blocking items addressed

Pushed 01887af4. Every claim was re-verified against the branch before changing anything.

1. GitLab skipped-only pipeline: card vs Checks tab divergence — VALID, fixed at the root

Confirmed. classifyPipelineString (src/main/gitlab/mappers.ts) had no skipped branch, so it fell through to return 'neutral', while the branch's derivePRCheckStatus — now backed by summarizeProviderChecks, whose PASSED_CONCLUSIONS includes skipped — resolves the same jobs to success. On main both said neutral, so this was a divergence the PR introduced.

Fixed in the direction you identified as unambiguous: classifyPipelineString('skipped') now returns 'success'.

Verified the change is tone-only and cannot turn anything red or unlock a new affordance:

  • hosted-review-queue.ts:114 admits both 'success' and 'neutral', so reviewReadyToMerge bucketing is unchanged for skipped.
  • Every other consumer of a 'success' check status is display tone (WorktreeCardStatusSlot.tsx:83, WorktreeCardMetadataStatusBadges.tsx:167, worktree-review-helpers.tsx:41, parent-pr-checks-row-status.ts:69).

Regression coverage (both fail on 79b2504, pass now — verified by reverting mappers.ts and re-running):

  • mappers.test.ts → counts a skipped pipeline string as passing, matching the Checks tab
  • provider-check-classification-parity.test.ts → the GitLab skipped-only pipeline row now also asserts the string surface.

2. Windows EBUSY comment stated a false cause — VALID, comment corrected

You are right and I was wrong. resources/bin/orca.exe is the .NET launcher (native/windows-cli-launcher/OrcaCliLauncher.cs:13-60), and its whole job is Process.Start(<appDir>\Orca.exe) with ELECTRON_RUN_AS_NODE=1. The smoke script runs six commands through it, so it launches that exact binary six times — "a binary the smoke test never launches" was simply false, and the 10 ms gap between the pass line and the EBUSY makes the teardown race the only plausible reading.

The why-comment in config/scripts/smoke-packaged-cli.mjs now names the real cause: our own just-exited Electron process (plus its crashpad/utility children) holding a handle a few ms past execFile's exit. No AV claim.

I kept maxRetries: 20, retryDelay: 250 rather than dropping to 8 — you called 20 the right mitigation for a teardown race in the same comment, and the ~52 s worst case only accrues on a job that is already failing. Happy to trim it if you'd rather have the shorter tail.

3. Production string path unpinned — VALID, pinned on both surfaces

Confirmed: all three call sites (client.ts:282, :333, :367) pass head_pipeline/pipeline objects, so classifyPipelineString is the live path and the job-array branch has no production caller today.

  • canceled/canceling now have an explicit branch returning 'neutral' with a why-comment naming it as the deliberate, sign-off-pending divergence from FAILED_CONCLUSIONS. Behaviourally a no-op; it exists so the flip cannot land silently.
  • mappers.test.ts gains keeps a canceled pipeline string neutral (deferred tone change), which pins 'canceled'/'canceling' → neutral and [{status:'canceled'}] → failure, so the divergence itself is now asserted.
  • The parity table takes a new optional gitLabPipelineStatus field. manual, skipped and running cases now assert derivePipelineStatus(<string>) and derivePipelineStatus({status}) land on the same state as the four pure functions. canceled is deliberately excluded from the table and pinned separately.
  • The array-path assertion's why-comment now says outright that it has no production caller and is pinned so a future caller cannot inherit a drifted copy, so the table can't be misread as claiming the main-process entry point is unified.

Suggestions

Taken: checks-panel-content.tsx passingCount now uses classifyCheckOutcome, so a 2-success/3-skipped PR reads "5 passing" instead of "2 passing" next to the pill's "5/5 passed". Display-only count; new render test fails pre-fix.

Deliberately deferred, with reasons:

  • Mobile pr-checks-presentation.ts — not a one-liner. Its FAILURE_CONCLUSIONS also omits action_required, error and startup_failure, so routing it through summarizeProviderChecks would flip those from grey to red on mobile. That's a tone regression risk well outside this PR's blast radius; it needs its own change.
  • Gitea pull-request-mappers.ts — same shape of problem: classifyGiteaStatus also maps warning → failure and has a combined-status short-circuit, so folding it into the shared classifier is a behavioural change on a second provider rather than a drive-by.
  • checks-panel-content.tsx pendingCount counts conclusion === null as pending even for status: 'completed', which disagrees with classifyCheckOutcome's neutral. Pre-existing on main, not introduced here; left alone.

For the PR body / notes, as flagged:

  • reviewReadyToMerge widening: a GitLab MR blocked on a manual gate now buckets as ready-to-merge when detailed_merge_status === 'mergeable', because manual moved from failure to neutral and the gate admits neutral. Queue-label change only — gitlab-mr-merge-state.ts already set directMergeAvailable: true even on failure, so no new destructive affordance.
  • deriveTaskPagePRCheckSummary([{status:'completed', conclusion:null}]) moved from pending to neutral, aligning the Tasks grid with the main process and clearing a pill that previously sat amber "1 pending" forever.

Verification

  • src/main/gitlab + src/shared + src/renderer/src/components: 1776 files / 15272 tests passed, 3 files / 15 skipped.
  • npx oxlint clean on all six changed files; tsc --noEmit clean on both config/tsconfig.node.json and config/tsconfig.tc.web.json; node --check clean on the smoke script.
  • No existing assertion was weakened or removed.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/main/gitlab/mappers.ts (1)

274-309: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Add waiting_for_callback to the pending pipeline status group.

classifyPipelineString treats unknown GitLab pipeline statuses as neutral, so waiting_for_callback surfaces as Unresolved instead of pending. Use the same rule as waiting_for_resource and scheduled.

🩹 Proposed fix
   if (
     s === 'created' ||
     s === 'pending' ||
     s === 'running' ||
     s === 'waiting_for_resource' ||
+    s === 'waiting_for_callback' ||
     s === 'preparing' ||
     s === 'scheduled'
   ) {
     return 'pending'
   }
🧹 Nitpick comments (1)
src/renderer/src/components/right-sidebar/checks-panel-content.tsx (1)

973-979: 📐 Maintainability & Code Quality | 🔵 Trivial

Extend the shared classifier to failingCount and pendingCount for consistency.

passingCount now reads classifyCheckOutcome, but failingCount (via isFailedCheck) and pendingCount still use separate, file-local rules. All three counts describe the same checks array. Keeping three independently maintained classification rules in one component risks reintroducing the exact drift this PR fixes if one rule changes without the others.

Consider deriving all three counts from classifyCheckOutcome outcomes (passed, failed, pending, neutral) in a single pass.
[recommended_refactor]


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 5c13e88d-69db-43a4-bcfc-588a23a768fe

📥 Commits

Reviewing files that changed from the base of the PR and between 9744c3f and 01887af46b67b5fbd55400be5e12c67ffcc8cf3f.

📒 Files selected for processing (11)
  • config/scripts/smoke-packaged-cli.mjs
  • config/tsconfig.tc.web.json
  • mobile/src/tasks/mobile-hosted-check-status.ts
  • src/main/github/client-work-item-check-summary.test.ts
  • src/main/gitlab/mappers.test.ts
  • src/main/gitlab/mappers.ts
  • src/renderer/src/components/TaskPage.tsx
  • src/renderer/src/components/provider-check-classification-parity.test.ts
  • src/renderer/src/components/right-sidebar/checks-panel-content.test.tsx
  • src/renderer/src/components/right-sidebar/checks-panel-content.tsx
  • src/shared/provider-check-summary.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/shared/provider-check-summary.ts

@nwparker
nwparker requested a review from brennanb2025 as a code owner July 31, 2026 09:37
@nwparker

Copy link
Copy Markdown
Contributor Author

Follow-up pass on the six blocking items. Five were valid and are fixed; one is factually wrong at the file:line cited, and I've refuted it below (though its underlying concern was real at a different surface, so that got fixed too).

Pushed as dd72c9bfaf.


1. Sidebar "5 passing" vs the PR page's "2 passing" — VALID, fixed

PullRequestPage.tsx and GitHubItemDialog.tsx each kept a private copy of getCheckConclusion / getCheckCounts / getChecksSummaryLabel, both still on conclusion === 'success'. Confirmed: a 2-success/3-skipped PR read "2 passing · 3 skipped" / "2 of 5 checks passing" there and "5 passing" in the sidebar.

Both copies now live in src/renderer/src/components/pr-check-counts.ts (one module, two importers — the duplication is how they drifted in the first place). The passing bucket routes through classifyCheckOutcome, so skipped counts as passing on every surface. action_required deliberately keeps its own amber bucket rather than being folded into failing: it blocks merge but is not a red failure, and merging it would have been an unrequested tone change.

Also took the icon suggestion: the summary icon keyed off list.length, so an all-neutral PR painted a green CircleCheck above the words "0 of N checks passing". It now keys off counts.passing, matching the checks pill.

Pinned by pr-check-counts.test.ts (fails on the pre-fix conclusion === 'success' rule).

2. GitLab manual gate — the cited merge-state regression is NOT user-visible; the real one was elsewhere, and is fixed

The specific claim is wrong. presentGitLabMRMergeState's label is never rendered for the case described. HostedReviewActions.tsx:147-149 renders mergePresentation.directMergeAvailable ? mergeMethods.defaultLabel : (autoMergeAction?.label ?? mergePresentation.label), and HostedReviewActions.tsx:53 hard-codes autoMergeAction: null for GitLab. For an open, non-conflicting MR directMergeAvailable is true on every status branch (gitlab-mr-merge-state.ts:64/77/89), so the button always reads the merge-method label — "Checks failed", "Checks pending" and "Able to merge" are all unreachable there. The tooltip at HostedReviewActions.tsx:154-158 is likewise gated on primaryMergeDisabled, which is false whenever directMergeAvailable is true. So no user saw "Checks failed" on main, and none would have seen "Able to merge" here.

But the underlying concern was real at a surface the comment didn't name. worktree-review-helpers.tsx:35-41 gives neutral no check tone, and then falls through to !checkTone && review.state === 'open' && 'text-emerald-500/80' — so manual → 'neutral' painted a blocked MR's worktree-card icon identically to a passing one, and ReviewChecksBadge (WorktreeCardMetadataStatusBadges.tsx:161) renders nothing at all for neutral. Main was false-red; the branch was false-green with no badge.

Fixed by resolving pipeline-level manual to pending instead. GitLab only reports manual at the pipeline level when the pipeline is genuinely blocked (a manual job with allow_failure: false); when: manual jobs that are optional leave the pipeline at success. So "outstanding" is the truthful reading: amber icon, "Checks: Pending" badge, no false red, no false green, and no action is gated on it. Pinned by a new worktree-review-helpers.test.tsx case that asserts a blocked pipeline does not render like a passing one.

Job-level manual stays neutral. A job's manual status cannot distinguish a blocking gate from an optional deploy button, and the optional case is the common one — making it pending would leave a permanent amber spinner on every green pipeline with a manual deploy job. Disclosed explicitly: the per-job amber "Action required" row and its "Needs a manual action to unblock merging" hint are gone for GitLab manual jobs. That cue was purchased at the price of derivePRCheckStatus returning failure for a green pipeline, which is the bug this PR exists to fix. Restoring it without the false red needs a manual conclusion in PRCheckDetail plumbed through every surface — out of scope here.

3 / 6. skipped pipeline string flipped grey→green — VALID, reverted

Agreed on every point, including that it contradicted the same function's explicit deferral of canceled three lines down, and that the "the Checks tab read green" justification collapses for a skipped pipeline carrying no job rows. classifyPipelineString('skipped') falls through to neutral again, restoring main. The counts a skipped pipeline string as passing test is gone; 'skipped' is dropped from the parity table's gitLabPipelineStatus. One test now pins both deferred tone changes (skipped and canceled) so neither can flip silently.

Nothing else in the PR depended on it.

4. pendingCount left on the old rule — VALID, fixed, but not with the one-liner

Confirmed the divergence is introduced here, and confirmed the earlier "pre-existing on main" claim was wrong — main's deriveTaskPagePRCheckSummary coerced null → 'pending' and counted {completed, null} as pending on both surfaces.

The proposed one-line fix would have made it worse, though. With pendingCount switched to the classifier and nothing else changed, a list of only {completed, null} checks yields passing = failing = pending = 0, so the header renders no chips at all, and PRTriageStrip falls through to its green CircleCheck "No blocking PR action" — a completed-but-unresolved check would have gone from a false amber to a false green with no text.

So both the header and the strip now read summarizeProviderChecks end to end, and the neutral bucket gets its own grey CircleDashed presentation ("N unresolved" chip; "N checks unresolved" strip). The strip's neutral branch is gated on state === 'neutral', so a PR with one passing and one neutral check still shows the green strip and the green "1/2 passed" pill — no new contradiction in the other direction. Three new cases in checks-panel-content.test.tsx, two of which fail on the pre-fix file.

5. TaskPage checks pill had no failing-pre-fix test — VALID, fixed

Reproduced: git checkout origin/main -- TaskPage.tsx onto the PR head left the whole renderer suite green. getChecksLabel / getChecksPillTone now live in src/renderer/src/components/task-page-checks-pill.ts with task-page-checks-pill.test.ts asserting {state:'success', total:2, passed:1, neutral:1} → "1/2 passed" plus an emerald tone. Verified it fails with the old inline body (Received: "1 unresolved").

github-enterprise-slug-routing-boundary.test.ts:24 used function getChecksLabel purely as an end sentinel for GHAssigneesCell's body; it moves to the next declaration. The bounded region is byte-identical, so no assertion was weakened.


Suggestions

  • Parity test comment at :179-180 — reworded rather than adding 'manual'. gitLabPipelineStatus is now documented as deliberately unset for manual / skipped / canceled, the three shapes where GitLab's pipeline string carries blocking information the job list does not. Pinning them would just freeze a disagreement we are choosing not to resolve here.
  • smoke-packaged-cli.mjs — taken. Cleanup moved out of the finally (a throw inside finally trips no-unsafe-finally); a cleanup failure is now only thrown when the smoke run itself succeeded, otherwise it is warned and the real error propagates.
  • Mobile SUCCESS_CONCLUSIONS — not taken, and I want to be explicit about why rather than quietly skip it. I agree the direction is safe (grey→green only) and that the deferral rationale in the earlier comment doesn't apply. But mobile/node_modules is not installed in this environment, so I could not run mobile/vitest against the change. Landing an untested behavior change to a shipped surface is exactly the trade this PR is being asked not to make. It is a two-line change (['success', 'skipped'] in pr-checks-presentation.ts:27) for whoever can run that suite.

Test runs

src/main + src/shared: 1694 files / 21159 passed. src/renderer: 2032 files / 18504 passed. oxlint clean on all changed paths; tsc --noEmit clean on both tsconfig.node.json and tsconfig.tc.web.json. Every new test was verified to fail against the pre-fix code.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
src/renderer/src/components/GitHubItemDialog.tsx (1)

5163-5170: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

"skipped" label no longer matches what counts.neutral represents.

This chip renders counts.neutral under the text '{{value0}} skipped'. getCheckCounts already routes checks with a 'skipped' conclusion into passing, so counts.neutral only holds genuinely neutral checks, never skipped ones. This label misdescribes the count it displays. checks-panel-content.tsx and task-page-checks-pill.ts label the same category "unresolved" in this PR. Use consistent wording here too.

src/renderer/src/components/PullRequestPage.tsx (1)

5297-5304: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

"skipped" label no longer matches what counts.neutral represents.

This chip renders counts.neutral under the text '{{value0}} skipped'. getCheckCounts already routes checks with a 'skipped' conclusion into passing, so counts.neutral only holds genuinely neutral checks, never skipped ones. checks-panel-content.tsx and task-page-checks-pill.ts label the same category "unresolved" in this PR. Use consistent wording here too.

🧹 Nitpick comments (2)
src/renderer/src/components/pr-check-counts.test.ts (1)

50-64: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Add coverage for a completed check with no conclusion.

This file has no test for {status: 'completed', conclusion: null}. checks-panel-content.test.tsx tests this exact shape for the shared classifier path and expects "unresolved". Add a matching case here so getCheckCounts/getChecksSummaryLabel stay aligned with that behavior.

src/renderer/src/components/right-sidebar/checks-panel-content.tsx (1)

1260-1287: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Row icon still spins for a completed check with no conclusion.

This line falls back conclusion to 'pending' for a null conclusion, without checking check.status. The header directly above (lines 1004-1012) now derives its counts from summarizeProviderChecks, which classifies a status: 'completed', conclusion: null check as 'neutral'. This row keeps the old fallback, so its icon still gets the pending color and animate-spin for the same check the header now calls "unresolved".

This line is unchanged in this diff, so this is a follow-up, not a blocker. Align this fallback with classifyCheckOutcome (or the corrected getCheckConclusion, once fixed in pr-check-counts.ts) so the row and the header agree.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 7ca61765-ea23-4f8e-8cd4-672acebcd239

📥 Commits

Reviewing files that changed from the base of the PR and between 01887af46b67b5fbd55400be5e12c67ffcc8cf3f and dd72c9bfaf8a49044d4a62167704e386d74d328f.

📒 Files selected for processing (16)
  • config/scripts/smoke-packaged-cli.mjs
  • src/main/gitlab/mappers.test.ts
  • src/main/gitlab/mappers.ts
  • src/renderer/src/components/GitHubItemDialog.tsx
  • src/renderer/src/components/PullRequestPage.tsx
  • src/renderer/src/components/TaskPage.tsx
  • src/renderer/src/components/github-enterprise-slug-routing-boundary.test.ts
  • src/renderer/src/components/pr-check-counts.test.ts
  • src/renderer/src/components/pr-check-counts.ts
  • src/renderer/src/components/provider-check-classification-parity.test.ts
  • src/renderer/src/components/right-sidebar/checks-panel-content.test.tsx
  • src/renderer/src/components/right-sidebar/checks-panel-content.tsx
  • src/renderer/src/components/sidebar/worktree-review-helpers.test.tsx
  • src/renderer/src/components/task-page-checks-pill.test.ts
  • src/renderer/src/components/task-page-checks-pill.ts
  • src/renderer/src/i18n/locales/en.json
🚧 Files skipped from review as they are similar to previous changes (4)
  • src/renderer/src/components/provider-check-classification-parity.test.ts
  • src/main/gitlab/mappers.test.ts
  • src/renderer/src/components/TaskPage.tsx
  • src/main/gitlab/mappers.ts

@nwparker
nwparker force-pushed the nwparker/p1-check-classification-regressions branch from dd72c9b to 9744c3f Compare July 31, 2026 10:11
@nwparker

Copy link
Copy Markdown
Contributor Author

Remediation backed out — branch reset to 9744c3f08c

I attempted to address the review feedback with an automated multi-agent pass. It introduced regressions, so I have reset this branch to its last independently-reviewed-clean commit (9744c3f08c) rather than ship them. Known, documented gaps are safer than unknown new ones.

What went wrong

A blocked-pipeline regression: a GitLab pipeline blocked on a last-stage manual gate read green on every job-derived surface while the worktree card read amber — a new contradiction, and the opposite of what this PR exists to fix. Reviewers also found pr-check-counts.ts still calls a completed-with-no-conclusion check "pending" (the exact contradiction this PR removes elsewhere), and a user-visible ChecksTab icon/tone change duplicated across two files with no test.

Still outstanding: the GitLab array status resolver at src/main/gitlab/mappers.ts:162-186.

On CI: the verify check is only a rollup gate. The real failure was package (windows) — EBUSY: resource busy or locked unlinking Orca.exe from the packaged-CLI smoke temp dir (the verify:built-skills-cli gate added by #11627). This PR changes only TypeScript classification logic and touches nothing in packaging, so it is very likely an unrelated Windows file-lock flake — but that was not proven to my satisfaction, so treat it as unverified rather than dismissed.

Recovery

The backed-out work is not lost — it is reachable by SHA at dd72c9bfaf8a49044d4a62167704e386d74d328f, should any individual piece be worth salvaging.

The reviewer feedback on this PR remains valid and unaddressed. Flagging rather than silently leaving it.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/main/gitlab/mappers.ts (1)

165-198: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Do not let an unknown job override a passed job.

At Line 193, hasUnknown takes precedence over hasPassed. A rollup with success and future_status returns neutral. Shared aggregation resolves passed and neutral checks to success.

Preserve failure and pending precedence. Then return success when hasPassed is true. Unknown-only and manual-only rollups will still return neutral. Add this combination to the parity cases.

Proposed fix
   let hasFailure = false
   let hasPending = false
   let hasPassed = false
-  let hasUnknown = false
   for (const job of rollup) {
     const s = job.status?.toLowerCase() ?? ''
     const conclusion = mapPipelineJobStatusToConclusion(s)
-    // Why: a status this build cannot name is not a green light, even beside a passing job.
     if (conclusion === null) {
-      hasUnknown = true
       continue
     }
@@
-  if (hasUnknown) {
-    return 'neutral'
-  }
   // Why: a passing job outranks a neutral one (a manual gate beside a green pipeline is green), but
   // a pipeline holding nothing but gates is awaiting a human — never report that as passed.
   return hasPassed ? 'success' : 'neutral'

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a57a0f1a-3c51-4753-b093-62f4dae016ec

📥 Commits

Reviewing files that changed from the base of the PR and between dd72c9bfaf8a49044d4a62167704e386d74d328f and f38f5fe.

📒 Files selected for processing (3)
  • src/main/gitlab/mappers.test.ts
  • src/main/gitlab/mappers.ts
  • src/shared/provider-check-summary.test.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/main/gitlab/mappers.test.ts

@nwparker
nwparker force-pushed the nwparker/p1-check-classification-regressions branch from f38f5fe to d69d2f4 Compare July 31, 2026 10:44
@nwparker

Copy link
Copy Markdown
Contributor Author

Correction: my earlier reset was too aggressive

The reset I posted earlier reset this branch to its first commit, not its last reviewed-clean one. The original fix round ran 07-30 21:55–23:41; the failed remediation began 07-31 01:18. I used the wrong boundary and dropped 1–2 legitimate commits that were part of the reviewed-clean PR.

The branch is now at the correct boundary — the last commit before remediation started. Apologies for the churn; the force-pushes were mine, not a tooling issue.

nwparker and others added 4 commits July 31, 2026 03:49
…heck classifier

The array path in derivePipelineStatus kept its own copy of the rollup rules, so
manual-only read green and one unrecognized job status demoted a passing pipeline
to neutral — both disagreeing with every other check surface.

Also retry the packaged-CLI smoke temp cleanup on Windows: the copied Orca.exe can
still be locked by AV/indexers after every assertion passed, failing the package job.

Co-authored-by: Orca <[email protected]>
…ks tab

- classifyPipelineString now counts a skipped pipeline as passing, matching
  the per-check classifier; canceled stays neutral and is pinned as an
  explicit, sign-off-pending divergence.
- Pin the production string path (head_pipeline.status) in the parity table
  and note that the job-array branch has no production caller yet.
- Count skipped checks in the Checks panel's passing header so it agrees
  with the checks pill.
- Correct the packaged-CLI smoke retry comment: the EBUSY is the smoke's own
  just-exited Electron process, not AV/indexers.

Co-authored-by: Orca <[email protected]>
…ed MR-card flip

Review follow-ups on the check-classification PR.

- PullRequestPage and GitHubItemDialog kept private copies of getCheckCounts /
  getChecksSummaryLabel that still counted only `success` as passing, so a
  2-success/3-skipped PR read "2 passing · 3 skipped" there and "5 passing" in
  the sidebar. Both copies move to pr-check-counts.ts, which routes the passing
  bucket through classifyCheckOutcome; action_required keeps its own amber
  bucket. The summary icon now keys off passing count, so an all-neutral PR
  stops painting a green tick above "0 of N checks passing".
- The sidebar checks header and triage strip still called
  `{status: completed, conclusion: null}` pending, contradicting the grey
  "Unresolved checks" pill. Both now read summarizeProviderChecks and render an
  unresolved chip/strip instead of an amber spinner that can never resolve.
- classifyPipelineString('skipped') is reverted to neutral. That flip painted
  MR cards green for pipelines that never ran, on the only GitLab path with
  production callers, and contradicted the same function's deferral of
  `canceled`. Both tone changes stay deferred, pinned by one test.
- classifyPipelineString('manual') resolves to pending rather than neutral: a
  blocked pipeline is outstanding, and neutral let the worktree card fall
  through to its emerald `open` default while GitLab still refuses the merge.
- TaskPage's checks pill helpers move to task-page-checks-pill.ts so the
  "1 unresolved on a green pill" fix is actually pinned by a test.
- smoke-packaged-cli no longer lets an EBUSY cleanup replace the real failure.
@nwparker
nwparker merged commit fdb5869 into main Jul 31, 2026
43 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
stablyai#11700)

* fix(checks): stop skipped and manual checks reporting as failures

Route every check-classification surface through one shared helper so
desktop renderer, desktop main and mobile agree on the same verdict.

- GitLab `manual` jobs and pipelines are neutral again, not action_required/failure
- `skipped` counts as passed everywhere, including mobile
- a neutral check no longer demotes a summary that has passing checks

* fix(checks): move the check-classification parity test into the renderer project

The parity table lived in src/shared but imported a renderer module, and both
config/tsconfig.node.json and config/tsconfig.cli.json are composite projects
that include src/shared without that renderer path, so `pnpm typecheck` failed
with TS6307 on two of its three projects. Only the web project spans both trees.

Co-authored-by: Orca <[email protected]>

* fix(checks): stop the Tasks-grid pill contradicting its own verdict

The checks pill's label, tone and icon all read one ProviderCheckSummary, but
getChecksLabel short-circuited on the raw `neutral` counter while the tone and
icon key off `state`. After the classification fix a PR with 19 success + 1
neutral renders an emerald CheckCircle2 pill that reads "1 unresolved", and
mobile's own label (which keys off `state`) reads "19/20 passed" for the same
summary.

Move the label into src/shared/provider-check-summary.ts so desktop and mobile
cannot fork it again, and key it off `state`.

Also covers deriveWorkItemCheckSummary, the desktop-main producer of the summary
that reaches the Tasks grid and the relay-paired mobile client. It was rewritten
here with no test at all; the parity table stands in derivePRCheckStatusFromRollup,
which is a different normalizer. The new main-process test drives getWorkItem with
a real statusCheckRollup fixture, pinning the StatusContext `state` fallback that
would otherwise be deletable with the whole suite still green.

Co-authored-by: Orca <[email protected]>

* fix(gitlab): route the pipeline job-array rollup through the shared check classifier

The array path in derivePipelineStatus kept its own copy of the rollup rules, so
manual-only read green and one unrecognized job status demoted a passing pipeline
to neutral — both disagreeing with every other check surface.

Also retry the packaged-CLI smoke temp cleanup on Windows: the copied Orca.exe can
still be locked by AV/indexers after every assertion passed, failing the package job.

Co-authored-by: Orca <[email protected]>

* fix(gitlab): stop the skipped pipeline string diverging from the Checks tab

- classifyPipelineString now counts a skipped pipeline as passing, matching
  the per-check classifier; canceled stays neutral and is pinned as an
  explicit, sign-off-pending divergence.
- Pin the production string path (head_pipeline.status) in the parity table
  and note that the job-array branch has no production caller yet.
- Count skipped checks in the Checks panel's passing header so it agrees
  with the checks pill.
- Correct the packaged-CLI smoke retry comment: the EBUSY is the smoke's own
  just-exited Electron process, not AV/indexers.

Co-authored-by: Orca <[email protected]>

* fix(checks): finish cross-surface check parity and back out the skipped MR-card flip

Review follow-ups on the check-classification PR.

- PullRequestPage and GitHubItemDialog kept private copies of getCheckCounts /
  getChecksSummaryLabel that still counted only `success` as passing, so a
  2-success/3-skipped PR read "2 passing · 3 skipped" there and "5 passing" in
  the sidebar. Both copies move to pr-check-counts.ts, which routes the passing
  bucket through classifyCheckOutcome; action_required keeps its own amber
  bucket. The summary icon now keys off passing count, so an all-neutral PR
  stops painting a green tick above "0 of N checks passing".
- The sidebar checks header and triage strip still called
  `{status: completed, conclusion: null}` pending, contradicting the grey
  "Unresolved checks" pill. Both now read summarizeProviderChecks and render an
  unresolved chip/strip instead of an amber spinner that can never resolve.
- classifyPipelineString('skipped') is reverted to neutral. That flip painted
  MR cards green for pipelines that never ran, on the only GitLab path with
  production callers, and contradicted the same function's deferral of
  `canceled`. Both tone changes stay deferred, pinned by one test.
- classifyPipelineString('manual') resolves to pending rather than neutral: a
  blocked pipeline is outstanding, and neutral let the worktree card fall
  through to its emerald `open` default while GitLab still refuses the merge.
- TaskPage's checks pill helpers move to task-page-checks-pill.ts so the
  "1 unresolved on a green pill" fix is actually pinned by a test.
- smoke-packaged-cli no longer lets an EBUSY cleanup replace the real failure.

* fix(checks): stop completed unknown checks from spinning

---------

Co-authored-by: Orca <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant