Closed thomashoneyman closed 1 year ago
Note that this never affected batch uploads, and it doesn't seem to affect packages that are depended on by other packages in the set. So this most likely hasn't been an issue in previous package set releases.
Merging as this is affecting the current package set updater, but if needed I can circle back and address review comments.
The current package set updater is failing to add some packages (such as
jelly@0.7.0
), because it is relying on stale modules when installing a new version and compiling the package set. It is also incorrectly marking some packages as successful (such ascodec-argonaut@10.0.0
) for the same reason.The root of the issue is that we are reusing the same directory name for all versions of a package. For example,
codec-argonaut@9.2.0
is installed in the directorycodec-argonaut
. Then we compile everything, and go to installcodec-argonaut@10.0.0
. To do this, we delete thecodec-argonaut
directory, then reinstall the new version into a new directory of the same name. This is causing some confusion with the compiler, which in this case won't recompile the package at all and just reports a successful result.While
jelly
andcodec-argonaut
are failing for different reasons and with different results, both are fixed by always installing packages into a directory containing their version (ie.codec-argonaut@10.0.0
instead ofcodec-argonaut
). I've tested this out by running the package set updater locally for both of the affected packages, and I now see the expected success forjelly
and expected failure forcodec-argonaut
.You can test this locally yourself by running:
...adjusting the
PackageSetUpdater
module lookback from 24 hours to as far as you need to get some packages to upload, or manually changing thecandidates.accepted
field to include the packages you want to test