Skip to content

Attribute bugfix-validation compile failures by translation unit - #115969

Merged
alexey-milovidov merged 6 commits into
ClickHouse:masterfrom
groeneai:fix-bugfix-validation-attribute-failing-edge
Aug 23, 2026
Merged

alexey-milovidov merged 6 commits into
ClickHouse:masterfrom
groeneai:fix-bugfix-validation-attribute-failing-edge

Conversation

@groeneai

@groeneai groeneai commented Aug 23, 2026 •

Copy link
Copy Markdown
Collaborator

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...

Description

Related: #115511

Bugfix validation (unit tests) still reports ERROR on a compile failure #115511 should
report as XFAIL.

The job attributes such a failure by the path on each error: line. Clang reports "no
matching constructor" at the line performing the construction, so when the overlaid test
constructs the changed type through a template (std::make_unique and friends) the only
error: line is inside libcxx and the test appears merely on a
note: in instantiation of ... line. overlaid_errors and not other_errors is then false
and the job fails closed, though the failure is only the test adapting to a signature change
it cannot avoid: see
#111391,
whose single error: line is in
contrib/llvm-project/libcxx/include/__memory/unique_ptr.h.

This adds a second attribution basis: the failing ninja edge's translation unit, taken from
the -c <source> argument of the command ninja prints under FAILED:. The before-worktree
is merge-base sources plus only the overlaid tests, so that is what attribution asks, and a
broken fix source or contrib header is another translation unit failing its own edge. Three
conditions fail close on both bases, the pre-existing error-path one included: an edge
proven not to be a compile (a link or archive step), a compile of anything but an overlaid
test, and a compile edge raising no parsable error of its own, as a killed compiler leaves
behind. The ERROR message names which fired.

I did not attribute from note: lines: the same diagnostic carries a
note: candidate constructor not viable: naming a fix source, so such a rule would swallow
real fix-source breakage. The error regex and attribute_compile_errors are unchanged.

Validation in ci/tests/test_unit_tests_bugfix_validation.py: every condition
mutation-checked, with negative controls and tests driving main(). Replaying two real job
logs flips #111391 to XFAIL and leaves an already-attributable one untouched. ERROR was
already non-blocking, so only report truthfulness changes.


Workflow [PR]
Sync PR [sync-upstream/pr/115969]

Version info

  • Merged into: 26.8.1.1933 (included in 26.8 and later)

groeneai and others added 6 commits August 22, 2026 18:35
`Bugfix validation (unit tests)` attributes a before-build compile failure by
the path on each `error:` diagnostic line, and reports XFAIL only when every
such path is one of the PR's overlaid test files. Clang raises "no matching
constructor" at the line that performs the construction, so when the overlaid
test constructs the changed type through a template (`std::make_unique` and
friends) the only `error:` line is inside libcxx and the overlaid test appears
merely on a `note: in instantiation of ...` line. The guard is then false and
the job fails closed with ERROR, although the failure is entirely the test
adapting to the signature the fix introduces, which the PR author cannot avoid.

Observed on PR ClickHouse#111391 head 4cfda50, whose
12,061-line compile log carries exactly one `error:` line, in
contrib/llvm-project/libcxx/include/__memory/unique_ptr.h. The XFAIL branch that
should have handled it was added by ClickHouse#115511, whose harness commit
ca809a9 is an ancestor of that head, so this is a residual sub-shape of
a merged feature rather than the pre-fix harness.

Add a second attribution basis: the failing ninja edge's translation unit, taken
from the `-c <source>` argument of the command ninja prints under `FAILED:`. The
before-worktree is merge-base sources with only the PR's test files overlaid, so
"which translation unit failed to compile" is exactly what attribution asks, and
a broken fix source or contrib header is a different translation unit that fails
its own edge. The fail-close property is therefore kept structurally rather than
by heuristic. The new basis additionally requires that a parsable compiler error
exists somewhere and that every failed edge is a compile whose source could be
extracted, so a killed compiler and a link failure both stay ERROR.

Deliberately not done: widening `_COMPILE_ERROR_LINE_RE`, and attributing from
`note:` lines. The latter is unsafe because the same diagnostic also carries a
`note: candidate constructor not viable:` pointing at a fix source, so such a
rule would start swallowing genuine fix-source breakage; it would also
contradict the invariant ClickHouse#115747 pins. `attribute_compile_errors` and the error
regex are unchanged, and ClickHouse#115747's tests pass against this change.

Validation: 63 tests in ci/tests/test_unit_tests_bugfix_validation.py (52
existing plus 11 new, 4 of them negative controls). Replaying the two real job
logs flips ClickHouse#111391 from ERROR to XFAIL and leaves an already-attributable log's
verdict and wording untouched. Each condition was mutation-checked: removing it
reddens a specific test. XFAIL already counts as success in `Result.is_ok()` and
ERROR was already non-blocking for the merge gate (new_tests_check.py counts
only a definitive FAIL), so this changes report truthfulness, not gating.
Two review findings on the previous commit.

First, the unattributable-edge check only guarded the translation-unit basis.
`compile_failure_attribution` returned as soon as every `error:` path was an
overlaid test file, before it looked at the failed ninja edges at all, so a
compile log carrying an `error:` inside an overlaid test together with a failed
link edge was reported XFAIL even though the link failure names no translation
unit and is not attributable to a test adaptation.

That behaviour is pre-existing and not introduced by the previous commit:
running the merge base's `attribute_compile_errors` over such a log returns
(['<overlaid test>'], []), so the `overlaid_errors and not other_errors` guard
is already true there and the merge base already reports XFAIL, and its step-4b
comment already promised that the linker fails close. What the previous commit
did own were two claims about it that were not true. Its new test
`test_attribution_fails_close_on_a_link_failure` advertised in its docstring
that it covered that shape; measured with the production regex, the fixture's
only error-carrying path is the libcxx header, so it exercised the
translation-unit basis alone. And it rewrote the step-4b comment into a general
promise the code did not honour for the error-path basis.

Hoist the edge scan above both bases so a non-empty `unattributable` fails
close for either one, correct the docstring, and add the missing arm: an
`error:` line inside the overlaid test plus a failed link edge, asserting the
failure is not attributable. Basis one deliberately still does not require a
failed compile edge to exist, because a log with no `FAILED:` line at all is a
shape several fixtures use and must keep its verdict.

Second, every test called the pure helpers directly, so nothing asserted the
transition in `main()` that the job actually reports. Deleting the
`compile_failure_attribution` call site, or the XFAIL status flip, kept the
whole suite green while the user-visible ERROR to XFAIL outcome regressed. Add
two tests that drive `main()` through a monkeypatched step 4b: one asserting the
real template-instantiation shape comes out XFAIL with nothing to validate, and
a negative control asserting a fix source failing its own edge still comes out
ERROR and inconclusive, so the positive arm cannot be satisfied by everything
becoming XFAIL.

Also re-wrap two ragged comment paragraphs left by the previous commit. No
comment text was added or removed.

Validation: 66 tests, 14 of them new since the merge base, 7 negative controls
and 2 driving `main()`. Twelve mutation arms in total, each reddening a specific
test; the two that revert the call site or the status flip redden only the new
`main()`-level tests, which is what shows that transition was untested. Both
real job logs replay to byte-identical verdicts and wording, the error regex and
`attribute_compile_errors` remain byte-identical to the merge base, and the 11
tests added by the open PR ClickHouse#115747 pass against this file, checked with an
import-path control and a sensitivity control.
…stics

The non-test-source check sat below the error-path basis, so it only ever
guarded the translation-unit basis. A before-build where the overlaid test
carries the only parsable error: while a fix source fails its own compile edge
with no diagnostic of its own (a killed compiler, OOM, prlimit) satisfied the
error-path basis and reported XFAIL, even though a translation unit outside the
overlaid tests demonstrably failed to compile.

Both edge-derived refusals now precede either basis through one shared path, and
the duplicate check below the second basis is removed rather than left to drift.

The behaviour predates this branch: the merge-base guard is also true on such a
log, so master reports XFAIL there too, and the merge-base step-4b comment
already promised that a failed fix-source translation unit fails close. What is
new here is that this branch restates that promise while carrying the other half
of the same guard, and that a test advertised the coverage.

compile_failure_attribution also returns a phrase naming what defeated
attribution. On both edge-derived refusals the error-path split is empty, so the
report previously said the errors could not be attributed without naming
anything the operator could act on.

Adds the mixed-edge regression case, a main()-level assertion that the phrase
reaches the reported info, and a case pinning that an empty edge list must not
withhold the error-path basis: a log with no FAILED: line at all is attributable
on the diagnostics alone.
`failed_compile_edge_sources` classified a failed edge as unattributable
whenever the next line yielded no `-c <source>`. That conflated two states
with opposite evidential weight: a command line that was read and is not a
compile (a link step, an archive step, a custom command), which is evidence
that something outside the overlaid tests failed; and a command line that
could not be read at all, because the log ends after the `FAILED:` line or a
diagnostic stands in its place, which is only the absence of evidence about
that edge.

Because the second state was treated as the first, a log whose diagnostics
place every `error:` inside the overlaid test files came out as ERROR even
though the error-path attribution basis was satisfied on its own. Merged
master reports XFAIL for that shape.

Split the edges three ways instead. A read non-compile edge and a failed
translation unit outside the overlaid tests keep defeating both bases. An
unreadable command line defeats only the translation-unit basis, which claims
every failed translation unit is an overlaid test file and therefore needs all
of them enumerated; it no longer withdraws an attribution the diagnostics
already establish.

The unattributable-edge guard and the non-test-source guard, which the two
previous rounds added, are unchanged in effect: a link failure alongside an
error inside an overlaid test, and a fix source whose compiler was killed
alongside the same error, both still fail close. Both real CI compile logs
carry the command after every `FAILED:` line, so neither changes verdict.

`_COMPILE_ERROR_LINE_RE` and `attribute_compile_errors` are untouched: notes
and warnings still attribute nothing.

Co-Authored-By: Claude Fable 5 <[email protected]>
Two narrow classification rules in the failed-edge scan sent attributable
failures to ERROR.

The scan decided a line was not a command line by testing it against one
diagnostic shape, "path:line[:col]: ". Every other line clang can print in a
diagnostic block therefore fell through and was filed as evidence that
something which is not a translation unit failed. "In file included from
..." is one of those lines, and it is the first line clang prints for the
template-instantiation failure this attribution exists to cover, so the
before-build of a PR whose gtest constructs a changed type through
std::make_unique was reported as an unattributable infrastructure error
rather than the expected failure it is. Source excerpt and caret lines
behaved the same way. Recognise the command line positively instead: it
starts with the program ninja ran, optionally behind cmake's ": && " or "cd
<dir> && " wrapper. A line that is not recognised now withholds only the
basis that needs every failed translation unit enumerated, and never
manufactures evidence about the edge.

The second basis also required a parsable compiler error to exist somewhere
in the log rather than in the failed edge's own diagnostics, so when two
overlaid tests each failed their own edge and only the first explained why,
the killed compiler of the second was answered for by the first edge's
error and the failure was attributed. Scope each edge's diagnostics to the
lines before the next failed edge and refuse when a compile edge raised no
error of its own.

Both behaviours were introduced by earlier commits in this branch; the
whole-log refusal wording is kept for a log with no readable edge to name.
…lidator tests

Master's ClickHouse#115747 and ClickHouse#115797 added 264 lines of coverage for the pre-existing
attribute_compile_errors layer to ci/tests/test_unit_tests_bugfix_validation.py,
the same file this branch adds 784 lines to. Both additions are purely additive
against the merge base and anchored at the same two points (the import list and
the end of the module), and their top-level symbols do not intersect, so the
resolution keeps both sides in full.

Master keys its fixtures off _OVERLAID / _compile_result /
_run_main_with_compile_failure; this branch off _TEST_FILE / _compile_log /
_drive_main_to_compile_step. The two vocabularies coexist.

Collected tests go from 83 (ours) and 66 (master's), which share 52 base tests,
to their exact union of 97, verified by test-name set equality rather than by a
count. ci/jobs/unit_tests_bugfix_validation_job.py is untouched: master did not
change it.
@groeneai groeneai added can be tested Allows running workflows for external contributors groeneai-origin-ci-own-pr PR origin: CI on a groeneai PR exposed a separate defect labels Aug 23, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review (click to expand)

Six review rounds against an independent second model. All blockers fixed; the two entries
below are recorded because their disposition is a judgement, not a pass.

Finding Verdict
❌ A killed compiler can still report XFAIL if the same edge printed one parsable error: before dying. Real: reproduced end to end. But origin/master reports XFAIL on that exact log too (measured by running master's own attribute_compile_errors), so it is pre-existing, not introduced here, and the code only ever claims to detect an edge with no parsable error of its own - which this edge has. A per-edge termination detector was tried and rejected: the obvious form fires on the diagnostics of 2 of 508 in-tree unit tests (gtest_signal_handler_alt_stack.cpp, gtest_fd_read_buffer_poll_under_signals.cpp) and turns a legitimate signature adaptation into ERROR. Neither captured job log contains a kill marker. ⚠️ Description corrected instead: it had claimed "a killed compiler still reports ERROR" without qualification. The code is unchanged and at parity with master.
⚠️ A ninja progress line standing where the command should be is read as a command and files the edge as naming no translation unit, defeating both bases rather than only the second. Not reachable: ninja prints the progress line before FAILED: and emits the failure block from one output loop - 0 such lines at that position across both real 12k-line logs. Fail direction is XFAIL -> ERROR, today's behaviour, never a false green. 💡 Noted, not fixed.

Earlier rounds fixed: an overlaid error plus a failed link edge reporting XFAIL; the same
with a failed fix-source edge; a whole-log rather than per-edge diagnostic check letting one
edge's error answer for another's silence; an unreadable command line manufacturing evidence
instead of withholding it (this one had reddened a test in the then-open PR 115747); and two
ERROR paths that named nothing.

Verification of the final tree: 97 tests pass, including all 66 from the merged PR 115747, which
were also checked to discriminate this module (three mutations each redden one of them).
Eight mutation arms across the two changed decision points each redden a named test.
_COMPILE_ERROR_LINE_RE and attribute_compile_errors are byte-identical to the merge base.
Differencing master's verdict against this one over 32 log shapes: 5 widen, all the intended
case; 8 narrow, all fail-close.

@clickhouse-gh clickhouse-gh Bot added the manual approve Manual approve required to run CI label Aug 23, 2026
@clickhouse-gh clickhouse-gh Bot closed this Aug 23, 2026
@clickhouse-gh clickhouse-gh Bot reopened this Aug 23, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [969c02e]

Summary: ✅


AI Review

Summary

This PR extends Bugfix validation (unit tests) so a before-build compile failure can be attributed either by error: paths or by the failed ninja translation units, and it adds broad regression coverage around that classification logic. The new tests pass locally, but there is still one correctness gap: a log with visible error: lines only in overlaid test files can still be reported as XFAIL even when an additional FAILED: edge is unreadable, so a truncated link or fix-source failure can be misclassified as attributable.

Findings

⚠️ Majors

  • [ci/jobs/unit_tests_bugfix_validation_job.py:631] compile_failure_attribution returns the error-path XFAIL reason before it checks unreadable. A concrete trace is a log with FAILED: ...gtest...o, an error: inside the overlaid test, then a second FAILED: block such as FAILED: src/unit_tests_dbms with no readable command line. The helper currently returns "every compile error is inside...", even though the extra failed edge could be a truncated link or fix-source failure. That violates the fail-close contract the PR describes and can turn an inconclusive before-build into an expected-failure report.
    Suggested fix: let unreadable extra FAILED: edges defeat the error-path basis as well, or narrow the exception to the single-edge abridged-log case the new tests target.
Final Verdict

⚠️ Needs changes: the unreadable-edge case above can still produce a false XFAIL.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Aug 23, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. compile_failure_attribution over the real 12,061-line job log of PR #111391 head 4cfda50 returns "" (ERROR) on master and a non-empty reason (XFAIL) with the change, every run, no randomness. test_attribution_covers_error_raised_inside_an_included_header reproduces the same shape in 0.01s.
b Root cause explained? Yes. Clang raises "no matching constructor" at the line that performs the construction, so for a construction through std::make_unique the only error: line is inside contrib/llvm-project/libcxx/include/__memory/unique_ptr.h and the overlaid test appears only on a note: in instantiation of ... line. Path-of-error attribution therefore yields overlaid=[], other=['contrib/...unique_ptr.h'], the overlaid_errors and not other_errors guard is false, and the job falls through to ERROR.
c Fix matches root cause? Yes. It changes what attribution reads (the failing translation unit, from ninja's -c <source>) instead of widening _COMPILE_ERROR_LINE_RE, relaxing the guard, or special-casing contrib/. The fail-close conditions are explicit and individually tested. A failed edge whose command line was read and is not a compile (a link, archive or custom command), and a failed compile edge on a translation unit outside the overlaid tests, are both evaluated before either basis, so neither can be bypassed by a satisfied basis. A failed edge whose command line is absent, or is not recognisable as a command, is kept apart from those two: it is the absence of evidence about that edge, so it defeats only the translation-unit basis, which needs every failed translation unit enumerated. A command line is recognised positively, by the shape of the program token, so an unrecognised line can never manufacture evidence about an edge; and each edge's diagnostics are scoped to the lines before the next failed edge, so one edge's error cannot answer for another's silence. The ERROR message names which of the five refusal conditions fired.
d Test intent preserved / new tests added? Yes. 28 new test functions (31 cases with parametrisation), 11 of them negative controls asserting the ERROR path still fires, and 6 driving main() itself so the report transition is covered and not only the pure helpers. No existing test was deleted (comm -23 against the merge base is empty) and none was weakened. The merged file collects 97 cases and all 97 pass: the 52 from the merge base, the 14 that PR 115747 added on master, and these 31. The collected-id set is exactly the union of the two sides, with none missing and none extra. PR 115747's tests were additionally checked to discriminate this production module, with an import-path control and three sensitivity controls, so their passing is a real result rather than a blind suite.
e Both directions demonstrated? Yes. Replaying the real logs: #111391 goes ERROR -> XFAIL, while an already-attributable log (PR 115528) keeps both its verdict and its original wording byte-for-byte. Thirty mutation arms were run across the rounds and each reddens a specific named test, so no new test is vacuous; some redden only the main()-level tests, which is what shows the report transition was previously untested. Four arms initially did not redden; every one was missing coverage, added rather than explained away. The 14-shape verdict table was re-measured on the final tree and all 14 match.
f Fix is general across code paths? Yes. Both attribution bases live in one decision function used by the single call site, the edge scan runs once for all of them, and the two evidence-bearing guards apply to both bases through one shared code path (the duplicate membership check that had sat below one basis was removed rather than left to drift). The sibling failure paths were read and deliberately left untouched: cmake-configure failure, the [ RUN ] runtime path, the submodule and .gitmodules guards, and new_tests_check.py.
g Fix generalizes across inputs? Yes. Covered: error inside the test, error inside an included header, both together with a failed link edge, several failed edges, a contrib translation unit, a link edge with no -c, a failed compile edge with no diagnostic of its own, no parsable diagnostic anywhere, ANSI-coloured logs, multiple log files, duplicate edges, absolute paths outside the before-worktree, a truncated log, an abridged FAILED: block whose command line is replaced by a diagnostic (alone, and alongside a fix-source error), a log with no FAILED: line at all, four different first-line shapes after an abridged FAILED: block (include context, source excerpt, caret, bare diagnostic), a shell-wrapped link command and a cd <dir> && <tool> custom command, a silent edge both before and after an explained one, and files being None or []. -c extraction was verified against the real 505-token command line with both a regex and shlex returning the identical path; the build emits no @response file compiles and no FAILED: [code= variant.
h Backward compatible? (maintainer-approved exception only) N/A: CI job code only. No setting, no default, no serialization format, so no SettingsChangesHistory.cpp entry applies. The pre-existing attribution basis and its report wording are unchanged. The ERROR message gains a clause naming what could not be attributed, on paths that previously named nothing; its existing "errors outside them" clause is untouched.
i Invariants and contracts preserved? Yes. The invariant is that a before-build failure becomes XFAIL only when it is fully attributable to the overlaid test files, and anything else fails closed. Each condition guards one way of losing it and each has a negative test plus a mutation arm. Both fail-close conditions added by earlier rounds were re-measured on the final tree and still fire. _COMPILE_ERROR_LINE_RE and attribute_compile_errors are byte-identical to the merge base (verified by exact 1536-byte substring compare), so their callers and the merged PR 115747's tests are unaffected. Bounds and None handling on the new log scan are tested. A future ninja emitting a different FAILED: shape makes the predicate stop matching and the job fall back to today's ERROR, a safe degradation rather than a false green.

Session id: cron:clickhouse-review-slot-8:20260823-011200

@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @alexey-milovidov, could you review this? It extends the XFAIL branch you added in PR 115511: attribution now also accepts the failing ninja edge's translation unit, so a construction through std::make_unique whose only error: line lands inside libcxx is attributed to the overlaid test instead of failing closed.

"failed build steps with no compiler diagnostic of their own: "
+ ", ".join(diagnostic_free),
)
if overlaid_errors and not other_errors:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overlaid_errors wins here before unreadable is consulted, so an extra abridged FAILED: block can still be reported as test-only. A minimal repro is:

FAILED: src/CMakeFiles/x.dir/gtest_wb.cpp.o
/usr/local/bin/clang++ ... -c /ClickHouse/ci/tmp/before_src/src/Disks/tests/gtest_write_buffer_inline_or_blob.cpp
/ClickHouse/ci/tmp/before_src/src/Disks/tests/gtest_write_buffer_inline_or_blob.cpp:42:5: error: ...
FAILED: src/CMakeFiles/y.dir/WriteBufferInlineOrBlob.cpp.o
ninja: build stopped: subcommand failed.

compile_failure_attribution currently returns the XFAIL reason on that log, even though the second failed edge could be a fix source or the linker and the log is merely incomplete about it. I think unreadable additional FAILED: blocks need to fail closed unless they can be proven to be the same edge already attributed.

"failed build steps with no compiler diagnostic of their own: "
+ ", ".join(diagnostic_free),
)
if overlaid_errors and not other_errors:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This early overlaid_errors return still bypasses the unreadable-edge refusal below.

Concrete trace:

FAILED: src/CMakeFiles/x.dir/gtest_wb.cpp.o
/ClickHouse/ci/tmp/before_src/src/Disks/tests/gtest_write_buffer_inline_or_blob.cpp:42:5: error: ...
FAILED: src/unit_tests_dbms
ninja: build stopped: subcommand failed.

On that log, failed_compile_edge_sources reports both edges as unreadable, but compile_failure_attribution still returns the "every compile error is inside..." XFAIL reason because this branch runs before the unreadable check. That means a truncated link or fix-source failure can be reported as "the failure belongs to the overlaid tests alone", which breaks the fail-close contract described in the docstring and PR text.

Can we reject unreadable extra FAILED: edges before accepting the error-path basis, or otherwise narrow the single-edge abridged-log exception so it does not also cover multi-edge truncated logs?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed and fixed in a37e745.

I reproduced both traces. failed_compile_edge_sources filed the second FAILED: edge as
unreadable, which withholds only the translation-unit basis, so the error: inside the
overlaid test still satisfied the error-path basis and the log came out XFAIL. The
docstring did promise otherwise.

I did not reject unreadable edges before the error-path basis, because that fails close on
the abridged single-edge log that master reports as an expected failure
(test_main_compile_failure_only_in_overlaid_tests_is_xfail, added in #115747): its one
FAILED: line also carries no command, and I measured that rule turning it into ERROR.

What actually makes such an edge unaccountable is silence, not unreadability, and the job
already refuses a compile edge that raised no parsable error of its own. So an edge with no
diagnostic in its own window now joins diagnostic_free whether or not its command line was
read, and unreadable keeps only edges that did contribute a diagnostic and therefore cannot
contradict the error path. Both of your traces are ERROR now, naming the silent step;
master's fixture stays XFAIL.

Verified across 14 log shapes, 0 mismatches. The three earlier fail-close shapes (a readable
link edge, a readable fix-source edge, two overlaid edges with the second killed) are
unchanged, and the two real captured job logs still resolve as before. Reverting the change
reddens 2 tests; routing every unreadable edge to diagnostic_free instead reddens 11 of
mine and 1 of master's. Suite is 99 plus master's 66.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix for the fail-open reported above is in #115973: this PR merged at 04:03:15Z, a few
minutes before the commit landed on the branch, so it goes in as a follow-up rather than
another push here.

@clickhouse-gh

clickhouse-gh Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 969c02ea7 with master b6bbf49a3 (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes
Binary Master PR Δ
programs/clickhouse-stripped 705.75 MiB 702.73 MiB -3.03 MiB (-0.43%)

Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction.

Compile time of recompiled translation units

6 translation units recompiled, 4 s compile time in total, 6 of them have a recent master baseline.

Job report

@alexey-milovidov alexey-milovidov self-assigned this Aug 23, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Aug 23, 2026
Merged via the queue into ClickHouse:master with commit 78e5947 Aug 23, 2026
358 of 360 checks passed
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Aug 23, 2026
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Aug 23, 2026
A failed ninja edge whose command line cannot be read was filed as `unreadable`,
which withholds only the translation-unit basis, so an `error:` inside an overlaid
test still satisfied the error-path basis and the log was reported XFAIL. An
abridged log can end a `FAILED:` block for the linker or a fix source that way, and
then the report claims the failure belongs to the overlaid tests alone.

Silence, not unreadability, is what makes such an edge unaccountable, and the job
already refuses a compile edge that raised no parsable error of its own. Classify
by that instead: an edge with no diagnostic in its own window joins
`diagnostic_free` whether or not its command line was read, and `unreadable` keeps
the edges that did contribute a diagnostic and so cannot contradict the error path.

Refusing every unreadable edge instead would fail close on an abridged log whose
one edge does carry the overlaid test's error, which master reports as an expected
failure.

Reported by clickhouse-gh[bot] on ClickHouse#115969.
pull Bot pushed a commit to sowelswl/ClickHouse that referenced this pull request Sep 19, 2026
A failed ninja edge whose command line cannot be read was filed as `unreadable`,
which withholds only the translation-unit basis, so an `error:` inside an overlaid
test still satisfied the error-path basis and the log was reported XFAIL. An
abridged log can end a `FAILED:` block for the linker or a fix source that way, and
then the report claims the failure belongs to the overlaid tests alone.

Silence, not unreadability, is what makes such an edge unaccountable, and the job
already refuses a compile edge that raised no parsable error of its own. Classify
by that instead: an edge with no diagnostic in its own window joins
`diagnostic_free` whether or not its command line was read, and `unreadable` keeps
the edges that did contribute a diagnostic and so cannot contradict the error path.

Refusing every unreadable edge instead would fail close on an abridged log whose
one edge does carry the overlaid test's error, which master reports as an expected
failure.

Reported by clickhouse-gh[bot] on ClickHouse#115969.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors groeneai-origin-ci-own-pr PR origin: CI on a groeneai PR exposed a separate defect manual approve Manual approve required to run CI pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants