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

fix: Avoid key-error when inserting asset chunks #550

Merged
merged 6 commits into from
Mar 3, 2025

Conversation

ajay-sentry
Copy link
Contributor

@ajay-sentry ajay-sentry commented Feb 28, 2025

This PR updates some logic when creating associations to filter out assets that we don't have a mapping for when creating our asset_chunks prior to insertion.

Seeing around 40 instances of the error in the last week so not super wide spread but still worth fixing -> https://cloudlogging.app.goo.gl/Ckj7wYDciPS34nBb6

Closes codecov/engineering-team#3187

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-notifications
Copy link

codecov-notifications bot commented Feb 28, 2025

Codecov Report

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

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
shared/bundle_analysis/models.py 50.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link

codecov bot commented Feb 28, 2025

Codecov Report

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

Project coverage is 88.53%. Comparing base (bc3dd8d) to head (e97b3d9).
Report is 3 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
shared/bundle_analysis/models.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #550      +/-   ##
==========================================
+ Coverage   88.50%   88.53%   +0.03%     
==========================================
  Files         451      451              
  Lines       13107    13109       +2     
  Branches     1528     1528              
==========================================
+ Hits        11600    11606       +6     
+ Misses       1184     1180       -4     
  Partials      323      323              
Flag Coverage Δ
shared-docker-uploader 88.53% <50.00%> (+0.03%) ⬆️

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

codspeed-hq bot commented Feb 28, 2025

CodSpeed Performance Report

Merging #550 will create unknown performance changes

Comparing Ajay/fix-for-non-defined-assets (e97b3d9) with main (bc3dd8d)

Summary

⚠️ No benchmarks were detected in both the base of the PR and the PR.\

@ajay-sentry ajay-sentry added this pull request to the merge queue Mar 3, 2025
Merged via the queue into main with commit a9e7453 Mar 3, 2025
10 of 12 checks passed
@ajay-sentry ajay-sentry deleted the Ajay/fix-for-non-defined-assets branch March 3, 2025 18:01
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.

[Bundle Analysis] Uploads with non-JS files throws error when parsing
2 participants