Skip to content

Support sdk_version: "prerelease" sentinel in cog.yaml#2862

Merged
michaeldwan merged 1 commit intomainfrom
md/sdk-prerelease-sentinel
Mar 24, 2026
Merged

Support sdk_version: "prerelease" sentinel in cog.yaml#2862
michaeldwan merged 1 commit intomainfrom
md/sdk-prerelease-sentinel

Conversation

@michaeldwan
Copy link
Member

Testers using RC builds have to hardcode sdk_version: "0.17.0rc2" in cog.yaml and bump it every time a new RC drops. That's friction for prerelease testing -- you end up pinging everyone to update their config.

This adds sdk_version: "prerelease" as a special value that generates uv pip install --pre cog with no version pin. Testers set it once, and each cog build picks up whatever the latest pre-release is. Once stable ships, builds transparently move to stable (pip prefers stable over RC of the same version). A build-time warning nudges folks to pin a specific version before going to production.

Related: #2832 (RC example project that currently hardcodes 0.17.0rc2)

Adds a special "prerelease" value for build.sdk_version that generates
`uv pip install --pre cog` without a version pin. This lets testers
always get the latest pre-release SDK without updating cog.yaml each
time a new RC is cut.

When stable ships, builds automatically move to stable. A build-time
warning nudges users to pin a specific version for production.
@michaeldwan michaeldwan marked this pull request as ready for review March 24, 2026 19:55
@michaeldwan michaeldwan requested a review from a team as a code owner March 24, 2026 19:55
Copy link
Contributor

@markphelps markphelps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@michaeldwan michaeldwan added this pull request to the merge queue Mar 24, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 24, 2026
@michaeldwan michaeldwan added this pull request to the merge queue Mar 24, 2026
Merged via the queue into main with commit 84f2c89 Mar 24, 2026
32 checks passed
@michaeldwan michaeldwan deleted the md/sdk-prerelease-sentinel branch March 24, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants