Skip to content

Conversation

@noahsmartin
Copy link
Contributor

Adds file id for install file which will be either the ipa or apk that gets uploaded from launchpad

@noahsmartin noahsmartin requested review from a team as code owners June 30, 2025 19:32
@github-actions github-actions bot added Scope: Frontend Automatically applied to PRs that change frontend components Scope: Backend Automatically applied to PRs that change backend components labels Jun 30, 2025
@github-actions
Copy link
Contributor

🚨 Warning: This pull request contains Frontend and Backend changes!

It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently.

Have questions? Please ask in the #discuss-dev-infra channel.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 30, 2025

This PR has a migration; here is the generated SQL for src/sentry/preprod/migrations/0007_add_install_file.py

for 0007_add_install_file in preprod

--
-- Add field installable_app_file_id to preprodartifact
--
ALTER TABLE "sentry_preprodartifact" ADD COLUMN "installable_app_file_id" bigint NULL;
CREATE INDEX CONCURRENTLY "sentry_preprodartifact_installable_app_file_id_26dbfd18" ON "sentry_preprodartifact" ("installable_app_file_id");

Copy link
Contributor

@chromy chromy left a comment

Choose a reason for hiding this comment

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

Lgtm!

# Size analysis wont necessarily be run on every artifact (based on quotas)
analysis_file_id = BoundedBigIntegerField(db_index=True, null=True)

install_file_id = BoundedBigIntegerField(db_index=True, null=True)
Copy link
Member

Choose a reason for hiding this comment

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

nit: can you add a better name for this like installable_{app|artifact}_file_id? a comment would also be helpful.

@codecov
Copy link

codecov bot commented Jun 30, 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   #94642      +/-   ##
==========================================
- Coverage   87.93%   87.93%   -0.01%     
==========================================
  Files       10418    10419       +1     
  Lines      602909   602917       +8     
  Branches    23448    23448              
==========================================
+ Hits       530144   530147       +3     
- Misses      72259    72264       +5     
  Partials      506      506              

@noahsmartin noahsmartin merged commit 0f00efd into master Jun 30, 2025
65 checks passed
@noahsmartin noahsmartin deleted the addPreprodInstallFile branch June 30, 2025 20:18
andrewshie-sentry pushed a commit that referenced this pull request Jul 14, 2025
Adds file id for install file which will be either the ipa or apk that
gets uploaded from launchpad
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 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 Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants