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 v0.5 - GQL refresh #412

Merged
merged 12 commits into from
Feb 26, 2024
Merged

Bundle Analysis v0.5 - GQL refresh #412

merged 12 commits into from
Feb 26, 2024

Conversation

JerrySentry
Copy link
Contributor

@JerrySentry JerrySentry commented Feb 23, 2024

Note: Update Shared commit once codecov/shared#132 is pushed.

Add module and asset reporting for bundle analysis.

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.

@codecov-staging
Copy link

codecov-staging bot commented Feb 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@codecov-qa
Copy link

codecov-qa bot commented Feb 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.11%. Comparing base (7476249) to head (2e89df4).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #412      +/-   ##
==========================================
+ Coverage   96.08%   96.11%   +0.02%     
==========================================
  Files         637      637              
  Lines       16712    16819     +107     
==========================================
+ Hits        16058    16165     +107     
  Misses        654      654              
Flag Coverage Δ
unit 96.11% <100.00%> (+0.02%) ⬆️
unit-latest-uploader 96.11% <100.00%> (+0.02%) ⬆️

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

codecov-public-qa bot commented Feb 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7476249) 96.08% compared to head (2e89df4) 96.11%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #412      +/-   ##
==========================================
+ Coverage   96.08%   96.11%   +0.02%     
==========================================
  Files         637      637              
  Lines       16712    16819     +107     
==========================================
+ Hits        16058    16165     +107     
  Misses        654      654              
Flag Coverage Δ
unit 96.11% <100.00%> (+0.02%) ⬆️
unit-latest-uploader 96.11% <100.00%> (+0.02%) ⬆️

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 Feb 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.82%. Comparing base (7476249) to head (e84140c).

❗ Current head e84140c differs from pull request most recent head 2e89df4. Consider uploading reports for the commit 2e89df4 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##            main    #412     +/-   ##
=======================================
+ Coverage   95.79   95.82   +0.03     
=======================================
  Files        757     757             
  Lines      17295   17400    +105     
=======================================
+ Hits       16567   16672    +105     
  Misses       728     728             
Flag Coverage Δ
unit 96.11% <100.00%> (+0.02%) ⬆️
unit-latest-uploader 96.11% <100.00%> (+0.02%) ⬆️

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.

@JerrySentry JerrySentry marked this pull request as ready for review February 24, 2024 18:26
@JerrySentry JerrySentry requested a review from a team as a code owner February 24, 2024 18:26
@@ -42,6 +46,26 @@ def load_time_conversion(size):
return round((8 * size) / (1024 * 1024 * 3), 1)


def get_extension(filename: str) -> str:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this something that could be in shared? I'm trying to think what's a good etiquette we can adopt for knowing what should/shouldn't be in shared.

For instance, I can see this being shared logic, but there's not an apparent usecase for it atm, but in the future it would be 2x work to get move this you know

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I agree it is hard to determine if it should be in shared or not. My thinking (and current implementation) is that any data fetching and data aggregation should be in shared, whereas any form of data manipulation/transformation for the purpose of displaying the values to end users should be on their own codebases.

I suppose whenever the use case for PR comments to display the same info as the UI comes, then it may make more sense at that time to migrate this to shared.

@JerrySentry JerrySentry merged commit 3c48cfb into main Feb 26, 2024
19 of 20 checks passed
@JerrySentry JerrySentry deleted the ba_0.5_part_3 branch February 26, 2024 22:17
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.

None yet

2 participants