Repository navigation
Conversation
The stateless-test DIAGNOSTICS stage reruns each failed test to decide whether the failure is reproducible, but it built its clickhouse-test command from a hardcoded flag list and never forwarded the job's own runner options. So --replicated-database, --s3-storage, --encrypted-storage, --azure-blob-storage, --no-parallel-replicas and --no-async-insert were dropped, the rerun created a plain Atomic database, and a configuration-specific failure could not reproduce in it. On amd_llvm_coverage jobs that misdiagnosis is then converted into a green test: the 3-plain-rerun branch returns "Failed 0 out of 3 reruns.", the label chain turns fail_n < total_n into "flaky", and the coverage override force-sets the status to OK. The parent result is recomputed from its children so the job goes green, and CIDB records test_status = 'OK' for a test that failed deterministically. Measured over 20 days: 73535 whitewashed OK rows across 141 distinct tests and 15 job flavours -- Code 36 refusals on replicated databases, Code 392 mixed ALTERs, Code 159 DDL timeouts, reference diffs, Code 47. Two of them masked a real access-control bypass for a week (ClickHouse#111561). This is a regression: the RETRIES stage that DIAGNOSTICS replaced reran with extra_args=runner_options (1607bd4); the hardcoded diag_command that lost the forwarding is d59310d. The flaky -> OK override itself predates both and is intentional (ClickHouse#95763, slow coverage binaries are prone to timing flakiness); it is left untouched, and a slow-binary timeout still passes some reruns so it still labels flaky. Two details are load-bearing, both verified against the real clickhouse-test parser. The positive --shard/--zookeeper must be conditional, because they are declared in mutually exclusive groups with their negative twins and the ParallelReplicas flavours forward --no-shard --no-zookeeper (passing both forms is exit 2). And the options must go before the -- separator, because `test` is nargs="*" and would swallow them as test-name regexes, making the forwarding a silent no-op that also corrupts the test selector. Nothing downstream changes: a reproducing failure now yields fail_n == total_n, the label becomes "reproducible", the coverage override's guard is false and the test correctly stays FAIL. The corrected diagnosis also reaches the non-coverage FT flavours, but their pass/fail cannot change since the only status-mutating line is gated on is_llvm_coverage. Adds ci/tests/test_diagnostics_forwards_job_options.py, which composes the command from main()'s own source and parses it with the real tests/clickhouse-test parse_args via runpy. CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=859a9abe2597d0c2c26b898066a32a375ea6b62f&name_0=MasterCI
Two review findings on the diagnostics-forwarding fix. No change to the production forwarding logic, the two conditional shard/zookeeper guards, the `--` separator placement or the `is_llvm_coverage` conjunct. 1. `--encrypted-storage` is appended to `runner_options` by `main()` at `ci/jobs/functional_tests.py:559`, separately from `OPTIONS_TO_TEST_RUNNER_ARGUMENTS`, so the map-driven `RUNNER_OPTIONS_CASES` list did not construct it and nothing asserted it arrived. Dropping that one option from the forwarded string left all nine tests green. The s3 coverage case now carries it (that is the only flavour where `main()` appends it: it is gated on s3 or azure) and the parametrized test asserts `args.encrypted_storage` equals the job's own intent - one True cell against four negative cells. Verified by mutation: removing the option from the forwarded string now fails exactly the `DBReplicated_s3_coverage` case, 1 failed / 8 passed. 2. The comment above the forwarding kept the mechanism (mirror the main run's environment; shard/zookeeper defaulting is conditional because passing both forms of an argparse mutually-exclusive pair is exit 2; options must precede `--` because `test` is `nargs="*"`) and lost the failure narrative and the two bare commit shas - the regression provenance (forwarding existed in the RETRIES stage as 1607bd4 and was lost in d59310d) is in the pull request description, and bare shas in comments have no precedent anywhere else under ci/. Full ci/tests/ suite twice: 7 failed / 443 passed both runs, identical failing set, all seven the pre-existing host-flaky baseline. Repo-wide ruff clean. Co-Authored-By: Claude Fable 5 <[email protected]>
…st timeout Forwarding the job's runner options makes the diagnostics rerun actually reproduce the failure instead of failing fast in a plain `Atomic` database, so the rerun now runs each test to completion. That makes a pre-existing unbounded loop reachable, and the consequence is worse than a slow job. `TestCase.diagnose_random_settings` takes the no-randomized-settings branch on these jobs, a plain three-iteration loop with no time budget of its own, and `diag_command` passed no `--timeout`, so `clickhouse-test` applied its 600 s default. The stage's ceiling was therefore 10 tests x 3 reruns x 600 s = 300 min against a 150 min job timeout. A job that hits its own timeout is not a clean failure: `ci/praktika/runner.py` records `Result.Status.ERROR`, `complete_job` never runs so `do_not_block_pipeline_on_failure` stays unset, and the artifact-upload branch is skipped entirely. The job's `LLVM_COVERAGE_FILE_*` artifacts are then never uploaded and `llvm_coverage_job`, which requires them, loses its input. The `is_llvm_coverage` `force_ok_exit` does not protect against this, because it only takes effect through `complete_job`. So bound each rerun with a `--timeout` derived from what the job has left, minus a reserve for coverage merging and result upload, spread over the reruns the stage performs and floored so a single pass still happens. The three inputs are named constants tied to the values they mirror: `common_ft_job_config`'s `timeout`, the finalization reserve, and `max_reruns` in `tests/clickhouse-test`. The bound is safe in the direction that matters. A `--timeout` expiry inside the rerun is classified `TestStatus.FAIL`, and the rerun loop counts exactly that, so a starved budget pushes the verdict toward `reproducible` rather than toward the `flaky` label the coverage override whitewashes. A tighter bound can only make the diagnosis more pessimistic, never turn a real failure green. The forwarding itself, both conditional `--shard`/`--no-shard` and `--zookeeper`/`--no-zookeeper` guards, the `--` separator placement and the `is_llvm_coverage` conjunct on the OK override are unchanged. Two regression tests: one that the command carries a positive `--timeout` before the separator and that the real parser reports it with the test selector intact, and one that the value shrinks with elapsed time and with the number of failed tests and never falls below the floor. The second is what makes the budget live rather than decorative: replacing it with a constant leaves the first test green.
… timeout The r2 budget was one-sided. It bounded the stage from above but let the per-test value grow to 2700s for a single failed test at elapsed 0, while the main pass runs every test under clickhouse-test's own 600s default (run_tests passes no --timeout). A test that deterministically takes ~700s therefore fails the main pass on timeout, gets its artifact saved, passes all three roomier reruns, reads as "Failed 0 out of 3 reruns", is labelled flaky and is force-set to OK on coverage jobs. That is a new instance of the whitewash this PR exists to remove. On coverage jobs over 20 days 01019_alter_materialized_view_atomic sits at p99 546s / max 600.1s and already carries rows that are OK with both a timeout marker and "Failed 0 out of 3 reruns". Extract the arithmetic into a pure diagnostics_budget(elapsed_s, num_tests) returning (stage_timeout, test_timeout) or None: - test_timeout is capped at the main run's own effective per-test timeout, so the rerun can never be more permissive than the pass that failed; - below a usable per-test bound the function returns None and the stage is SKIPPED rather than started and cut off. The old max(..., 60) floor let the stage overrun the job timeout by up to 10 minutes, which defeated the finalization reserve it was added to protect; - stage_timeout is passed to Shell.run as an outer timeout, the idiom run_tests already uses. This is the actual aggregate guarantee: on the 23 of 37 DIAGNOSTICS-reachable flavours that save randomized settings, diagnose_random_settings reruns a test an unbounded number of times, so no tests-times-reruns model can bound the stage. A SIGTERM there loses at most the in-flight test's diagnosis, because run_diagnose_from_artifacts flushes the results JSONL after every entry and the CI side reads it afterwards. Every funded cell of the elapsed-by-test-count matrix now ends at 135 minutes against a 150 minute job timeout, and no per-test value exceeds 600s. The two hand-copied constants are pinned to their real sources: the job timeout against common_ft_job_config.timeout, and the reruns divisor against clickhouse-test's own max_reruns. Both were functionally unpinned before, so a ten-hour job timeout left the suite green.
…r-test timeout The previous round capped the rerun's --timeout at the main run's own 600 s so a roomier rerun could no longer pass a test the main pass timed out on. The other direction was still open: the value was derived as stage // (num_tests * reruns), which drops below 600 s as soon as four or more tests are diagnosed, so each rerun got LESS time than the pass that produced the failure. A test whose duration straddles the shrunken value then fails some of the three reruns and passes others, which is "Failed 1 out of 3 reruns", which is fail_n < total_n, which is labelled flaky and force-set to OK on coverage jobs - a fresh instance of the whitewash this change exists to remove. (Failed 3 out of 3 would be "reproducible" and would miss that guard, which is why "a starved budget only makes the verdict more pessimistic" held only for tests always above the cap.) Measured on 20 days of coverage functional-test jobs carrying the reproducibility marker: evaluating the old cap at 90 minutes elapsed, 22.9% of the rows on 4-test jobs exceed it, 19.9% at 5, 13.1% at 7, 32.8% at 8 and 40.0% at 10 - 8463 of the 75317 whitewashed rows. Shrinking the value also shortens the per-test cleanup, sized from the same --timeout, whose failure against a live server propagates as a FAIL. So the per-test value is now a constant equal to the main run's, and the remaining job time is carried by the stage bound alone: truncating the stage cannot fabricate a per-test label, it is reported as "diagnosed N out of M failed test(s)". The give-up condition becomes "not enough stage budget for one full-timeout rerun", which moves the boundary to 125 minutes elapsed and leaves every funded stage ending exactly 135 minutes into the 150-minute job, delivering the finalization reserve the coverage artifact upload depends on. The divisor and the minimum-rerun constants are gone with the arithmetic that used them. The budget is now computed once instead of twice. It truncates its elapsed argument, so evaluating it for the guard and again for the unpacking could straddle a whole second and unpack None, uncaught, inside the very window the bound protects. Two tests were pinning the defect rather than the property: one asserted only that the per-test value does not EXCEED the main run's, approving every shrunken value, and one required the value to shrink with elapsed time and test count. They now assert equality, and the derived-not-constant property of the stage value. The reserve test was a tautology - it compared stage against the two constants stage is defined from - and now asserts the absolute 135-minute stage end, so moving either constant fails it. The reserve comment no longer claims the outer Shell.run timeout enforces the reserve unconditionally. It does so only while no process a rerun spawns outlives the stage holding the runner's stdout; a per-test wrapper started without its own stdio keeps that pipe open and the output reader waits for it. That is a separate defect in tests/clickhouse-test, fixed there. Co-Authored-By: Claude Opus 4.8 <[email protected]>
The DIAGNOSTICS_RESERVE_S comment claimed the residual stdio-wedge is "fixed there" in tests/clickhouse-test. No such fix exists: master's per-test Popen still inherits the runner's stdout, and this PR does not touch that file. Say whose concern the residual is, and what the reserve buys while it stands, without asserting anyone has solved it. The diagnostics budget's "read the clock once" comment was absolute, but stop_watch.duration is also read by the display-only print after the guard. Scope the sentence to the budget so the ordering requirement it documents stays true of the block. Comment text only. No behaviour, constant value or assertion changes. Co-Authored-By: Claude Fable 5 <[email protected]>
Internal second-model review -- 6 rounds, 29 findings (26 agreed and fixed, 1 disagreed with evidence, 2 no-ops)Before opening this PR the change went through independent cold review plus a second-model Round 1 (5 findings, all agreed)
Round 2 (5 findings, all agreed)
Also checked and found sound, so recorded here rather than as findings: every FT job flavour Round 3 (7 findings: 6 agreed, 1 no-op)
Round 4 (7 findings, all agreed)
Round 5 (5 findings: 3 agreed, 1 disagreed, 1 no-op)
Round 6 (clean)Round 5's two comment corrections were verified against their acceptance criteria, and both my
|
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20260728-071200 |
|
cc @leshikus - could you review this? The stateless-test DIAGNOSTICS stage builds its |
|
Workflow [PR], commit [66ee0b1] Summary: ❌
AI ReviewSummaryThis PR updates the Final Verdict✅ No new inline findings on the current patch. LLVM Coverage Report |
CI finish ledger - 682ae7aEvery failure below has an owner: a fixing PR (ours or external), or a full-effort fix task
All eight are the intended, disclosed consequence of this PR rather than regressions it
This is the rollout consequence flagged in the description: making these failures visible Session id: cron:our-pr-ci-monitor:20260728-193000 |
|
Fixing PR for two of the eight lines on the CI finish ledger above: It covers Still owed here, same fix task, links to follow: |
|
Resolution of the I investigated it. The failure is not flaky and not caused by this PR: it is the replicated-DDL access-control bypass tracked in #111561, where a replayed DDL entry executes with no user and so It is deterministic on Owner correction: I cannot promise a fixing-PR link here. The fix depends on an open design question in #111561 (whether the authorization channel runs on one host, on all hosts, or refuses to execute), which is a product decision rather than something I can pick. That decision is the owner of this line. I will implement it once a direction is chosen. |
|
Fixing-PR link promised by the CI finish ledger above, for four of the eight rows:
All four assert deny paths implemented inside storage construction, and on a Replicated
|
The first commit's message, and the PR description drafted with it, said these
five tests fail deterministically on the DBReplicated flavours and cited a
reproducibility-check line reading three failures of three reruns, written in a
form the harness does not use. That citation was inherited from earlier triage
notes and never re-measured. It is wrong three ways, and no tracked file
changes here: the tags,
the assertions, every reference file and the mechanism prose corrected in the
previous commit all stay exactly as they are. This commit exists to put the
correction in the history that carries the false claim, since
`.claude/CLAUDE.md` forbids amending or rebasing a branch.
What was wrong. First, the harness never emits that string:
`tests/clickhouse-test` formats `Failed {fail_count} out of {max_reruns}
reruns.`, so someone grepping CI for the quoted text finds nothing, and the
consumer regex on the same file spells `out of` too. Second, the string covers
four carriers, never `02440_mutations_finalization`, whose 6446 rerun-carrying
rows all read `Failed 0 out of 3 reruns` and whose only honest failure in 21
days is one sequential run on an unrelated pull request. Third, for the four
access tests it appears exactly once each, all four on one commit: the run on
#112247 that forwards the job's flags to the diagnostics rerun. Every other row
reads `Failed 0 out of 3 reruns`, which is the whitewash this branch is about.
So the sentence read as a broad standing CI signal when the evidence is one
flags-forwarded run.
What is true instead, measured over the same 21 days on the DBReplicated
checks. The divergence is present in 100% of executed runs of the four access
tests, 4513, 4513, 6772 and 4513 rows, and in 96.4% of `02440`'s, 6447 of 6685.
On the flags-forwarding run the four access tests do report `Failed 3 out of 3
reruns`. Those numbers are stronger than the retracted claim, which is why this
is a citation fix and not a change of substance.
… path 04296_alter_rename_column_in_memory_rollback fails on every run of the two DBReplicated llvm_coverage job flavours, and on no other flavour, with "Code: 47. Missing columns: 'd'". It is deterministic, not flaky. It stayed invisible because the diagnostics rerun drops the job's --replicated-database flag, so the rerun passes, the test is labelled flaky, and the llvm_coverage job force-sets OK. PR ClickHouse#112247 fixes that forwarding, after which these two jobs start failing for real. The engine is behaving correctly. --replicated-database makes the test database ENGINE=Replicated (tests/clickhouse-test:806), so DatabaseReplicated::hasReplicationThread is true and StorageMergeTree::alter's in-memory-commit error handler takes the converge-forward branch (StorageMergeTree.cpp:638-661): the durable commit already went to ZooKeeper and cannot be rolled back, so the handler publishes new_metadata at :653 rather than reverting to old_metadata. Reverting there while the rename mutation stays registered would let a background merge run the rename against the old schema and reopen the ClickHouse#80648 data loss, which is exactly the behaviour commit 4676040 removed. Column d is therefore gone by design, and the test's SELECT id, d correctly raises UNKNOWN_IDENTIFIER. The test asserts the non-replicated revert contract, so its scope declaration was simply missing. 04296 is the only one of the seven tests added by ClickHouse#104822 that lacks no-replicated-database: it was added before the replicated branch existed and was never revisited. Tag it, with a reason comment in the same style as its six siblings, and add 04352 covering the cell the tag excludes: mt_alter_throw_in_start_mutation on an explicitly created Replicated database. That combination has no coverage today and is the only way to reach the "if (!mutation_registered && prepared)" sub-branch at :647, where the handler must register the prepared mutation itself before publishing. Total coverage strictly increases and no assertion is weakened. Validated on a Debug build: the failure reproduces with the flag and the same binary passes without it; after the change 04296 is SKIPPED under --replicated-database and still passes plainly; 50/50 randomized runs green for both files with no no-random-* tag. 04352 reddens under three independent mutations: removing its failpoint, changing the converge-forward line to revert, and deleting the handler's mutation self-registration at :647 (which loses the mutation and also defaults the renamed column's data, the ClickHouse#80648 shape). Its system.mutations assertion reads the in-memory mutation map, so it pins that registration step rather than a later re-read of the durable mutation file. Related: ClickHouse#104822
04501_distributed_query_client_version_internal_contexts and 04661_refreshable_mv_cancel_during_planning each create a non-APPEND refreshable materialized view over a non-replicated target. On a Replicated database the server refuses that shape by design: StorageMaterializedView forces refresh_coordinated = true for a non-APPEND refreshable view there, so the engine sanity check throws Code: 36 ... refreshable materialized view, no APPEND, replicated database, non-replicated table ... Refusing to create. and the CREATE never succeeds. On the DBReplicated test arm that happens on every run, master included, so neither test has ever reached its assertions there. It looked green because the functional-test diagnostics rerun rebuilds the command without the job's own --replicated-database flag, so the failure does not reproduce and gets labelled flaky; that half is tracked separately in ClickHouse#112247. Neither test gets no-replicated-database. Both covered sites are APPEND-independent, so an APPEND fixture keeps the tests running on every flavour rather than skipping them, following commit e73f3f1. Each view becomes APPEND with all_replicas = 1, because SYSTEM REFRESH VIEW, system.processes and a non-replicated target are all replica-local and a coordinated refresh could run on the other same-shard replica. The period becomes a relative AFTER 1 YEAR rather than EVERY 1 YEAR, which floors to January 1 and would let a second refresh fire mid-test in late December, and EMPTY suppresses the initial refresh so the explicit trigger is the only refresh. 04661 now triggers its refresh explicitly, which also removes the cross-replica concurrency its old every 1 second schedule had. Validated against a three-server Replicated cluster built from tests/config/install.sh --db-replicated: both tests fail before this change and pass after it, on the Replicated and the ordinary arm, 100/100 randomized runs each with no skips. Reverting each test's covered site (the initiator version fill in createRefreshContext, the early executing_query_status publication in refreshTask) makes the corresponding test fail again, so neither fixture passes vacuously. Related: ClickHouse#112247 Co-Authored-By: Claude Fable 5 <[email protected]>
The ci/tests suite is gone from master: ClickHouse#114675 and ClickHouse#115650 removed its contents together with the CI Tests job that ran it (ci/jobs/ci_tests_job.py, JobConfigs.ci_tests, JobNames.CI_TESTS and the generated ci_tests lane), on the grounds that it pins the internals of CI scripts rather than their observable behavior. Master keeps one unrelated file under that path, and no job executes it, so test_diagnostics_forwards_job_options.py would merge in as 439 lines that nothing can run. The observable behavior it asserted is covered end to end by this PR's own CI run: the amd_llvm_coverage DBReplicated shard reported eight deterministic configuration-specific failures that the job had been labelling flaky and force-setting to OK, which is the effect the change exists to produce.
The review rounds answered each challenge by writing the answer into the source, so the added comments had grown to outnumber the added code. Each surviving comment now states only a local invariant: the constant that must track ci/defs/job_configs.py, why a job that overruns its own timeout costs the downstream coverage job its artifacts, why the rerun's per-test bound must equal the main run's, why the clock is read once, and the two argv rules for the rerun command. The reasoning that moved out of the source: the reserve exists because Shell.run's timeout bounds the stage only while nothing a rerun spawns outlives it holding the runner's stdout, and bounding that belongs to tests/clickhouse-test rather than to this stage. A per-test bound below the main run's would also shorten the per-test cleanup, which is sized from the same --timeout and fails against a live server. diagnostics_budget took num_tests only to document that it deliberately does not scale with the number of failed tests: a per-test value that differs from the main run's fabricates a flaky label whichever direction it moves, so only the stage bound follows the remaining time, and truncating the stage is reported as "diagnosed N out of M failed test(s)". The count-sensitive control is the existing "> 10" SKIPPED arm. An argument that exists to be explained away is better removed.
Merged at 2ae8a25. One conflict, in ci/jobs/functional_tests.py: master added STACKTRACE_LOGS and collect_stacktrace_logs at the same anchor below SANITIZERS where this branch adds the diagnostics budget. Both blocks are kept, master's first so its code stays in its upstream position. Master's run_tests now bounds its own Shell.run and states the per-test alarm as "int(args.timeout * 1.1) + 60 (720s with the default --timeout 600)", which confirms independently that the main run leaves clickhouse-test's --timeout at its 600s default. The rerun's bound still matches it, and common_ft_job_config's timeout is still int(3600 * 2.5).
|
@alesapin, you asked for the stateless job's per-test Half of it is already on master: since #121387, Which do you prefer?
I would go with 1, so that review of the new option cannot hold up the diagnostics fix. |
|
@fm4v, your #125180 landed the fix this PR was for: the diagnostics rerun now keeps the job's mode flags, and the coverage The only part of this PR not on master is the time bound on the stage (a If this PR is no longer needed, please close it. Otherwise I will reduce it to that bound. I would close it, and add the bound together with the per-test |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Related: #111561
The stateless-test
DIAGNOSTICSstage reruns each failed test to decide whether the failureis reproducible, but it builds its
clickhouse-testcommand from a hardcoded flag list andnever forwards the job's own runner options, so
--replicated-database,--s3-storageandthe rest are dropped. The rerun creates a plain
Atomicdatabase, a configuration-specificfailure cannot reproduce in it, it is labelled
flaky, and onllvm_coveragejobs aflakylabel force-sets the status to
OK. CIDB recordstest_status = 'OK'for tests that faileddeterministically: 73535 such rows over 20 days across 141 tests. Two of them hid the
access-control bypass in #111561 for a week.
This is a regression. The RETRIES stage that
DIAGNOSTICSreplaced reran withextra_args=runner_options(1607bd45d66f79); the hardcoded command that lost it isd59310d5ec741e. Theflaky -> OKoverride is older, intentional (#95763) and untouched.The fix forwards
runner_options, defaulting--shard/--zookeeperasrun_testsalreadydoes, and bounds the stage, which nothing bounded before. The per-test
--timeoutis pinnedto the main run's own 600 s, because any other value flips a verdict through the timeout
alone. The remaining job time is carried by an outer
Shell.runbound ofjob_timeout - elapsed - 15 min, and below one full-timeout rerun of headroom the stage isskipped rather than truncated. That outer bound is soft while a rerun leaves a live descendant
holding the runner's stdout, which is a spawn-site concern in
tests/clickhouse-testand notaddressed here; the 15-minute reserve is what absorbs the overshoot while it stands.
Honest failures turn green coverage jobs red, so the rollout is a decision for
@maxknv / @alexbakharew:
force_ok_exit,and the Mergeable rollup flags the rest.
destination, but ~141 issues, so not a precondition here.
allow_failureon these jobs: not proposed, rejected for them in CI: do not block PRs on amd_llvm_coverage s3-storage job infra failures #110142.I will triage the carriers separately either way.
Validated by a throwaway script (not committed, per
.claude/CLAUDE.md) that composes thecommand as the job does and parses it with the real
tests/clickhouse-testparse_argsoverevery runner-option value and budget boundary; a negative control confirms the pre-fix command
loses
--replicated-database. This PR's own CI run then surfaced eight deterministicDBReplicatedfailures that the job had been reporting asOK.Measured impact, and the reasons behind those numbers
CIDB predicate:
test_status = 'OK'rows whosetest_context_rawcontains theFailure reproducibility checkmarker, which only the no-random 3-rerun branch emits.Top carriers fail with Code 36 (refreshable MV on a replicated database), Code 392 (
ALTERsof different types on Replicated),
result differs with reference, Code 47, and two distinctkinds of Code 159:
ReplicatedDatabase DDL task ... is not finished on 2 of 3 hosts, this PR's class: a DDLtimeout against the Replicated database the rerun never creates. Carriers
04327_s3queue_server_credentials,04320_url_engine_dispatch_partition_and_format,04511_remote_named_collection_complex_overrides.Timeout exceeded (180 s) while flushing system log, the genuine Fix minor issue for LLVM Stateless Tests #95763 slow-binary class.Some of the three reruns pass, so the label stays
flakyand the override still applies.The rerun count does not change:
diagnose_random_settingspicks its branch from the savedartifact rather than the flags, so coverage jobs keep the same 3-plain-rerun path, and the
stage is still skipped above 10 failed tests. What changes is that each rerun now runs the
test to completion instead of failing fast in the wrong environment, which is why it needed a
bound: unbounded, the ceiling was 10 tests x 3 reruns x 600 s = 5 h against a 2.5 h job
timeout, and a job that hits its own timeout never reaches
complete_job, so praktika recordsERRORand skips the artifact upload the coverage job consumes.Every funded stage now ends at the same 135 minutes of job time, whatever the elapsed time and
test count. Past 125 minutes there is less headroom than one full-timeout rerun and the stage
is skipped, which is rare: over 14 days elapsed p95 is 96.6 min and p99 104.4 min, and the
five slowest carriers run at p90 258/134/123/96/82 s.
Non-coverage flavours get a corrected diagnosis too, and their pass/fail cannot change: the
only status-mutating line is gated on
is_llvm_coverage. Their label may flipflaky->reproducible, which open-issue matching ignores (it keys on name and failure reason).Workflow [PR]
Sync PR [sync-upstream/pr/112247]