-
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
Fire skipped events at debug level #10244
Conversation
Thanks for your pull request, and welcome to our community! We require contributors to sign our Contributor License Agreement and we don't seem to have your signature on file. Check out this article for more information on why we have a CLA. In order for us to review and merge your code, please submit the Individual Contributor License Agreement form attached above above. If you have questions about the CLA, or if you believe you've received this message in error, please reach out through a comment on this PR. CLA has not been signed by users: @nevdelap |
Thanks for your pull request, and welcome to our community! We require contributors to sign our Contributor License Agreement and we don't seem to have your signature on file. Check out this article for more information on why we have a CLA. In order for us to review and merge your code, please submit the Individual Contributor License Agreement form attached above above. If you have questions about the CLA, or if you believe you've received this message in error, please reach out through a comment on this PR. CLA has not been signed by users: @nevdelap |
@nevdelap Let me know if you need any guidance or want to pair to get this across the line 🙂 |
Thanks @QMalcolm. I expect I'll do some more on Monday. I see your link to where the tests are likely to go. If I have any trouble I'll ping you. 👍 CLA signed. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10244 +/- ##
===========================================
- Coverage 88.72% 63.22% -25.51%
===========================================
Files 180 180
Lines 22463 22470 +7
===========================================
- Hits 19931 14207 -5724
- Misses 2532 8263 +5731
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Thanks for signing the CLA - @cla-bot check |
The cla-bot has been summoned, and re-checked this pull request! |
For documentation purposes:As mentioned on the PR by @scottgigante (#9371), what we need to do before merging this is add a test for the added functionality to ensure we don't regress in the future. In the test(s) we should:
Here are some examples of tests that something exists in the run output. Additionally a good place for the test would be in test_fail_fast_run.py |
@QMalcolm I've added a couple of tests. Looking at how and where to put any tests in |
I see Test Log Schema tests failed because they're doing something slightly different than running the test by itself does, so I'll look at that. Done The Integration Tests against the different Python versions on different platforms failed for dependency version differences that are unrelated to these changes. |
# 1 snapshot | ||
assert "SKIP=1" in result.output | ||
# Skipping due to fail_fast is shown when --debug is specified. | ||
assert result.output.count("Skipping due to fail_fast") == 1 |
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.
I'll change this to a plain 'in' test.
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.
Thanks for doing this work, it looks great 🙂
Thanks @nevdelap for picking up where I left off! |
Closes #9371 |
Our codecov check is complaining. However, it's results don't really make sense. I'm gonna move forward with getting this merged. |
Thanks @scottgigante, thanks @QMalcolm! |
Resolves #8774. Picking up from Scott Gigantes #9371. Scott's not had the time to finish it off and has suggested I take a look.
TODO
Problem
If fail_fast, dbt prints hundreds of lines "Skipping due to fail_fast", hiding the actual cause of the error deep in bash history (sometimes too deep to read)
Solution
This moves the "Skipping due to fail_fast" to log level DEBUG. An alternative would be to a) drop it altogether or b) aggregate the results together to a "Skipping tasks due to fail_fast". This approach requires the least modification to the task results framework.
Checklist