Repository navigation
Point the refresh serialization test at inspect_git_source - #2673
Merged
Merged
Conversation
PR #2616 split `host.list_branches` into `host.inspect_git_source` and `host.list_branch_options`, but one call in the host-daemon dispatch test kept the removed name. `@bb/host-daemon` typecheck fails with TS2820 and the test times out, so CI is red on main and on every open PR. The test asserts that a blocking remote refresh holds the repository lock while a worktree provisions. Blocking refresh now lives on `host.inspect_git_source`, and the test already sits in that command's describe block, so point the call there and rename the promise. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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.
Human comments
What was wrong
#2616 split the host RPC
host.list_branchesintohost.inspect_git_source(checkout metadata,remoteRefresh: "background" | "blocking") andhost.list_branch_options(branch pagination). One call inapps/host-daemon/test/command/host-branches-dispatch.test.tskept the removed name.CI is red on
mainand on every open PR:Checks (ubuntu-latest, Node 22.x)—test/command/host-branches-dispatch.test.ts(392,11): error TS2820: Type '"host.list_branches"' is not assignable.Tests (packages, ubuntu-latest, Node 22.x)—host.inspect_git_source dispatch > serializes branch refresh and provisioning fetches for one repositoryfails withFile did not appear within 2000ms: .../refresh-started. The removed command never triggers the delayed upload-pack, so the marker never appears.What changed
apps/host-daemon/test/command/host-branches-dispatch.test.ts— one call site.The test asserts that a blocking remote refresh holds the repository lock while a worktree provisions, so the provisioning fetch waits. Blocking refresh moved to
host.inspect_git_source, and the test already sits inside that command'sdescribeblock. The call now uses{ type: "host.inspect_git_source", path: repoPath, remoteRefresh: "blocking" }, and the promise is renamedbranchListing->sourceInspectionto match.No source, contract, wire, CLI, or doc changes.
HOST_DAEMON_PROTOCOL_VERSIONis untouched, because the command contract does not change here.How you verified
pnpm exec turbo run typecheck --filter=@bb/host-daemon— passes. It fails onmainwith TS2820.pnpm exec turbo run test --filter=@bb/host-daemon -- host-branches-dispatch— 18 tests pass, including the serialization test that fails onmain.