Skip to content

slow-ios-window: warm clipboard test times out when memory pressure holds back the warm spare #1891

Done

Description

@V3RON

The warm case of "isolates clipboard in both directions for a warm lease and after recovery, …" waits up to 330 s for a ready warm simulator (e2e/slow-ios-window.test.ts:115). On a loaded host the daemon does not make the spare, so the test fails by timeout (testing rule 2) and never reaches its clipboard checks. It failed this way in both recent runs:

simlock-slow-e2e-20261124-151121-daemons  daemon.log: "a warm pool target is short" short=memory-pressure
simlock-slow-e2e-20261126-175724-daemons  daemon.log: "a warm pool target is short" short=memory-pressure
  Error: waitFor timed out after 330000ms (warm iOS simulator ready)

Found while triaging #1580.

Written by an agent.

Activity

  1. added
    bug:new
    on Nov 26, 2026
  2. self-assigned this
    on Nov 27, 2026
  3. V3RON commented on Nov 27, 2026

    @V3RON
    ContributorAuthor

    Reproduction

    Confirmed. The e2e helper seeds every worker's config without memoryPressure, so a test daemon pauses warming whenever the host's memory reads warn. e2e/helpers/env-memory-pressure.test.ts on bug/1891-repro, "a worker the e2e helpers seed for the %s driver has memory pressure turned off", runs for the fake and the real driver with mode: "auto", so no daemon starts.

    $ pnpm test:e2e e2e/helpers/env-memory-pressure.test.ts
     × a worker the e2e helpers seed for the fake driver has memory pressure turned off
     × a worker the e2e helpers seed for the real driver has memory pressure turned off
    AssertionError: memoryPressure.enabled in the seeded config: expected undefined to be false
    

    Host evidence, from the kept daemon logs of both failing runs:

    simlock-slow-e2e-20261124-151121-daemons/simlock-e2e-LrY8zU/daemon.log
    simlock-slow-e2e-20261126-175724-daemons/simlock-e2e-KZCl2c/daemon.log
      "a warm pool target is short" {"count":1,"ready":0,"short":"memory-pressure","target":"ios iPhone 16 27.2"}
    

    Root cause

    Defect, in the test harness. e2e/helpers/env.ts:224 (STANDALONE_OFF, merged into every non-gateway seed by seedConfig) does not pin memoryPressure, so both lanes keep the default pauseWarming: { level: "warn", minAvailablePercent: 20 } (src/core/config-defaults.ts:122). The daemon samples this machine's memory, and at warming-paused the pool starts nothing (src/core/warm-pool/policy.ts:730, ADR 0068 §3). The symptom is the 330 s waitFor at e2e/slow-ios-window.test.ts:115. This is #1867 for the out-of-process lane, which only config can reach.

    Simplest fix

    Add memoryPressure: { enabled: false } to STANDALONE_OFF, with a why-comment. Tried, then discarded:

    $ pnpm test:e2e e2e/helpers/env-memory-pressure.test.ts e2e/helpers/env.test.ts e2e/warm-targets.test.ts e2e/warm-pool-reserve.test.ts
     Test Files  4 passed (4)
          Tests  15 passed (15)
    

    No e2e file sets or reads memoryPressure, and a test can still override it.

    Alternatives rejected

    • Override it only in slow-ios-window's warm case: slow-ios-stream and the other warm flows stay exposed.
    • Put it in FAKE_LANE_BASE_CONFIG: misses the real lane, where this failed.
    • Lower the thresholds: the test would still depend on the host's load.

    Risk

    • On a loaded host the slow lane now boots where the daemon would have held back, so slow boots may replace pressure timeouts.
    • Not verified on hardware. Only a loaded host shows the original timeout.

    Fast track

    • Defect: yes
    • Fix tried: yes
    • Nothing public added or broken: yes
    • No ADR or rule changed: yes
    • One fix: yes

    Side findings

    Written by an agent.

  4. removed their assignment
    on Nov 27, 2026
  5. added
    bug:ready
    fast-track
    and removed
    bug:new
    on Nov 27, 2026
  6. self-assigned this
    on Nov 27, 2026
  7. V3RON commented on Nov 27, 2026

    @V3RON
    ContributorAuthor

    Delivery run

    Merged: #1929 (#1891)
    Parked: none
    Waiting: none

    Written by an agent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug:readyfast-track

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions