Repository navigation
ci(nightly): move the alias only after PyPI and npm publish - #2441
Merged
Merged
Conversation
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
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.
What and why
Part of #2452.
In
.github/workflows/nightly.ymlthealiasjob, which moves thenightlytag and release to the new night and then deletes per-night releases past retention, needed onlyselectandpublish. Thepypiandnpmjobs are its siblings, so a night whose registry upload failed still moved the alias and pruned. The run of 2026-11-17 shows it: the npm job failed and the alias job succeeded, leavingnightlyat a night whose Node client was not on npm.The alias job now needs
pypiandnpmas well. A failed upload leaves the per-night release published, the alias at the previous night and nothing pruned; re-running the failed jobs finishes the night (both registry jobs skip versions already uploaded).Behaviour change for maintainers: the alias and pruning now wait for the registry jobs, so they finish up to the PyPI job's 45-minute timeout later, and a registry outage holds the alias back until the jobs are re-run or the next night succeeds. No job or step is added.
Merge timing: this changes the nightly release workflow, so it is best merged after the night's snapshot has run rather than just before it.
How it was verified
TestNightlyReleasesAreAlwaysPrereleasesNeverLatestnow requires the alias job to needpypiandnpmand to carry noif:that could run it past a failed need. Against the workflow ondevelopit fails once per registry; with the change it passes.go test -count=1 ./tests/hygiene,go vet ./tests/hygiene,gofmt -l,actionlint .github/workflows/nightly.yml,scripts/check-doc-ids.py,scripts/changelog.py checkpass.develop. The fullmake testandmake lintwere not run locally.docs/project/nightly.mddescribes the new order.Checklist
make testandmake lintpass locallychanges/unreleased/<slug>.<section>.md, not as an edit toCHANGELOG.mdmake docs-countsrun if a gate count moved (compliance rows need nothing: the census is counted at docs build)F4,K5) in the body, docs, or changelogImplemented in session Fix OpenSysML CI, release and supply chain findings
Review with Devin · Open in Devin Desktop