Repository navigation
Run the server, launcher, tooling, and integration tests on Windows - #4738
Merged
Merged
Conversation
This was referenced Oct 2, 2026
SawyerHood
marked this pull request as ready for review
October 2, 2026 16:50
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
SawyerHood
force-pushed
the
bb/windows-tests-server-tooling-thr_jensq3v9th
branch
from
October 2, 2026 17:29
1e1f6a0 to
f3b551d
Compare
Tests build host paths with POSIX separators and server-local paths with the native ones, as the product does. Fixtures that were shell or Python scripts are Node scripts, npm and tsc run through Node, and tar listings accept CRLF. File-mode assertions, the POSIX shell enrollment pipeline, and server-move imports from POSIX paths are skipped on Windows. Co-Authored-By: Claude Code <[email protected]>
Tests build expected paths with the native path module as the product does, accept the forward slashes git prints and the CRLF tar prints, run npm through Node, and import by file URL. File-mode assertions, signal delivery, bash CI scripts, and the QA harness's sh restart command are skipped on Windows. Co-Authored-By: Claude Code <[email protected]>
SawyerHood
force-pushed
the
bb/windows-tests-server-tooling-thr_jensq3v9th
branch
from
October 2, 2026 17:57
f3b551d to
ce1e5de
Compare
SawyerHood
added a commit
that referenced
this pull request
Oct 2, 2026
## Human comments ## What was wrong Same cause as the PR below it in the stack: tests that assume POSIX where the product does not. On a Windows 11 VM the host daemon, CLI, app, desktop, mobile, and plugin packages had about 350 failing tests, including 62 app tests that could not resolve the `@/` alias and 48 provider parity replays that could not start a bridge. Part of #1206. Stacked on #4738. ## What changed Mostly tests, in `apps/host-daemon`, `apps/cli`, `apps/app`, `apps/desktop`, `apps/mobile`, `apps/demo-server`, the plugins, `packages/provider-parity`, and a few small packages. Three non-test changes: - `apps/app/vite-forkable-plugin-paths.ts` (used by the app's Vitest config and Ladle, not the production build): it compared native paths with the forward-slash ids Vite passes on Windows, so the `@/` alias never resolved there. It normalizes both sides. - `apps/demo-server/src/demo-world.ts`: one handler replied to a POST without reading its body. Under `wrangler dev` on Windows the next request on that connection stalled. - `packages/provider-bridge-protocol/src/testing/parity.ts`: the replay maps the temp workspace back to the recorded path in its JSON-escaped form, so a Windows path with backslashes is found, and retries removing its workspace. In tests: expected paths are built the way each package builds them; `HOME` stubs also stub `USERPROFILE`; fake CLIs get a `.cmd` shim or run as a Node preload under a copy of `node.exe` where the product looks for an `.exe`; systemd fixtures escape backslashes; temp directories are removed with retries. Skipped on Windows only, each with a stated reason: POSIX signals and execute bits, launchd and systemd shell helpers, AppImage, the POSIX `bin/bb` wrapper, the DevBrowser runtime (no Windows build), bash script automations, killing processes by working directory, a worktree path over the Windows length limit, the iOS simulator script, and one replay recorded with POSIX separators. File-mode assertions are guarded and the rest of each test still runs. ## How you verified - Windows 11 Enterprise VM (build 26300), on a branch combining this with the other open Windows changes: full `turbo run test` had 19,090 passing tests and 2 failing, both load timeouts in a server test file that passes alone. The Pi `bridge.bun-runtime` suite also errors there because the run sets `CI` and the VM has no Bun. The same run on main before any of these changes had 830 failing tests. - Linux: the full suite passes on the combined branch apart from two server test files that time out under load on the development machine and pass alone. On this branch before the last rebase, `turbo run lint typecheck test --filter='...[origin/main]'`: 211 of 212 tasks passed; the server test task failed on `machine-environment.test.ts`, which times out when the development machine is loaded and passes alone. After the rebase onto current main, lint and typecheck pass for the same filter. Skipped tests that point at product gaps on Windows, not fixed here: script automations spawn `bash` by name and look for an extensionless `bb`; removing a worktree with a live terminal fails because processes are not killed by working directory; a repository name of about 160 characters makes worktree paths too long. Not verified: Windows CI does not run these suites, so nothing keeps them passing on Windows after this lands. 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED --------- Co-authored-by: Claude Code <[email protected]>
SawyerHood
added a commit
that referenced
this pull request
Oct 2, 2026
## Human comments ## What was wrong The Windows desktop app could be packaged (#4662) but nothing built or published it, and `resolveDesktopUpdateSupport` returned no version check and no auto-update for Windows, so an installed Windows app would never learn about a newer release. Part of #1206. ## What changed - `.github/workflows/build-desktop.yml`: new `windows` job (Blacksmith Windows 2025) that packages the NSIS x64 installer with `desktop:build:win`, smoke tests the packaged app, and writes `desktop-version-windows.json`. The single `publish` job now needs it and uploads the installer, block map, `latest.yml`, and the Windows feed with the other platforms. A Windows build failure therefore stops the release, as a Linux one does. - `.github/workflows/publish-bb-app.yml`: new `nightly-desktop-windows` job with the same shape; the nightly publish requires its version to match the others and uploads `nightly.yml` and the Windows feed. - Signing: both Windows jobs pass `WINDOWS_CERTIFICATE_PFX` and `WINDOWS_CERTIFICATE_PASSWORD` to electron-builder as `WIN_CSC_LINK` and `WIN_CSC_KEY_PASSWORD`. With neither secret the installer is unsigned and still published (Windows SmartScreen warns before running it); with only one the stable job fails. - `apps/desktop/src/desktop-update-provider.ts`: Windows checks its version feed and installs updates through electron-updater, like macOS. - `apps/desktop/README.md` and `docs/bb-release-process.md` describe the Windows artifacts, feeds, and secrets. The Windows jobs do not run the desktop and launcher unit tests that the macOS and Linux jobs run; those suites pass on Windows only with #4738 and #4739. ## How you verified - Windows 11 Enterprise VM (build 26300): built installers for 0.44.0 and 0.44.1 from this change with the update URL pointed at a local HTTP server holding the 0.44.1 installer, block map, `latest.yml`, and `desktop-version-windows.json` (generated by `desktop:version-feed`). The installed 0.44.0 fetched the version feed and `latest.yml`, downloaded the 0.44.1 installer in the background, and after the window was closed the installer ran silently; `bb.exe` then reported 0.44.1 and the app started. The silent install took about a minute and a half, during which `bb.exe` was absent. - Linux: `desktop-update-provider.test.ts` passes; both workflow files parse as YAML. On this branch before the last rebase, `turbo run lint typecheck test --filter='...[origin/main]'`: 14 of 14 tasks passed. After the rebase onto current main, lint and typecheck pass for the same filter. Not verified: the workflow jobs have never run (they only run from `workflow_dispatch` and the nightly schedule); signing with a real certificate; the Relaunch button path (the install-on-quit path is what the test above exercised). 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED Co-authored-by: Claude Code <[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
The test suites were written on macOS and Linux and assumed POSIX in ways the product does not:
/-separated expectations for paths the product builds with the nativepathmodule, native-separator expectations for host paths the server keeps POSIX,shand Python fixtures,npmandtscspawned by bare name, LF-only parsing oftarandgitoutput, and file-mode assertions. On a Windows 11 VM the server package had 392 failing tests and the launcher, tooling, integration, and QA packages about 90. Part of #1206. Stacked on #4737, which these tests need.What changed
Tests only, in
apps/server,packages/bb-app,packages/scripts,packages/templates,packages/plugin-sdk/scripts,tests/integration, andtests/qa./.path.posixor literals for host paths, nativejoin/resolvefor server-local paths.os.tmpdir()stubs setTEMP/TMPas well asTMPDIR.shenrollment pipeline, server-move imports from POSIX paths, signal delivery, bash CI scripts, and the QA harness'sshrestart command. File-mode assertions (0600, 0755) are guarded, and the rest of each test still runs.No assertion is weaker on macOS or Linux.
How you verified
turbo run testhad 19,090 passing tests and 2 failing, both 5-second timeouts inplugin-native-server-loading.test.tsunder full-run load that pass when the file runs alone. The same run on main before any of these changes had 830 failing tests.machine-environment.test.tsandplugin-native-server-loading.test.ts, which time out under load on the development machine and pass alone. On this branch before the last rebase,turbo run lint typecheck test --filter='...[origin/main]': 188 of 190 tasks passed. The failing tasks were the app and server test tasks, with tests that time out when the development machine is loaded (PromptBoxInternal.test.tsx,machine-environment.test.ts,plugin-native-server-loading.test.ts) and pass when run alone. After the rebase onto current main, lint and typecheck pass for the same filter.Not verified: Windows CI does not run these suites, so nothing keeps them passing on Windows after this lands.
🤖 Generated with Claude Code