Skip to content

Fixes 37593: Keep bucket metrics off GCS child containers (2.0) - #37968

Merged
IceS2 merged 1 commit into
2.0from
backport/2.0/pr-37957
Nov 17, 2026
Merged

IceS2 merged 1 commit into
2.0from
backport/2.0/pr-37957

Conversation

@IceS2

@IceS2 IceS2 commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Describe your changes:

Fixes #37593

Backport of #37957 to 2.0, from merged commit f9e86dc1b2059cd981d4db83b16a6d503dae047d.

Structured GCS children leave numberOfObjects and size unknown 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:

  • Bug fix

High-level design:

Not applicable — direct backport of a small connector fix.

Tests:

Use cases covered

  • Structured and depth-expanded children have unknown object count and size.
  • Depth-expanded children retain their parent and schema; generated container requests leave both metrics unknown.
  • Bucket containers retain their totals.

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_check and 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, and elasticsearch8 are 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:

  • PR title follows the issue naming convention.
  • Linked issue via Fixes #37593.
  • Backported regression coverage and listed local results.
  • Reviewed c95688f9ef14f2192b3c19e24d9ae1ffe4391030; no blocking findings. gcs/metadata.py is covered by StorageUnitTest.test_generate_structured_container and test_generate_unstructured_container.
  • Comments and schema migrations: not applicable — straightforward assignments and no schema changes.

RetriggerView in GreptileConfidence Score: 5/5

This PR appears safe to merge.

Summary

Stops structured GCS child containers from receiving bucket totals.

  • Structured GCS children leave bucket-wide totals unknown.

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

@IceS2
IceS2 requested a review from a team as a code owner November 17, 2026 10:16
@IceS2
IceS2 requested review from harshsoni2024 and removed request for a team November 17, 2026 10:16
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@gitar-bot

gitar-bot Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Setting 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 numberOfObjects and size unknown instead of inheriting bucket totals, while bucket containers keep their metrics. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@IceS2
IceS2 merged commit 097be36 into 2.0 Nov 17, 2026
66 of 69 checks passed
@IceS2
IceS2 deleted the backport/2.0/pr-37957 branch November 17, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant