Skip to content

test: remove 147 low-value provider store tests - #37597

Merged
OrcaWin merged 1 commit into
mainfrom
codex/remove-low-value-provider-store-tests-4
Nov 3, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
codex/remove-low-value-provider-store-tests-4

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 27 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​16 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4733 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4717
Prod 2 0 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8

ELI5

Remove 147 low-value GitHub, hosted-review and Jira store tests, including five entire suites, to reduce maintenance and CI work.

What Changed

Audit 30 sources, remove 147 authored registrations and retain 70. Remove mock-call ledgers, private eligibility and cache-key inventories, repeated field projections, simple page-count arithmetic, narrower race variants and a single-test freshness suite that only copies a supplied search row. Also remove host-stamp field checks, refresh routing ledgers, a session fixture that implements its own guard, and capability-state checks. Delete five timing entries and three obsolete wall-clock baseline rows.

Why

Keep tests that exercise stale-result ownership, concurrent edits, real board/task consumers, optimistic rollback, queue recovery, reconnects, mixed-version servers and actual cache bounds. Some standalone alarms are intentionally lost; equivalent coverage is not claimed.

Linked Issue

Internal maintenance requested by a stablyai maintainer. The template exempts maintainers from opening needless issues; no pre-existing issue is linked.

Visual Proof

N/A — test and timing-metadata removals only.

Testing

  • I manually tested these changes locally
  • Automated test removals explained above

All 30 originals were read and every registration received a value decision. External parsing, exact retained callback/setup/scope comparisons, cleanup replay, runtime import-edge preservation, formatting and inert lint passed. No local project tests, builds, typechecks, installs or apps were run. All 12 full unit shards and applicable workflows must pass before merge; CI has not yet passed.

Review

Root reviewed the original sources and cleanup. The ProjectCell fixture was fully read and invokes the actual component; other direct-import snapshots are pins only. Publication reconciles source and owner pins against the previous verified merge. Historical execution evidence is preserved. No dependency-closure claim.

Agent skill upstream boundary

  • Not applicable; no upstream skill source is copied or translated.

Risk

Level: Low. Coverage decreases intentionally. Reverting this PR restores the removed tests and metadata.

Notes

No production changes across macOS, Linux, Windows, remote, mobile or folder workspaces.

Checklist

  • Focused test cleanup
  • Scope and rationale explained
  • Visual proof marked N/A
  • Self-reviewed
  • Platform and remote impact considered
  • CI passed (required before merge)

@OrcaWin
OrcaWin marked this pull request as ready for review November 3, 2026 00:14
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

The PR removes renderer-store tests across GitHub PR and project workflows, task and work-item handling, hosted reviews, and Jira and SSH session behavior. It also updates CI shard timing entries and removes three flaky-test baseline entries. The supplied summaries report no implementation behavior changes.

Merge Risk: Low · up to 0cbba

Restore the two targeted tests to protect thread rollback and Jira save ordering. The remaining merge risk is limited to regression coverage.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the primary change: removing 147 low-value provider store tests.
Description check Passed The description is complete and follows the required structure. It explains the scope, rationale, testing status, risk, visual proof, platform impact, and rollback plan. It also explains why no linked…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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.
Full details: Description check

Explanation

The description is complete and follows the required structure. It explains the scope, rationale, testing status, risk, visual proof, platform impact, and rollback plan. It also explains why no linked issue is included under the maintainer exception. CI is not yet passing, but this is accurately disclosed.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 8 files.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@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.

Nitpick comments: 2
src/renderer/src/store/slices/github-review-thread-actions.test.ts: 1

89-91: Trivial · Maintainability & Code Quality · Quick win

Retain a rejection test that asserts optimistic rollback.

The retained tests cover rejected requests and comment restoration separately. No retained test detects a regression where a rejected resolveReviewThread request returns false but leaves the optimistic comment state changed.

Suggested fix
 beforeEach(() => {
   vi.clearAllMocks()
   resetRemoteRuntimeMocks()
   mockApi.gh.addPRReviewCommentReply.mockResolvedValue({ ok: true, comment: reply })
 })
 
+it('rolls back the comment array when the request rejects', async () => {
+  const store = makeStore()
+  mockApi.gh.resolveReviewThread.mockRejectedValueOnce(new Error('offline'))
+  const pending = store.getState().resolveReviewThread(repoPath, 12, threadId, true, options)
+  expect(store.getState().commentsCache[cacheKey]?.data?.[0].isResolved).toBe(true)
+  await expect(pending).resolves.toBe(false)
+  expect(store.getState().commentsCache[cacheKey]?.data).toEqual([original])
+})
+
 it('keeps a reply posted while a failed unresolve was pending, with the thread state restored', async () => {
src/renderer/src/store/slices/jira-issue-patch-action.test.ts: 1

86-88: Trivial · Data Integrity & Integration · Quick win

Retain the combined explicit-source save-ordering regression test

The retained patchJiraIssue test checks cache isolation with one save only. Add an equivalent caller-level test that performs two explicit-source saves, changes the provider session between them, and asserts that the newer save waits for the older settlement and that the final patch remains applied.


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3111b868-a064-4a2d-9f59-e70f563ff739
Commits

Reviewing files that changed from the base of the PR and between 71147f6 and 0cbba00.

Files selected for processing: 29
  • config/flaky-test-pattern-baseline.txt
  • config/scripts/ci-shard-timings.json
  • src/renderer/src/store/slices/github-pr-refresh-sequences-leak.test.ts
  • src/renderer/src/store/slices/github-pr-refresh-states-leak.test.ts
  • src/renderer/src/store/slices/github-pr-request-lifetime.test.ts
  • src/renderer/src/store/slices/github-project-request-coordination.test.ts
  • src/renderer/src/store/slices/github-project-view-tables.test.ts
  • src/renderer/src/store/slices/github-refresh-sweep.test.ts
  • src/renderer/src/store/slices/github-repo-lookup-index.test.ts
  • src/renderer/src/store/slices/github-review-thread-actions.test.ts
  • src/renderer/src/store/slices/github-review-thread-rollback.test.ts
  • src/renderer/src/store/slices/github-task-freshness.test.ts
  • src/renderer/src/store/slices/github-task-record-retries.test.ts
  • src/renderer/src/store/slices/github-task-records.test.ts
  • src/renderer/src/store/slices/github-work-item-cache-identity.test.ts
  • src/renderer/src/store/slices/github-work-items-error-envelope.test.ts
  • src/renderer/src/store/slices/github-work-items-pagination.test.ts
  • src/renderer/src/store/slices/github-work-items-runtime-routing.test.ts
  • src/renderer/src/store/slices/github-work-items-twin-cache-host.test.ts
  • src/renderer/src/store/slices/github-work-items-twin-host-stamp.test.ts
  • src/renderer/src/store/slices/github-worktree-refresh-if-stale.test.ts
  • src/renderer/src/store/slices/hidden-ssh-host-session-round-trip.test.ts
  • src/renderer/src/store/slices/hosted-review-cache-race.test.ts
  • src/renderer/src/store/slices/hosted-review-cache.test.ts
  • src/renderer/src/store/slices/hosted-review-request-lifetime.test.ts
  • src/renderer/src/store/slices/hosted-review.test.ts
  • src/renderer/src/store/slices/issue-source-preference-twin.test.ts
  • src/renderer/src/store/slices/jira-connection-identity.test.ts
  • src/renderer/src/store/slices/jira-issue-patch-action.test.ts
Files with no reviewable changes: 21
  • src/renderer/src/store/slices/github-task-freshness.test.ts
  • src/renderer/src/store/slices/jira-connection-identity.test.ts
  • config/flaky-test-pattern-baseline.txt
  • src/renderer/src/store/slices/github-work-items-twin-host-stamp.test.ts
  • src/renderer/src/store/slices/hosted-review-request-lifetime.test.ts
  • src/renderer/src/store/slices/github-review-thread-rollback.test.ts
  • src/renderer/src/store/slices/github-pr-refresh-sequences-leak.test.ts
  • src/renderer/src/store/slices/github-worktree-refresh-if-stale.test.ts
  • src/renderer/src/store/slices/github-pr-request-lifetime.test.ts
  • src/renderer/src/store/slices/github-review-thread-actions.test.ts
  • src/renderer/src/store/slices/github-pr-refresh-states-leak.test.ts
  • src/renderer/src/store/slices/hosted-review-cache.test.ts
  • src/renderer/src/store/slices/hidden-ssh-host-session-round-trip.test.ts
  • src/renderer/src/store/slices/github-repo-lookup-index.test.ts
  • src/renderer/src/store/slices/github-work-items-twin-cache-host.test.ts
  • config/scripts/ci-shard-timings.json
  • src/renderer/src/store/slices/github-project-view-tables.test.ts
  • src/renderer/src/store/slices/github-task-records.test.ts
  • src/renderer/src/store/slices/hosted-review-cache-race.test.ts
  • src/renderer/src/store/slices/github-work-item-cache-identity.test.ts
  • src/renderer/src/store/slices/github-refresh-sweep.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

@OrcaWin
OrcaWin merged commit 43c6ac5 into main Nov 3, 2026
68 checks passed
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