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: associate past assets to current parsed bundle #486

Merged
merged 10 commits into from
Jun 4, 2024

Conversation

JerrySentry
Copy link
Contributor

@JerrySentry JerrySentry commented Jun 3, 2024

Followup to codecov/shared#231

Retrieve the previous bundle analysis report during processing of current bundle analysis report, then send it to BundleAnalysisReport.associate_previous_assets to process asset association.

closes: codecov/engineering-team#1768

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 changed the title May 29 ba use shared Bundle Analysis: associate past assets to current parsed bundle Jun 3, 2024
@@ -123,6 +123,41 @@ async def initialize_and_save_report(
db_session.flush()
return commit_report

Copy link
Contributor Author

@JerrySentry JerrySentry Jun 3, 2024

Choose a reason for hiding this comment

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

This file is the only real change to this PR, everything else is ruff generated fixes and unit tests.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why were there so many changes? are you using a different version of ruff and/or did we recently update it?

@codecov-staging
Copy link

codecov-staging bot commented Jun 3, 2024

Codecov Report

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

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #486      +/-   ##
==========================================
+ Coverage   97.24%   97.26%   +0.02%     
==========================================
  Files         412      412              
  Lines       34265    34393     +128     
==========================================
+ Hits        33321    33453     +132     
+ Misses        944      940       -4     
Flag Coverage Δ
integration 97.26% <99.28%> (+0.02%) ⬆️
latest-uploader-overall 97.26% <99.28%> (+0.02%) ⬆️
unit 97.26% <99.28%> (+0.02%) ⬆️

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

Components Coverage Δ
NonTestCode 94.42% <95.23%> (+0.03%) ⬆️
OutsideTasks 97.54% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/ai_pr_review.py 95.26% <100.00%> (ø)
services/bundle_analysis.py 97.25% <100.00%> (+0.15%) ⬆️
services/notification/notifiers/checks/base.py 98.12% <ø> (ø)
...ervices/notification/notifiers/comment/__init__.py 99.44% <ø> (ø)
.../notification/notifiers/mixins/message/__init__.py 100.00% <100.00%> (ø)
...s/notification/notifiers/mixins/message/helpers.py 92.00% <ø> (ø)
services/notification/notifiers/mixins/status.py 98.22% <100.00%> (ø)
...cation/notifiers/tests/integration/test_comment.py 93.03% <ø> (ø)
...s/notification/notifiers/tests/unit/test_checks.py 98.26% <ø> (ø)
.../notification/notifiers/tests/unit/test_comment.py 99.22% <ø> (ø)
... and 14 more

... and 1 file with indirect coverage changes

@codecov-qa
Copy link

codecov-qa bot commented Jun 3, 2024

Codecov Report

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

Project coverage is 97.26%. Comparing base (4fe84f0) to head (221376d).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #486      +/-   ##
==========================================
+ Coverage   97.24%   97.26%   +0.02%     
==========================================
  Files         412      412              
  Lines       34265    34393     +128     
==========================================
+ Hits        33321    33453     +132     
+ Misses        944      940       -4     
Flag Coverage Δ
integration 97.26% <99.28%> (+0.02%) ⬆️
latest-uploader-overall 97.26% <99.28%> (+0.02%) ⬆️
unit 97.26% <99.28%> (+0.02%) ⬆️

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

Components Coverage Δ
NonTestCode 94.42% <95.23%> (+0.03%) ⬆️
OutsideTasks 97.54% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/ai_pr_review.py 95.26% <100.00%> (ø)
services/bundle_analysis.py 97.25% <100.00%> (+0.15%) ⬆️
services/notification/notifiers/checks/base.py 98.12% <ø> (ø)
...ervices/notification/notifiers/comment/__init__.py 99.44% <ø> (ø)
.../notification/notifiers/mixins/message/__init__.py 100.00% <100.00%> (ø)
...s/notification/notifiers/mixins/message/helpers.py 92.00% <ø> (ø)
services/notification/notifiers/mixins/status.py 98.22% <100.00%> (ø)
...cation/notifiers/tests/integration/test_comment.py 93.03% <ø> (ø)
...s/notification/notifiers/tests/unit/test_checks.py 98.26% <ø> (ø)
.../notification/notifiers/tests/unit/test_comment.py 99.22% <ø> (ø)
... and 14 more

... and 1 file with indirect coverage changes

Copy link

codecov bot commented Jun 3, 2024

Codecov Report

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

Project coverage is 97.29%. Comparing base (4fe84f0) to head (221376d).

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

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #486      +/-   ##
==========================================
+ Coverage   97.27%   97.29%   +0.02%     
==========================================
  Files         443      443              
  Lines       34994    35122     +128     
==========================================
+ Hits        34040    34172     +132     
+ Misses        954      950       -4     
Flag Coverage Δ
integration 97.26% <99.28%> (+0.02%) ⬆️
latest-uploader-overall 97.26% <99.28%> (+0.02%) ⬆️
unit 97.26% <99.28%> (+0.02%) ⬆️

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

Components Coverage Δ
NonTestCode 94.47% <95.23%> (+0.03%) ⬆️
OutsideTasks 97.54% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/ai_pr_review.py 95.26% <100.00%> (ø)
services/bundle_analysis.py 97.25% <100.00%> (+0.15%) ⬆️
services/notification/notifiers/checks/base.py 98.12% <ø> (ø)
...ervices/notification/notifiers/comment/__init__.py 99.44% <ø> (ø)
.../notification/notifiers/mixins/message/__init__.py 100.00% <100.00%> (ø)
...s/notification/notifiers/mixins/message/helpers.py 92.00% <ø> (ø)
services/notification/notifiers/mixins/status.py 99.40% <100.00%> (ø)
...cation/notifiers/tests/integration/test_comment.py 93.03% <ø> (ø)
...s/notification/notifiers/tests/unit/test_checks.py 98.26% <ø> (ø)
.../notification/notifiers/tests/unit/test_comment.py 99.27% <ø> (ø)
... and 14 more

... and 1 file with indirect coverage changes

Related Entrypoints
run/app.tasks.notify.Notify

Copy link

codecov-public-qa bot commented Jun 3, 2024

Codecov Report

Attention: Patch coverage is 99.28571% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 97.26%. Comparing base (4fe84f0) to head (221376d).

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #486      +/-   ##
==========================================
+ Coverage   97.24%   97.26%   +0.02%     
==========================================
  Files         412      412              
  Lines       34265    34393     +128     
==========================================
+ Hits        33321    33453     +132     
+ Misses        944      940       -4     
Flag Coverage Δ
integration 97.26% <99.28%> (+0.02%) ⬆️
latest-uploader-overall 97.26% <99.28%> (+0.02%) ⬆️
unit 97.26% <99.28%> (+0.02%) ⬆️

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

Components Coverage Δ
NonTestCode 94.42% <95.23%> (+0.03%) ⬆️
OutsideTasks 97.54% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/ai_pr_review.py 95.26% <100.00%> (ø)
services/bundle_analysis.py 97.25% <100.00%> (+0.15%) ⬆️
services/notification/notifiers/checks/base.py 98.12% <ø> (ø)
...ervices/notification/notifiers/comment/__init__.py 99.44% <ø> (ø)
.../notification/notifiers/mixins/message/__init__.py 100.00% <100.00%> (ø)
...s/notification/notifiers/mixins/message/helpers.py 92.00% <ø> (ø)
services/notification/notifiers/mixins/status.py 98.22% <100.00%> (ø)
...cation/notifiers/tests/integration/test_comment.py 93.03% <ø> (ø)
...s/notification/notifiers/tests/unit/test_checks.py 98.26% <ø> (ø)
.../notification/notifiers/tests/unit/test_comment.py 99.22% <ø> (ø)
... and 14 more

... and 1 file with indirect coverage changes

@JerrySentry JerrySentry marked this pull request as ready for review June 3, 2024 20:44
Copy link
Contributor

@giovanni-guidini giovanni-guidini left a comment

Choose a reason for hiding this comment

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

LGTM

@JerrySentry JerrySentry added this pull request to the merge queue Jun 4, 2024
Merged via the queue into main with commit 13a87ce Jun 4, 2024
29 of 30 checks passed
@JerrySentry JerrySentry deleted the may_29_ba_use_shared branch June 4, 2024 14:21
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.

[Shared] When parsing generate mapping to link previous Asset to current Asset and store uuid
2 participants