Skip to content

The Session restore progress test fails its one-second opening bound on a stalled runner #2193

Done

Description

@yyhhyyyyyy

storage_flow::a_slow_restore_reports_progress_and_keeps_the_opening_alive failed in run 45609611032, job 139189576927, the verify (linux) job of PR #2187's head, with reported progress renews the opening's inactivity bound: Build("initialization timed out: no pending row in this wait; still running: restore") at storage_flow.rs:2427. PR #2187 changes only the TUI, and the other 500 tests of that binary passed.

The test opens the Session with a one-second inactivity bound (storage_flow.rs:2421) and holds every restore step for 250 ms (storage_flow.rs:2422, the delay lives at timeline_tree.rs:215). Every finished restore step then reports opening progress (timeline_tree.rs:2762), and a restore of that two-line Session makes seven reports, so the restore outlasts the bound as the test asserts.

The message is the fallback built at assembly.rs:2118, which is reached only when no row in the Session's subtree is anything but Active: every row's activation had therefore already renewed the interval, and the interval then lapsed between two step reports. StartupProgress::wait renews its deadline to the last recorded report plus the bound (assembly.rs:215), so the opening fails exactly when one gap between consecutive reports is longer than the bound. The restore's phase is named at assembly.rs:1938 and its wait is set up at assembly.rs:1950.

Measured on an idle machine, the same test makes its seven reports in 2.14 s: the six gaps are 255, 255, 257, 267, 309 and 311 ms, of which 250 ms is the deliberate hold, so the real work in a gap is 5 to 61 ms and the bound allowed roughly 690 ms of extra work in one gap. In that CI job the workspace tests ran three binaries at a time with two threads each, and across the 266 s the app-server binary ran, the log shows 24 stretches of at least one second and 15 of at least 1.2 s in which no test of any of the three binaries completed, the longest 2.52 s. One stall of that size inside a single gap is enough to fail the opening.

The renewal itself is working as designed: seven reports delivered, each one recorded, and the failure arrived only after the interval had lapsed with every row already Active. What the bound does not leave is headroom for a shared runner. The same wait uses a ten-second default in production (assembly.rs:353), so a real Session would have to be silent inside one step for over ten seconds to fail, which is a hang rather than slowness; this failure therefore does not show a product defect. The change that added the reports accepted that individual steps are not covered by the interval, since a store read the restore awaits is still awaited under the same interval.

To reproduce, build the app-server flow test target and run that one test with a single test thread: it passes in about 2.1 s. To reproduce deterministically, pause the restore for 1.15 s between two of its reports in a test build; the same command then fails with the identical message in three out of three runs, for the reason above.

The sibling a_slow_store_upgrade_reports_progress_and_keeps_the_opening_alive (storage_flow.rs:8651) has the same shape with far more headroom: a five-second bound and a 200 ms hold per report, which leaves 4.8 s spare in a step, 6.4 times what the restore test has. Its one recorded failure, on 2026-11-14, named SqliteStorage Loading [], a row still Loading at expiry, so there the first report had not arrived at all rather than the interval lapsing between two reports. Both are the same class, an opening whose bound is shorter than a single silent step, with different symptoms and different code paths, so this report does not ask for the store test to change.

The test was added on 2026-11-23 by #2055. It passed in the six other failed PR-check runs since then that reached it, and in the main run checked. This is its first failure.

Activity

  1. self-assigned this
    on Nov 25, 2026
  2. changed the title [-]Title: The Session restore progress test fails its one-second opening bound on a stalled runner[/-] [+]The Session restore progress test fails its one-second opening bound on a stalled runner[/+] on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions