Skip to content

Flaky cases behind 48 reruns in four weeks (test 37, engine-linux 7, sandbox-denials 4): the tally from the logs #444

Open

Description

@SSFSKIM

From ci-kit's gate ledger: in the four weeks to 2026-11-20, 48 gate attempts in this repository failed and then passed on a rerun of the same commit (test 37, engine-linux 7, sandbox-denials 4). Every failed job's log was read (68 logs across two repositories, none expired) and the failing case taken from it. Each rerun of test is about 12 hosted-macOS minutes and a wait for whoever is landing.

Counts are attempts a case failed in. Line numbers are as seen in the logs and drift between commits.

test (37 attempts; 40 case failures in 36 of them)

Case Failed in First..last Error
native-engine-units.test.mjs › Swift BackgroundPointerTests.testAFailedEnablementWriteStillOpensTheFreshWindowAndIsReported (BackgroundPointerTests.swift:546) 6 11-15..11-20 XCTAssertFalse failed (#408)
linux-engine-diff/instances.test.mjs:80 "the terminal's start: the scene's server under its name, then the client asking that server…" 5 11-04..11-17 deep-equal: actual ['', 'client', 'server'], expected ['gdbus', 'client', 'server']
spike-engine-client.test.mjs:68 "connect pings with cua-engine-1 and accepts an engine whose version and build match the bundle" 4 11-05..11-19 1 !== 0, or an extra ['ping', {clientApiVersion:'cua-engine-1'}]
runtime-install.test.mjs:263 "download mode fetches the pinned URL, verifies it like a local archive…" 3 10-23..11-18 expected archive_length_mismatch, got ENOTEMPTY on …/home/staging/0… (#441)
repl-host/native-pipe-long-path.test.mjs:141 "macOS: a 192-byte socket path connects…" 3 11-12..11-20 nothing is left in /tmp: actual ['cua-bFp57b']
linux-engine-diff/run-tmp.test.mjs:80 "while a run is open its applications and every engine… share the run's TMPDIR…" 2 11-12..11-17 an engine's TMPDIR: actual ''
native-engine.test.mjs:321 "a second engine on the same socket loses the lock and exits, leaving the first serving" 2 11-18..11-19 stderr '' where engine.lock was expected
browser-service/wheel-scroll-chrome.test.mjs:88 and :160 (real Chrome) 2 11-18, 11-20 fetch failed … connect ECONNREFUSED 127.0.0.1:80

Once each: services-engine-service.test.mjs:454 (#441) and :828 ("no launch"), spike-engine-client.test.mjs:80 (2 !== 1, a second ping), repl-host/eof-drain.test.mjs:44, repl-host/native-pipe-long-path.test.mjs:294 (connect budget), repl-host/orphan-lifecycle.test.mjs:47 (a kernel.mjs process left), accept-compat-route.test.mjs:70 (scratch kept), repl-parity/mcp.test.mjs:25 (null !== 0), remote-agent.test.mjs:492 (watchdog, 2 !== 1), chrome-host-protocol.test.mjs:73, services-engine-linux/service.test.mjs:298 (waited 53 ms where the constant is 0), linux-engine-diff/ancestry-watch.test.mjs:85, browser-service/input.test.mjs:77, browser-service/wheel-scroll-chrome.test.mjs:182 (1616 ms), cursor-identity.test.mjs:112, Swift ImportedHTMLTests.testAnImageBecomesItsAltText (clipboardWriteFailed).

One attempt (job 134864533840, 11-18) is marked failed while its log shows every test passing and no error line; its cause is not in the log.

engine-linux (7 attempts)

Case Failed in First..last Error
clipboard::tests::an_unconfirmed_paste_s_current_time_refusal_covers_the_next_paste_too (src/clipboard/tests.rs:198) 6 11-14..11-19 expected data, got Refused
clipboard::tests::a_pause_before_taking_clipboard_does_not_shorten_the_refused_window (tests.rs:995) 1 11-10 Data{…"before"…} where Refused was expected

Each time it is the only failed test of the run.

sandbox-denials (4 attempts)

  • cells/native-pipe/data-close-error: 2 (11-11 in suite cells, 11-19 in suite services; the second adds cell live-abort: no result marker ms 160, cell wire-error: no result marker ms 7).
  • suite services exited 1 with its stderr withheld: 1 (11-05).
  • cua install (discovery home) exited 1 after 72 s, stderr withheld: 1 (11-17). Infrastructure, not a case.

What the cases have in common (read from the messages, not from the tests' source)

  • Reading a child's output before it is written: instances (5), run-tmp (2), native-engine:321 (2): nine attempts assert on an empty string where a spawned process's output was expected.
  • Teardown checked while something still lives: runtime-install:263 (3), native-pipe-long-path:141 (3), accept-compat-route, orphan-lifecycle: eight attempts.
  • A time budget on a loaded hosted runner: the spike client's extra ping, the watchdog, service.test:298, input.test, wheel-scroll-chrome:182, native-pipe-long-path:294.
  • Ten of the 37 attempts are dated 2026-11-18, with eight different cases between 14:36Z and 23:55Z. Whether that day's runners were slow or a change landed is not in the logs.

The three most frequent (BackgroundPointerTests 6, instances 5, the clipboard case 6 of 7 in engine-linux) are 17 of the 48 reruns.

Logs: ~/.local/share/ci-opt/gate-ledger/flakes/logs/cua-<job id>.log on the MacBook; the attempt lists with run and job ids are in flakes/cua-*.tsv there.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P2
    on Nov 20, 2026
  2. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    Two more sightings, both in run 44753924022 (a Swift-only branch; the test gate passed on rerun), reported by the macOS seat:

    • New case: test/browser-service/downloads.test.mjs:460, "removing a media download's interceptor that Chrome refuses or never answers is retried, then recovered, then the tab detached": refused was [9] where [] was expected. First sighting; not among the 48 reruns tallied above.
    • repl-host/native-pipe-long-path.test.mjs:141 again: now 4 sightings (was 3, 11-12..11-20), the same teardown-order class.

    Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)

  3. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    Two more test-gate flakes, seen on #171 M5's 0.4.2 candidate head 9371d23 (Linux engine branch m5-engine-042; neither test touches the Linux engine):

    The third run, 44787073115, was green with no change in between.

  4. SSFSKIM commented on Nov 21, 2026

    @SSFSKIM
    OwnerAuthor

    One more test-gate flake, seen on #171 M5's 0.4.3 candidate head f9d1f86 (Linux engine branch m5-engine-043; the test does not touch the Linux engine):

    The test-only rerun, 44929282692, was green with no change in between. The same test passed on 8e6db0f and c0bcd64.

  5. SSFSKIM commented on Nov 21, 2026

    @SSFSKIM
    OwnerAuthor

    The x64 Linux engine clipboard unit test an_unconfirmed_paste_s_current_time_refusal_covers_the_next_paste_too failed in 2 of the last 3 linux-engine.yml release builds (https://github.com/SSFSKIM/cua/actions/runs/44959468865 on f15e1f0, https://github.com/SSFSKIM/cua/actions/runs/44961958748 on 9fb61c3, #171 M5's 0.4.3 candidates) and passed on rerun each time; neither change touches the clipboard. It is already a tech-debt tracker entry, but it is more frequent than that entry says, and it now sits in the release path.

  6. SSFSKIM commented on Nov 22, 2026

    @SSFSKIM
    OwnerAuthor

    parity-browser, cua's own host api suite, failed one case on two consecutive runs on #171 M5's m5-pin-043 (https://github.com/SSFSKIM/cua/actions/runs/44973378695 browser-cuaapi/click; https://github.com/SSFSKIM/cua/actions/runs/44974776803 browser-tab/cua). Both times the type, double and drag cells timed out with the page unfocused (focused:false, selector-deadline). The rerun passed (44976854054), and a control on the previous head passed too (44975678494); the change on that branch does not reach the browser service. The tracker's parity entries name only the vendor's host. This may be #437 (input before Chrome's first paint).

    The same runs also failed test on cursor-identity:112 (a tracker flake) and wheel-scroll-chrome:99 (already listed here).

  7. SSFSKIM commented on Nov 24, 2026

    @SSFSKIM
    OwnerAuthor

    Flake (test bug, not product): test/native-matrix/goldens-device.test.mjs L722 asserts doesNotMatch /999/ over rows that carry a random UUID; it failed once on 'ee999e1c-…' (run 45408186716). About 1 in 300 runs per UUID will hit it. Fix: anchor the assertion to the field it means, or strip UUIDs before matching. Reported by linux171; routed to the macOS harness round.

  8. SSFSKIM commented on Nov 28, 2026

    @SSFSKIM
    OwnerAuthor

    One more occurrence, 2026-11-28: engine-linux run 46090799829 at #599's head 2eb7034 (nothing in native/ changed past tag 61c97dd). clipboard::tests::an_unconfirmed_paste_s_current_time_refusal_covers_the_next_paste_too panicked at src/clipboard/tests.rs:198, "expected data, got Refused", a fast failure, not a hang (571 passed, 1 failed, about 74 s, hosted x64). This is tech-debt-tracker line 108 (the racy current-time refusal), not #581's contention test. The rerun was green (46091379414).

  9. SSFSKIM commented on Nov 28, 2026

    @SSFSKIM
    OwnerAuthor

    parity-browser's locator cells timing out under load, two more occurrences in two days: (1) 2026-11-27, ci-gate at #594's 00dc5b4, CDP timeouts in the racy locator cells, green when rerun alone (46075275586); (2) 2026-11-28, ci-gate at #601's 0c39038, cua's api/browser-playwrightlocator/count and click timed out (tech-debt L96/L229), with no browser code changed. It's now the most frequent gate flake on PRs; worth a fix ahead of the other entries.

  10. SSFSKIM commented on Nov 28, 2026

    @SSFSKIM
    OwnerAuthor

    One occurrence, 2026-11-28, hosted macOS test-1. Test test/linux-engine-diff/ancestry-watch.test.mjs:86, "a watcher that ends before the audit, or never starts, did not watch: the audit is not clean". It expects /ended before the audit did/ at L91, and got "the ancestry watcher did not watch to the audit's end (exit 1)".

    Both sentences describe the same early-stopped watcher. Which one prints depends on whether the watcher's exit is seen before the audit ends.

    Run https://github.com/SSFSKIM/cua/actions/runs/46098090043, at 96f11f4 on fix/598-gio-launch, which doesn't touch the file. It passed on every other run. It's on the tracker, and gets a ticket if it recurs.

  11. SSFSKIM commented on Nov 28, 2026

    @SSFSKIM
    OwnerAuthor

    engine-linux's racy current-time refusal test (clipboard::tests::an_unconfirmed_paste_s_current_time_refusal_covers_the_next_paste_too, src/clipboard/tests.rs:198, "expected data, got Refused"; tech-debt-tracker L108) failed again on 2026-11-28, in PR #608's ci (run 46107795233), which touches no engine code. The push run at the same head passed. That's two occurrences in one day (also #599's 46090799829).

  12. SSFSKIM commented on Nov 29, 2026

    @SSFSKIM
    OwnerAuthor

    A local flake that CI doesn't show, logged under ruling 1301: test/doctor-engine-linux.test.mjs case "default capability read starts the engine …" failed once in a combined run of 878 focused and Linux-side tests on the MacBook (Node 22, under load, during #616's final wave at 1da39e9). It passed 20/20 twice when its file was run alone. #616 doesn't touch that file. If it shows up in CI, it belongs to this tally.

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:P2status:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions