Repository navigation
The dataset delete tests wait for the catalog's delete too and count it under FINAL - #369
Merged
Merged
Conversation
…it under FINAL knowledge.delete and knowledge.bulk_delete delete loom.dataset_rows and loom.datasets in two lightweight deletes, neither awaited. Two tests polled only the rows table and then read the catalog once, so a catalog mutation still queued made them fail although the code was right. They now poll both tables until both deletes have run, as the metadata-edit test beside them does, and _catalog_rows counts loom.datasets FINAL, so a second version of one catalog key is not counted twice. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
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
knowledge.deleteandknowledge.bulk_deletereachdatasets.forget_published, which issues two lightweight deletes, one onloom.dataset_rowsand one onloom.datasets, neither awaited (lightweight_deletes_sync = 0). Two tests intests/integration/test_knowledge_ingest_live.pypolled onlyloom.dataset_rowsand then read the catalog once, so a catalog mutation still queued behind the rows one failed the test although the code was right. The metadata-edit test beside them already waits for both.test_a_csv_table_is_a_typed_dataset_a_writer_approves_and_a_delete_removesandtest_a_bulk_delete_removes_each_sources_datasets_at_its_own_versionnow poll both tables until both deletes have run (for the bulk delete: b.csv's catalog gone and a.csv's down to the running ingest's one row)._catalog_rowscountsloom.datasets FINAL(aReplacingMergeTree), so a second version of one catalog key is not counted twice.Scope and risk
One integration test file. No server code.
Compatibility, rollout and rollback
Tests
tests/integration/test_knowledge_ingest_live.pyagainst a server from this branch, its own ClickHouse and the reference extractor: 12 passed, none skipped.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 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, and this description names any operator steps and wire changes.git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code