Skip to content

feat(preprod): Parse cli_version from user agent on snapshot upload#115997

Draft
runningcode wants to merge 2 commits into
masterfrom
no/snapshot-cli-version
Draft

feat(preprod): Parse cli_version from user agent on snapshot upload#115997
runningcode wants to merge 2 commits into
masterfrom
no/snapshot-cli-version

Conversation

@runningcode
Copy link
Copy Markdown
Contributor

Summary

  • Parse the sentry-cli version from the User-Agent header during snapshot uploads and store it in the existing cli_version field on PreprodArtifact
  • Snapshot uploads go directly from sentry-cli to sentry (bypassing Launchpad), so the user agent is the only source of version info
  • Handles both sentry-cli/2.40.0 and sentry-cli/2.40.0 GitHub-Actions (with pipeline env suffix) formats

Fixes EME-1165

…EME-1165)

Snapshot uploads go directly from sentry-cli to the sentry backend,
bypassing Launchpad. The sentry-cli version was available in the
User-Agent header but never extracted. Parse it and store it in the
existing cli_version field on PreprodArtifact.
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 21, 2026
…er agent

SAGP and Fastlane both invoke sentry-cli with SENTRY_PIPELINE set,
which sentry-cli appends to the user agent. Parse all three tool
versions from the user agent string.
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 21, 2026

EME-1165

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

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant