Skip to content

Engine tests: BackgroundPointerTests' failed-enablement test is timing-flaky on hosted engine-swift (two gate reruns) #408

Closed

Description

@SSFSKIM

Problem

BackgroundPointerTests.testAFailedEnablementWriteStillOpensTheFreshWindowAndIsReported fails intermittently on the hosted engine-swift job, and the same tree passes on rerun. Each failure costs a full gate rerun of about 15 min. Seen twice:

  • 2026-11-14 on M4's 097cda8: run 43639178511 red, rerun 43641035615 green.
  • 2026-11-18 on docs/secret-visibility 7b1b8bc, a docs-only branch.

Friction entry: ~/.claude/friction-tracker/cua/live/hosted-engine-swift-background-pointer-enablement-test-flaky.md.

Work

  1. Find what the test waits on by time: a sleep, a fixed timeout, or ordering against a fresh window's appearance. Make it wait on the condition it asserts, with a bounded deadline.
  2. Fix any real race in the code under test rather than the test, if that is what it turns out to be.

Proof

  • The test passes 200/200 in a loop on a hosted macOS runner under the gate's load (swift test --filter repeated).
  • Show the failure mode deterministically: reproduce it before the fix by forcing the slow ordering, then show it passes after.

Activity

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

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: claimed by cursor235: #444 flake batch (ruling 911)

  3. added
    status:in-review
    and removed
    status:in-progress
    on Nov 20, 2026
  4. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR open

  5. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [review-trail] Self-reviewed by controller cursor235 (6-line test-only diff, cdd3bbb): root cause Double rounding at since+10000, deterministic repro at 520000.123456789; ci-gate engine-swift,test GREEN 44780428004. PR #447

  6. removed
    status:in-review
    on Nov 20, 2026
  7. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #447 (test-only)

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:P3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions