Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Feature/support dbt core1.7.x #922

Closed
wants to merge 11 commits into from

Conversation

kudryk
Copy link

@kudryk kudryk commented Apr 4, 2024

Description

This PR is building upon the work @salimmoulouel started with PR #919. There's a fix to limit Google protobuf version which this project doesn't use but dbt-core does; dbt-core is fixing that in version 1.8; as this PR is still focused on 1.7.x I've added it here.

resolves
#909
#880
#914

Integration tests

Adapter to test:

  • postgres

Python version to test:

  • 3.8
  • 3.9
  • 3.10
  • 3.11

@kudryk kudryk changed the title Feature/support dbt core1.7.x DRAFT: Feature/support dbt core1.7.x Apr 4, 2024
@@ -252,7 +252,7 @@ def test_selection(capfd):

def test_no_run_results(capfd):
with ProjectTemporaryDirectory() as tmp_dir:
shutil.rmtree(os.path.join(tmp_dir, "mockTarget"))
shutil.rmtree(os.path.join(tmp_dir, "mockTarget"), ignore_errors=True)
Copy link

Choose a reason for hiding this comment

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

This seems sketchy! Why do we have to ignore errors?

Copy link
Author

Choose a reason for hiding this comment

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

Perhaps I should have deleted the line instead. ProjectTemporaryDirectory() creates the temp directory but without mockTarget, yet rmtree will try to delete the entire tree assuming mockTarget exists, but as it doesn't, an exception is thrown. Unsure why this line was put there in the first place. I added ignore_errors as the rmtree API has been updated; perhaps this is a new python 3.11 behaviour.

Copy link
Author

Choose a reason for hiding this comment

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

@squat I've updated this test to check for the directory's existence first.

@kudryk kudryk changed the title DRAFT: Feature/support dbt core1.7.x Feature/support dbt core1.7.x Apr 5, 2024
@kudryk kudryk closed this Jun 3, 2024
@kudryk kudryk deleted the feature/support_dbt_core1.7.x branch June 3, 2024 21:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants