Skip to content

refactor(persistence): colocate workspace and repository tests - #33203

Merged
nwparker merged 1 commit into
mainfrom
nwparker/module-organization-persistence-workspace-tests
Oct 24, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/module-organization-persistence-workspace-tests

Conversation

@nwparker

@nwparker nwparker commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 19 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​227 $\color{#cf222e}{\Huge{\mathbf{−}}}$​208 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​19
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​18 $\color{#cf222e}{\Huge{\mathbf{−}}}$​18 0

Move the workspace and repository persistence suites into persistence/tracking-repos/ with their existing status fixture. Update imports and mock targets, use concrete implementation owners, and retarget timing keys and the existing test-path comment.

Validation: 36 existing suites / 537 cases compared with the pristine baseline; full typecheck, changed-code quality, reliability and runner gates. Independent source reviews and fresh-main integration are required before merge.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent 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: 8df8adcb-2092-4a49-aef6-f41eb9cc8a6c
Commits

Reviewing files that changed from the base of the PR and between fda9286 and c3aafed.

Files selected for processing: 22
  • config/scripts/ci-shard-timings.json
  • src/main/persistence/tracking-repos/persistence-deregistered-repo-residue.test.ts
  • src/main/persistence/tracking-repos/persistence-duplicate-repo-id-host-scope.test.ts
  • src/main/persistence/tracking-repos/persistence-folder-scan-project-groups.test.ts
  • src/main/persistence/tracking-repos/persistence-folder-workspace-notes.test.ts
  • src/main/persistence/tracking-repos/persistence-invalid-workspace-layout-purge.test.ts
  • src/main/persistence/tracking-repos/persistence-repo-lifecycle.test.ts
  • src/main/persistence/tracking-repos/persistence-update-repo.test.ts
  • src/main/persistence/tracking-repos/persistence-workspace-attachments.test.ts
  • src/main/persistence/tracking-repos/persistence-workspace-pinned-automation-fence.test.ts
  • src/main/persistence/tracking-repos/persistence-workspace-repin-automation-owner.test.ts
  • src/main/persistence/tracking-repos/persistence-workspace-session-scrollback.test.ts
  • src/main/persistence/tracking-repos/persistence-workspace-status-fixtures.ts
  • src/main/persistence/tracking-repos/persistence-workspace-status-workflow.test.ts
  • src/main/persistence/tracking-repos/persistence-worktree-card-properties.test.ts
  • src/main/persistence/tracking-repos/persistence-worktree-deletion-fencing.test.ts
  • src/main/persistence/tracking-repos/persistence-worktree-lineage-and-backups.test.ts
  • src/main/persistence/tracking-repos/persistence-worktree-meta-and-folder-workspaces.test.ts
  • src/main/persistence/tracking-repos/persistence-worktree-meta-host-target-twins.test.ts
  • src/main/persistence/tracking-repos/persistence-worktree-name-retirement.test.ts
  • src/main/persistence/tracking-repos/persistence-worktree-visibility.test.ts
  • src/renderer/src/components/terminal-pane/terminal-notification-state.ts

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

Walkthrough

Persistence tracking test imports and mocks now use paths that match the tracking-repos directory. Several tests import Store and initDataPath from separate loading-store modules. CI timing keys and a documented test path also point to the relocated tests. Test assertions and recorded durations are unchanged.

Priority: Low

Merge Risk: Minimal · up to c3aaf

The relocation is internally consistent and introduces no actionable merge-blocking risk.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description explains the main change and reports validation, but it omits most required template sections, including ELI5, Why, Linked Issue, Visual Proof, detailed Testing, Notes, and Checklist d… Complete the repository template. Add the ELI5, What Changed, Why, Linked Issue, Visual Proof with N/A and a reason if applicable, Testing details and platform coverage, Review, Agent skill upstream boundary, Notes, and Checklist sections. …
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 20 files. (1 skipped: 1… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the primary change: colocating persistence workspace and repository tests.
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 explains the main change and reports validation, but it omits most required template sections, including ELI5, Why, Linked Issue, Visual Proof, detailed Testing, Notes, and Checklist details.

Resolution

Complete the repository template. Add the ELI5, What Changed, Why, Linked Issue, Visual Proof with N/A and a reason if applicable, Testing details and platform coverage, Review, Agent skill upstream boundary, Notes, and Checklist sections. Include the required issue reference and confirm the relevant validation results.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 20 files. (1 skipped: 1 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches: 💡 1
📝 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

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

@nwparker
nwparker merged commit b7ca9d7 into main Oct 24, 2026
51 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