Skip to content

Fix races in the native CLI package and app disconnection tests - #249

Merged
tnkuehne merged 2 commits into
mainfrom
test/cli-package-isolation
Nov 20, 2026
Merged

tnkuehne merged 2 commits into
mainfrom
test/cli-package-isolation

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Two test races, carried over from #188, which is being replaced by a stack. They are independent of that feature.

Native CLI package tests

  • The test installed the CLI once and built both starters inside one test with one timeout. On slower native runners, two healthy runs failed together.
  • Each starter now installs, checks, builds and deploys in its own test.
  • Commands print their command line and stream their output, so a stalled step is visible.
  • A timed-out test aborts its command and waits for the process to exit before it removes files.
  • The temporary directory is resolved first: pnpm compares its stored path literally, and macOS aliases /var to /private/var.
  • The missing-dependency check extracts by relative name, because Windows runners may use MSYS tar, which cannot read native absolute paths.

App disconnection browser test

  • The enhanced form keeps the URL unchanged, so the test's reload could cancel the request before the server recorded it.
  • The test now waits until the button shows the pending removal.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no actionable issues were found.

Summary

This PR separates the native CLI starter tests and waits for the disconnection result before reloading.

  • Native CLI starter tests show progress and run separately.
  • The disconnection test waits for the removal result before reloading.

Reviews (1) · Last reviewed commit: "Wait for the disconnection result before..." · Reviewed by Greptile

The package test installed the CLI once and then built both starters in a
single test with one timeout. On slower native runners two healthy runs
failed together, and a timeout only reported the test's name.

- Each starter now installs, checks, builds and deploys in its own test.
- Package commands print their command line and stream their output, so a
  stalled install, check or build is visible.
- A timed-out test aborts its running command and waits for the process to
  exit before removing the files it uses.
- The temporary directory is resolved first, since pnpm compares its
  stored path literally and macOS aliases /var to /private/var.
- The missing-dependency check extracts the archive by relative name,
  because Windows runners may use MSYS tar, which cannot read native
  absolute paths.
The enhanced form keeps the URL unchanged, so the test's reload could
cancel the request before the server recorded the disconnection. The test
now waits until the button shows the pending removal.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
widefleet-docs a0f92a5 Nov 20 2026, 03:24 PM

@tnkuehne
tnkuehne merged commit 60626e5 into main Nov 20, 2026
25 of 27 checks passed
@tnkuehne
tnkuehne deleted the test/cli-package-isolation branch November 20, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant