Skip to content

Add test: local_blob_storage + metadata_type=plain combination has no stateless coverage - #103889

Closed
clickgapai wants to merge 2 commits into
ClickHouse:masterfrom
clickgapai:qa-bot/coverage-pr60396
Closed

clickgapai wants to merge 2 commits into
ClickHouse:masterfrom
clickgapai:qa-bot/coverage-pr60396

Conversation

@clickgapai

Copy link
Copy Markdown
Contributor

Found via ClickGap automated review. Please close or comment if this is incorrect or needs adjustment.

Retrospective finding from a historical scan of PR #60396 (merged 2024-03-13). Confirmed on current codebase — close with a note if already fixed.

This is a test-only PR — no source code changes. Please review: test quality, whether the claimed coverage gaps are real, and whether test output makes sense.

Adds test coverage for 1 untested code path(s), found during automated review of PR #60396.
That PR PR adds support for plain metadata_type with the new explicit disk configuration option (type = object_storage, object_storage_type = local_blob_storage, metadata_type = plain). The PR (1) introduces metadataTypeFromString to parse the metadata_type config value, (2) replaces the old `S3Plai

1. local_blob_storage + metadata_type=plain combination has no stateless coverage
src/Disks/DiskType.cpp:18, src/Disks/DiskObjectStorage/ObjectStorages/Local/LocalObjectStorage.cpp:423
Risk: Call chain: parser builds disk(...) AST -> ObjectStorageFactory resolves local_blob_storage -> MetadataStorageFactory::getMetadataType returns 'plain' -> metadataTypeFromString("plain") (Dis
What's unique vs PR tests: PR's integration test test_attach_backup_from_s3_plain/test.py exercises the same combination but only via BACKUP+ATTACH end-to-end with deduplicate_files=0 — it cannot run in fast PR pipelines and
Tags: -- Tags: no-fasttest — no-fasttest: FastTest build skips MergeTree object_storage features per FastTest convention; existing 02963_test_flexible_disk_configuration.sql which uses the same disk(...) inline syntax also carries no-fasttest.
Try it on ClickHouse Fiddle

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Not applicable — test-only change.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

@alexey-milovidov alexey-milovidov added the can be tested Allows running workflows for external contributors label May 2, 2026
@clickhouse-gh

clickhouse-gh Bot commented May 2, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [2949818]

Summary: ❌

job_name test_name status info comment
Config Workflow ERROR
Dockers Build (amd) DROPPED
Dockers Build (arm) DROPPED
Dockers Build (multiplatform manifest) DROPPED
Style check DROPPED
Code Review DROPPED
Docs check DROPPED
Docs check (Mintlify) DROPPED
Fast test DROPPED
CI Tests DROPPED

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label May 2, 2026
@clickgapai

Copy link
Copy Markdown
Contributor Author

CI check Finish Workflow failed, but the failure does not reference this PR's test (04201_local_blob_storage_plain_metadata).

This PR is test-only; the bot will not retrigger CI or modify the test to chase a failure that appears unrelated. If you believe the failure is related to this test, please comment with details and the bot will re-evaluate.

@clickgapai

Copy link
Copy Markdown
Contributor Author

This PR has accumulated 5 CI failures that don't reference its test, so the bot has not attempted any fix. Closing — please re-run CI or comment if you'd like the bot to look again.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ alexey-milovidov
❌ ClickGap AI Bot


ClickGap AI Bot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@clickgapai

Copy link
Copy Markdown
Contributor Author

CI failure in Config Workflow appears to be unrelated breakage and is not related to this change. Let me know if you'd like me to merge master and retrigger CI.

@zlareb1

zlareb1 commented Aug 10, 2026

Copy link
Copy Markdown
Member

@groeneai can you take this up and open a new PR?

@groeneai

Copy link
Copy Markdown
Collaborator

Taking this up. Triaged against master 2850e469dcac84b before answering.

This one needs a one-token fix before re-filing: line 34 asserts serverError TABLE_IS_READ_ONLY (242) but master throws 774 TABLE_IS_PERMANENTLY_READ_ONLY (src/Common/ErrorCodes.cpp:656). Worth noting how it hides: stdout matches the committed reference byte-for-byte while the test fails, because the mismatch is only on stderr. With the 774 name substituted it passes cleanly. I will re-file it fixed.

It will be re-filed as part of an area-grouped PR rather than its own PR, to keep reviewer load down (26 in this batch plus 18 from the earlier one today). Full triage and the grouping plan: #101781 (comment)

@groeneai

Copy link
Copy Markdown
Collaborator

Not re-filing this one, and here is the reason rather than silence.

The combination is already exercised. tests/integration/test_attach_backup_from_s3_plain/test.py:31 runs exactly local_blob_storage with metadata_type=plain, over both compact and wide parts, and it does so in the integration suite where the disk configuration is explicit rather than implied.

The test also does not pass as written: line 34 asserts TABLE_IS_READ_ONLY (242) while master throws TABLE_IS_PERMANENTLY_READ_ONLY (774) from StorageMergeTree.cpp:3658. That is not visible from a stdout diff, because stdout matches the committed reference byte-for-byte and the mismatch appears only on stderr.

Separately, a plain disk at a fixed relative path is a DiskSelector::recordDisk collision hazard when tests run in parallel, so this belongs in the integration suite for that reason too - which is where it already is.

The other six gaps from this batch's MergeTree/index group are resolved in #114305.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors pr-not-for-changelog This PR should not be mentioned in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants