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

Resolve notifier pull on demand #948

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Resolve notifier pull on demand #948

merged 1 commit into from
Dec 6, 2024

Conversation

Swatinem
Copy link
Contributor

@Swatinem Swatinem commented Dec 6, 2024

A recent change to load the repo_provider and pull ahead of time regressed the happy path of test results when no test failures are present. In that case, no notification has to be performed, so no repo_provider or pull is needed.

Additionally to fixing this regression, this also fixes the case when the pull is legitimately None, but the on-demand loading was trying to fetch it once again.


fixes a slight regression from #924

A recent change to load the `repo_provider` and `pull` ahead of time regressed the happy path of test results when no test failures are present.
In that case, no notification has to be performed, so no `repo_provider` or `pull` is needed.

Additionally to fixing this regression, this also fixes the case when the `pull` is legitimately `None`, but the on-demand loading was trying to fetch it once again.
@Swatinem Swatinem self-assigned this Dec 6, 2024
@Swatinem Swatinem requested a review from a team December 6, 2024 10:19
Copy link

codecov bot commented Dec 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.99%. Comparing base (96bed1f) to head (93ee90f).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #948   +/-   ##
=======================================
  Coverage   97.99%   97.99%           
=======================================
  Files         445      445           
  Lines       35754    35750    -4     
=======================================
- Hits        35036    35034    -2     
+ Misses        718      716    -2     
Flag Coverage Δ
integration 42.12% <90.90%> (+<0.01%) ⬆️
unit 90.63% <63.63%> (+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.

Copy link

github-actions bot commented Dec 6, 2024

✅ All tests successful. No failed tests were found.

📣 Thoughts on this report? Let Codecov know! | Powered by Codecov

@codecov-notifications
Copy link

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!

@Swatinem Swatinem added this pull request to the merge queue Dec 6, 2024
Merged via the queue into main with commit e45ac14 Dec 6, 2024
26 of 27 checks passed
@Swatinem Swatinem deleted the swatinem/ondemand-pull branch December 6, 2024 14:07
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