Skip to content

build(deps): Install sentry-protos from public PyPI - #132954

Draft
sentry-junior[bot] wants to merge 1 commit into
masterfrom
build/sentry-protos-public-pypi
Draft

sentry-junior[bot] wants to merge 1 commit into
masterfrom
build/sentry-protos-public-pypi

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Pins sentry-protos to the sfw index (Sentry's public PyPI mirror) in [tool.uv.sources], instead of internal pypi, and lets lint-requirements allow that one package from sfw. Every other package still has to come from internal pypi.

The locked 0.132.0 wheel is the same file on both indexes (sha256 aad2caa5…), so installs don't change. Only the URL in uv.lock moves. This is a pilot exception for DI-2492: unlike #115455, it opts out one package instead of every package that has upstream wheels.

Design

sentry-protos is pure Python (py3-none-any) and craft already publishes it to public PyPI. The internal pypi copy is the same wheel, so the getsentry/pypi round trip adds a PR and a wait to every release and protects nothing. The pilot:

  1. Consumers lock sentry-protos from sfw, which mirrors public PyPI with Socket's malware checks and serves new releases within minutes.
  2. sentry gets one rolling bump PR per release instead of hand-made bump PRs, dispatched by sentry-protos' release.
  3. sentry-protos stops publishing to internal pypi.

The allowlist lives in both pyproject.toml and tools/lint_requirements.py on purpose: an exception needs a change to the lint tool too, not only to pyproject.toml.

Rollout plan

Step PR Effect
1 this PR, getsentry/snuba#8762, getsentry/taskbroker#880 Lock sentry-protos from sfw. No install changes. Merge in any order.
2 #132952 Add rolling-bump-version.yml. Inert until something dispatches it.
3 getsentry/sentry-protos#559 Each release dispatches step 2's workflow. Needs step 2 on master.
4 getsentry/sentry-protos#560 Drop the sentry-pypi craft target. Needs all of step 1 merged.

After step 2 merges, a manual workflow_dispatch with sentry-protos and the newest version checks it end to end before step 3. To roll back step 4, put the craft target back and add the missed versions to getsentry/pypi. Steps 1 to 3 roll back by reverting.

Seer, launchpad, conduit, relay, and super-big-consumers already lock sentry-protos from sfw, so they need no change.

Decisions

  • Lock from sfw, not pypi.org. It matches what Dependabot and the other consumers already use. It serves without auth, so self-hosted builds and outside contributors can install from it.
  • The rolling bump PR needs a human approval to merge. It doesn't auto-merge.

via @joshuarli.

--

View Session [Sentry]

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 30, 2026
Pin sentry-protos to the sfw index (the public PyPI mirror) instead of
internal pypi, and let lint-requirements allow that one package from it.
The wheel is the same file on both indexes, so installs don't change.

Pilot for DI-2492.

Co-Authored-By: Joshua Li <14209781+joshuarli@users.noreply.github.com>
@sentry-junior
sentry-junior Bot force-pushed the build/sentry-protos-public-pypi branch from a768048 to 55a8692 Compare November 30, 2026 22:38
@linear-code

linear-code Bot commented Nov 30, 2026

Copy link
Copy Markdown

DI-3013

This branch has not been deployed

No deployments
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