Skip to content

ClickHouse local tests use isolated storage - #1469

Open
zlareb1 wants to merge 1 commit into
mainfrom
fix/ci-clickhouse-local-storage
Open

zlareb1 wants to merge 1 commit into
mainfrom
fix/ci-clickhouse-local-storage

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 25, 2026

Copy link
Copy Markdown
Member

Related: #1313

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):

None.

Why

ClickHouse 26.11 persists the default clickhouse local data directory. Unit tests that each expect a fresh database collide on its status lock or see tables created by an earlier test.

Scope and risk

The shared unit-test helper supplies a temporary path for each stateless invocation. Stateful tests continue to supply their own directory so they can read back earlier writes.

Compatibility, rollout and rollback

  • Wire: none.
  • Operator steps: none.
  • Rollback: reverting restores the previous test fixture behavior.

Tests

  • Running two assistant run-read tests together reproduced the duplicate-table error with ClickHouse 26.11 on the affected CI merge commit, its first parent, and clean main.
  • pytest tests/unit/test_assistant_support.py tests/unit/test_agent_claim.py tests/unit/test_pending_grant_confers_nothing.py -q passed 147 tests on 26.10 and 147 on 26.11.
  • make format-check, make lint, and make typecheck passed.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated. Codex diagnosed the fixture collision, implemented the repair, and ran the checks above.

Checklist

  • Local format, lint, type checks and focused tests pass.
  • Commits are signed off.

ClickHouse persists its default local database path. Use a fresh path for each stateless fixture invocation so tests cannot share tables or locks.

Signed-off-by: zlareb1 <zlareb1@gmail.com>
@vercel

vercel Bot commented Nov 25, 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 Nov 25, 2026 12:54pm UTC
loom-telemetry Ready Ready Preview Nov 25, 2026 12:54pm UTC

Request Review

This branch has not been deployed

No deployments
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