Repository navigation
Add test for migrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cpp - #124652
alexbakharew merged 13 commits into
Conversation
…data.cpp` Test `05339_s3queue_ordered_migrate_to_buckets` for `migrateToBuckets` in `src/Storages/ObjectStorageQueue/ObjectStorageQueueOrderedFileMetadata.cpp`; written by the coverage agent, verified against the master coverage baselines, release hash 4b70b8a0337c.
|
Workflow [PR], commit [d50f39b] Summary: ✅ AI ReviewSummaryAdds a stateless test for ordered Missing context / blind spots
Final VerdictStatus: ✅ Approve from code review; current-head CI validation remains pending. LLVM Coverage ReportMeasured on commit d50f39b.
Changed lines: Uncovered code analysis did not run: No coverable C/C++ source files changed (contrib/ is excluded from coverage). Newly covered: +276 lines in 46 files (-149 lines lost coverage) · Details |
Repair round of the coverage agent for PR ClickHouse#124652; verified again against the master coverage baselines, release hash 42080a4b6183.
Repair round of the coverage agent for PR ClickHouse#124652; verified again against the master coverage baselines, release hash 9490efd61306.
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units6 translation units recompiled, 5 s compile time in total, 6 of them have a recent master baseline. |
Repair round of the coverage agent for PR ClickHouse#124652; verified again against the master coverage baselines, release hash 9b587c1a4a6f.
Repair round of the coverage agent for PR ClickHouse#124652; verified again against the master coverage baselines, release hash 023d5b010576.
Red jobs with failures that are not from this test: tests ['05243_query_condition_cache_top_k_parquet'], jobs []. CI attempt 1 of 5. Same content as c208e18, pushed by the coverage agent so that CI runs the red jobs again against the current master.
migrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cppmigrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cpp
migrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cppmigrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cpp
Red jobs with failures that are not from this test: tests ['04907_url_function_no_retry_after_cancel', '04952_projection_argumentless_function_json', '05029_url_function_schema_inference_hard_timeout_during_backoff', '05210_lightweight_update_materialized_cte_in_ignore'], jobs ['LLVM Coverage']. CI attempt 2 of 5. Same content as dc9047b, pushed by the coverage agent so that CI runs the red jobs again against the current master.
Red jobs with failures that are not from this test: tests [], jobs ['LLVM Coverage']. CI attempt 3 of 5. Same content as c9d92cd, pushed by the coverage agent so that CI runs the red jobs again against the current master.
Red jobs with failures that are not from this test: tests [], jobs ['LLVM Coverage']. CI attempt 4 of 5. Same content as 80623db, pushed by the coverage agent so that CI runs the red jobs again against the current master.
migrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cppmigrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cpp
Rerun CI after the fix of the LLVM Coverage baseline lookup (ClickHouse PR 125987): the previous runs failed only in jobs or tests that are not from this test. Manual retrigger by the owner, not a CI attempt of the agent. Same content as d5970a5, pushed by the coverage agent so that CI runs the red jobs again against the current master.
migrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cppmigrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cpp
migrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cppmigrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cpp
migrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cppmigrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cpp
migrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cppmigrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cpp
migrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cppmigrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cpp
migrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cppmigrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cpp
migrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cppmigrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cpp
migrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cppmigrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cpp
Repair round of the coverage agent for PR ClickHouse#124652; verified again against the master coverage baselines, release hash 75c0c3cb97e8.
migrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cppmigrateToBuckets in ObjectStorageQueueOrderedFileMetadata.cpp
Repair round of the coverage agent for PR ClickHouse#124652; verified again against the master coverage baselines, release hash 1b574cbf6697.
Repair round of the coverage agent for PR ClickHouse#124652; verified again against the master coverage baselines, release hash 4881ea14b3e0.
Test-only PR from the coverage agent. Review: is the gap real, is the test right.
Adds
tests/queries/0_stateless/05339_s3queue_ordered_migrate_to_buckets, which executes code that no stateless test on master executes:migrateToBucketsinsrc/Storages/ObjectStorageQueue/ObjectStorageQueueOrderedFileMetadata.cpp, lines 982-1098 (source at 6903c3f2b940). The function had 64 executable lines with 0 hits in the 4 LLVM coverage baselines of master (6903c3f, b5446bf, 6b5ed92, 9303f58).Why this test is needed: This test is needed because migrateToBuckets is a SQL-reachable candidate that changes Keeper metadata layout, and its uncovered path can silently break ordered object storage queue bucket migration under concurrency.
What the test asserts: This test asserts that a SQL-visible bucket migration preserves the processed-node state and handles concurrent migration outcomes without corrupting the metadata layout.
Measured on the CI coverage build of
6903c3f2b940. A line counts as uncovered only when it has 0 hits in all 4 baselines.tests/queries/0_statelessThe test was written by an AI agent (a Nerve worker on Claude) from a task of a deterministic census, verified by the gates above, and released under content hash
4b70b8a0337c. It was renumbered from05331_s3queue_ordered_migrate_to_bucketsat publication. The PR is a draft until a person has reviewed it. Replies to review comments come from the agent's owner, not from the agent.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Workflow [PR]
Sync PR [sync-upstream/pr/124652]
Version info
26.11.1.297-master(included in26.11and later)