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
flaky: e2e/device-exec.test.ts uploads answer 422 when the host has under 10 GiB free #1823
Two tests in e2e/device-exec.test.ts PUT lease files (lines 187 and 258, expect(uploaded.status).toBe(201)) through a spawned daemon whose config (fleet(), line 60) leaves diskPressure.freeBytesThreshold at its 10 GiB default (src/core/config-defaults.ts:118). On a host with less free disk the worker answers 422 INSUFFICIENT_DISK_SPACE (src/lease-files/store.ts:225). Not reproduced: this host has 20 GiB free. Same cause as #1613; adding diskPressure: { freeBytesThreshold: 0 } to that configOverrides removes it. Found while triaging #1613.
Confirmed. This is a defect in the test rig, not in the product. fleet() starts a daemon that keeps the default 10 GiB disk-pressure threshold, so the two upload tests fail on any host with less free disk than that. This host has 20 GiB free (df -h $TMPDIR), so the tests pass here today. The daemon is a separate process and reads the real disk, so the reproduction checks the threshold it runs with. Branch bug/1823-repro, e2e/device-exec.test.ts: "the device.exec fleet > keeps a disk-pressure threshold of 0 bytes, not the 10 GiB default".
pnpm test:e2e e2e/device-exec.test.ts
AssertionError: expected 10737418240 to be +0 (e2e/device-exec.test.ts:147)
Tests 1 failed | 5 passed (6)
Root cause
e2e/device-exec.test.ts:61 (fleet()'s configOverrides) sets only http. diskPressure.freeBytesThreshold keeps its default, 10 GiB (src/core/config-defaults.ts:118). The failure shows at lines 192 and 263 (expect(uploaded.status).toBe(201)): src/lease-files/store.ts:225 refuses an upload with 422 INSUFFICIENT_DISK_SPACE while free disk is below the threshold. ADR 0067 §4 requires that refusal, so the product is right. This is the same cause as #1613, in a rig that report did not cover.
Set the threshold in FAKE_LANE_BASE_CONFIG (e2e/helpers/env.ts:99): it changes every fake-lane daemon, and the threshold also drives idle destroy (src/core/cleanup/idle-destroy.ts:53). Only this file uploads.
Leave the threshold and fake diskFree in the daemon: no e2e seam exists, and a spawned daemon cannot take an injected port.
Risk
The new test reads the threshold rather than uploading on a low-disk host. If the fix moves the key into a shared helper, the test must still go red when the key is removed.
Activity
V3RON commentedon Nov 24, 2026
Reproduction
Confirmed. This is a defect in the test rig, not in the product.
fleet()starts a daemon that keeps the default 10 GiB disk-pressure threshold, so the two upload tests fail on any host with less free disk than that. This host has 20 GiB free (df -h $TMPDIR), so the tests pass here today. The daemon is a separate process and reads the real disk, so the reproduction checks the threshold it runs with. Branchbug/1823-repro,e2e/device-exec.test.ts: "the device.exec fleet > keeps a disk-pressure threshold of 0 bytes, not the 10 GiB default".Root cause
e2e/device-exec.test.ts:61(fleet()'sconfigOverrides) sets onlyhttp.diskPressure.freeBytesThresholdkeeps its default, 10 GiB (src/core/config-defaults.ts:118). The failure shows at lines 192 and 263 (expect(uploaded.status).toBe(201)):src/lease-files/store.ts:225refuses an upload with422 INSUFFICIENT_DISK_SPACEwhile free disk is below the threshold. ADR 0067 §4 requires that refusal, so the product is right. This is the same cause as #1613, in a rig that report did not cover.Simplest fix
Add
diskPressure: { freeBytesThreshold: 0 }tofleet()'sconfigOverrides. Tried it:Alternatives rejected
FAKE_LANE_BASE_CONFIG(e2e/helpers/env.ts:99): it changes every fake-lane daemon, and the threshold also drives idle destroy (src/core/cleanup/idle-destroy.ts:53). Only this file uploads.diskFreein the daemon: no e2e seam exists, and a spawned daemon cannot take an injected port.Risk
Fast track
Written by an agent.
V3RON commentedon Nov 24, 2026
Delivery run
Merged: #1825 (#1823)
Parked: none
Waiting: none
Decided: none
Written by an agent.
test(e2e): the device.exec fleet no longer depends on host free disk (c…