Repository navigation
test: align source-control fixtures with current store contracts - #24571
Merged
Merged
Conversation
Contributor
|
Warning Review limit reachedYou'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. View limit detailsLimit details: You’ve used all 10 included reviews currently available. Review configuration: ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
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. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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
docs/reference/agent-skill-sharing-upstream-boundary.mdand 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
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)