Skip to content
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

[Backport 1.7.latest] Fix dbt deps failing on tarballs #9075

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Backport 017faf4 from #9068.

* tarball lockfile fix

* Add changie doc for tarball deps issue

* Add integration test for ensuring tarball package specification works

This test was written _after_ the fix was commited. However, I ran this
test against main without the fix and it failed. After running the test
with the tarball fix, it passed.

* Remove unnecessary `tarball` conditional logic in `PackageConfig.validate`

We had a conditional to skip validation for a package if the package
included the `tarball` key. However, this conditional always returned
false as it was nested inside a conditional that the package had the
default `package` key, which means it's not a tarball package, but a
package package (maybe we need better differentiation here). If we need
additional validation for tarballs down the road, we should do that one
level up. At this time we have no additional validaitons to add.

* Fix typos in changie doc for tarball deps issue

* Improve tarball package test naming and add related unhappy path test

* Remove unnecessary `setUp` fixture from tarball package tests

We initially included this fixture due to copy and pasting another
test. However, this `setUp` fixture isn't actually necessary for the
tarball dependency tests.

---------

Co-authored-by: Chenyu Li <chenyu.li@dbtlabs.com>
(cherry picked from commit 017faf4)
@github-actions github-actions bot requested a review from a team as a code owner November 14, 2023 19:39
@github-actions github-actions bot requested a review from aranke November 14, 2023 19:39
@cla-bot cla-bot bot added the cla:yes label Nov 14, 2023
Copy link

codecov bot commented Nov 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7eb6cdb) 86.56% compared to head (1f3c890) 86.55%.

Additional details and impacted files
@@              Coverage Diff               @@
##           1.7.latest    #9075      +/-   ##
==============================================
- Coverage       86.56%   86.55%   -0.02%     
==============================================
  Files             179      179              
  Lines           26541    26541              
==============================================
- Hits            22976    22972       -4     
- Misses           3565     3569       +4     
Flag Coverage Δ
integration 83.37% <ø> (-0.05%) ⬇️
unit 64.79% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@QMalcolm QMalcolm merged commit 67d8ce3 into 1.7.latest Nov 15, 2023
96 checks passed
@QMalcolm QMalcolm deleted the backport-9068-to-1.7.latest branch November 15, 2023 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants