-
Notifications
You must be signed in to change notification settings - Fork 9
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
Publishing packages.yaml together with packages does not work when using multiple branches. #107
Comments
To clarify, it was trivial to resolve the Paranal problem (#105) simply by uploading it again from the master branch, because the Paranal package is the same in all branches. However, solving OSIRIS is harder. The four options are:
|
I think the PyPi option might be worth considering in the long run, but probably too much effort for now... What I still don't fully understand is why every package version is updated in |
Regarding the OSIRIS and dev_maat issue, it seems if we go for the medium option, then the OSIRIS option no. 2. would work? Or indeed, if |
While we talk about all of these version issues, what do you think about using sematic versioning for IRDB instead of the date? |
Maybe; that's Chesterton's Fence. But I don't think it applies here, it seems to have grown the other way around. First there was only I think we can indeed just do with the filenames and remove relying on I think dates (a bit like CalVer) is fine for this purpose. As changes to the IRDB should also reflect changes to the hardware. I don't care much, but I don't think it is worth to change the versioning scheme. I've added tags for HAWKI-2023.06.14 and Paranal.2022.04.09 to the A bigger problem is that apparently we uploaded broken packages, see the HAWKI comment on #105. We should move towards an automatic scheme that prevents broken releases. A CalVer like scheme makes automation easier, because you don't have to have a human in the loop to decide whether the to-be-made release is a major, minor, or patch release. |
Considering these things, I do agree about the versioning scheme. But it's good to remind ourselves why we do things the way we do them :) If I would have created the code to download these things from the server, I probably would have either gone with hardcoded paths as well, or with (the url version of) glob. But the distinction in |
Today there was an issue (#105) that it was not possible to download the Paranal package.
That was because https://scopesim.univie.ac.at/InstPkgSvr/packages.yaml listed
Paranal.2022-04-09
as latest (and stable) version, but that package was not available in https://scopesim.univie.ac.at/InstPkgSvr/locations/ .Paranal.2022-04-09.zip
was probably never uploaded. This might not have been problematic, if indeedpackages.yaml
would have pointed to the correct file, which might have been the case for a while. However, I 'recently' (March) uploaded a new MICADO package. That publishing would also have uploadedpackages.yaml
, thereby breaking the Paranal download (for 3 months without anyone telling us). Not sure this was indeed the case though, as older version ofpackages.yaml
are not kept on the server.However, a similar problem is occurring with MAAT/OSIRIS.
packages.yaml
in thedev_maat
branch containsirdb/irdb/packages.yaml
Lines 45 to 49 in 23f7fba
while
packages.yaml
in themaster
branch (that I uploaded when uploading MICADO) containsirdb/irdb/packages.yaml
Lines 45 to 49 in 143264e
Only
OSIRIS.2023-01-13.zip
exists on https://scopesim.univie.ac.at/InstPkgSvr/instruments/ , but I overwrote thepackages.yaml
from thedev_maat
branch, so now it is not possible anymore to download OSIRIS.GTC and LaPalma are also broken, see AstarVienna/ScopeSim#225 .
I'm too wary right now to think about the proper solution to this problem. Some ideas, in order of increasing usefulness and difficulty:
master
branch (or perhaps thedev_master
branch for development packages). This would only require changes in our workflow, not in the code.packages.yaml
. The filenames (e.g.test_package.2022-04-27.dev.zip
contain all the relevant information already, so no need to consultpackages.yaml
at all. This requires code change though.@teutoburg what do you think?
The text was updated successfully, but these errors were encountered: