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

Fix minor test bug for WPM #527

Merged
merged 5 commits into from
Dec 7, 2023
Merged

Fix minor test bug for WPM #527

merged 5 commits into from
Dec 7, 2023

Conversation

benc-db
Copy link
Collaborator

@benc-db benc-db commented Dec 7, 2023

Description

Fixes minor test log bugs for WPM and long sessions.

Checklist

  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change to the "dbt-databricks next" section.

msg = res.results[0].message
assert "Compute resource alternate_warehouse does not exist" in msg
assert model_name in msg


@pytest.mark.skip("May fail non-deterministically due to issue in dbt test framework.")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't we be disable TestWarehousePerModel and leaving these ones to run. I though we should be disabling the tests that use the profiles_config_update fixture.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I feel like it's more valuable to validate the affirmative case, and even with the bug we identified, these additions to the profile shouldn't impact any other tests (since their schema's won't reference the compute block)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Discussed out of band. If we can't rely on read ordering, we can't guarantee this will read what it writes, so safer to keep the ones that don't need to write.

@benc-db benc-db merged commit 004ca00 into main Dec 7, 2023
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants