Repository navigation
Restore Source Control test state after Git operation tracking change - #37186
brennanb2025 wants to merge 1 commit into
Conversation
|
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 4 minutes. View limit details
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. |
|
Review loop status (full path, test-only) The problem: after #37093 the Source Control panel reads the store's The change: one typed test fixture supplies the remote-state fields ( Verified:
Not green: Deferred: these four suites still hand-build untyped partial store mocks, so a future required store field could break them the same way; deriving their baseline from the real store's initial state would remove that. There is no repeated break in these suites yet, so it stays out of this urgent fix. For Brennan's review:
|
Main CI has failed 39 Source Control tests since #37093 changed the panel to derive the active Git operation from
remoteOperations. The preview-open and branch-line-total suites fail on shards 12 and 4; virtual-file-list and open-file-highlight fail on shard 9. All four mocked stores still supplied the removedinFlightRemoteOpKindfield and omitted the new array, so rendering threw before their assertions ran. Every open PR's test job fails on these shards until this lands.This PR gives those four suites one typed remote-state test fixture. It initializes the array and removes the obsolete mock field. Users see no change: the app's store always starts with an empty
remoteOperationslist (the editor slice sets it, and nothing saves, restores or replaces it), so only the tests' hand-built stores were incomplete. The existing assertions are unchanged.Plan: correct the shared test-state shape after reproducing the failures on current main, then rerun all four failing suites. No product decision, persisted data change, compatibility change, or new UI is involved.
Review path: full. It meets the light-path size and scope criteria, but an unrelated revert (#31893, HTML preview by default) touched
SourceControl.preview-open.test.tsxwithin the last 30 days, which moves it to the full path..test-fixture.tsfile as production because of its name).Validation: all four suites fail on main (39/39 tests) with the missing-array error and pass on this branch (39/39), locally through tc-gate and in CI shards 4, 9 and 12. Typecheck passes in CI. The pre-commit hook passes.
The separate
automation-operations.tsmax-lines lint failure on main is addressed by #37174 and is outside this PR; it is the only failing check here.Tracked in #37093.