Skip to content

ci(dist): ensure pushing to dev-static on stable update#4958

Open
rami3l wants to merge 1 commit into
rust-lang:mainfrom
rami3l:dist/cd-dev-static-on-stable
Open

ci(dist): ensure pushing to dev-static on stable update#4958
rami3l wants to merge 1 commit into
rust-lang:mainfrom
rami3l:dist/cd-dev-static-on-stable

Conversation

@rami3l

@rami3l rami3l commented Jul 13, 2026

Copy link
Copy Markdown
Member

Part of #4738.

During our release process, @Mark-Simulacrum wasn't able to find the required dev-static artifacts from the commit 69d7545 which is probably caused by our new release process disengaging stable from main.

This looks like a pre-existing bug, since the branch used for artifact uploading is semantically incorrect. However, this issue was unfortunately never exposed before since it used to be that stable was tracking main, thus with every stable we would want to release, the artifacts have been uploaded by a previous CI step on main.

This fix ensures that the dev-static uploads happen when stable is updated instead of in addition to main.

@rami3l rami3l requested review from Mark-Simulacrum and djc July 13, 2026 08:17
Comment thread .github/workflows/ci.yaml Outdated
aws-region: us-east-1
- name: Deploy build to rustup-builds bucket for release team
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.mode == 'release'
if: github.event_name == 'push' && github.ref == 'refs/heads/stable' && matrix.mode == 'release'

@Mark-Simulacrum Mark-Simulacrum Jul 13, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we want the condition here to be an OR. You can see how Rust's CI does this here: https://github.com/rust-lang/rust/blob/5503df87342a73d0c29126a7e08dc9c1255c46ad/.github/workflows/ci.yml#L82 -- note that all branches with approved commits upload.

The goal is that we have artifacts for every merged PR, which means that we can build e.g. a dev-static nightly at any time, bisect, etc. I think I'd want to achieve the same shape for rustup.

View changes since the review

@rami3l rami3l Jul 13, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@Mark-Simulacrum Thanks for the review! I think this predicate already exists in previous steps so I've copied it over.

@rami3l rami3l force-pushed the dist/cd-dev-static-on-stable branch 6 times, most recently from 9c36b65 to c4fa331 Compare July 13, 2026 15:15
@rami3l rami3l force-pushed the dist/cd-dev-static-on-stable branch from c4fa331 to d2de939 Compare July 13, 2026 15:16
@rami3l rami3l requested a review from Mark-Simulacrum July 13, 2026 15:38
@rami3l rami3l marked this pull request as ready for review July 13, 2026 15:38
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.

3 participants