Skip to content

test: align source-control fixtures with current store contracts - #24571

Merged
nwparker merged 1 commit into
mainfrom
nwparker/test-audit-review-fixtures
Oct 2, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/test-audit-review-fixtures

Conversation

@nwparker

@nwparker nwparker commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​17 $\color{#cf222e}{\Huge{\mathbf{−}}}$​9 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​8
Prod 0 0 0 0

ELI5

Keep source-control tests aligned with the real store, so they reset the right branch data and return valid upstream-status results.

What Changed

Replace the retired branch-change cache name in commit and clean-branch fixtures. Make upstream-status mocks return the existing seeded status or null. Use the production source-control AI defaults when enabling review-comment actions, preserving the fixture's current settings.

Why

The E2E typecheck found stale cache reads, impossible undefined status results and incomplete AI settings in these fixtures. Updating the existing caches and reusing production defaults keeps tests on the current contract without creating parallel fixture state or manually duplicating settings defaults.

Linked Issue

N/A — maintainer test audit.

Visual Proof

N/A — test fixtures only; no application UI change.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

macOS background Electron: all 17 PR-generation, worktree-switching, intent, linked-issue and review-comment tests passed with two workers. After completing the settings-default fix, all six comment-card tests passed again. The E2E typecheck reports no errors in either changed file; unrelated existing diagnostics remain. Targeted lint, formatting, changed-code quality and diff checks passed. The full desktop, mobile and cloud suites and standard typecheck passed earlier in this audit; application code is unchanged here.

Review

Self-reviewed cache reset ownership, preserved settings overrides, serialized browser inputs and status-return contracts. Existing GitHub-specific seeds remain scoped to their existing tests; generic review behavior is unchanged.

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

No production, platform, SSH or remote-wire changes.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 19 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 5cc99e7e-0414-45fc-9466-a8e4ee4d1330

📥 Commits

Reviewing files that changed from the base of the PR and between ba9af21 and d4d3b56.

📒 Files selected for processing (2)
  • tests/e2e/helpers/pr-comments-sidebar-fixture.ts
  • tests/e2e/helpers/source-control-ai-generation.ts
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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 3f37fcc into main Oct 2, 2026
3 of 4 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