Skip to content

Linux engine: clipboard refused-window test is timing-flaky under hosted load #638

Done

Description

@SSFSKIM

Observed. clipboard::tests::a_pause_before_taking_clipboard_does_not_shorten_the_refused_window (native Linux engine, src/clipboard/tests.rs:995) failed on PR #637's run 46423943167, attempt 2:
assertion left == right failed: a time while the paste was served — left: Data { UTF8_STRING "before" }, right: Refused.
#637 changes only JS in the browser service, nothing in native/. engine-linux passed on main at b3b778e (attempt 1 of this run never reached the tests: an apt mirror outage). So this is a timing-dependent test under hosted-runner load, not a regression.

Wanted. Make the test deterministic: drive the pause through the engine's injected clock or a barrier, not wall-clock sleeps, so a loaded runner can't let the served time fall outside the refused window. Or, if the test caught a real race in the refused-window logic, fix that. Read the failure first to tell which.

Done when the test passes 200 consecutive runs under stress-ng --cpu $(nproc) on a hosted-size runner, or its fix is shown red-first.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P2
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 30, 2026
  2. SSFSKIM commented on Nov 30, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: taken by linux171 (cua Linux engine seat) under ruling 1359

  3. SSFSKIM commented on Nov 30, 2026

    @SSFSKIM
    OwnerAuthor

    Second instance: attempt 3 of run 46423943167 (PR #637, no native diff) failed clipboard::tests::an_unconfirmed_paste_s_current_time_refusal_covers_the_next_paste_too (src/clipboard/tests.rs:198). Attempt 2 failed a_pause_before_taking_clipboard_does_not_shorten_the_refused_window. Two different clipboard timing tests on consecutive attempts: treat the clipboard suite's wall-clock timing as the class, not one test.

  4. added 2 commits that reference this issue on Nov 30, 2026
  5. added
    status:in-review
    and removed
    status:in-progress
    on Nov 30, 2026
  6. added a commit that references this issue on Nov 30, 2026
  7. removed
    status:in-review
    on Nov 30, 2026
  8. SSFSKIM commented on Nov 30, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: landed via PR #640 (29dd256); remaining race is #639

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

    bugpriority:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions