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

refactor: introduce helpers and types #578

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

giovanni-guidini
Copy link
Contributor

Part 1 of the bundle analysis notify refactor.
This PR simply introduces NotificationType and helper functions to determine
what notifications are configured based on the current_yaml.

Some other helper functions are from the existing notify service slightly adjusted
to not depend on the class they are declared in

@giovanni-guidini giovanni-guidini changed the base branch from gio/refactor-bundle-notifier to main July 31, 2024 08:40
@codecov-staging
Copy link

codecov-staging bot commented Jul 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #578   +/-   ##
=======================================
  Coverage   97.50%   97.50%           
=======================================
  Files         414      417    +3     
  Lines       35002    35084   +82     
=======================================
+ Hits        34127    34209   +82     
  Misses        875      875           
Flag Coverage Δ
integration 97.50% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 97.50% <100.00%> (+<0.01%) ⬆️
unit 97.50% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.56% <100.00%> (+0.01%) ⬆️
OutsideTasks 97.73% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/bundle_analysis/new_notify/helpers.py 100.00% <100.00%> (ø)
...s/bundle_analysis/new_notify/tests/test_helpers.py 100.00% <100.00%> (ø)
services/bundle_analysis/new_notify/types.py 100.00% <100.00%> (ø)
services/notification/notifiers/base.py 92.59% <100.00%> (ø)

@codecov-qa
Copy link

codecov-qa bot commented Jul 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.53%. Comparing base (02be991) to head (a22bdab).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #578      +/-   ##
==========================================
+ Coverage   97.50%   97.53%   +0.03%     
==========================================
  Files         414      420       +6     
  Lines       35002    35234     +232     
==========================================
+ Hits        34127    34364     +237     
+ Misses        875      870       -5     
Flag Coverage Δ
integration 97.53% <100.00%> (+0.03%) ⬆️
latest-uploader-overall 97.53% <100.00%> (+0.03%) ⬆️
unit 97.53% <100.00%> (+0.03%) ⬆️

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

Components Coverage Δ
NonTestCode 94.63% <100.00%> (+0.08%) ⬆️
OutsideTasks 97.75% <100.00%> (+0.03%) ⬆️
Files Coverage Δ
services/bundle_analysis/new_notify/helpers.py 100.00% <100.00%> (ø)
...s/bundle_analysis/new_notify/tests/test_helpers.py 100.00% <100.00%> (ø)
services/bundle_analysis/new_notify/types.py 100.00% <100.00%> (ø)
services/notification/notifiers/base.py 92.59% <100.00%> (ø)

... and 13 files with indirect coverage changes

Copy link

codecov-public-qa bot commented Jul 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.53%. Comparing base (02be991) to head (a22bdab).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #578      +/-   ##
==========================================
+ Coverage   97.50%   97.53%   +0.03%     
==========================================
  Files         414      420       +6     
  Lines       35002    35234     +232     
==========================================
+ Hits        34127    34364     +237     
+ Misses        875      870       -5     
Flag Coverage Δ
integration 97.53% <100.00%> (+0.03%) ⬆️
latest-uploader-overall 97.53% <100.00%> (+0.03%) ⬆️
unit 97.53% <100.00%> (+0.03%) ⬆️

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

Components Coverage Δ
NonTestCode 94.63% <100.00%> (+0.08%) ⬆️
OutsideTasks 97.75% <100.00%> (+0.03%) ⬆️
Files Coverage Δ
services/bundle_analysis/new_notify/helpers.py 100.00% <100.00%> (ø)
...s/bundle_analysis/new_notify/tests/test_helpers.py 100.00% <100.00%> (ø)
services/bundle_analysis/new_notify/types.py 100.00% <100.00%> (ø)
services/notification/notifiers/base.py 92.59% <100.00%> (ø)

... and 13 files with indirect coverage changes

Copy link

codecov bot commented Jul 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.58%. Comparing base (02be991) to head (a22bdab).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #578      +/-   ##
==========================================
+ Coverage   97.55%   97.58%   +0.03%     
==========================================
  Files         449      455       +6     
  Lines       36208    36701     +493     
==========================================
+ Hits        35321    35813     +492     
- Misses        887      888       +1     
Flag Coverage Δ
integration 97.53% <100.00%> (+0.03%) ⬆️
latest-uploader-overall 97.53% <100.00%> (+0.03%) ⬆️
unit 97.53% <100.00%> (+0.03%) ⬆️

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

Components Coverage Δ
NonTestCode 94.74% <100.00%> (+0.08%) ⬆️
OutsideTasks 97.75% <100.00%> (+0.03%) ⬆️
Files Coverage Δ
services/bundle_analysis/new_notify/helpers.py 100.00% <100.00%> (ø)
...s/bundle_analysis/new_notify/tests/test_helpers.py 100.00% <100.00%> (ø)
services/bundle_analysis/new_notify/types.py 100.00% <100.00%> (ø)
services/notification/notifiers/base.py 92.72% <100.00%> (ø)

... and 13 files with indirect coverage changes

This change has been scanned for critical changes. Learn more

@giovanni-guidini giovanni-guidini force-pushed the gio/refactor/ba-notifier/helpers branch from 0909a53 to d335c05 Compare July 31, 2024 11:38
@giovanni-guidini giovanni-guidini requested a review from a team July 31, 2024 13:11
Part 1 of the bundle analysis notify refactor.
This PR simply introduces `NotificationType` and helper functions to determine
what notifications are configured based on the current_yaml.

Some other helper functions are from the existing notify service slightly adjusted
to not depend on the class they are declared in
@giovanni-guidini giovanni-guidini added this pull request to the merge queue Aug 1, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 1, 2024
@giovanni-guidini giovanni-guidini added this pull request to the merge queue Aug 1, 2024
Merged via the queue into main with commit f236938 Aug 1, 2024
25 of 26 checks passed
@giovanni-guidini giovanni-guidini deleted the gio/refactor/ba-notifier/helpers branch August 1, 2024 10:18
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