-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 flaky test related to tracking events #3604
Conversation
cdee6ff
to
ba13465
Compare
@@ -9,6 +10,7 @@ | |||
import dbt.tracking | |||
import dbt.utils | |||
|
|||
pytestmark = pytest.mark.skip("Experimental parser generates events non-deterministically, skipping.") |
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.
Does this skip all the tests in this file? I don't see pytestmark
being used anywhere so I'm not sure how that works
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.
That is correct, it marks all tests in the module as skipped!
https://docs.pytest.org/en/stable/reference.html#globalvar-pytestmark
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.
Well, I thought it did. https://github.com/dbt-labs/dbt/pull/3604/checks?check_run_id=3124252846
3311ef3
to
94c3fa3
Compare
15261bb
to
19150ea
Compare
Created #3631 to address root cause. |
* skip all tracking event testing * Turn off tracking in tests that hits model parsing code path fix other random test that fails because global tracking.current_user exists but is null * pytest did not respect skip mark * fix gh actions
resolves #3561
Description
skipscomment out tests related to event tracking, these are testing non-deterministic behaviorChecklist
CHANGELOG.md
and added information about my change to the "dbt next" section.