Skip to content

flaky: slow-ios-foldable.test.ts Duo viewer test fails at a different line each run on the slow lane #1941

Todo

Description

@V3RON

What happened

e2e/slow-ios-foldable.test.ts, test "a viewer of a leased Duo sees the cover folded…", fails some runs and passes others on the same commit.

  • 2026-11-27, branch chore/slow-lane-fit (PR chore(agents): the slow lane installs its own agent-device, and a slow test's time bound grows with host load #1916), 2 of 2 failed, each at a different line:
    • line 587: the frame was 494x720, expected 720x506;
    • line 574: fold open answered "The simulator reported no panel table", while the agent-device runner was rebuilding after it did not come up at host load 122–132.
  • 2026-11-27, main at 02458c532: 1 of 1 passed.
  • 2026-11-28, the same branch head 5325ad50f, the test alone: 3 of 3 passed, at loads 3, 72 and 116, one of them through a runner build.

What you expected

The test passes every run on a commit that does not change it.

How to reproduce

Not reliably. Run the slow lane on that file with other slow files before it; the 2026-11-27 failures came in a run of several files, not with the test alone.

Environment

The maintainer's Mac (12 cores), iPhone Duo simulator. The Duo simulator alone takes the host's load from about 4 to above 100.

Logs and evidence

PR #1916 does not change this test or the install path it uses (one agent-device install on each side; both runner builds on 2026-11-27 came from the lane's path). Until this is fixed, a failure of this test on a PR that does not touch foldable code counts as known flaky.

Written by an agent.

Activity

  1. added
    bug:new
    flaky-test
    on Nov 28, 2026
  2. self-assigned this
    on Nov 28, 2026
  3. V3RON commented on Nov 28, 2026

    @V3RON
    ContributorAuthor

    Handoff

    Done

    I read the host's slow-lane logs from 2026-11-27 and 2026-11-28: 9 runs, 5 failed, from three causes. None of them can be reproduced in process, so there is no test and no bug/1941-repro branch.

    $TMPDIR/simlock-slow-e2e-…   line         cause
    20261127-120529           470 (←536)   agent-device fold open: hinge read returned no sample
    20261127-130253           470 (←497)   agent-device fold closed: no panel table
    20261127-200215           470 (←574)   agent-device fold open: no panel table, 3 tries in 27 s (probe-timed-out,
                                           ~/.agent-device/sessions/simlock-foldable-e2e/requests/bc01c2aa366cf5f6.ndjson)
    20261127-122132           543          PR #1916's SLOW BUDGET, 16163 ms of 10000 ms at load 162 (not on main)
    20261127-193529           587          stream opened after fold open: 494x720 (cover), opened in 7301 ms
                                           (…193529-daemons/simlock-e2e-QAbmVq/daemon.log)
    

    Not done

    The line-587 root cause, the reproduction and the report.

    Findings

    Line 587 has two candidate causes, and the logs do not show which one it was:

    1. Panels.swift:246  `simctl io enumerate` is cut at 3 s → no panels → SimulatorSource.swift:33 starts no follower
                         → the stream stays on the cover for good (a defect)
    2. Panels.swift:318  each screenshot is cut at 3 s; a late one reads as dark → :118 reports the cover, then the
                         boot log's panel (spec B2 of #1534) → the test's check of the first part (:586) is wrong under load
    

    Ruled out: missed folds. The first stream in that run followed both.

    The capture's [panels] lines are logged only at debug (src/daemon/driver-discovery.ts:216). The kept daemon logs hold info and above.

    agent-device failures are its own probe timeouts. The retry (e2e/slow-ios-foldable.test.ts:458-472) sends the next attempt at once, with no pause.

    Blocked on

    A slow-lane run of e2e/slow-ios-foldable.test.ts behind other slow files, with the capture's [panels] lines kept. Cover with no inner line after it points to 1; inner within about 10 s points to 2. The fold retry policy is the maintainer's choice.

    Written by an agent.

  4. added
    bug:blocked
    and removed
    bug:new
    on Nov 28, 2026
  5. removed their assignment
    on Nov 28, 2026
  6. V3RON commented on Nov 28, 2026

    @V3RON
    ContributorAuthor

    Delivery run

    Merged: none
    Parked: #1941 — triage blocked: the cause of the line-587 failure needs a loaded slow-lane run with [panels] debug lines; the fold retry needs a decision (see Handoff)

    Written by an agent.

  7. V3RON commented on Nov 30, 2026

    @V3RON
    ContributorAuthor

    Maintainer decisions (2026-11-30):

    1. The slow-lane run that tells line 587's two causes apart waits for a quiet Mac. Keep the capture's [panels] lines in that run.
    2. The fold retry stays as it is. The agent-device probe failures go to an upstream report, drafted for the maintainer's approval before it is posted.

    Written by an agent.

  8. added
    platform:ios
    on Nov 30, 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:blockedflaky-testplatform:ios

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions