Repository navigation
Fixes 37593: Keep bucket metrics off GCS child containers (2.0) - #37968
Conversation
(cherry picked from commit f9e86dc)
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved 🟡 Medium riskSetting object-count and size metrics to None for structured GCS children changes ingestion output; consumers may see those metrics as unavailable. Backports the GCS structured child container fix so that structured and depth-expanded children leave VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Fixes #37593
Backport of #37957 to
2.0, from merged commitf9e86dc1b2059cd981d4db83b16a6d503dae047d.Structured GCS children leave
numberOfObjectsandsizeunknown instead of receiving bucket totals. Bucket containers retain their metrics. The fix and regression tests applied without conflicts; the patch ID matches the merged change.Type of change:
High-level design:
Not applicable — direct backport of a small connector fix.
Tests:
Use cases covered
Unit tests
Updated
ingestion/tests/unit/topology/storage/test_gcs_storage.py.On the 2.0 source with models regenerated from its schemas:
python -m pytest ingestion/tests/unit/topology/storage/ ingestion/tests/unit/source/storage/gcs/ -q— 361 passed, 2 warnings.make -C ingestion py_format_checkand commit hooks passed.Focused Basedpyright on
ingestion/src/metadata/ingestion/source/storage/gcs/metadata.py, using the release branch baseline — 0 errors, 0 warnings.The full Basedpyright run reported 7 missing-import errors in unchanged Delta Lake/Spark and Elasticsearch modules (
pyspark,delta,deltalake, andelasticsearch8are absent from the local environment). Coverage percentage was not measured.Backend integration tests
Not applicable — no backend, schema, or API changes.
Ingestion integration tests
Not run. Live GCS ingestion and clearing previously stored child metrics remain unverified; local tests cover container details and request payloads.
Playwright (UI) tests
Not applicable — no UI code changes.
Manual testing performed
No live cloud or UI run performed. Validation used the local automated checks above.
UI screen recording / screenshots:
Not applicable — no UI code changes.
Checklist:
Fixes #37593.c95688f9ef14f2192b3c19e24d9ae1ffe4391030; no blocking findings.gcs/metadata.pyis covered byStorageUnitTest.test_generate_structured_containerandtest_generate_unstructured_container.

Confidence Score: 5/5
This PR appears safe to merge.Summary
Stops structured GCS child containers from receiving bucket totals.
No actionable issues found. Tests were not run during this review.
Reviews (1) · Last reviewed commit: "Fix GCS structured child container metri..." · Reviewed by Greptile