Skip to content

Conversation

@NicoHinderling
Copy link
Contributor

@NicoHinderling NicoHinderling commented Jun 25, 2025

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 25, 2025
@codecov
Copy link

codecov bot commented Jun 26, 2025

Codecov Report

Attention: Patch coverage is 98.32636% with 4 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...oints/project_preprod_artifact_assemble_generic.py 97.22% 2 Missing ⚠️
src/sentry/preprod/tasks.py 93.93% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #94353      +/-   ##
==========================================
+ Coverage   86.60%   87.93%   +1.32%     
==========================================
  Files       10418    10418              
  Lines      602751   602894     +143     
  Branches    23451    23451              
==========================================
+ Hits       522009   530131    +8122     
+ Misses      80236    72257    -7979     
  Partials      506      506              

def test_download_preprod_artifact_success(self):
url = f"/api/0/internal/{self.organization.slug}/{self.project.slug}/files/preprodartifacts/{self.preprod_artifact.id}/"

headers = self._get_authenticated_request_headers(url)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i accidentally had the feature flag included in these tests. just cleaning it out

"organization_id": org_id,
},
)
set_assemble_status(
Copy link
Member

Choose a reason for hiding this comment

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

Does this need to update the DB record to an error state?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes we should, good call. i'll add

Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually this case is pretty much only if you try to upload a size analysis file before there's a corresonding preprodartifact row in the DB, so I'm not going to update the DB in this case. I added logic into the "update" endpoint to ensure we have the logic required to mark the artifacts as failed w the corresponding errors

@NicoHinderling NicoHinderling force-pushed the 06-25-feat_launchpad_create_preprocessing_update_endpoint branch from d728ac7 to ea3f3b3 Compare June 26, 2025 20:30
@NicoHinderling NicoHinderling force-pushed the 06-25-feat_launchpad_create_size_analysis_upload_assemble_endpoint branch from 9472cf4 to e997022 Compare June 26, 2025 20:30
@NicoHinderling NicoHinderling force-pushed the 06-25-feat_launchpad_create_size_analysis_upload_assemble_endpoint branch from e997022 to 519edfc Compare June 26, 2025 20:46
@NicoHinderling NicoHinderling force-pushed the 06-25-feat_launchpad_create_size_analysis_upload_assemble_endpoint branch from 519edfc to 3b07e6b Compare June 26, 2025 21:03
Base automatically changed from 06-25-feat_launchpad_create_preprocessing_update_endpoint to master June 26, 2025 21:22
@NicoHinderling NicoHinderling force-pushed the 06-25-feat_launchpad_create_size_analysis_upload_assemble_endpoint branch from 3b07e6b to a892807 Compare June 26, 2025 21:23
@NicoHinderling NicoHinderling force-pushed the 06-25-feat_launchpad_create_size_analysis_upload_assemble_endpoint branch from a892807 to 08275b7 Compare June 30, 2025 17:21
@NicoHinderling NicoHinderling merged commit 71cf5cf into master Jun 30, 2025
66 checks passed
@NicoHinderling NicoHinderling deleted the 06-25-feat_launchpad_create_size_analysis_upload_assemble_endpoint branch June 30, 2025 18:07
@sentry
Copy link

sentry bot commented Jul 1, 2025

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

Did you find this useful? React with a 👍 or 👎

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants