Repository navigation
ci: guard master's prod plain-build default (and dev's dev default) - #1741
Merged
Merged
Conversation
provider-swift/Package.swift falls back to an environment when DARKBLOOM_RELEASE_ENVIRONMENT is unset. master must fall back to prod and dev to dev. scripts/provider-build-default.py reads that fallback and checks it for a target branch; it fails when it cannot find the fallback, so a change to Package.swift cannot turn the check off. - ci.yml, Release Integrity: checks the pull request's base branch, or the pushed branch (master -> prod, dev -> dev, others unchecked). - release-provider.yml, resolve-env: a staging or prod lane (master) stops before the build and signing unless the default is prod. - release-swift.yml and release-dev-branch.yml: the new script joins the push path lists, which test-provider-release-pipeline.py and test-release-dev-branch.py require to cover every release script and to stay equal. The dev lane does not run the check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The dispatched dev validation build also builds master's source. Skip the check only for a dev push. Tighten the build.md wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
davidtai
added a commit
that referenced
this pull request
Nov 3, 2026
Keeps dev's cluster suite jobs (#1737) and the build-default guard (#1741). The #1737 jobs (Cluster Runtime Tests, Cluster GPU Tests, Cluster Focused Checks) move to blacksmith-12vcpu-macos-27 like the other macOS jobs: their route fallback was already that label, so no job needs another runner. The per-shard route lanes from #1691 go away with the route's macOS lanes. cache-swift stays removed. The provider shards stay at eight. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 3, 2026
This branch had an error being deployed
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.
Goal
David, 2026-11-03: master must not default to DevNet. Commit 52079c0 on
dev("Keep the dev default for plain builds when this lands in dev") must never reach master. It sets the plain-build default inprovider-swift/Package.swifttodev. Master's history already has the older dev-only commit 431a93d, so this guard checks the file content, not ancestry.Change
scripts/provider-build-default.pyreads the?? "<default>"fallback ofDARKBLOOM_RELEASE_ENVIRONMENTinPackage.swiftand checks it for a target branch:masterneedsprod,devneedsdev, and other branches are not checked. If it does not find exactly one default line, it fails. A refactor ofPackage.swiftcannot turn it off.scripts/test-provider-build-default.pyholds the unit tests. They also pin the two workflow steps below..github/workflows/ci.yml, Release Integrity (noif:, so it runs on every PR and push): the target isgithub.base_ref || github.ref_name, which is the PR base or the pushed branch..github/workflows/release-provider.yml, jobresolve-env: every run except a dev push builds master's source (a tag, a master push, or a dispatch). Those runs check--branch masterafter the source checkout and beforeresolve-provider-release.sh. Every build, qualification, signing and publish job needsresolve-env. The release setsDARKBLOOM_RELEASE_ENVIRONMENTexplicitly, and the check still runs.release-swift.ymlandrelease-dev-branch.yml: the script is added to both push path lists. Existing tests require every release script to be in those lists and the two lists to stay equal. The dev lane itself does not run the check.docs/developer/build.md("Thedevbranch") anddocs/operations/provider-release.md.Before
After
Evidence
Throwaway draft PR #1740 "DO NOT MERGE: guard proof" was based on
master. It carried this guard and then a last commit that changed onlyPackage.swift(?? "prod"->?? "dev"). It is now closed and its branch is deleted.prodtarget 'master': plain-build default is 'prod', 8 tests OKdevprovider-build-default: target 'master' requires the plain-build default 'prod', but Package.swift defaults to 'dev'On this PR (base
dev), Release Integrity checks--branch devagainst dev'sdevdefault (see the checks below).Refactor Pass
An independent subagent got the diff and the goal. It returned PASS on correctness, with these findings:
inputs.environment != 'dev'). The dispatched dev validation build also builds master's source, so the check now keys on the source (github.ref != 'refs/heads/dev').Limits
pull_requestdefault types leave outedited).🤖 Generated with Claude Code