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

bundle analysis: assets can fetch true gzip size #642

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

JerrySentry
Copy link
Contributor

@JerrySentry JerrySentry commented Jun 26, 2024

closes codecov/engineering-team#1928

Fetch the actual asset gzip size from the bundle report instead of guessing its value. Also refactor the BundleData object a bit, so that it can be deleted soon because we won't need it.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@@ -20,7 +20,7 @@ factory-boy
fakeredis
freezegun
https://github.com/codecov/opentelem-python/archive/refs/tags/v0.0.4a1.tar.gz#egg=codecovopentelem
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To be updated to the latest shared commit on main once the PR is merged

@codecov-qa
Copy link

codecov-qa bot commented Jun 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.55%. Comparing base (7a2b8df) to head (ef09a60).

✅ All tests successful. No failed tests found.

@@           Coverage Diff           @@
##             main     #642   +/-   ##
=======================================
  Coverage   91.54%   91.55%           
=======================================
  Files         621      621           
  Lines       16555    16569   +14     
=======================================
+ Hits        15156    15170   +14     
  Misses       1399     1399           
Flag Coverage Δ
unit 91.55% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 91.55% <100.00%> (+<0.01%) ⬆️

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

Files Coverage Δ
graphql_api/types/bundle_analysis/base.py 100.00% <100.00%> (ø)
graphql_api/types/bundle_analysis/comparison.py 100.00% <100.00%> (ø)
graphql_api/types/bundle_analysis/report.py 100.00% <100.00%> (ø)
services/bundle_analysis.py 100.00% <100.00%> (ø)

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

Copy link

codecov-public-qa bot commented Jun 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.55%. Comparing base (7a2b8df) to head (ef09a60).
Report is 56 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #642   +/-   ##
=======================================
  Coverage   91.54%   91.55%           
=======================================
  Files         621      621           
  Lines       16555    16569   +14     
=======================================
+ Hits        15156    15170   +14     
  Misses       1399     1399           
Flag Coverage Δ
unit 91.55% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 91.55% <100.00%> (+<0.01%) ⬆️

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

Files Coverage Δ
graphql_api/types/bundle_analysis/base.py 100.00% <100.00%> (ø)
graphql_api/types/bundle_analysis/comparison.py 100.00% <100.00%> (ø)
graphql_api/types/bundle_analysis/report.py 100.00% <100.00%> (ø)
services/bundle_analysis.py 100.00% <100.00%> (ø)

Impacted file tree graph

Copy link

codecov bot commented Jun 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.95%. Comparing base (7a2b8df) to head (ef09a60).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@               Coverage Diff                @@
##               main       #642        +/-   ##
================================================
+ Coverage   95.94000   95.95000   +0.01000     
================================================
  Files           799        799                
  Lines         17872      17886        +14     
================================================
+ Hits          17148      17162        +14     
  Misses          724        724                
Flag Coverage Δ
unit 91.55% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 91.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

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!

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.

[API] Call the shared gzipSize function and return it
1 participant