Skip to content

fix: avoid Windows CI timeout in init idempotency test#164

Merged
rhuanbarreto merged 1 commit into
mainfrom
fix/windows-init-test-timeout
Mar 24, 2026
Merged

fix: avoid Windows CI timeout in init idempotency test#164
rhuanbarreto merged 1 commit into
mainfrom
fix/windows-init-test-timeout

Conversation

@rhuanbarreto

Copy link
Copy Markdown
Contributor

Summary

  • The init is idempotent integration test spawned two bun run subprocesses sequentially, each cold-starting Bun + TypeScript on Windows (~3.5s each), exceeding the default 5000ms timeout
  • Replaced the first runCli() call with a direct initProject() import for setup, keeping only the second call as a real CLI subprocess for the idempotency assertion
  • Cuts test time roughly in half while preserving end-to-end coverage

Test plan

  • bun run validate passes locally (545 tests, 22/22 ADR checks)
  • Windows CI job passes without timeout

The test spawned two `bun run` subprocesses sequentially, each
cold-starting Bun + TS compilation (~3.5s on Windows), exceeding the
default 5000ms timeout. Use `initProject()` directly for setup and
only spawn a subprocess for the actual idempotency assertion.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying archgate-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: dc3ce1e
Status: ✅  Deploy successful!
Preview URL: https://e9aacfbb.archgate-cli.pages.dev
Branch Preview URL: https://fix-windows-init-test-timeou.archgate-cli.pages.dev

View logs

@rhuanbarreto rhuanbarreto merged commit 8fdbe29 into main Mar 24, 2026
7 of 8 checks passed
@rhuanbarreto rhuanbarreto deleted the fix/windows-init-test-timeout branch March 24, 2026 09:44
@github-actions github-actions Bot mentioned this pull request Mar 24, 2026
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