Skip to content

fix(preprod): Enable downloads for uploaded APK artifacts#98812

Merged
runningcode merged 1 commit intomasterfrom
fix/apk-artifact-download
Sep 4, 2025
Merged

fix(preprod): Enable downloads for uploaded APK artifacts#98812
runningcode merged 1 commit intomasterfrom
fix/apk-artifact-download

Conversation

@runningcode
Copy link
Copy Markdown
Contributor

Summary

  • Fix APK artifact downloads that were previously blocked due to missing installable_app_file_id

Changes

Previously, uploaded APK files couldn't be downloaded because:

  • AAB files get converted to APK format during processing and populate installable_app_file_id
  • APK files are uploaded directly but installable_app_file_id remained null
  • Download logic requires non-null installable_app_file_id

This change automatically sets installable_app_file_id = file_id for APK artifacts when they transition to PROCESSED state, since APK files are already in installable format and don't need conversion like AAB files.

APK files that were uploaded as build artifacts couldn't be downloaded because their installable_app_file_id field remained null. Unlike AAB files which get converted to APK format during processing, APK files are already installable and don't need conversion.

When APK artifacts transition to PROCESSED state, automatically set installable_app_file_id to match file_id since APK files are already in installable format. This enables downloads using the same mechanism as converted AAB→APK files.
@runningcode runningcode requested a review from a team as a code owner September 4, 2025 16:41
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Sep 4, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #98812      +/-   ##
==========================================
- Coverage   81.20%   81.20%   -0.01%     
==========================================
  Files        8531     8531              
  Lines      376737   376715      -22     
  Branches    23892    23892              
==========================================
- Hits       305931   305911      -20     
+ Misses      70439    70437       -2     
  Partials      367      367              

@runningcode runningcode enabled auto-merge (squash) September 4, 2025 16:57
@runningcode runningcode merged commit 376ac6b into master Sep 4, 2025
65 checks passed
@runningcode runningcode deleted the fix/apk-artifact-download branch September 4, 2025 17:03
runningcode added a commit that referenced this pull request Sep 5, 2025
…8812)"

This would short-circuit the logic in launchpad which is not what we
want if we want to resign the APK.

This reverts commit 376ac6b.
armenzg pushed a commit that referenced this pull request Sep 5, 2025
## Summary

- Fix APK artifact downloads that were previously blocked due to missing
`installable_app_file_id`

## Changes

Previously, uploaded APK files couldn't be downloaded because:
- AAB files get converted to APK format during processing and populate
`installable_app_file_id`
- APK files are uploaded directly but `installable_app_file_id` remained
null
- Download logic requires non-null `installable_app_file_id`

This change automatically sets `installable_app_file_id = file_id` for
APK artifacts when they transition to PROCESSED state, since APK files
are already in installable format and don't need conversion like AAB
files.
runningcode added a commit that referenced this pull request Sep 5, 2025
…8812)" (#98887)

This would short-circuit the logic in launchpad which is not what we
want if we want to resign the APK.

This reverts commit 376ac6b.

<!-- Describe your PR here. -->

<!--

  Sentry employees and contractors can delete or ignore the following.

-->

### 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. and is
gonna need some rights from me in order to utilize my contributions in
this here 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.
andrewshie-sentry pushed a commit that referenced this pull request Sep 9, 2025
## Summary

- Fix APK artifact downloads that were previously blocked due to missing
`installable_app_file_id`

## Changes

Previously, uploaded APK files couldn't be downloaded because:
- AAB files get converted to APK format during processing and populate
`installable_app_file_id`
- APK files are uploaded directly but `installable_app_file_id` remained
null
- Download logic requires non-null `installable_app_file_id`

This change automatically sets `installable_app_file_id = file_id` for
APK artifacts when they transition to PROCESSED state, since APK files
are already in installable format and don't need conversion like AAB
files.
andrewshie-sentry pushed a commit that referenced this pull request Sep 9, 2025
…8812)" (#98887)

This would short-circuit the logic in launchpad which is not what we
want if we want to resign the APK.

This reverts commit 376ac6b.

<!-- Describe your PR here. -->

<!--

  Sentry employees and contractors can delete or ignore the following.

-->

### 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. and is
gonna need some rights from me in order to utilize my contributions in
this here 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.
@github-actions github-actions bot locked and limited conversation to collaborators Sep 20, 2025
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.

2 participants