Repository navigation
The Cell acceptance fixture pins the locked clickhouse-connect 1.13.0 - #2381
Merged
Merged
Conversation
The fixture refuses a codec whose source version differs from its pin. The lockfile moved clickhouse-connect to 1.13.0 and the pin stayed at 1.9.0, so every nightly acceptance run refused before it started. A unit test compares the pins with uv.lock, so a lock bump that leaves them behind fails its own pull request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #1832
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
...
Why
Cell nightly acceptancehas failed on every scheduled run since its last pass on 12-01 (6434c27c0c, run 46564450353): runs 46798471010, 47023565551, 47254228436, 47469533414 and 47599921219. Each artifact'sresult.jsonreadserror_type: Refused, phasenative, at the gate'sruntime(spec)call, with no verdict line printed. So the refusal comes from the spec checksfixture.runtimeruns before itstry.#1832 (dependabot) moved
clickhouse-connectinuv.lockfrom 1.9.0 to 1.13.0, between the passing head and the first failing one.fixture.CODEC_VERSIONSstill pinned 1.9.0.dependencies(verify=True)readsversion = "1.13.0"from the installed_version.pyand refuses withfrozen codec source version. The nightly is the only job that runs this check, so the bump's own PR stayed green.This PR pins 1.13.0. A new unit test,
test_the_codec_pins_match_the_lockfile, compares the pins withuv.lock, so the next bump that leaves the pin behind fails in its own PR. The fixture calls onlyclickhouse_connect.get_async_clientandasyncpg.connect, so the pin moves without other changes. The creator test's fake_version.pynow takes its version from the pin.Scope and risk
The acceptance fixture's pin and its unit tests. No server code.
Compatibility, rollout and rollback
Tests
pytest tests/unit/test_cell_trigger_*.py tests/unit/test_bench_cell_trigger_gate.py(macOS): 1143 passed. The 4test_shared_sanitizer_keeps_only_closed_pg_valuesfailures and the 20os.pidfd_openerrors (Linux-only) are the same on cleanmainlocally. CI runs these on Linux.Cell nightly acceptancedispatched on this branch: https://github.com/ClickHouse/loom/actions/runs/47637585044 (about 2 hours).AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): Claude Code; I checked the failing artifacts, the lockfile history and the fixture's codec use.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make test-unitand applicable integration results are reported by CI; a full local run is not required before pushing.tests/unit/test_public_copy.py).git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code
Note
Low Risk
CI fixture pins and unit tests only; no server or runtime product code changes.
Overview
Aligns the Cell nightly acceptance fixture with
uv.lockby bumpingclickhouse-connectinCODEC_VERSIONSfrom 1.9.0 to 1.13.0, sodependencies(verify=True)no longer refuses onfrozen codec source versionwhen the venv matches the lockfile.The creator unit test that builds a fake venv now writes codec
_version.pystrings fromfixture.CODEC_VERSIONSinstead of hardcoded literals.test_the_codec_pins_match_the_lockfileasserts every entry inCODEC_VERSIONSmatches the corresponding package version inuv.lock, so a dependabot lock bump that forgets the pin fails in CI on that PR instead of only on the nightly job.Reviewed by Cursor Bugbot for commit d8071d5. Bugbot is set up for automated code reviews on this repo. Configure here.