Repository navigation
rebuild: cli: a sign-in step waits for a block that starts over to look again - #1634
Merged
odgrim merged 1 commit intoDec 2, 2026
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
odgrim
force-pushed
the
rebuild/p6-classb-signin-starts-over
branch
from
December 1, 2026 23:27
6c872e6 to
be481c1
Compare
odgrim
force-pushed
the
rebuild/p6-classb-signin-starts-over
branch
from
December 2, 2026 00:55
be481c1 to
bee8ec3
Compare
odgrim
force-pushed
the
rebuild/p6-classb-signin-starts-over
branch
from
December 2, 2026 01:37
bee8ec3 to
b433a10
Compare
…ok again Change - packages/cli/src/testRun.ts: a credential step settles with `settleCredential`, which waits, up to the step's 30 seconds, for the block to stop running and to have a state. A block that starts over, as a form's value it pins changed, has no state and is Idle until the engine starts it again, so WaitForBlock returned at once and the step ended `idle`. It now looks again every 100 ms until the block has a state, the wait ends, or Ctrl-C stops the run. - packages/cli/src/testCommand.test.ts: a "a sign-in step" group, with a fake cloud login, and its first test: a CloudLogin pins the account a form gives it, and the test gives the form another account than its default, so the block starts over once the form's step runs. Its step, expecting success when the login reaches that account and skip when it doesn't, waits for the block to look again. - testing.mdx already says a sign-in step "waits up to 30 seconds for the block to settle": this makes the runner do so. No docs change. Decisions - Found by running blocks/aws-auth/testdata/values "another account" against the skip rule (the next commit): the step read the block as Idle with no credential state, then within 250 ms as SignedOut (a polling probe in runBlock, deleted). The same holds for any sign-in step after a form step that changes what the block pins, `success` included: blocks/*/testdata's "the form's ..." cases pass only because the test gives the form's default, so nothing starts over. - The wait is in the runner, not the engine. The engine's view is right: a block starting over has no lifecycle state (credentials.ts `restart`, "it has no state until `enter` starts it"), and WaitForBlock's contract is "not running or awaiting approval". What a step needs, a state, is the runner's to wait for. An engine change, reporting a block starting over as Running, would change every client's view: not taken. - It polls GetBlock, not the session's events, as the runner's client (CaseClient, also driven over MCP by baseline/step3Fixtures.test.ts) has no events. Bounded by the step's wait. - The "another account" case, which expects skip, passes on today's runner only because a skip step reads nothing; the next commit makes a sign-in block's skip step look for a login. Evidence - Restacked onto rebuild/main 20cc5f0, with the skip check now near the top: bun check, lint, fmt:check and knip clean; bun test packages/cli packages/core packages/app-renderer packages/platform-node scripts baseline blocks: 6348 pass, 0 fail. The counts below were taken before the restack, on the earlier base. A "skip only sign-in blocks" failure among them is the skip check, which sat below this commit then. - Red first: the test on 542a303's runner, HOME=$S/home-g76 bun test packages/cli/src/testCommand.test.ts -t "a sign-in step" (fail) runbooks test > a sign-in step > whose block starts over waits for it to look again "its account", - "passed" + "failed", + "cloud: Expected success, got idle: The block did not run." 0 pass, 1 fail - Probe (deleted), blocks/aws-auth/testdata/values --test "another account", RUNBOOKS_FAKE_CREDENTIALS=1, GetBlock every 250 ms from the step: PROBE 0 aws {"_tag":"Idle"} undefined PROBE 1 aws {"_tag":"Idle"} {"_tag":"SignedOut",... - HOME=$S/home-g76 bun test packages/cli scripts baseline: 928 pass, 0 fail - Mutant M5, `!startingOver ||` made `true ||` (no second look): bun test packages/cli/src/testCommand.test.ts: 55 pass, 1 fail, the start-over test ("its account": idle). - bun run lint, fmt:check, knip, bun check: exit 0 each
odgrim
force-pushed
the
rebuild/p6-classb-signin-starts-over
branch
from
December 2, 2026 02:03
b433a10 to
2f52c9f
Compare
odgrim
marked this pull request as ready for review
December 2, 2026 02:20
This branch was successfully deployed
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.
Stack: rebuild phase 6, rows class B skips, part 3 of 22: a sign-in step waits through a start-over. Base: #1633 (rows class B skips, part 2 of 22). Map:
.more9s/rebuild.mdonrebuild/main.94 changed lines, 64 of them tests and test runbooks.
Change
settleCredential, which waits, up to the step's 30 seconds, for the block to stop running and to have a state. A block that starts over, as a form's value it pins changed, has no state and is Idle until the engine starts it again, so WaitForBlock returned at once and the step endedidle. It now looks again every 100 ms until the block has a state, the wait ends, or Ctrl-C stops the run.Decisions
successincluded: blocks/*/testdata's "the form's ..." cases pass only because the test gives the form's default, so nothing starts over.restart, "it has no state untilenterstarts it"), and WaitForBlock's contract is "not running or awaiting approval". What a step needs, a state, is the runner's to wait for. An engine change, reporting a block starting over as Running, would change every client's view: not taken.Gaps
Evidence
Local, in a scratch worktree with a scratch HOME. CI's run on this head is the gate.
!startingOver ||madetrue ||(no second look): bun test packages/cli/src/testCommand.test.ts: 55 pass, 1 fail, the start-over test ("its account": idle).