Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

fix: handle None diffs in coverage change checks#1175

Merged
nora-shap merged 2 commits intomainfrom
autofix/fix-none-diff-coverage-checks
Mar 26, 2025
Merged

fix: handle None diffs in coverage change checks#1175
nora-shap merged 2 commits intomainfrom
autofix/fix-none-diff-coverage-checks

Conversation

@seer-by-sentry
Copy link
Copy Markdown
Contributor

👋 Hi there! This PR was automatically generated by Autofix 🤖

This fix was triggered by Nora Shapiro

Fixes WORKER-RHQ

  • Added checks for None diffs in _check_coverage_change and _check_uncovered_patch to prevent errors when no diff is available.
  • Added unit tests to verify the behavior when get_diff returns None.

If you have any questions or feedback for the Sentry team about this fix, please email autofix@sentry.io with the Run ID: 13763.

@seer-by-sentry
Copy link
Copy Markdown
Contributor Author

✅ Sentry found no issues in your recent changes ✅

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.72%. Comparing base (6196550) to head (e5719b3).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1175   +/-   ##
=======================================
  Coverage   97.72%   97.72%           
=======================================
  Files         453      454    +1     
  Lines       37117    37144   +27     
=======================================
+ Hits        36273    36300   +27     
  Misses        844      844           
Flag Coverage Δ
integration 42.79% <34.48%> (-0.01%) ⬇️
unit 90.55% <100.00%> (+<0.01%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codecov-notifications
Copy link
Copy Markdown

codecov-notifications Bot commented Mar 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@nora-shap nora-shap force-pushed the autofix/fix-none-diff-coverage-checks branch from 7ba2907 to e5719b3 Compare March 26, 2025 00:10
@nora-shap nora-shap requested a review from a team March 26, 2025 00:11
@nora-shap nora-shap marked this pull request as ready for review March 26, 2025 00:11
Copy link
Copy Markdown
Contributor

@Swatinem Swatinem left a comment

Choose a reason for hiding this comment

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

looks completely reasonable

@nora-shap nora-shap added this pull request to the merge queue Mar 26, 2025
Merged via the queue into main with commit d160920 Mar 26, 2025
28 of 29 checks passed
@nora-shap nora-shap deleted the autofix/fix-none-diff-coverage-checks branch March 26, 2025 20:37
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.

2 participants