You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow-up to #866 (fixed in #867 for e2e/console/overview.spec.ts only).
Other console e2e specs stub routes with route.fetch() handlers and shut the fleet down with disposeFleet without first removing them: inbox.spec.ts, shell.spec.ts, views.spec.ts, actions.spec.ts, long-lists.spec.ts, activity.spec.ts. A console request that lands while the gateway closes fails the test with route.fetch: connect ECONNREFUSED, as #866 described.
Likely fix: the same await page.unrouteAll({ behavior: "ignoreErrors" }) before disposeFleet in each, or once in a shared helper. activity.spec.ts is touched by #853's delivery; coordinate with it.
Merged: none — nothing left to build. The fix is already on main (checked at 91b0af8), from #884 (da6949b, "Related to #871"), done once in the shared helper as this issue suggested:
e2e/console/fixtures.ts:194closeActivePages runs page.unrouteAll({ behavior: "ignoreErrors" }) and closes the page, for every page the page fixture tracks (fixtures.ts:713).
Each daemon's dispose calls it first, before it stops the daemon (fixtures.ts:337-339). disposeFleet disposes every worker and then the gateway (fixtures.ts:502). So in every console spec, route handlers are removed before any listener closes.
The one exception is on purpose: workers-gateway-stops-mid-fetch.spec.ts:101 passes preservePages, because that test checks a route.fetch() against a gateway that has stopped. Its helper is built to handle the refusal.
Activity
test: make E2E resource cleanup await process exit (#884)
V3RON commentedon Oct 24, 2026
Delivery run
Merged: none — nothing left to build. The fix is already on
main(checked at 91b0af8), from #884 (da6949b, "Related to #871"), done once in the shared helper as this issue suggested:e2e/console/fixtures.ts:194closeActivePagesrunspage.unrouteAll({ behavior: "ignoreErrors" })and closes the page, for every page thepagefixture tracks (fixtures.ts:713).disposecalls it first, before it stops the daemon (fixtures.ts:337-339).disposeFleetdisposes every worker and then the gateway (fixtures.ts:502). So in every console spec, route handlers are removed before any listener closes.workers-gateway-stops-mid-fetch.spec.ts:101passespreservePages, because that test checks aroute.fetch()against a gateway that has stopped. Its helper is built to handle the refusal.Decided: none. Parked: none.
Written by an agent.