Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .claude/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,15 @@
"Bash(git push * *:refs/heads/main)",
"Bash(git push --tags*)",
"Bash(git push * --tags*)",
"Bash(gh workflow run release*)",
"Bash(gh release create*)",
"Bash(docker * loom-blue*)",
"Bash(docker * loom-green*)",
"Bash(docker * loom-proxy*)",
"Bash(docker * loom-server*)",
"Bash(docker * loom-workers*)",
"Bash(git push *refs/tags/*)",
"Bash(git push *-d* v*.*)",
"Bash(git push * v*.* *-d*)",
"Bash(git push *:v*.*)",
"Bash(git push *--follow-tags*)",
"Bash(git push * main *)",
"Bash(git push *refs/heads/main*)",
Expand All @@ -114,7 +115,6 @@
"Bash(git push * --mirror*)",
"Bash(git push --all*)",
"Bash(git push * --all*)",
"Bash(git push * v*.*)",
"Bash(git -C * push*)",
"Bash(git -c * push*)",
"Bash(git * --output*)",
Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/loom-investigate-ci/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ gh run list --workflow ci.yml --branch main -L 5 --json conclusion,headSha,creat
| Job | Usual cause | Reproduce / fix |
| --- | --- | --- |
| `the ClickHouse release this run tests` (`ci.yml`, `docker-smoke.yml`) | the release lookup in `dev/clickhouse_release.sh` or the registry it reads | rerun once; if it fails again, run the script locally and read its error |
| `Quickstart (<arch>)` (`docker-smoke.yml`, on PRs and pushes to `main` or a `release/X.Y` line touching its `paths:`, weekly and on dispatch) | the image or its bundle, the quickstart stack, then the one-line installer in clean containers (`scripts/gates/installer_rehearsal.py`; its FAIL lines name the distribution they ran on); on a weekly or dispatched run, a scan step: a critical CVE with a fixed release in the image | the dashboard test dependencies CI installs first (`npm --prefix frontend ci && npx --prefix frontend playwright install chromium`, after `loom-dev-setup` §6's link check), `docker build -t "loom:smoke-$(basename "$PWD")" .`, then `python3 scripts/gates/docker_quickstart_smoke.py --image "loom:smoke-$(basename "$PWD")" --clickhouse-image <image>` (a tag per worktree: two sessions share the image store; `docker rmi` it afterwards), with the image from `bash dev/clickhouse_release.sh`. The rehearsal, with the tags fetched and Docker on `/var/run/docker.sock`: `python3 scripts/release/build_stack_bundle.py build --version <server __version__> --clickhouse-image <image> --output-dir <dir>`, then `python3 scripts/gates/installer_rehearsal.py --release-dir <dir> --upgrade --image <server image> --extractor-image <extractor image>`. A scan: build with `docker build --no-cache` (a cached apt layer keeps a fixed package), then `trivy image --severity CRITICAL --ignore-unfixed` on it names the package; move the pin that brings it in (a `Dockerfile` `ARG`, the base-image digest for a package the base image carries, or a lock file) |
| `Quickstart (<arch>)` (`docker-smoke.yml`, on PRs and pushes to `main` or a `release/X.Y` line touching its `paths:`, weekly and on dispatch) | the image or its bundle, the quickstart stack, then the one-line installer in clean containers (`scripts/gates/installer_rehearsal.py`; its FAIL lines name the distribution they ran on); on a run `scripts/gates/docker_smoke_gate.sh` gates (weekly, dispatched, a `Release X.Y.Z` PR or its merge commit, a `release/X.Y` line), a scan step: a critical CVE with a fixed release in the image | the dashboard test dependencies CI installs first (`npm --prefix frontend ci && npx --prefix frontend playwright install chromium`, after `loom-dev-setup` §6's link check), `docker build -t "loom:smoke-$(basename "$PWD")" .`, then `python3 scripts/gates/docker_quickstart_smoke.py --image "loom:smoke-$(basename "$PWD")" --clickhouse-image <image>` (a tag per worktree: two sessions share the image store; `docker rmi` it afterwards), with the image from `bash dev/clickhouse_release.sh`. The rehearsal, with the tags fetched and Docker on `/var/run/docker.sock`: `python3 scripts/release/build_stack_bundle.py build --version <server __version__> --clickhouse-image <image> --output-dir <dir>`, then `python3 scripts/gates/installer_rehearsal.py --release-dir <dir> --upgrade --image <server image> --extractor-image <extractor image>`. A scan: build with `docker build --no-cache` (a cached apt layer keeps a fixed package), then `trivy image --severity CRITICAL --ignore-unfixed` on it names the package; move the pin that brings it in (a `Dockerfile` `ARG`, the base-image digest for a package the base image carries, or a lock file) |
| `Repository-job sandbox under the shipped profiles` (`docker-smoke.yml`) | the AppArmor or seccomp profile, or a sandbox change the profile blocks | the profiles row of `loom-pre-push` §3 |
| `ruff + mypy-gate` (lint) | a generator `--check` is stale (the plugin sync also compares executable bits); ruff; function-length or mypy ratchet | `make lint`, `make typecheck`; run the named generator without `--check` and commit its output; split the long function |
| `pytest unit part k` | order dependence; two tests sharing a file or port while they run side by side; a fake that drifted; a snapshot; a migration number `main` took since your base (renumber per the `migrations` rule) | the reproduction in [`tests/README.md`](../../../tests/README.md), with the part's `LOOM_TEST_SHARD=k/6` on the commands that name `tests/unit`; update a snapshot only for an intended change |
Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/loom-pre-push/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Use this map to select local checks and inspect the matching CI jobs. Full integ
| `sdk/python/` | CI's "python sdk wheel" steps (job `sdk-python-package` in `.github/workflows/ci.yml`): `uv build sdk/python --out-dir dist`, a fresh Python 3.11 virtualenv with the wheel and its `Requires-Dist` installed at `--resolution lowest-direct`, then `scripts/gates/sdk_wheel_smoke.py dist/*.whl` in it; the server's 3.12 venv hides an undeclared dependency or a 3.12-only API |
| the files the hostile sandbox suite runs: `server/code/app/index/` `sandbox.py`, `egress.py`, `egress_relay.py`, `compiler_tier.py`, `gitrepo.py`, `server/core/hosts.py`, and `tests/unit/test_repo_job_sandbox*.py` | `LOOM_TEST_REQUIRE_SANDBOX=1 .venv/bin/python -m pytest tests/unit/test_repo_job_sandbox.py tests/unit/test_repo_job_sandbox_hostile.py -q` on a host where bubblewrap can create namespaces; without it the test fails here, as in CI. On a host where it cannot, push and read CI's `repository-job sandbox (real bubblewrap)` job; never install bubblewrap or change the user-namespace sysctl on a shared host |
| `deploy/apparmor/`, `dev/seccomp/`, `dev/docker-compose.colour.yml` | push and read `docker-smoke.yml`'s "Repository-job sandbox under the shipped profiles" job, which builds the image, loads the profile and runs the two sandbox suites in the container; the host test above never applies a profile. Reproduce that job only on a disposable VM: `apparmor_parser -r` replaces the profile host-wide, under any deployment's running repository jobs, and its sysctl changes every session's sandbox on that host |
| `docs/`, any `.md` | `.venv/bin/python -m pytest tests/unit/test_doc_links.py tests/unit/test_public_copy.py` |
| `docs/`, any `.md` | `.venv/bin/python -m pytest tests/unit/test_doc_links.py tests/unit/test_public_copy.py`, with `tests/unit/test_release_prepare.py` for a page with an install command that names a version (`clickhouse-loom==`, `clickhouse-loom[<extras>]==`, `@clickhouse/loom@`, `--ref v`) |

## 4. Read the regenerated diff

Expand Down
Loading
Loading