fix(release): split tracing environments from the root SDK's pypi/testpypi (#353)#370
Merged
haiyuan-eng-google merged 2 commits intoJul 16, 2026
Conversation
…tpypi (GoogleCloudPlatform#353) release.yml (root SDK, v* tags) and release-tracing.yml shared the pypi/testpypi environments, so the tracing-v* deployment restriction already applied to pypi blocks the next root v* production release — and restricting testpypi the same way would block its TestPyPI job. - release-tracing.yml now uses tracing-testpypi / tracing-pypi; release-promote is already tracing-specific and keeps its name. - Runbook: publisher Environment fields updated to the new names; one-time setup explains the split, restricts all three TRACING environments to tracing-v*, and leaves the root SDK's pypi/testpypi environments to their own v* rules. - Runbook adds the immutable-releases toggle protocol for the interim: enable immediately before tagging, verify immutable:true on the published tracing release, disable afterwards (not retroactive in either direction) — because the root SDK flow publishes the GitHub release first and has recovered versions by re-running a tag from a new SHA, which permanent immutability would break. Longer term: harden the root flow, then leave the setting on permanently.
14 tasks
haiyuan-eng-google
approved these changes
Jul 16, 2026
haiyuan-eng-google
merged commit Jul 16, 2026
5e6bcca
into
GoogleCloudPlatform:main
23 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cross-workflow collision fix from the #353 operational review — the root SDK's next
v*release is currently blocked:release.ymlpublishes through the sharedpypi/testpypienvironments, andpypialready carries the tracing pipeline'stracing-v*deployment restriction. Restrictingtestpypithe same way (as the tracker previously instructed) would have blocked its TestPyPI job too.Changes
release-tracing.yml:testpypi→tracing-testpypi,pypi→tracing-pypi(release-promoteis already tracing-specific). Header comments explain the split.producers/RELEASING.md: publisherEnvironmentfields updated to the new names (the Trusted Publisher bindings are not registered yet, so no migration); one-time setup creates/restricts the three tracing environments totracing-v*and leaves the root SDK'spypi/testpypito their ownv*rules; reviewer scoping moves totracing-pypi+release-promote.v0.3.4/v0.2.1by re-running a tag from a new SHA, which permanent immutability would break): enable viaPUT /repos/{repo}/immutable-releasesimmediately before tagging → publish → verifyimmutable: true→ disable (disabling is not retroactive). Longer term: harden the root flow so verification precedes publication, then leave it enabled permanently.Required GitHub-side follow-through after merge (deliberately NOT applied yet — Tier 3 settings): create
tracing-testpypi/tracing-pypiwith the reviewer/tag-rule configuration above, and restorepypi's deployment rule for the root SDK'sv*flow.547 producer tests pass; workflow YAML + all run blocks parse.
Part of #353.