Repository navigation
tests/analyzer/shapes.txt holds the datasets' erasure and count statements - #296
Merged
Merged
Conversation
…ments The analyzer corpus runs after the main integration pass, which has failed on main since the datasets landed, so the shapes file was never checked against them. Regenerated with python -m tests.analyzer.corpus --write. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
9 tasks done
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.
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
tests/analyzer/test_corpus.py::test_shapes_file_matches_buildersfails onmain: "statement shapes changed: 19 new, 1 gone". In the integration job the analyzer corpus runs after the main pass. That pass was already failing onmainwhen the datasets landed (#266), so the corpus step was skipped and their shapes went unseen. It showed up when #290 made the corpus run whatever the gates before it did (run 42237393836, the isolation gates part).18 of the new shapes are the datasets' erasure statements over
loom.datasetsandloom.dataset_rows: the census's predicate counts, and the ingestion steps' (delete_ingestions_by_namespace,delete_ingestions_by_user) counts andALTER TABLE … DELETEby namespace, namespace list and user (#266 added both tables to_INGESTION_TABLESinserver/erasure/store/steps_memory.py). The 19th replaces the gone shape:schemas/schema.sql, which the corpus reads as one statement, gained the two dataset tables, so its shapeb9a1ccde64c2became7d94999c51b8.The same run's
test_every_shape_passes_the_analyzerpassed: the 18 dataset statements went throughEXPLAIN QUERY TREEon the migrated service, the deletes as their predicate over the same table. The schema shape is DDL, which the corpus lists as unchecked. This PR only records the shapes.Scope and risk
One generated file. No code changes.
Compatibility, rollout and rollback
Tests
python -m tests.analyzer.corpus --write # wrote 2073 shapesThe diff is the 19 additions and 1 removal that run 42237393836's failure lists, hash for hash.
pytest tests/analyzer/test_corpus.py -k shapes_file # 2 passed: the file matches the builders and is in written formThese two need no ClickHouse. This PR's own integration job runs the corpus only after the main pass, which fails on
maintoday, so it will likely skip the corpus again; #290 changes that order.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. The author read each new shape against the datasets' erasure statements.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make format-check,make lint,make typecheckandmake test-unitpass; the integration suite passes if server behaviour changed.main; no merged migration is edited.frontend/changed.docs/describe the system as it now is.git commit -s).🤖 Generated with Claude Code