Skip to content

fix(workspace): run the workspace without building, and stop the microservices with the server - #624

Draft
BotellaA wants to merge 7 commits into
nextfrom
fix/web-workspace-dev-loop
Draft

BotellaA wants to merge 7 commits into
nextfrom
fix/web-workspace-dev-loop

Conversation

@BotellaA

@BotellaA BotellaA commented Dec 2, 2026

Copy link
Copy Markdown
Member

Follow-up of Julien's review of the web-workspace skill (Geode-solutions/claude-plugins#2): fix in the repos what the skill was working around. Same branch in Vease, PEGGHy and GeodeWeb-Workspaces.

1. No build needed in a fresh workspace (geode-source export condition)

  • The .js subpath exports that point to the gitignored .build/ also export their .ts source under a geode-source condition.
  • The workspace root .npmrc sets node-options=--conditions=geode-source, and Vease's Vite and vitest configs add the condition only when it is set. With that, unit tests, e2e and dev:desktop run without npm run build.
  • Published packages and single-repo CI still resolve to .build.
  • screenshot_path.ts now accepts suites loaded from .ts, with a unit test covering .js, .ts and Windows paths.

2. Spawned microservices die with the server

  • child_registry.ts tracks the back, viewer and extension processes. It kills them on exit, on SIGINT/SIGTERM/SIGHUP, and on Nitro close (Windows: taskkill /T /F).
  • runBrowser returns { port, stop }. stop asks the server to exit through /api/local/app/kill, with a tree-kill fallback after 10 s. The e2e fixtures used kill-port, i.e. kill -9, which left vease-back and vease-viewer orphaned.
  • Trade-off: Nitro also calls close on a dev reload, so editing server code kills the back and viewer of the open page, and you reload the page. Editing .vue files and stores is not affected.

@JulienChampagnol, a question for you (commit 90be655)
Playwright cannot load tests/browser/suites/*/index.ts from source, because import.meta.glob exists only in Vite. That commit goes back to suite lists written by hand per folder, as before fdbe8b1. A new unit test fails when a suite file is missing from a list, so a forgotten suite is still caught. Two options:

  • (a) keep this: e2e needs no build;
  • (b) drop 90be655 and keep your glob, with the suites left out of geode-source: e2e then still needs npm run build -w OpenGeodeWeb/OpenGeodeWeb-Front first.

Which one do you prefer?

Checks run locally (worktree with both .build folders deleted)

  • Vease unit tests: 1706 passed.
  • playwright test --list: Vease 2216, Vease-Modeling 72 and PEGGHy 403 tests, with no resolution error.
  • "crs load objects" passes in Vease and PEGGHy.
  • Before the fix, one e2e spec left one vease-back and one vease-viewer behind; after it, none remain.
  • npm pack still ships .build.

🤖 Generated with Claude Code

BotellaA and others added 5 commits December 2, 2026 09:28
…om source

import.meta.glob only exists in Vite: the apps' Playwright runs could only load
the suites index from the built .build. The suites are listed in per-folder
indexes again, and a unit test checks that every suite file is listed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The .js subpaths point to the gitignored .build. In the workspace, which
resolves with the "geode-source" condition, they resolve to the sources, so a
fresh checkout runs without building this package first. Published consumers
keep the "default" condition and the built files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The back, viewer and extension servers are registered when spawned and
receive SIGTERM (taskkill /T /F on Windows) when the server exits,
closes (Nitro close hook) or gets SIGINT/SIGTERM/SIGHUP. runBrowser
returns { port, stop }: stop asks the server to exit through
/api/local/app/kill and kills its process tree after 10 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…om source

testInfo.file of a shared suite now ends in .ts: the suite was not recognized,
and the fallback path, outside the test folder, was rejected by Playwright.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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