Skip to content

The Cell acceptance fixture pins the locked clickhouse-connect 1.13.0 - #2381

Merged
zlareb1 merged 1 commit into
mainfrom
fix/cell-codec-pin
Dec 6, 2026
Merged

zlareb1 merged 1 commit into
mainfrom
fix/cell-codec-pin

Conversation

@zlareb1

@zlareb1 zlareb1 commented Dec 6, 2026 •

Copy link
Copy Markdown
Member

Related: #1832

Changelog category (leave one):

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

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 acceptance has failed on every scheduled run since its last pass on 12-01 (6434c27c0c, run 46564450353): runs 46798471010, 47023565551, 47254228436, 47469533414 and 47599921219. Each artifact's result.json reads error_type: Refused, phase native, at the gate's runtime(spec) call, with no verdict line printed. So the refusal comes from the spec checks fixture.runtime runs before its try.

#1832 (dependabot) moved clickhouse-connect in uv.lock from 1.9.0 to 1.13.0, between the passing head and the first failing one. fixture.CODEC_VERSIONS still pinned 1.9.0. dependencies(verify=True) reads version = "1.13.0" from the installed _version.py and refuses with frozen 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 with uv.lock, so the next bump that leaves the pin behind fails in its own PR. The fixture calls only clickhouse_connect.get_async_client and asyncpg.connect, so the pin moves without other changes. The creator test's fake _version.py now 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

  • Wire: none.
  • Operator steps: none.
  • Rollback: nothing left behind.

Tests

  • pytest tests/unit/test_cell_trigger_*.py tests/unit/test_bench_cell_trigger_gate.py (macOS): 1143 passed. The 4 test_shared_sanitizer_keeps_only_closed_pg_values failures and the 20 os.pidfd_open errors (Linux-only) are the same on clean main locally. CI runs these on Linux.
  • Cell nightly acceptance dispatched 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

  • Local format, lint, type checks and focused tests pass. The full make test-unit and applicable integration results are reported by CI; a full local run is not required before pushing.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers; the history goes in this description (tests/unit/test_public_copy.py).
  • Commits are signed off (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.lock by bumping clickhouse-connect in CODEC_VERSIONS from 1.9.0 to 1.13.0, so dependencies(verify=True) no longer refuses on frozen codec source version when the venv matches the lockfile.

The creator unit test that builds a fake venv now writes codec _version.py strings from fixture.CODEC_VERSIONS instead of hardcoded literals. test_the_codec_pins_match_the_lockfile asserts every entry in CODEC_VERSIONS matches the corresponding package version in uv.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.

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>
@vercel

vercel Bot commented Dec 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
loom-docs Ready Ready Preview Dec 6, 2026 10:18am UTC
loom-telemetry Ready Ready Preview Dec 6, 2026 10:18am UTC

Request Review

@zlareb1
zlareb1 merged commit 377ad6b into main Dec 6, 2026
78 of 82 checks passed
@zlareb1
zlareb1 deleted the fix/cell-codec-pin branch December 6, 2026 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant