Skip to content

feat(preprod): Add VCS parameters to snapshots upload command#3200

Merged
rbro112 merged 5 commits intomasterfrom
ryan/add_vcs_parameters_to_snapshots_upload_command
Mar 10, 2026
Merged

feat(preprod): Add VCS parameters to snapshots upload command#3200
rbro112 merged 5 commits intomasterfrom
ryan/add_vcs_parameters_to_snapshots_upload_command

Conversation

@rbro112
Copy link
Member

@rbro112 rbro112 commented Mar 10, 2026

Description

Adds vcs parameters to preprod snapshots upload command. Shares utilities with existing build upload command.

Issues

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.

@rbro112 rbro112 requested review from a team and szokeasaurusrex as code owners March 10, 2026 01:12
Copy link
Member Author

rbro112 commented Mar 10, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 10, 2026

Fails
🚫 Please consider adding a changelog entry for the next release.
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

### Features

- Add VCS parameters to snapshots upload command ([#3200](https://github.com/getsentry/sentry-cli/pull/3200))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description or adding a skip-changelog label.

Generated by 🚫 dangerJS against 99fb9c0

@rbro112 rbro112 changed the title Add VCS parameters to snapshots upload command feat(preprod): Add VCS parameters to snapshots upload command Mar 10, 2026
///
/// When `auto_collect` is false, only explicitly provided values are collected;
/// automatic inference from git repository and CI environment is skipped.
pub fn collect_git_metadata(
Copy link
Member Author

Choose a reason for hiding this comment

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

No new logic in here, just extracted to be usable from both upload.rs and snapshots.rs

Copy link
Member

@szokeasaurusrex szokeasaurusrex left a comment

Choose a reason for hiding this comment

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

Requesting changes because vcs.rs should go under src/utils, not src/commands, as it breaks the pretty consistent pattern of each file under src/commands corresponding to a subcommand. We should also probably be reusing VcsInfo.

I've left some other comments, too, but those are less important.

Copy link
Member

@szokeasaurusrex szokeasaurusrex left a comment

Choose a reason for hiding this comment

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

🚀

@rbro112 rbro112 merged commit 6d15ff1 into master Mar 10, 2026
24 of 25 checks passed
@rbro112 rbro112 deleted the ryan/add_vcs_parameters_to_snapshots_upload_command branch March 10, 2026 17:08
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.

3 participants