Skip to content

flaky: edge-allocate.test.ts allocate --platform ios test times out at 20 s on the Windows unit job #2096

Todo

Description

@V3RON

What happened

src/agent-device/edge-allocate.test.ts, "the agent-device front, through the whole worker daemon > allocate --platform ios makes a simlock lease whose ID and requester are the CLI's lease ID, owned by the token's principal, and the lease request names no osVersion, mode, imageTag or physical device", timed out at 20 s on the Windows unit job (shard 2/3) on PR #2087, at 5f193ec, attempt 1 of the CI run (job). The same job run also failed src/report-guard.test.ts and src/agent-device/gateway-handover.test.ts. A re-run of the run (attempt 2) passed.

FAIL  unit  src/agent-device/edge-allocate.test.ts > the agent-device front, through the whole worker daemon > allocate `--platform ios` makes a simlock lease whose ID and requester are the CLI's lease ID, owned by the token's principal, and the lease request names no osVersion, mode, imageTag or physical device
TestTimeoutError: Test timed out in 20000ms.
 ❯ src/agent-device/edge-allocate.test.ts:29:3

Line 29 is the test's start; the log does not say which step hung. The test sets up a whole worker daemon twice (setUp() and a second setUp({ drivers })) inside the 20 s.

What you expected

The test passes on every run.

How to reproduce

Not reproduced locally: it runs on Windows only. Seen once, on 2026-12-03. The shard ran 384 s and three files failed, so a loaded runner is a likely cause, not a known one.

Environment

CI: windows-2025, job Unit tests (Windows) (2/3), pnpm run test:unit (20 s test timeout).

Written by an agent.

Activity

  1. added
    bug:new
    flaky-test
    os:windows
    on Dec 3, 2026
  2. self-assigned this
    on Dec 3, 2026
  3. V3RON commented on Dec 3, 2026

    @V3RON
    ContributorAuthor

    Not reproduced. This test failed inside the same runner stall as #2095. Nothing points at the test or at the agent-device front.

    What I tried

    • pnpm exec vitest run --project unit src/agent-device/edge-allocate.test.ts on macOS at b2dd634: 3 of 3 runs passed. The test took 111 to 531 ms.
    • Windows unit job logs, this test and its file:
    run / job                          this test   whole file
    47119859798 attempt 1 (failing)    21880 ms    58109 ms
    47119859798 attempt 2              1490 ms     22158 ms
    47136059717                        1529 ms     21777 ms
    47183410661                        1156 ms     17225 ms
    47184626915                        1195 ms     14640 ms
    

    What would let me reproduce it

    A failure of this test on a run where other files kept finishing while it hung. Or the runner's CPU and disk use from 13:53 to 13:55 on 2026-12-03. Without either, I suggest closing this together with #2095 and #2097 as one runner stall.

    Written by an agent.

  4. added
    bug:needs-info
    and removed
    bug:new
    on Dec 3, 2026
  5. removed their assignment
    on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug:needs-infoflaky-testos:windows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions