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: add asset filtering #633

Merged
merged 6 commits into from
Jun 26, 2024
Merged

bundle analysis: add asset filtering #633

merged 6 commits into from
Jun 26, 2024

Conversation

JerrySentry
Copy link
Contributor

@JerrySentry JerrySentry commented Jun 24, 2024

closes codecov/engineering-team#1898

passes the GQL filter options downstream to use the filtering capabilities provided in shared modules.

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.

@JerrySentry JerrySentry requested a review from a team as a code owner June 24, 2024 21:31
@codecov-notifications
Copy link

codecov-notifications bot commented Jun 24, 2024

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!

@codecov-qa
Copy link

codecov-qa bot commented Jun 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.54%. Comparing base (b15dead) to head (8b6373c).

✅ All tests successful. No failed tests found.

@@            Coverage Diff             @@
##             main     #633      +/-   ##
==========================================
+ Coverage   91.53%   91.54%   +0.01%     
==========================================
  Files         621      621              
  Lines       16533    16556      +23     
==========================================
+ Hits        15134    15157      +23     
  Misses       1399     1399              
Flag Coverage Δ
unit 91.54% <100.00%> (+0.01%) ⬆️
unit-latest-uploader 91.54% <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/report.py 100.00% <100.00%> (ø)
graphql_api/types/enums/__init__.py 100.00% <ø> (ø)
graphql_api/types/enums/enum_types.py 100.00% <ø> (ø)
graphql_api/types/enums/enums.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 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.54%. Comparing base (b15dead) to head (8b6373c).

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #633      +/-   ##
==========================================
+ Coverage   91.53%   91.54%   +0.01%     
==========================================
  Files         621      621              
  Lines       16533    16556      +23     
==========================================
+ Hits        15134    15157      +23     
  Misses       1399     1399              
Flag Coverage Δ
unit 91.54% <100.00%> (+0.01%) ⬆️
unit-latest-uploader 91.54% <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/report.py 100.00% <100.00%> (ø)
graphql_api/types/enums/__init__.py 100.00% <ø> (ø)
graphql_api/types/enums/enum_types.py 100.00% <ø> (ø)
graphql_api/types/enums/enums.py 100.00% <100.00%> (ø)
services/bundle_analysis.py 100.00% <100.00%> (ø)

Impacted file tree graph

Copy link

codecov bot commented Jun 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.94%. Comparing base (b15dead) to head (8b6373c).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##               main       #633   +/-   ##
===========================================
  Coverage   95.94000   95.94000           
===========================================
  Files           799        799           
  Lines         17850      17873   +23     
===========================================
+ Hits          17126      17149   +23     
  Misses          724        724           
Flag Coverage Δ
unit 91.54% <100.00%> (+0.01%) ⬆️
unit-latest-uploader 91.54% <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.

if BundleLoadTypes.ENTRY in load_types and (
BundleLoadTypes.INITIAL in load_types or BundleLoadTypes.LAZY in load_types
):
chunk_entry = None
Copy link
Contributor Author

Choose a reason for hiding this comment

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

if looking to retrieve by ENTRY or one of INITIAL/LAZY then it just cancels out.

elif BundleLoadTypes.INITIAL in load_types:
chunk_initial = True
elif BundleLoadTypes.LAZY in load_types:
chunk_initial = False
Copy link
Contributor

Choose a reason for hiding this comment

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

Lgtm, nit: make filtering fns chunk_entry/_initial for readability

@JerrySentry JerrySentry added this pull request to the merge queue Jun 26, 2024
Merged via the queue into main with commit 861b1d4 Jun 26, 2024
21 of 22 checks passed
@JerrySentry JerrySentry deleted the jun_24_filtering branch June 26, 2024 17:29
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] Pass filters into shared.BundleReport.*
2 participants