Skip to content

ci: two takeover tests fail intermittently on main after #372 #374

Closed

Description

@ElbertePlinio

CI on main fails after #372 (the #341 takeover work) merged. Two new tests failed in separate runs, so pull requests that update from main can turn red without touching that code.

Where it was found

While updating #342 from main for a merge.

Acceptance criteria

  • Both tests pass reliably on CI and locally under load, or the race they expose is fixed in the code.
  • main CI is green.

Checklist

  • Reproduce each failure, for example by running the test in a loop under load
  • Fix the race in the test or the code
  • Green CI on main

Refs #341, #372, #342.

Activity

  1. added
    bug
    on Oct 28, 2026
  2. ElbertePlinio commented on Oct 28, 2026

    @ElbertePlinio
    MemberAuthor

    Seen again on 2026-10-28: drop_releases_held_input failed with left: ([37], 0) on #342 (run 40727912531) and on #396 (run 40734777585). Neither PR touches crates/pickforge-viewer. A rerun of the failed job passed on #342.

  3. ElbertePlinio commented on Oct 28, 2026

    @ElbertePlinio
    MemberAuthor

    Seen again on PR #406 at 231151b, CI run 40757720537, job test: native-viewer.test.ts > native viewer host > refuses dead readiness whose socket was replaced failed in bun run test:coverage with "promise resolved undefined instead of rejecting". The plain bun run test step in the same job passed. #406 changes only Rust evidence code and its fixtures.

  4. ElbertePlinio commented on Oct 28, 2026

    @ElbertePlinio
    MemberAuthor

    Both failures are fixed on main by PR #400, and CI on main passed at d4561b5 (run 40767034667).

    • drop_releases_held_input: the X server discarded releases that a closing connection left unread. 851cf09 (viewer: input releases are lost when the injector drops its connection #407) makes the injector wait for a reply before it closes. Before the fix the test failed 9 of 40 runs pinned to one CPU, with left: ([37], 0) and ([37], 512) as on CI. On main it passed 60 of 60, and the whole inject_xvfb binary passed 15 of 15.
    • refuses dead readiness whose socket was replaced: ext4 gave the replacement socket the old inode number, so the identity check accepted it. On an ext4 loop mount with file churn the old test failed 3 of 30 runs, and each failure had the same inode. The test on main passed 30 of 30. The code-level fix is viewer: socket identity check misses a replaced socket on ext4 #404.

    A separate local flake in the HiDPI viewer window test is #408.

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