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
{{ message }}
Repository navigation
Console spec daemons read the host's real memory, so a loaded host can pause their warm pool #1928
e2e/console/fixtures.ts:246-261 builds the config for the console specs' worker daemons without memoryPressure, so each worker samples this machine's real memory (ADR 0068). At warming-paused (a warn reading or under 20 % available) the warm pool starts nothing, for a target or a learned kind. The same fixture pins warmPool.refillDelayMs: 0 because "the console specs wait for a refill right after a grant" (fixtures.ts:257); on a loaded host that refill never comes, and the spec fails for a reason that is not its own. Same class as #1867 (src/ rigs) and #1891 (e2e/helpers/env.ts); this rig builds its config separately, so neither fix reaches it.
Confirmed. Every worker the console fixture starts keeps memory pressure on, whether it runs alone or joins a gateway. The spec is e2e/console/daemon-memory-pressure.spec.ts on bug/1928-repro. Its two tests read memoryPressure.enabled with config get from the running worker:
$ pnpm test:console --project=chromium e2e/console/daemon-memory-pressure.spec.ts
× a standalone worker the console fixture starts has memory pressure turned off
Error: memoryPressure.enabled on the worker
Expected: false
Received: true
× a worker the console fixture joins to a gateway has memory pressure turned off
Error: memoryPressure.enabled on the joined worker
Expected: false
Received: true
2 failed
Root cause
Defect, in the test rig. daemonConfig in e2e/console/fixtures.ts:246 writes each worker's config.json. Its worker branch pins capabilities and warmPool.refillDelayMs: 0 (:258) but not memoryPressure. The worker therefore keeps the default pauseWarming: { level: "warn", minAvailablePercent: 20 } (src/core/config-defaults.ts:122) and samples this machine's real memory. At warming-paused the warm pool proposes no boot (ADR 0068), so the refill a spec waits for never comes. startFleet builds its workers through the same startDaemon("worker"), so joined workers have the same gap. #1891's fix (e2e/helpers/env.ts) does not reach this file.
Simplest fix
In the worker branch next to warmPool, add memoryPressure: { enabled: false, ...(extraConfig.memoryPressure as object | undefined) } with a why-comment. I applied it, ran the specs below, and then discarded it:
Activity
V3RON commentedon Nov 27, 2026
Reproduction
Confirmed. Every worker the console fixture starts keeps memory pressure on, whether it runs alone or joins a gateway. The spec is
e2e/console/daemon-memory-pressure.spec.tsonbug/1928-repro. Its two tests readmemoryPressure.enabledwithconfig getfrom the running worker:Root cause
Defect, in the test rig.
daemonConfigine2e/console/fixtures.ts:246writes each worker'sconfig.json. Its worker branch pinscapabilitiesandwarmPool.refillDelayMs: 0(:258) but notmemoryPressure. The worker therefore keeps the defaultpauseWarming: { level: "warn", minAvailablePercent: 20 }(src/core/config-defaults.ts:122) and samples this machine's real memory. Atwarming-pausedthe warm pool proposes no boot (ADR 0068), so the refill a spec waits for never comes.startFleetbuilds its workers through the samestartDaemon("worker"), so joined workers have the same gap. #1891's fix (e2e/helpers/env.ts) does not reach this file.Simplest fix
In the worker branch next to
warmPool, addmemoryPressure: { enabled: false, ...(extraConfig.memoryPressure as object | undefined) }with a why-comment. I applied it, ran the specs below, and then discarded it:No console spec sets
memoryPressure. The colours spec's memory ring readsload.memory, which the host load sampler still reports, and it passed.Alternatives rejected
hostLoadProbe: null: the console daemons run as separate processes, so only the config reaches them.FAKE_CAPACITY: that block is the capacity pin; this belongs with the other worker-branch pins.Risk
Ignoring "memoryPressure". The fix stays in the worker-only branch.Fast track
Written by an agent.
V3RON commentedon Nov 27, 2026
Delivery run
Merged: #1930 (#1928)
Parked: none
Waiting: none
Decided: none
Written by an agent.