ci/tests: the 50-head range test fails one run in five since heads leave unstarted checks to a newer head #88

Open
opened 2026-11-16 14:20:41 +00:00 by xemmerling · 0 comments
Owner

ci::tests::checks_failing_across_a_range_of_heads_share_log2_probe_runs fails about one run in five on t-testing since the heads' leaving rule went live, with a new message. It reds t's own head runs and holds back landings.

Occurrences today (t-testing, test/t run uncached; 16 such runs since 01:00Z, 12 passed):

time (UTC) run what ran outcome
07:43 r4b9a8d8063 t's head eec34cd1 fail
08:04 r68643c627f t's head 95b08710 fail
14:19 r9fe37ef752 a forced check set on 57ef25c6 plus one commit in jobs/cache/retention.rs fail
14:32 r1c0e7e37b7 a forced check set on 57ef25c6 with a comment line added to three source roots fail

Each time it is the only failed test of 3,240, and it passes when run again.

The message (14:19Z):

50 commits in the remote at 382.8ms
50 heads started at 1.5s
thread 'ci::tests::checks_failing_across_a_range_of_heads_share_log2_probe_runs' panicked at src/ci/tests.rs:757:13:
assertion `left == right` failed: CheckResult { check: "x1", outcome: Skipped, …, excerpt: "left to f92e42bb48, a newer head of main, which runs it: this head's run hadn't started it as that head's run started. …
  left: Skipped
 right: Fail

Reading. The test pushes a range of 50 heads, waits until each head's run has started, then expects every head to answer Fail for each x. Under the rule that a head leaves a check it had not started to a newer head, a head whose x1 had not started when the next head's run started answers Skipped. Whether that happens depends on how far each run got in the 1.5 s the 50 heads take to start, so it follows the node's load. Before today's rule the same test failed on time alone (156 to 159 s on the forge runner, my note of 11-04); this is a different cause.

It is your test and your rule, so I change nothing: either the test's heads must not be subject to leaving (its range is asked as probes of a range, not as live heads), or its expectation is Fail or left to a head that fails. Until then a landing's check set needs a second run about one time in five; I run it again and say so where I land.

22:47Z 11-16: still there after 243ff75d rewrote the test, at a new line

243ff75d took the timed wait out of range_of_heads and tells each head's blame with its failure. The test failed again in t's whole check set on testing, on a candidate that touches only jobs/cache (run re9d49d5f8d, 243ff75d plus one commit, test/t), and nothing else failed:

thread 'ci::tests::checks_failing_across_a_range_of_heads_share_log2_probe_runs' panicked at src/ci/tests.rs:764:13:
assertion `left == right` failed: CheckResult { check: "x1", outcome: Skipped, … excerpt: "left to 1269ee1018, a newer head of main, which runs it: this head's run hadn't started it as that head's run started. …
  left: Skipped
 right: Fail

Line 764 is the loop that releases the heads newest first and asserts each head's x answered Fail. The cause is the one this issue began with: a head that had not started x when a newer head's run started leaves it to that head and tells it skipped, so "every head's x fails" does not hold for every timing of 50 heads started together. Since 20:00Z test/t was told five times on testing and failed once, this time.

22:59Z 11-16: on main's own head too, two whole runs of four since the rewrite

To tell the test from the change I was landing, I ran test/t whole and fresh on testing for main's head 243ff75d with one comment line added and nothing else (run r8fa2540463): it failed on this test alone, and passed when the failed test was asked again by itself thirteen seconds later.

Whole runs of the rewritten test on testing so far:

told tree this test
21:56Z main 243ff75d (r5fa98d3e2e) passed
22:44Z main + the #91 fix (re9d49d5f8d) failed, ci/tests.rs:764, x1 skipped
22:48Z main + #91's test without its fix (r643a4f47d8) passed
22:56Z main + a comment line (r8fa2540463) failed

So it is about every second whole run now, where it was one in five before 243ff75d, and it does not depend on the tree. It holds up landing: each red set has to be asked again.

23:10Z 11-16: four red of seven whole runs, the newest on main's head in t's own CI

Three more whole runs since the table above:

told tree this test
22:59Z main + the #91 fix + a comment line (rb3b32a1b30) failed
23:02Z the same tree, asked again whole (r8221f48684) passed
23:08Z main's head 1497415d, t's own run on testing (r5f2fd293ca) failed, one shard of sixteen

Asked again by itself after a red run the test passed twice of three. So t's own CI on testing is red on about every second head of main for this test alone, and the forge workflow is red on about every second for the wave test (#72): since 243ff75d neither CI has shown main green on a first run.

`ci::tests::checks_failing_across_a_range_of_heads_share_log2_probe_runs` fails about one run in five on t-testing since the heads' leaving rule went live, with a new message. It reds t's own head runs and holds back landings. **Occurrences today (t-testing, `test/t` run uncached; 16 such runs since 01:00Z, 12 passed):** | time (UTC) | run | what ran | outcome | |---|---|---|---| | 07:43 | r4b9a8d8063 | t's head eec34cd1 | fail | | 08:04 | r68643c627f | t's head 95b08710 | fail | | 14:19 | r9fe37ef752 | a forced check set on 57ef25c6 plus one commit in `jobs/cache/retention.rs` | fail | | 14:32 | r1c0e7e37b7 | a forced check set on 57ef25c6 with a comment line added to three source roots | fail | Each time it is the only failed test of 3,240, and it passes when run again. **The message (14:19Z):** ``` 50 commits in the remote at 382.8ms 50 heads started at 1.5s thread 'ci::tests::checks_failing_across_a_range_of_heads_share_log2_probe_runs' panicked at src/ci/tests.rs:757:13: assertion `left == right` failed: CheckResult { check: "x1", outcome: Skipped, …, excerpt: "left to f92e42bb48, a newer head of main, which runs it: this head's run hadn't started it as that head's run started. … left: Skipped right: Fail ``` **Reading.** The test pushes a range of 50 heads, waits until each head's run has started, then expects every head to answer `Fail` for each `x`. Under the rule that a head leaves a check it had not started to a newer head, a head whose `x1` had not started when the next head's run started answers `Skipped`. Whether that happens depends on how far each run got in the 1.5 s the 50 heads take to start, so it follows the node's load. Before today's rule the same test failed on time alone (156 to 159 s on the forge runner, my note of 11-04); this is a different cause. It is your test and your rule, so I change nothing: either the test's heads must not be subject to leaving (its range is asked as probes of a range, not as live heads), or its expectation is `Fail` or left to a head that fails. Until then a landing's check set needs a second run about one time in five; I run it again and say so where I land. ## 22:47Z 11-16: still there after 243ff75d rewrote the test, at a new line 243ff75d took the timed wait out of `range_of_heads` and tells each head's blame with its failure. The test failed again in t's whole check set on testing, on a candidate that touches only `jobs/cache` (run re9d49d5f8d, 243ff75d plus one commit, `test/t`), and nothing else failed: ``` thread 'ci::tests::checks_failing_across_a_range_of_heads_share_log2_probe_runs' panicked at src/ci/tests.rs:764:13: assertion `left == right` failed: CheckResult { check: "x1", outcome: Skipped, … excerpt: "left to 1269ee1018, a newer head of main, which runs it: this head's run hadn't started it as that head's run started. … left: Skipped right: Fail ``` Line 764 is the loop that releases the heads newest first and asserts each head's `x` answered `Fail`. The cause is the one this issue began with: a head that had not started `x` when a newer head's run started leaves it to that head and tells it skipped, so "every head's x fails" does not hold for every timing of 50 heads started together. Since 20:00Z `test/t` was told five times on testing and failed once, this time. ## 22:59Z 11-16: on main's own head too, two whole runs of four since the rewrite To tell the test from the change I was landing, I ran `test/t` whole and fresh on testing for main's head 243ff75d with one comment line added and nothing else (run r8fa2540463): it failed on this test alone, and passed when the failed test was asked again by itself thirteen seconds later. Whole runs of the rewritten test on testing so far: | told | tree | this test | |---|---|---| | 21:56Z | main 243ff75d (r5fa98d3e2e) | passed | | 22:44Z | main + the #91 fix (re9d49d5f8d) | failed, `ci/tests.rs:764`, `x1` skipped | | 22:48Z | main + #91's test without its fix (r643a4f47d8) | passed | | 22:56Z | main + a comment line (r8fa2540463) | failed | So it is about every second whole run now, where it was one in five before 243ff75d, and it does not depend on the tree. It holds up landing: each red set has to be asked again. ## 23:10Z 11-16: four red of seven whole runs, the newest on main's head in t's own CI Three more whole runs since the table above: | told | tree | this test | |---|---|---| | 22:59Z | main + the #91 fix + a comment line (rb3b32a1b30) | failed | | 23:02Z | the same tree, asked again whole (r8221f48684) | passed | | 23:08Z | main's head 1497415d, t's own run on testing (r5f2fd293ca) | failed, one shard of sixteen | Asked again by itself after a red run the test passed twice of three. So t's own CI on testing is red on about every second head of main for this test alone, and the forge workflow is red on about every second for the wave test (#72): since 243ff75d neither CI has shown main green on a first run.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
tilo/t#88
No description provided.