Skip to content

Document host-test bootstrap for fresh worktrees and branch switches - #6084

Merged
lukemelia merged 1 commit into
mainfrom
agents-md-host-test-bootstrap
Sep 11, 2026
Merged

Document host-test bootstrap for fresh worktrees and branch switches#6084
lukemelia merged 1 commit into
mainfrom
agents-md-host-test-bootstrap

Conversation

@lukemelia

Copy link
Copy Markdown
Contributor

Background and Goal

Running the host test suite from a fresh git worktree, or from the shared checkout right after switching to a branch based on newer main, fails in a way that reads like an endless cold build: the Vite dev server / vite build throws a cryptic unresolved-import error and the QUnit page never boots (window.QUnit stays undefined). The real cause is an un-bootstrapped tree — workspace packages added since the last install (e.g. @cardstack/bxl) aren't linked into packages/*/node_modules, and @cardstack/boxel-icons has no built dist (it's produced by prepack, not install).

This adds a ### packages/host subsection to AGENTS.md so the next person (or agent) isn't stuck:

  • the bootstrap order — mise trustpnpm installpnpm build-common-deps;
  • the fastest diagnosis — read the Vite error overlay's .message rather than polling for QUnit;
  • the two common unresolved-import → fix mappings (@cardstack/bxl → install; @cardstack/boxel-icons/* → build-common-deps);
  • why to prefer the headless vite build + ember test --path dist path over a second live dev server (the shared server is env-mode/Traefik-locked, and switching the shared tree under it triggers a long dep re-optimize).

Docs-only; no code changes.

🤖 Generated with Claude Code

https://claude.ai/code/session_014GsYGsuCqHJz9GAti4jheG

Running host tests from a fresh worktree, or from the shared checkout
after switching to a branch based on newer main, fails in a way that
looks like an endless build: the dev server / vite build reports a
cryptic unresolved-import error and the QUnit page never boots. The
cause is an un-bootstrapped tree — workspace packages added since the
last install (e.g. @cardstack/bxl) aren't linked, and
@cardstack/boxel-icons has no built dist.

Add a packages/host subsection documenting the bootstrap order
(mise trust, pnpm install, pnpm build-common-deps), the fastest way to
diagnose a stuck test page (read the Vite error overlay's message rather
than polling for QUnit), the two common unresolved-import → fix
mappings, and why to prefer the headless build over a second
env-locked live dev server.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014GsYGsuCqHJz9GAti4jheG
@lukemelia
lukemelia requested review from a team and backspace September 10, 2026 21:30
@lukemelia
lukemelia marked this pull request as ready for review September 10, 2026 21:30
@lukemelia
lukemelia merged commit 9fd2161 into main Sep 11, 2026
26 checks passed
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.

2 participants