Closed jburel closed 1 week ago
I understand the motivation to have a version-agnostic URL in the context of https://github.com/ome/omero-install/pull/292 but I am concerned about the implications of dropping the version numbers from the server artifact.
The first one that comes to mind is the server upgrade process. With this change, the artifact would become OMERO.server-ice36.zip
and be unpacked as OMERO.server-ice36
for any version. Extracting the binaries would then overwrite the same directory by default unless the former directory is itself renamed. In general I anticipate this would need modifications to the whole installation/upgrade instructions and it would be useful to look at the scope of these changes.
I wonder if this PR could be causing the build failure on merge-ci today? https://merge-ci.openmicroscopy.org/jenkins/job/OMERO-server/242/console
00:46:13 inflating: OMERO.server-5.6.3-522-bca4dbbfb5-ice36/sql/psql/OMERO5.4__0/views.sql
00:46:13 + rm -f OMERO.server.zip
00:46:13 + mv /home/omero/workspace/OMERO-server/OMERO.server /home/omero/workspace/OMERO-server/OMERO.server
00:46:13 mv: cannot stat '/home/omero/workspace/OMERO-server/OMERO.server': No such file or directory
00:46:13 Build step 'Execute shell' marked build as failure
@sbesson
This PR will create zip without version in the name
see https://github.com/jburel/openmicroscopy/releases/tag/5.6.14-test
when you download and the OMERO.server.zip and unzip it, it will create a folder OMERO.server-xxxx-ice3.6
where xxx is the tag name. Only the name of the zip is modified by this PR not the rest i.e. it should not overwrite cf. your comment
@will-moore Probably a small adjustment to the build step but I will exclude the PR for now
--exclude
Understood, and the job log linked from https://github.com/ome/openmicroscopy/pull/6414#issuecomment-2456640062 confirms that the archive prefix is unmodified and would still include the version of the application. In that case, I would agree the impact of this change will not be as large as I raised. I still suspect some sections of the installation documentations would need to be adjusted
Output of the last 2 commits: https://github.com/jburel/openmicroscopy/releases/tag/5.6.14-test1
Corresponding doc changes https://github.com/ome/omero-documentation/pull/2460
Looks like a67eddf is additionally dropping -ice36
from the prefix folder inside the zip archive. Is that on purpose?
It was on purpose but I am happy to keep it since this will not change between releases and it will be closer to the current redirects we have in place
In addition of the documentation, one workflow that came to mind in the last few days and might be reviewed against these naming changes is the Ansible deployment workflow which is used by IDR and the UoD production OMERO servers amongst other especially https://github.com/ome/ansible-role-omero-server
I appreciate and support the desire to take advantage of GitHub's content delivery network to speed up artifact downloads globally.
That said I'm not a fan of this change as I see it as an end user usability downgrade. Furthermore, at Glencoe we use omero.version
extensively and rely on unique artifact names so this change would result in us having to fork build.xml
. We, and I expect others, have code that parses the artifact names that would need to be updated to handle what's being proposed here.
Am I correct in my understanding that the change is solely to ensure that omero-install
does not need to be updated on a server release?
Thanks for the feedback.
Yes this is mainly to avoid changing the version in omero-install
(which is then updating the doc)
To avoid unexpected side effects, I will
This should ensure that the version bump occur
In case it helps I've also had good success with a redirects.include
or similar nginx snippet for consistent naming that gets included in the wider webserver configuration like:
...
location = /omero/5.6/server-latest {
return 302 https://github.com/ome/openmicroscopy/releases/latest/download/OMERO.server-5.6.13-ice36.zip;
}
...
This has the added advantage of the correct filename being in the result, not having to copy things around, a consistent URL, etc.
@chris-allan I was thinking about that too. That will be easier. I will adjust the automated script I have put in place to update the redirect to that effect
Humm, I was obviously jet-lag and tired I already put it in place
rewrite ^/omero/5.6.13/artifacts/OMERO.java-5.6.13-ice36.zip$ https://github.com/ome/openmicroscopy/releases/download/v5.6.13/OMERO.java-5.6.13-ice36.zip last;
I will need to check the sequence of redirects
Actually I had "last" instead of redirect in the config It should be faster now
This PR removes the version from the zip name to simplify installation when downloading from GH See https://github.com/ome/omero-install/pull/292 for background