Repository navigation
Conversation
ymichael
deleted the
bb/ci-flake-fix-plugin-host-bridge-bundle-timeout-thr_czdudxph3t
branch
September 15, 2026 21:03
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 published-bridge regression built a real 682 KB host artifact and then imported that generated artifact through Vitest's transform/module pipeline. The package already externalized builtin generated host artifacts for native Node loading, but the bridge fixture was omitted. On the contended package shard, the necessary esbuild lifecycle plus this avoidable second processing pass crossed Vitest's ordinary 5-second test boundary. The failing CI run reported 5.500 seconds; the unchanged test reproduced on the required Intel host at 5.142 seconds under 48 bounded CPU workers.
What changed
Load the generated bridge host artifact through a cache-busted file URL and include that fixture path in Vitest's existing native-artifact externalization rule. Declare the fixture package as ESM so Node loads the emitted ESM directly without reparsing or warning.
The real host build and all published bridge, bundled dependency, and executed SemVer assertions remain intact. There are no server/daemon wire changes, so
HOST_DAEMON_PROTOCOL_VERSIONdoes not change. PR #3681 is the only open PR touchingpackages/plugin-build; it changes the server builder and does not overlap these host-test files.How you verified
Tests (packages, ubuntu-latest, Node 22.x), exact 5.500-second timeout atbuild-plugin-host.test.ts:235.host_nwqfteeqz4.pnpm exec turbo run test typecheck build --filter=@bb/plugin-build --output-logs=full: 9/9 Turbo tasks passed; package tests passed 139 tests with 1 skipped, and typecheck/build passed.@bb/plugin-buildtests passed. The first run had unrelated Account Pool toast-test and runner-download failures; rerunning only the failed jobs passed, and CI run 35016480290 is green.pnpm exec oxfmt --check packages/plugin-build/src/build-plugin-host.test.ts packages/plugin-build/vitest.config.tsandgit diff --checkpassed.