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

Feat: populate actual count of failures in run_results.json for passing tests #9657

Closed
wants to merge 7 commits into from
Closed

Conversation

tbog357
Copy link

@tbog357 tbog357 commented Feb 25, 2024

resolves #9808

Problem

I build a pipeline using dbt, which has tests run daily. I need to visualize those charts using the results returned in the run_results.json file. But turnout when tests are passed, the number of failures wasn't being populated.

So it would be nice if we could fetch failures even if tests are passed.

Solution

Return failures even if tests are passed.

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, or tests are not required/relevant for this PR
  • This PR has already received feedback and approval from Product or DX
  • This PR includes type annotations for new and modified functions

@tbog357 tbog357 requested a review from a team as a code owner February 25, 2024 07:03
@cla-bot cla-bot bot added the cla:yes label Feb 25, 2024
Copy link
Contributor

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

@jtcohen6
Copy link
Contributor

@tbog357 This sounds reasonable - could I ask you to open an issue explaining the need in slightly more detail? (I get it as, you may have failures even if they don't clear the bar of error_if / warn_if.) We'll just want to do a little bit of thinking to make sure this wouldn't be a behavior change that would surprise someone upon upgrade.

@dbeatty10 dbeatty10 added the community This PR is from a community member label Mar 22, 2024
@tbog357
Copy link
Author

tbog357 commented Mar 23, 2024

Hello @jtcohen6, thanks for your reply. I have added a issue #9808 and linked it to this PR

@tbog357 tbog357 changed the title Feat: populate failures even test are passed Feat: populate failures even test passed Mar 23, 2024
@dbeatty10 dbeatty10 changed the title Feat: populate failures even test passed Feat: populate actual count of failures in run_results.json for passing tests Apr 3, 2024
Copy link

codecov bot commented Apr 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.87%. Comparing base (1d3d315) to head (b68dd0e).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9657      +/-   ##
==========================================
- Coverage   88.92%   88.87%   -0.05%     
==========================================
  Files         180      180              
  Lines       22785    22786       +1     
==========================================
- Hits        20261    20251      -10     
- Misses       2524     2535      +11     
Flag Coverage Δ
integration 86.10% <100.00%> (-0.14%) ⬇️
unit 62.36% <0.00%> (-0.01%) ⬇️

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

Components Coverage Δ
Unit Tests 62.36% <0.00%> (-0.01%) ⬇️
Integration Tests 86.10% <100.00%> (-0.14%) ⬇️

@tbog357 tbog357 requested a review from dbeatty10 September 9, 2024 04:13
@tbog357 tbog357 closed this Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes community This PR is from a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Fetch fail_calc metrics even for passing tests
3 participants