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: customize comment based on status #694

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

giovanni-guidini
Copy link
Contributor

Customizes the bundle analysis PR comment based on the commit status outcome. matches designs in codecov/engineering-team#1491 except for the table warnings (we can't get a per-bundle percentage yet)

Removing some unit tests in favor of larger scoped ones in test_bundle_analysis.py

Customizes the bundle analysis PR comment based on the commit status outcome.
matches designs in codecov/engineering-team#1491 except for the table warnings (we can't get a per-bundle percentage yet)

Removing some unit tests in favor of larger scoped ones in `test_bundle_analysis.py`
@giovanni-guidini giovanni-guidini requested a review from a team September 6, 2024 14:30
@codecov-notifications
Copy link

codecov-notifications bot commented Sep 6, 2024

Codecov Report

Attention: Patch coverage is 96.77419% with 1 line in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files Patch % Lines
...rvices/bundle_analysis/notify/contexts/__init__.py 88.88% 1 Missing ⚠️

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #694   +/-   ##
=======================================
  Coverage   98.07%   98.07%           
=======================================
  Files         433      433           
  Lines       36768    36771    +3     
=======================================
+ Hits        36059    36063    +4     
+ Misses        709      708    -1     
Flag Coverage Δ
integration 98.07% <96.77%> (+<0.01%) ⬆️
latest-uploader-overall 98.07% <96.77%> (+<0.01%) ⬆️
unit 98.07% <96.77%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 95.96% <96.29%> (+0.01%) ⬆️
OutsideTasks 98.07% <96.77%> (+<0.01%) ⬆️
Files Coverage Δ
...ervices/bundle_analysis/notify/contexts/comment.py 98.88% <100.00%> (+0.13%) ⬆️
...s/bundle_analysis/notify/contexts/commit_status.py 100.00% <ø> (+1.19%) ⬆️
...ysis/notify/contexts/tests/test_comment_context.py 100.00% <100.00%> (ø)
...ervices/bundle_analysis/notify/messages/comment.py 100.00% <100.00%> (ø)
...dle_analysis/notify/messages/tests/test_comment.py 100.00% <100.00%> (ø)
...ices/bundle_analysis/tests/test_bundle_analysis.py 98.35% <100.00%> (ø)
...rvices/bundle_analysis/notify/contexts/__init__.py 99.07% <88.88%> (-0.93%) ⬇️

... and 1 file with indirect coverage changes

@codecov-qa
Copy link

codecov-qa bot commented Sep 6, 2024

Codecov Report

Attention: Patch coverage is 96.77419% with 1 line in your changes missing coverage. Please review.

Project coverage is 98.07%. Comparing base (6d955fe) to head (7d9dee9).
Report is 4 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...rvices/bundle_analysis/notify/contexts/__init__.py 88.88% 1 Missing ⚠️

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #694   +/-   ##
=======================================
  Coverage   98.07%   98.07%           
=======================================
  Files         433      433           
  Lines       36768    36771    +3     
=======================================
+ Hits        36059    36063    +4     
+ Misses        709      708    -1     
Flag Coverage Δ
integration 98.07% <96.77%> (+<0.01%) ⬆️
latest-uploader-overall 98.07% <96.77%> (+<0.01%) ⬆️
unit 98.07% <96.77%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 95.96% <96.29%> (+0.01%) ⬆️
OutsideTasks 98.07% <96.77%> (+<0.01%) ⬆️
Files with missing lines Coverage Δ
...ervices/bundle_analysis/notify/contexts/comment.py 98.88% <100.00%> (+0.13%) ⬆️
...s/bundle_analysis/notify/contexts/commit_status.py 100.00% <ø> (+1.19%) ⬆️
...ysis/notify/contexts/tests/test_comment_context.py 100.00% <100.00%> (ø)
...ervices/bundle_analysis/notify/messages/comment.py 100.00% <100.00%> (ø)
...dle_analysis/notify/messages/tests/test_comment.py 100.00% <100.00%> (ø)
...ices/bundle_analysis/tests/test_bundle_analysis.py 98.35% <100.00%> (ø)
...rvices/bundle_analysis/notify/contexts/__init__.py 99.07% <88.88%> (-0.93%) ⬇️

... and 1 file with indirect coverage changes

Copy link

codecov-public-qa bot commented Sep 6, 2024

Codecov Report

Attention: Patch coverage is 96.77419% with 1 line in your changes missing coverage. Please review.

Project coverage is 98.07%. Comparing base (6d955fe) to head (7d9dee9).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #694   +/-   ##
=======================================
  Coverage   98.07%   98.07%           
=======================================
  Files         433      433           
  Lines       36768    36771    +3     
=======================================
+ Hits        36059    36063    +4     
+ Misses        709      708    -1     
Flag Coverage Δ
integration 98.07% <96.77%> (+<0.01%) ⬆️
latest-uploader-overall 98.07% <96.77%> (+<0.01%) ⬆️
unit 98.07% <96.77%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 95.96% <96.29%> (+0.01%) ⬆️
OutsideTasks 98.07% <96.77%> (+<0.01%) ⬆️
Files Coverage Δ
...ervices/bundle_analysis/notify/contexts/comment.py 98.88% <100.00%> (+0.13%) ⬆️
...s/bundle_analysis/notify/contexts/commit_status.py 100.00% <ø> (+1.19%) ⬆️
...ysis/notify/contexts/tests/test_comment_context.py 100.00% <100.00%> (ø)
...ervices/bundle_analysis/notify/messages/comment.py 100.00% <100.00%> (ø)
...dle_analysis/notify/messages/tests/test_comment.py 100.00% <100.00%> (ø)
...ices/bundle_analysis/tests/test_bundle_analysis.py 98.35% <100.00%> (ø)
...rvices/bundle_analysis/notify/contexts/__init__.py 99.07% <88.88%> (-0.93%) ⬇️

... and 1 file with indirect coverage changes

Copy link

codecov bot commented Sep 6, 2024

Codecov Report

Attention: Patch coverage is 96.77419% with 1 line in your changes missing coverage. Please review.

Project coverage is 98.11%. Comparing base (6d955fe) to head (7d9dee9).
Report is 4 commits behind head on main.

Changes have been made to critical files, which contain lines commonly executed in production. Learn more

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...rvices/bundle_analysis/notify/contexts/__init__.py 88.88% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #694   +/-   ##
=======================================
  Coverage   98.11%   98.11%           
=======================================
  Files         475      475           
  Lines       38124    38127    +3     
=======================================
+ Hits        37405    37409    +4     
+ Misses        719      718    -1     
Flag Coverage Δ
integration 98.07% <96.77%> (+<0.01%) ⬆️
latest-uploader-overall 98.07% <96.77%> (+<0.01%) ⬆️
unit 98.07% <96.77%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.06% <96.29%> (+0.01%) ⬆️
OutsideTasks 98.07% <96.77%> (+<0.01%) ⬆️
Files with missing lines Coverage Δ
...ervices/bundle_analysis/notify/contexts/comment.py 98.88% <100.00%> (+0.13%) ⬆️
...s/bundle_analysis/notify/contexts/commit_status.py 100.00% <ø> (+1.19%) ⬆️
...ysis/notify/contexts/tests/test_comment_context.py 100.00% <100.00%> (ø)
...ervices/bundle_analysis/notify/messages/comment.py 100.00% <100.00%> (ø)
...dle_analysis/notify/messages/tests/test_comment.py 100.00% <100.00%> (ø)
...ices/bundle_analysis/tests/test_bundle_analysis.py 98.35% <100.00%> (ø)
...rvices/bundle_analysis/notify/contexts/__init__.py 99.07% <88.88%> (-0.93%) ⬇️

... and 1 file with indirect coverage changes

This change has been scanned for critical changes. Learn more

@giovanni-guidini giovanni-guidini added this pull request to the merge queue Sep 9, 2024
Merged via the queue into main with commit 30fa0ec Sep 9, 2024
24 of 27 checks passed
@giovanni-guidini giovanni-guidini deleted the gio/ba-pr-comment-warn branch September 9, 2024 11:49
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