Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement registry-version-check script #426

Open
thomashoneyman opened this issue Jun 15, 2022 · 1 comment
Open

Implement registry-version-check script #426

thomashoneyman opened this issue Jun 15, 2022 · 1 comment
Labels
CI help wanted Extra attention is needed
Milestone

Comments

@thomashoneyman
Copy link
Member

The packaging team regularly makes manual package sets releases. Manual releases are required, for example, when a package such as Halogen is upgraded. Invariably the new Halogen version will break other packages in the set, and so the Halogen release is not added at first. Over time the dependents upgrade to the new Halogen, at which point Halogen and its dependents can all be updated in one go to produce a new package set.

The packaging team needs to be able to tell what package versions have been uploaded to the registry and are more recent than the version of those packages in the package set. For example, if Halogen 6 is in the package set and Halogen 7 has been released (but could not be added automatically because it breaks downstream packages), then we need to be able to tell that there's a Halogen 7 release waiting to go into the package set.

To accomplish this, we need to add a new script to the registry. This script, most likely named Registry.Scripts.VersionCheck, should:

  1. Read in the contents of the most recent package set (this can be read from the package-sets repository for now, but it will use the registry in the future)
  2. Read in the contents of the metadata directory in the registry
  3. Find all packages with a latest version higher than its version in the package set
  4. Log those package versions to the console for review
@thomashoneyman
Copy link
Member Author

Some improvements for the future we might want to break out into other issues:

  1. It would be nice for this script to be usable to find packages that never got added to the package sets at all (for example, Halogen 7 came out, then a package based on it came out before Halogen 7 made it into the package sets). Otherwise, packages that didn't get added to the set and then don't have a release for some time risk never being added.
  2. It would be nice for this script to make a rudimentary attempt to batch packages together, perhaps based on version bounds, so that the packaging team is more likely to be able to put a valid batch into the package set. For example, it might be able to tell that the Halogen packages can all be added together. Or it might do the opposite, and represent that it is unlikely that a package can be added to the set based on its version bounds. This can help us prioritize.

@thomashoneyman thomashoneyman added this to the alpha-1 milestone Jun 15, 2022
@thomashoneyman thomashoneyman added the help wanted Extra attention is needed label Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant