Skip to content

ci: retry registered known-flaky Tier 2 tests once instead of ejecting the queue - #5054

Merged
zackees merged 3 commits into
masterfrom
infra/4944-known-flaky-retry
Nov 18, 2026
Merged

zackees merged 3 commits into
masterfrom
infra/4944-known-flaky-retry

Conversation

@zackees

@zackees zackees commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Tracked Tier 2 flakes eject entire merge groups, including PulseAudio failures after #5036's resource lock. Add an auditable registry and retry the failed CTest tests once only when every failure is registered. Malformed entries, mixed failures and repeated failures retain a failing result.

Seed exact-name entries for:

Test Open issue Evidence
test_pulse_default_follow_pipewire #4944 default_output_unplugged still fails after daemon serialization
test_source_transition_slots #4680 1/972 C-reference runs under four CPU-pinned stress lanes; immediate weak-expiry assertion overlaps a real video-tick reference
test_transition_load_release #4800 1/390 hybrid runs under the same stress; old-source ownership assertions fail

Both OFF/ON modes use the shared validator on hosted and Dell runners. The retry preserves the environment, display, parallelism and selection, then requires fresh JUnit evidence that every originally failed test passed without skips. Recovery emits ::warning::known-flaky <test> failed then passed on retry (#issue) and a per-mode summary line. Forward the summary into stock, prepared and prebaked runtime containers. Explicit determinism repeats stay strict; the policy retains the 100-run rule for new threading tests.

Validation:

  • RED 921e1bc7a: 8 fake-runner tests with 11 failing subcases against a runner without retries or registry validation.
  • GREEN: 58 focused tests passed, covering retry decisions, malformed entries, skipped/empty retries, Not Run errors, runtime delivery, scheduling, serial CPUs and skips. The existing 12-test retry suite also passed after the registry additions. Each new entry was verified through the actual registry loader and fake CTest recovery/warning/summary path in both OFF and ON.
  • Real CTest smoke checks confirmed first-failure/second-pass warning and summary behavior, plus no retry for a mixed registered failure and unavailable executable. bash -n and git diff --check passed. Pre-push review is clean.
  • ./lint ran; its scheduling source selector was updated for the wrapper and all remaining stages passed. Final ./push passed six-target client Clippy/Dylint and all 390 Python self-test files. Workspace tests: 8,936 passed, 1 timed out, 6 skipped (tests::platform::pipe_parity::process::dead_pipe_write_survives_concurrent_spawns). Host-test proof was withheld; ordinary PR CI remains required. An earlier full-profile run passed all 8,937 workspace tests and workspace doctests.

No C tests, public headers, assertions, timeouts or workflow files changed. Full native Tier 2 execution was not run locally. This registry shields tracked flakes while their root causes remain open; it does not claim to resolve those issues.

Refs #4944, #4680, #4800.

Refs #4944. Local RED: uv run --no-project python -m unittest ci.test_tier2_known_flaky ran 8 tests with 11 failing subcases: registered failures never retry, and malformed registries are accepted.
…g the queue

Refs #4944. Retry only an entirely registered set of CTest failures once. Require every failed test to pass on retry, emit issue-linked warnings, and mount the step summary into every hosted/Dell runtime variant. Determinism repeats remain strict.

RED 921e1bc: 8 fake-runner tests, 11 failing subcases. GREEN: focused retry, runtime, split, serial CPU and skip tests pass; a real CTest first-failure/second-pass smoke check emits the warning and summary. No C tests, headers, timeouts or workflows changed.

Ci-Attestation: {"at":1794982201,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["921e1bc7af67b204db4340acd43788009f4639eb"],"secs":196,"stamp":"6b3560ccce092b2f5b69c9a05dcd3cb7","tree":"57e01ebb1a64cbc4c43ee3acc09f0d63ee74adc9","v":1,"via":"run"}
Ci-Attestation: {"at":1794982201,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["921e1bc7af67b204db4340acd43788009f4639eb"],"secs":196,"stamp":"2f3edab83a7feec855abd0c935c63a9e","tree":"57e01ebb1a64cbc4c43ee3acc09f0d63ee74adc9","v":1,"via":"run"}
Ci-Attestation: {"at":1794982201,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["921e1bc7af67b204db4340acd43788009f4639eb"],"secs":196,"stamp":"79bc83647810a76f61c2f451771f24ea","tree":"57e01ebb1a64cbc4c43ee3acc09f0d63ee74adc9","v":1,"via":"run"}
Ci-Attestation: {"at":1794982201,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["921e1bc7af67b204db4340acd43788009f4639eb"],"secs":196,"stamp":"63a829d4da54fd0ecd5a9192487b5ff3","tree":"57e01ebb1a64cbc4c43ee3acc09f0d63ee74adc9","v":1,"via":"run"}
Ci-Attestation: {"at":1794982001,"gate":"general/all/client-lint","host":"linux-x86_64","key":"dcbbcbf1d93153a86b9a55b9b4f571620e5d6b0dee287a87058ee45b71f2f171","lane":"client-lint","parents":["921e1bc7af67b204db4340acd43788009f4639eb"],"secs":33,"stamp":"7453cf612cd17ba90ffe61d7adfdef80","tree":"57e01ebb1a64cbc4c43ee3acc09f0d63ee74adc9","v":1,"via":"run"}
Ci-Attestation: {"at":1794982201,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["921e1bc7af67b204db4340acd43788009f4639eb"],"secs":196,"stamp":"979a64858cdf6f87ea6516bebcf50cbd","tree":"57e01ebb1a64cbc4c43ee3acc09f0d63ee74adc9","v":1,"via":"run"}
Ci-Attestation: {"at":1794982003,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"dcbbcbf1d93153a86b9a55b9b4f571620e5d6b0dee287a87058ee45b71f2f171","lane":"client-lint","parents":["921e1bc7af67b204db4340acd43788009f4639eb"],"secs":33,"stamp":"5532629c9c2a078d022abe28957a64a8","tree":"57e01ebb1a64cbc4c43ee3acc09f0d63ee74adc9","v":1,"via":"run"}
Ci-Attestation: {"at":1794982003,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"dcbbcbf1d93153a86b9a55b9b4f571620e5d6b0dee287a87058ee45b71f2f171","lane":"client-lint","parents":["921e1bc7af67b204db4340acd43788009f4639eb"],"secs":33,"stamp":"13a5b6129a5e51fca3dee1fa1502152d","tree":"57e01ebb1a64cbc4c43ee3acc09f0d63ee74adc9","v":1,"via":"run"}
Ci-Attestation: {"at":1794982002,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"dcbbcbf1d93153a86b9a55b9b4f571620e5d6b0dee287a87058ee45b71f2f171","lane":"client-lint","parents":["921e1bc7af67b204db4340acd43788009f4639eb"],"secs":33,"stamp":"224d1095a6c313a7e16d32b76506746b","tree":"57e01ebb1a64cbc4c43ee3acc09f0d63ee74adc9","v":1,"via":"run"}
Ci-Attestation: {"at":1794982002,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"dcbbcbf1d93153a86b9a55b9b4f571620e5d6b0dee287a87058ee45b71f2f171","lane":"client-lint","parents":["921e1bc7af67b204db4340acd43788009f4639eb"],"secs":33,"stamp":"5c6c519fa71332bf14f1632e82ba13e3","tree":"57e01ebb1a64cbc4c43ee3acc09f0d63ee74adc9","v":1,"via":"run"}
Ci-Attestation: {"at":1794982002,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"dcbbcbf1d93153a86b9a55b9b4f571620e5d6b0dee287a87058ee45b71f2f171","lane":"client-lint","parents":["921e1bc7af67b204db4340acd43788009f4639eb"],"secs":33,"stamp":"fd4843ed6cd2fbad790a862890f9e726","tree":"57e01ebb1a64cbc4c43ee3acc09f0d63ee74adc9","v":1,"via":"run"}
Ci-Attestation: {"at":1794982002,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"dcbbcbf1d93153a86b9a55b9b4f571620e5d6b0dee287a87058ee45b71f2f171","lane":"client-lint","parents":["921e1bc7af67b204db4340acd43788009f4639eb"],"secs":33,"stamp":"425e4c676a6bbe980531608dca880312","tree":"57e01ebb1a64cbc4c43ee3acc09f0d63ee74adc9","v":1,"via":"run"}
Ci-Attestation: {"at":1794982002,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"dcbbcbf1d93153a86b9a55b9b4f571620e5d6b0dee287a87058ee45b71f2f171","lane":"client-lint","parents":["921e1bc7af67b204db4340acd43788009f4639eb"],"secs":33,"stamp":"15675d1858308a1b93a9d4ee61a21f4d","tree":"57e01ebb1a64cbc4c43ee3acc09f0d63ee74adc9","v":1,"via":"run"}
Ci-Attestation: {"at":1794982003,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"dcbbcbf1d93153a86b9a55b9b4f571620e5d6b0dee287a87058ee45b71f2f171","lane":"client-lint","parents":["921e1bc7af67b204db4340acd43788009f4639eb"],"secs":33,"stamp":"f5b995ce113c9b6ad9d1202381d11518","tree":"57e01ebb1a64cbc4c43ee3acc09f0d63ee74adc9","v":1,"via":"run"}
Ci-Attestation: {"at":1794982002,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"dcbbcbf1d93153a86b9a55b9b4f571620e5d6b0dee287a87058ee45b71f2f171","lane":"client-lint","parents":["921e1bc7af67b204db4340acd43788009f4639eb"],"secs":33,"stamp":"314d503a15b82c0ad8278cd1cc05e639","tree":"57e01ebb1a64cbc4c43ee3acc09f0d63ee74adc9","v":1,"via":"run"}
Ci-Attestation: {"at":1794982002,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"dcbbcbf1d93153a86b9a55b9b4f571620e5d6b0dee287a87058ee45b71f2f171","lane":"client-lint","parents":["921e1bc7af67b204db4340acd43788009f4639eb"],"secs":33,"stamp":"936b32aa74242f11d3a0dab7ed8708e4","tree":"57e01ebb1a64cbc4c43ee3acc09f0d63ee74adc9","v":1,"via":"run"}
Ci-Attestation: {"at":1794982001,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"dcbbcbf1d93153a86b9a55b9b4f571620e5d6b0dee287a87058ee45b71f2f171","lane":"client-lint","parents":["921e1bc7af67b204db4340acd43788009f4639eb"],"secs":33,"stamp":"a2ef5e6145b9275a0d4f7d318f750ed4","tree":"57e01ebb1a64cbc4c43ee3acc09f0d63ee74adc9","v":1,"via":"run"}
Ci-Attestation: {"at":1794982002,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"dcbbcbf1d93153a86b9a55b9b4f571620e5d6b0dee287a87058ee45b71f2f171","lane":"client-lint","parents":["921e1bc7af67b204db4340acd43788009f4639eb"],"secs":33,"stamp":"c52d8d1655a5bb0c36b3290dac99c573","tree":"57e01ebb1a64cbc4c43ee3acc09f0d63ee74adc9","v":1,"via":"run"}
@zackees
zackees enabled auto-merge November 18, 2026 06:28
@zackees zackees added the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 18, 2026
@zackees
zackees disabled auto-merge November 18, 2026 06:32
Refs #4944, #4680, #4800. Seed exact-name entries for source transition slots (1/972 C reference under four-lane CPU-pinned stress) and transition load release (1/390 hybrid). Both tracking issues remain open.

Verified registry parsing and fake CTest recovery/warning/summary for both names in OFF and ON. The existing known-flaky Python suite passes. No C test, assertion, timeout or runner behavior changed.

Ci-Attestation: {"at":1794983944,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["fe73118a6268294c2baa9d49eac809ea0329c488"],"secs":272,"stamp":"2df127578b90fe480a06baae1acc1f5f","tree":"1415db9380d31979fd78539e1bcc1ada4925ba3c","v":1,"via":"run"}
Ci-Attestation: {"at":1794983944,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["fe73118a6268294c2baa9d49eac809ea0329c488"],"secs":272,"stamp":"f6d7fdefac1670990940d8cad4f687bc","tree":"1415db9380d31979fd78539e1bcc1ada4925ba3c","v":1,"via":"run"}
Ci-Attestation: {"at":1794983944,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["fe73118a6268294c2baa9d49eac809ea0329c488"],"secs":272,"stamp":"bda4a8add8318123d3b35c49f0784af7","tree":"1415db9380d31979fd78539e1bcc1ada4925ba3c","v":1,"via":"run"}
Ci-Attestation: {"at":1794983944,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["fe73118a6268294c2baa9d49eac809ea0329c488"],"secs":272,"stamp":"0dc41cd16d6fdc528e3c56473e3ab134","tree":"1415db9380d31979fd78539e1bcc1ada4925ba3c","v":1,"via":"run"}
Ci-Attestation: {"at":1794983666,"gate":"general/all/client-lint","host":"linux-x86_64","key":"6e17d573bdc29ddd084e8c6370f29ea5352a0ea860b7c0977378296d9bf6424a","lane":"client-lint","parents":["fe73118a6268294c2baa9d49eac809ea0329c488"],"secs":75,"stamp":"6b21ae9b7048a27abfd49584e64ddb7e","tree":"1415db9380d31979fd78539e1bcc1ada4925ba3c","v":1,"via":"run"}
Ci-Attestation: {"at":1794983943,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["fe73118a6268294c2baa9d49eac809ea0329c488"],"secs":272,"stamp":"f0b9e89f38387fb8aeb9738fb13b9c7a","tree":"1415db9380d31979fd78539e1bcc1ada4925ba3c","v":1,"via":"run"}
Ci-Attestation: {"at":1794983669,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"6e17d573bdc29ddd084e8c6370f29ea5352a0ea860b7c0977378296d9bf6424a","lane":"client-lint","parents":["fe73118a6268294c2baa9d49eac809ea0329c488"],"secs":75,"stamp":"618051f4b052d10885dd416546fb8671","tree":"1415db9380d31979fd78539e1bcc1ada4925ba3c","v":1,"via":"run"}
Ci-Attestation: {"at":1794983669,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"6e17d573bdc29ddd084e8c6370f29ea5352a0ea860b7c0977378296d9bf6424a","lane":"client-lint","parents":["fe73118a6268294c2baa9d49eac809ea0329c488"],"secs":75,"stamp":"1258d4e16bd028d09424fe5a36aff49d","tree":"1415db9380d31979fd78539e1bcc1ada4925ba3c","v":1,"via":"run"}
Ci-Attestation: {"at":1794983668,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"6e17d573bdc29ddd084e8c6370f29ea5352a0ea860b7c0977378296d9bf6424a","lane":"client-lint","parents":["fe73118a6268294c2baa9d49eac809ea0329c488"],"secs":75,"stamp":"47ddc35e5db32026830abef01d04436d","tree":"1415db9380d31979fd78539e1bcc1ada4925ba3c","v":1,"via":"run"}
Ci-Attestation: {"at":1794983668,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"6e17d573bdc29ddd084e8c6370f29ea5352a0ea860b7c0977378296d9bf6424a","lane":"client-lint","parents":["fe73118a6268294c2baa9d49eac809ea0329c488"],"secs":75,"stamp":"cdbe82b51a5a421154fc7a640790f137","tree":"1415db9380d31979fd78539e1bcc1ada4925ba3c","v":1,"via":"run"}
Ci-Attestation: {"at":1794983666,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"6e17d573bdc29ddd084e8c6370f29ea5352a0ea860b7c0977378296d9bf6424a","lane":"client-lint","parents":["fe73118a6268294c2baa9d49eac809ea0329c488"],"secs":75,"stamp":"da78d468bd083c2ff98912b371b6d990","tree":"1415db9380d31979fd78539e1bcc1ada4925ba3c","v":1,"via":"run"}
Ci-Attestation: {"at":1794983666,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"6e17d573bdc29ddd084e8c6370f29ea5352a0ea860b7c0977378296d9bf6424a","lane":"client-lint","parents":["fe73118a6268294c2baa9d49eac809ea0329c488"],"secs":75,"stamp":"eda9a56f90cbee97da23c1a290f44710","tree":"1415db9380d31979fd78539e1bcc1ada4925ba3c","v":1,"via":"run"}
Ci-Attestation: {"at":1794983668,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"6e17d573bdc29ddd084e8c6370f29ea5352a0ea860b7c0977378296d9bf6424a","lane":"client-lint","parents":["fe73118a6268294c2baa9d49eac809ea0329c488"],"secs":75,"stamp":"7378005a6edfe770e5442ac75a228a10","tree":"1415db9380d31979fd78539e1bcc1ada4925ba3c","v":1,"via":"run"}
Ci-Attestation: {"at":1794983668,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"6e17d573bdc29ddd084e8c6370f29ea5352a0ea860b7c0977378296d9bf6424a","lane":"client-lint","parents":["fe73118a6268294c2baa9d49eac809ea0329c488"],"secs":75,"stamp":"30418417c895fe7869f11589812a0057","tree":"1415db9380d31979fd78539e1bcc1ada4925ba3c","v":1,"via":"run"}
Ci-Attestation: {"at":1794983667,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"6e17d573bdc29ddd084e8c6370f29ea5352a0ea860b7c0977378296d9bf6424a","lane":"client-lint","parents":["fe73118a6268294c2baa9d49eac809ea0329c488"],"secs":75,"stamp":"197abd3c38a1f7500746862b8177f690","tree":"1415db9380d31979fd78539e1bcc1ada4925ba3c","v":1,"via":"run"}
Ci-Attestation: {"at":1794983667,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"6e17d573bdc29ddd084e8c6370f29ea5352a0ea860b7c0977378296d9bf6424a","lane":"client-lint","parents":["fe73118a6268294c2baa9d49eac809ea0329c488"],"secs":75,"stamp":"18ae73080ed19ab0836a0964d163e186","tree":"1415db9380d31979fd78539e1bcc1ada4925ba3c","v":1,"via":"run"}
Ci-Attestation: {"at":1794983666,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"6e17d573bdc29ddd084e8c6370f29ea5352a0ea860b7c0977378296d9bf6424a","lane":"client-lint","parents":["fe73118a6268294c2baa9d49eac809ea0329c488"],"secs":75,"stamp":"7db4a47478a5627919994e08f02d29f8","tree":"1415db9380d31979fd78539e1bcc1ada4925ba3c","v":1,"via":"run"}
Ci-Attestation: {"at":1794983666,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"6e17d573bdc29ddd084e8c6370f29ea5352a0ea860b7c0977378296d9bf6424a","lane":"client-lint","parents":["fe73118a6268294c2baa9d49eac809ea0329c488"],"secs":75,"stamp":"d467dc72b43f56d336881e79f7bcd7a1","tree":"1415db9380d31979fd78539e1bcc1ada4925ba3c","v":1,"via":"run"}
@zackees
zackees enabled auto-merge November 18, 2026 06:51
@zackees zackees removed the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 18, 2026
@zackees
zackees added this pull request to the merge queue Nov 18, 2026
Merged via the queue into master with commit 5c6b826 Nov 18, 2026
43 checks passed
@zackees
zackees deleted the infra/4944-known-flaky-retry branch November 18, 2026 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant