Repository navigation
Some pipeline improvements - #104
Merged
colinjlacy merged 1 commit intoDec 2, 2026
Merged
Conversation
…ok up registries in parallel Publishing is about to run after every generation on main, so two runs close together and many packages have to work. Repeated publishing: a run started soon after another can build a version that the registry has just received but does not list yet. PyPI now skips a file it already has (skip-existing). When npm refuses a publish or a first-release stage, the script asks npm again and skips the package if the version is there. When the Central Portal refuses an upload, the script asks Maven Central again and skips it if the version is there; otherwise it says the upload may still be publishing from another run and points to the Portal's deployments, since the Portal has no documented lookup by coordinates. Only missing versions: preflight now passes each registry's workflow only the versions that registry does not have, instead of all, so a release of one package no longer builds every package. An empty or malformed targets list is never sent, because an empty input means every package to those workflows. Parallel lookups: registries are asked side by side, 16 lookups at a time per registry. Lookups a registry throttles (429, 5xx) or that fail on the network are tried again 8 at a time, then one by one, with a pause before each round. Go versions come from one tag listing instead of one git ls-remote per package. The pull request card uses the same lookups. A preflight of every package in every language took 5 seconds against the live registries.
colinjlacy
approved these changes
Dec 2, 2026
colinjlacy
left a comment
Member
There was a problem hiding this comment.
All good additions. Nicely done.
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 this changes
Soon, publishing will run by itself after bindings are generated on main. Then two publish runs can start close together, and over time there will be many more packages. This PR gets the publish workflows ready for that.
1. Running publish twice is now safe
Sometimes a registry has received a new version but does not show it yet. If a second run starts in that moment, it tries to upload the same version again, and the registry refuses it. Now:
2. Only new versions are built
Before, the registry workflows got all packages, so a release of one package built every package. Now preflight sends each registry only the versions it does not have yet.
An empty package list is never sent, because the registry workflows read an empty list as "every package".
3. Registry lookups run in parallel
A preflight of all packages in all languages took about 5 seconds against the real registries.