Skip to content

[Bug]: Windows admin pagination test is flaky (auth store worker startup timeout) #339

Closed

Description

@jimhoyd

Seen twice on windows-latest, Node 24, in unrelated PRs (#328 and #333), both passing on a re-run of only the failed job.

Failing test: real user-query pagination and page export preserve combined filters across more than fifty accounts (packages/admin). Failures: auth_store_unavailable with cause worker thread began executing after ~22ms, then did not report readiness for a further ~15000ms (#328, together with admin pages share one meaningful heading and skip target ...), and an assertion {"error":"Narrow the user filters"} after a 12.7 s run (#333).

Looks like slow store startup on the Windows runner rather than a product bug, but that is unverified. Investigate whether the 15 s readiness budget is too tight on Windows CI, and whether the pagination test's slowness (12-18 s) should be reduced. A rerun of the failed job is the workaround until then.

Activity

  1. added
    bug
    in-progress
    on Sep 20, 2026
  2. jimhoyd commented on Sep 20, 2026

    @jimhoyd
    CollaboratorAuthor

    Progress: an agent has started on this; a PR will be linked here when it opens.

  3. removed
    in-progress
    on Sep 20, 2026
  4. jimhoyd commented on Sep 20, 2026

    @jimhoyd
    CollaboratorAuthor

    Diagnostics merged in #341: the auth store worker now reports the last startup stage reached (database opened, journal mode set) and the readiness-timeout message names it. The investigation found no worker race: failing runs were runner-wide stalls (the same untouched admin test took 19.9 s instead of 2.5 s, the suite 61 s instead of 29 s). Budgets are unchanged. Keeping this open: on the next failure, read the reported stage. If it is always 'journal mode set' after a long stall, consider a CI-only budget increase or lower concurrency for the Windows admin suite.

  5. jimhoyd commented on Sep 21, 2026

    @jimhoyd
    CollaboratorAuthor

    Fresh CI evidence from PR #356 (Windows workspace job, 2026-09-21): seven packages/admin tests failed because the auth-store worker reached journal mode set then exceeded its readiness deadline by about 15 seconds (auth_store_unavailable, HTTP 503). The other verify platforms and workspace lanes passed.

    This was unrelated to the PR diff (only core ESLint ignores and a core test fixture). Failed run/job: https://github.com/jimhoyd-com/urlcode/actions/runs/35547053802/job/106174766003

  6. jimhoyd commented on Sep 22, 2026

    @jimhoyd
    CollaboratorAuthor

    Fixed by 06f2179 (fix: make auth store startup budget raisable for slow CI runners (#339) (#424)). The auth store worker readiness budget is now configurable via URLCODE_AUTH_STORE_STARTUP_MS (clamped 15s–120s) instead of a fixed 15s, addressing the tight-budget-on-Windows-CI hypothesis this issue asked to investigate.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions