Skip to content

feat(sourcemaps): Log the placeholder release name on artifact bundle assembly - #127101

Merged
mwarkentin merged 1 commit into
masterfrom
claude/gifted-faraday-nki4g5
Oct 13, 2026
Merged

mwarkentin merged 1 commit into
masterfrom
claude/gifted-faraday-nki4g5

Conversation

@mwarkentin

Copy link
Copy Markdown
Member

The assemble.artifact_bundle.placeholder_release log counts uploads whose release looks like a placeholder, but not which placeholder they send. For the env_var kind that hides which variable names are leaking into release names, such as VERCEL_GIT_COMMIT_SHA. A placeholder is a generic token or an environment variable's name, so log it.

Claude-Session: https://claude.ai/code/session_01WgDm3ijhQZQUHGAFFqQzKQ

… assembly

The `assemble.artifact_bundle.placeholder_release` log counts uploads whose
release looks like a placeholder, but not which placeholder they send. For
the `env_var` kind that hides which variable names are leaking into release
names, such as `VERCEL_GIT_COMMIT_SHA`. A placeholder is a generic token or
an environment variable's name, so log it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WgDm3ijhQZQUHGAFFqQzKQ
@mwarkentin
mwarkentin requested a review from a team as a code owner October 9, 2026 20:12
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 9, 2026
@mwarkentin
mwarkentin merged commit 22c31aa into master Oct 13, 2026
68 checks passed
@mwarkentin
mwarkentin deleted the claude/gifted-faraday-nki4g5 branch October 13, 2026 15:21
isaacs pushed a commit to getsentry/sentry-javascript that referenced this pull request Oct 16, 2026
…ars set to their own name (#25244)

Some builds have `VERCEL_GIT_COMMIT_SHA` set to the literal string
`VERCEL_GIT_COMMIT_SHA` instead of a SHA. Release auto-detection took
that value as the release name, so every build of the app uploaded its
source maps into, and reported events against, one release that never
changes.

This is not theoretical: Sentry has received source map uploads and
events whose release is the literal string `VERCEL_GIT_COMMIT_SHA` from
a number of organizations deploying on Vercel. Some were large enough to
contribute to [INC-2566](https://firetower.getsentry.net/INC-2566). How
those builds end up with that value is still being investigated;
getsentry/sentry#127101 logs the placeholder name at upload time to help
with that. This guard stops the value from becoming the release either
way.

Release detection in the bundler plugins and the Node and Vercel Edge
SDKs now skips a commit env var whose value is its own name, warns, and
moves on to the next candidate. Candidates are read in order and only
until one is found, so a placeholder is only warned about when it would
otherwise have become the release. In the bundler plugins, the Vercel
commit association in `setCommits` uses the same check, so a placeholder
SHA falls back to automatic commit association instead of being sent as
the commit.

Claude-Session: https://claude.ai/code/session_01WgDm3ijhQZQUHGAFFqQzKQ

Co-authored-by: Claude <noreply@anthropic.com>
@linear-code

linear-code Bot commented Oct 20, 2026

Copy link
Copy Markdown

PRODENG-2916

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.

4 participants