Skip to content

test: concurrent evidence recovery test is timing-sensitive in CI #144

Closed

Description

@ElbertePlinio

packages/core/test/evidence-recovery.test.ts > "explicit evidence recovery > serializes concurrent recovery processes to the same reports and index" failed once on CI run 34393043149 (PR #142, commit 8c93c4c, a change that does not touch recovery): the second process was expected to report the run as skipped but it produced a session index instead (expected { sessions: [ {…} ], skipped: [] } to deeply equal { sessions: [], skipped: [ {…} ] }). The test passes locally three times in a row and passed on the previous commit of the same branch.

  • Reproduce under load (for example --maxWorkers=1 with a loaded runner) and identify the ordering assumption between the two recovery processes
  • Make the test deterministic (hold the recovery lock explicitly from the first worker, or accept either serialization order while still asserting a single identical index)
  • Confirm the production lock is not the problem

Activity

  1. ElbertePlinio commented on Sep 9, 2026

    @ElbertePlinio
    MemberAuthor

    Second timing-sensitive test seen today on CI run 34398397320 (PR #145, commit 1a12879, which only touches artifact listing and report output): start failure diagnostics > classifies an early exit from the log and keeps the tail after the log is gone in packages/android failed with expected startEmulator to reject. Track it here with the recovery test, or split it out if the cause differs.

  2. ElbertePlinio commented on Sep 9, 2026

    @ElbertePlinio
    MemberAuthor

    Third distinct timing failure on the same PR #145 head (run 34398397320, attempt 2): startVnc startup supervision > spawns the detected binary and waits for its port to listen failed with x11vnc exited during startup on :219. Three different subprocess-timing tests (recovery race, emulator early-exit classification, x11vnc startup) have now failed on separate attempts of unrelated changes today; the common factor looks like runner load during bun run test, so a shared fix (serialize the subprocess-heavy files or raise their startup budgets under CI) may be better than per-test patches.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions