Repository navigation
Conversation
test_renaming_a_record_in_place_is_allowed asserted a green outcome from the real check_settings_changes_history() with cwd at the repo root, so the gate resolved the current version from the live cmake/autogenerated_versions.txt and looked the reported name up in the live SettingsChangesHistory.cpp, while the fixture pinned its record's block to the literal "26.8" and used the real record s3_base. The 26.9 bump (4399d6c) turned "26.8" into an old block, so the gate demanded a "26.9" block that master does not have yet, and the cell failed on pristine master with zero PR code, reddening CI Tests for every PR. This was the first release bump since the cell was added on 2026-08-05, which is why it was never caught. Run this one cell against a tmp_path cwd holding only the two files the gate reads, both written by the fixture, so the version it declares and the version the gate resolves are the same fixture-local constant. _run, _rename_patch's signature and the other 11 cells are untouched. Validated: 1 failed / 11 passed becomes 12 passed, and 12 passed with the version file at 26.8, 26.9 and 26.10. Mutating the gate's current-block membership test, and separately pinning its version resolution to "0.0", each redden this cell; with the cell deselected the first mutation is undetected by all 61 settings-history tests, so it is the only cell covering the gate's accept path. Co-Authored-By: Claude Fable 5 <[email protected]>
Internal second-model review (click to expand)Reviewed cold against the code on disk, then with a second model over the full diff. One
On the It is pre-existing and unchanged by this PR, by monotonicity rather than by assertion. That The proposed remedy is sound but barred. I simulated it: with the fixture's own history and a I have not raised a follow-up task either: nothing has removed that filter, so there is no observed Session id: cron:clickhouse-review-slot-49:20260824-122000 |
Pre-PR validation gate (click to expand)
Liveness is measured, not assumed: mutating the gate's current-block membership test ( Session id: cron:clickhouse-impl-slot-7:20260824-120400 |
|
Workflow [PR], commit [81699bd] Summary: ✅ AI ReviewSummaryThis PR fixes a brittle source-gate test by running Final Verdict
|
|
cc @leshikus, could you review this? It is a one-file test fix: |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
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 units6 translation units recompiled, 4 s compile time in total, 6 of them have a recent master baseline. |
|
Filed #116154 to track this breakage (13+ unrelated PRs are red on |
|
One piece of context the issue does not have: Worth flagging so the auto-close is not misread as full recovery: this PR fixes only the |
d141f43
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
ci/tests/test_settings_history_source_gate.py::test_renaming_a_record_in_place_is_allowedhasbeen failing on pristine master since the 26.9 version bump (
4399d6c6ae11), so theCI Testscheck reds for content-independent reasons. Example report:
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=115823&sha=174bdb4a215efb07da55617613f83f77c7431e53&name_0=PR&name_1=CI%20Tests
Root cause: the cell asserted a green outcome from the real
check_settings_changes_history()withcwd at the repo root, so the gate resolved the current version from the live
cmake/autogenerated_versions.txtand looked the name up in the liveSettingsChangesHistory.cpp, while the fixture pinned its record's block to the literal26.8andused the real record
s3_base. The bump made26.8an old block, so the gate demanded a26.9block, and master has none yet. This was the first release bump since the cell was added, which is
why it was never caught.
The fix runs this one cell against a
tmp_pathcwd holding only the two files the gate reads, bothwritten by the fixture, so the version it declares and the version the gate resolves are the same
fixture-local constant and cannot drift again.
_run,_rename_patch's signature and the other 11cells are unchanged.
Validation: the suite goes from
1 failed, 11 passedto12 passed, and passes with the versionfile set to 26.8, 26.9 and 26.10. Liveness is measured, not assumed: mutating the gate's
current-block membership test (
if name not in current_block...toif True:) reddens this cell,as does pinning its version resolution to
0.0; with the cell deselected, that first mutation isundetected by all 61 settings-history tests, so it is the only cell covering the gate's accept path.
check_style.pyis byte-identical to master.Note:
ci/tests/is slated for removal by #115650, which includes this file. This is the minimalunblock until that lands.
Closes: #116154
Workflow [PR]
Sync PR [sync-upstream/pr/116107]
Version info
26.9.1.46(included in26.9and later)