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

Fixes dbt retry does not respect --threads #10591

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

donjin-master
Copy link
Contributor

Resolves #10584

Problem

Solving the problem when retry has been run. dbt does not respect a new --threads value when passed in on a retry.

Solution

Added the threads in ALLOW_CLI_OVERRIDE_FLAGS to fetch the thread value

Checklist

  • I have read the contributing guide and understand what's expected of me.
  • I have run this code in development, and it appears to resolve the stated issue.
  • This PR includes tests.

@donjin-master donjin-master requested a review from a team as a code owner August 22, 2024 07:03
@cla-bot cla-bot bot added the cla:yes label Aug 22, 2024
@github-actions github-actions bot added the community This PR is from a community member label Aug 22, 2024
Copy link

codecov bot commented Aug 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.11%. Comparing base (bba020f) to head (e3261ec).
Report is 175 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10591      +/-   ##
==========================================
+ Coverage   88.91%   89.11%   +0.19%     
==========================================
  Files         180      183       +3     
  Lines       22755    23765    +1010     
==========================================
+ Hits        20232    21177     +945     
- Misses       2523     2588      +65     
Flag Coverage Δ
integration 86.42% <ø> (+0.20%) ⬆️
unit 62.17% <ø> (-0.17%) ⬇️

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

Components Coverage Δ
Unit Tests 62.17% <ø> (-0.17%) ⬇️
Integration Tests 86.42% <ø> (+0.20%) ⬆️

Copy link
Contributor

@ChenyuLInx ChenyuLInx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @donjin-master for adding this patch!
LGTM in general, one small question about the tests


assert {n.node.name: n.status for n in results.results} == expected_statuses
assert results.args["threads"] == 1
write_file(models__thread_model, "models", "thread_model.sql")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this and the write_file above needed?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@donjin-master Hope you don't mind, I am removing the last line here and going to merge it afterwards

@graciegoheen graciegoheen added the ready_for_review Externally contributed PR has functional approval, ready for code review from Core engineering label Nov 4, 2024
@ChenyuLInx ChenyuLInx merged commit 3464be7 into dbt-labs:main Nov 26, 2024
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.9.latest cla:yes community This PR is from a community member ready_for_review Externally contributed PR has functional approval, ready for code review from Core engineering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] dbt retry does not respect --threads
4 participants