Skip to content

fix(e2e): browser suites tear the hub down and stop colliding on one database (CL-9619) - #1044

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-9619-e2e-hub-teardown
Sep 30, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-9619-e2e-hub-teardown

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Browser e2e files left their hub running: createHubServer had no stop, so its allocation/dispatch/cron/OAuth tickers kept reconciling the shared database, and spawned sidecars (which outlive the hub by design) redialed a dead port forever.

  • hub: createHubServer returns shutdown() (stops tickers, closes the DB pool)
  • e2e/lib/browser.ts: afterAll calls it, kills the file's sidecars from pid files, removes the data dir; the data dir is created per file in beforeAll

Verified: full e2e/browser passes 3 times in a row on one database with no leaked processes.

Resolves CL-9619

…database (CL-9619)

createHubServer returned no way to stop its schedulers, cron ticker, OAuth refresher or DB pool, and the process provisioner's sidecars outlive the hub by design. Each browser file left all of it running against the shared database. The hub now exposes shutdown(); the harness calls it, reaps the file's sidecars from their pid files, and creates the data dir per file at run time.
@linear-code

linear-code Bot commented Sep 30, 2026

Copy link
Copy Markdown

CL-9619

@TheGreatAxios
TheGreatAxios merged commit 5009c73 into main Sep 30, 2026
3 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.

1 participant