-
Notifications
You must be signed in to change notification settings - Fork 204
update dbt package revision #2003
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughReplaced the versioned Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (1)
✨ Finishing Touches🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
|
👋 @ofek1weiss |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (2)
elementary/monitor/dbt_project/packages.yml (2)
4-5: Double-check repo layout: addsubdirectoryif package isn’t at repo root.If the dbt package lives under a folder (e.g., /elementary), dbt needs the subdirectory key.
Example (adjust path if needed):
- git: https://github.com/elementary-data/dbt-data-reliability.git revision: cbabcb2c348be2b4c45ad72c3b94e7800a52a542 + # subdirectory: elementary
7-13: Update the comment block to reflect the current state.Comments still suggest keeping the git pin commented for “unreleased CLI,” but we’ve now enabled a live git pin. Clarify why it’s active and when to revert to a tagged release.
Proposed tweak:
-# NOTE - for unreleased CLI versions we often need to update the package version to a commit hash (please leave this -# commented, so it will be easy to access) -#- git: https://github.com/elementary-data/dbt-data-reliability.git -# revision: f22a2387d19dddd73c8a506d1a9cbb08204f83f9 -# When releasing a new version of the package, if the current version is using a commit hash, update the version to the new version. +# NOTE: We are currently pinned to a commit due to unreleased CLI compatibility. +# When a compatible package version is released, switch back to a tagged version: +# - package: elementary-data/elementary +# version: <next-stable-version>
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
elementary/monitor/dbt_project/packages.yml(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: test / test
- GitHub Check: code-quality
🔇 Additional comments (1)
elementary/monitor/dbt_project/packages.yml (1)
4-5: dbt_utils version range is compatible—no change needed
The pinned dbt-data-reliability package declares dbt_utils >=0.8.0,<2.0.0, which fully encompasses our project's >=0.8.0,<0.9.0, so dependency resolution will succeed.
| - git: https://github.com/elementary-data/dbt-data-reliability.git | ||
| revision: cbabcb2c348be2b4c45ad72c3b94e7800a52a542 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Good move: pin to a commit for determinism; verify the ref and installation in CI.
- Pin looks correct (git + revision). Please:
- Verify the commit exists upstream and is reachable.
- Run dbt deps in CI to ensure install succeeds and macros remain compatible with this repo’s dbt/core + dbt_utils versions.
- Commit packages.lock (if your policy allows) to freeze dbt_utils resolution alongside this git pin.
Script to verify the commit exists:
Optional inline rationale comment:
packages:
- package: dbt-labs/dbt_utils
version: [">=0.8.0", "<0.9.0"]
- - git: https://github.com/elementary-data/dbt-data-reliability.git
+ # Pin to a specific commit due to unreleased CLI compatibility requirements.
+ - git: https://github.com/elementary-data/dbt-data-reliability.git
revision: cbabcb2c348be2b4c45ad72c3b94e7800a52a542🏁 Script executed:
#!/bin/bash
set -euo pipefail
REMOTE=https://github.com/elementary-data/dbt-data-reliability.git
REV=cbabcb2c348be2b4c45ad72c3b94e7800a52a542
git ls-remote "$REMOTE" | grep -qi "$REV" && echo "OK: revision found" || { echo "ERR: revision not found"; exit 1; }Length of output: 329
Invalid pinned revision in packages.yml
The commit cbabcb2c348be2b4c45ad72c3b94e7800a52a542 is not found in https://github.com/elementary-data/dbt-data-reliability.git, so dbt deps will fail.
- Update to a valid commit SHA, tag, or branch and confirm with
git ls-remote. - Rerun
dbt depsin CI to ensure installation succeeds and macros remain compatible with this repo’s dbt/core + dbt_utils versions. - Commit the updated
packages.lockto lock dbt_utils resolution alongside this pin.
🤖 Prompt for AI Agents
In elementary/monitor/dbt_project/packages.yml around lines 4-5 the pinned git
revision cbabcb2c348be2b4c45ad72c3b94e7800a52a542 is invalid; replace that
revision with a valid commit SHA, tag, or branch from
https://github.com/elementary-data/dbt-data-reliability.git (verify with git
ls-remote <repo> to pick a valid ref), then run dbt deps locally/CI to confirm
installation and macro compatibility with this repo’s dbt/core + dbt_utils
versions, update and commit the resulting packages.lock to lock the resolved
dbt_utils version, and push the changes.
null
Summary by CodeRabbit