Skip to content

[2.0] ingestion: require collate-data-diff[dbt] so pytz installs again - #38270

Merged
Khairajani merged 2 commits into
2.0from
fix-2.0-data-diff-dbt-extra
Nov 20, 2026
Merged

Khairajani merged 2 commits into
2.0from
fix-2.0-data-diff-dbt-extra

Conversation

@Khairajani

@Khairajani Khairajani commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor
  • collate-data-diff 0.11.19 (released 2026-11-19) moved dbt-core behind a [dbt] extra. dbt-core was the only package pulling in pytz.
  • On 2.0, metadata/utils/time_utils.py imports pytz, so a fresh install fails with ModuleNotFoundError: No module named 'pytz' (e.g. metadata ingest -c pipelines/sample_data.yaml).
  • Requiring collate-data-diff[dbt] brings back yesterday's dependency set. uv pip install --dry-run -e ingestion now resolves collate-data-diff 0.11.19, dbt-core 1.12.7 and pytz 2026.6.
  • Also declares pytz directly in base, since time_utils imports it, so the install no longer depends on a transitive path.
  • Only 2.0 needs this: main switched time_utils to zoneinfo in Minor improvements #32474 and doesn't import pytz.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

Updates the ingestion dependencies for the 2.0 branch.

  • Fresh ingestion installs include the timezone and dbt dependencies.

Reviews (1) · Last reviewed commit: "[2.0] ingestion: declare pytz as a direc..." · Reviewed by Greptile

…install again

collate-data-diff 0.11.19 moved dbt-core behind a [dbt] extra. dbt-core was the
only thing pulling in pytz, which metadata.utils.time_utils imports, so a fresh
install fails with ModuleNotFoundError: No module named 'pytz'.
@Khairajani
Khairajani requested a review from a team as a code owner November 20, 2026 06:05
@Khairajani
Khairajani requested review from ulixius9 and removed request for a team November 20, 2026 06:05
@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.

Comment thread ingestion/setup.py Resolved
@Khairajani Khairajani added the safe to test Add this label to run secure Github workflows on PRs label Nov 20, 2026
@gitar-bot

gitar-bot Bot commented Nov 20, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk 1 closed / 1 findings

Adding the dbt extra and pytz changes ingestion's runtime dependency set, potentially affecting fresh-install resolution and package compatibility.

Requires collate-data-diff[dbt] and declares pytz directly in base requirements so metadata/utils/time_utils.py imports resolve on fresh 2.0 installs. Resolved the finding that pytz was imported directly but only installed transitively. No open issues found.

✅ 1 closed
✅ Quality: pytz is imported directly but still only installed transitively

📄 ingestion/setup.py:226-228
metadata/utils/time_utils.py is the only module that imports pytz, and pytz is still not listed in base_requirements. This PR brings it back through collate-data-diff[dbt] -> dbt-core -> pytz, which is the same indirect path that just broke when 0.11.19 moved dbt-core behind an extra. If dbt-core or the [dbt] extra stops pulling in pytz, fresh installs will fail again with ModuleNotFoundError. Declaring pytz directly in base_requirements fixes the actual missing dependency. You can keep the [dbt] extra only if the dbt-core features are needed at runtime, since the dbt-extractor floor below already assumes dbt-core is installed.

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

@Khairajani
Khairajani merged commit e07b952 into 2.0 Nov 20, 2026
69 of 73 checks passed
@Khairajani
Khairajani deleted the fix-2.0-data-diff-dbt-extra branch November 20, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants