Repository navigation
Conversation
ymichael
deleted the
bb/ci-flake-fix-bb-app-supervisor-port-takeover-com-thr_nqdzf62pns
branch
September 14, 2026 22:26
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
The regression test added with #2994 raced the supervisor's real completion against an unrelated 250 ms timer. The loopback health probe and daemon termination are scheduler-dependent, so package-level CI contention could let the timeout win even though the supervisor correctly detected the healthy replacement server, sent the daemon SIGTERM, and resolved as stopped. This is the failure captured in CI run 34899568032 on unrelated UI-only PR #3639.
What changed
The port-takeover test now awaits the supervisor promise, which is the behavior's actual completion boundary. Its injected restart delay throws immediately if the supervisor enters the wrong retry path, so a regression fails without leaving blocked asynchronous work. The real ephemeral HTTP health server and the assertions for no restart plus daemon SIGTERM remain intact.
This is test-only. It changes no server/daemon wire field, CLI surface, or product behavior, so
HOST_DAEMON_PROTOCOL_VERSIONremains 207.How you verified
timeoutversusstoppedwhile the correct healthy-server stop branch logged, with the test taking 790 ms.pnpm exec turbo run test --filter=bb-app --forceunder Node 22.19.0: 5 files, 81 tests passed.pnpm exec turbo run typecheck --filter=bb-app --forceunder Node 22.19.0: 3/3 tasks passed.pnpm exec turbo run build --filter=bb-app --forceunder Node 22.19.0: 48/48 tasks passed.git diff --check origin/mainpassed.The complete repository-wide 92-package test matrix was not run locally; validation covered the changed
bb-apppackage and its full forced build graph.