Skip to content

Conversation

rbro112
Copy link
Member

@rbro112 rbro112 commented Aug 6, 2025

Pending FK being added on PreprodArtifact to CommitComparison, this wires up the assemble endpoint to take VCS-related params and create the CommitComparison model. sentry-cli changes to come.

Notably, this removes the unused git_sha param in favor of the new fields.

@rbro112 rbro112 requested a review from a team as a code owner August 6, 2025 21:42
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 6, 2025
Copy link
Member Author

rbro112 commented Aug 6, 2025

@rbro112 rbro112 changed the title Add new vcs related fields to preprod artifact assemble endpoint feat(preprod): Add new vcs related fields to preprod artifact assemble endpoint Aug 6, 2025
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

Copy link

codecov bot commented Aug 6, 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   #97332      +/-   ##
==========================================
- Coverage   80.58%   80.58%   -0.01%     
==========================================
  Files        8557     8557              
  Lines      376463   376468       +5     
  Branches    24468    24468              
==========================================
  Hits       303375   303375              
- Misses      72718    72723       +5     
  Partials      370      370              


# Create CommitComparison if git information is provided
commit_comparison = None
if head_sha and head_repo_name:
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should be stricter and also require provider and head_ref?

base_repo_name=base_repo_name,
head_ref=head_ref,
base_ref=base_ref,
pr_number=pr_number,
Copy link
Member

Choose a reason for hiding this comment

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

Are you going to add FKs to the sentry.Commits table as well in this PR?

Copy link
Member Author

Choose a reason for hiding this comment

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

Chatted offline, will be doing this as a follow up given the Commit/Repository model could require additional information.

@rbro112 rbro112 force-pushed the ryan/add_new_vcs_related_fields_to_preprod_artifact_assemble_endpoint branch from 27de38e to 03be905 Compare August 7, 2025 18:09
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@rbro112 rbro112 force-pushed the ryan/add_new_vcs_related_fields_to_preprod_artifact_assemble_endpoint branch from a5b687e to de6b5e0 Compare August 8, 2025 02:27
cursor[bot]

This comment was marked as outdated.

@rbro112 rbro112 merged commit 3d1b80d into master Aug 8, 2025
65 checks passed
@rbro112 rbro112 deleted the ryan/add_new_vcs_related_fields_to_preprod_artifact_assemble_endpoint branch August 8, 2025 03:19
rbro112 added a commit to getsentry/sentry-cli that referenced this pull request Aug 11, 2025
Adds new VCS params as args to the `mobile-app` command and passes them
to the API (pending getsentry/sentry#97332).
Notably removes `sha` in favor of `head_sha`. Given this command is
still unreleased and marked experimental, this would usually be a
breaking change but I don't believe we need any backwards compatibility
here.

We'll implement default value providing for most of these as well in
follow ups, as I'd prefer to silo those implementations for easier
review && testing.
andrewshie-sentry pushed a commit that referenced this pull request Aug 12, 2025
…e endpoint (#97332)

Pending FK being added on PreprodArtifact to CommitComparison, this
wires up the assemble endpoint to take VCS-related params and create the
CommitComparison model. sentry-cli changes to come.

Notably, this removes the unused `git_sha` param in favor of the new
fields.
@github-actions github-actions bot locked and limited conversation to collaborators Aug 23, 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