-
Notifications
You must be signed in to change notification settings - Fork 150
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
Set up 'latest' dirs for each existing plugin #143
Conversation
712da40
to
285974f
Compare
@amisevsk I am not sure it's a good idea to have that automated. I mean I may want to add a |
@l0rd I agree on the automation aspect, but the alternative is maintaining If we don't want to go in this direction I'm fine with closing this PR, but have reservations about allowing |
I also think that next != latest (for che-theia next should be latest stable and not the current master branch for example) |
@benoitf Are we sure on that? We're currently not releasing versions of theia here, so |
Bit a force-push mess fixing shellcheck issues, but the latest changes are:
@l0rd PTAL. |
@amisevsk the 1.0.0 was used for latest (and it's strange as well as we update continuously 1.0.0 to the che-theia:latest image) so AFAIK it's more the 1.0.0 version that should be considered as |
@benoitf Makes sense; I'll update the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, interesting approach with symlinks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks @amisevsk
New changes:
@ibuziuk @l0rd If you have a moment, please reapprove since this changes CI somewhat and could interfere with some of the open PRs we have. |
@benoitf Update since I almost forgot: to double check, I should update |
@amisevsk That said I would continue to use @benoitf are you ok with this approach? |
To add a blocker to this being merged: this results in plugins with version |
I'm working on the duplicate plugin issue mentioned above and it brings up a question about how we treat
Another, alternate proposal: create copies of the 'latest' meta.yamls in the This is a significant downside of our approach to the registry as it is. @l0rd any thoughts on the matter? |
731e831
to
97b96f0
Compare
Okay, version 3 of this PR. New approach:
|
I think that almost nobody will be impacted: those that use |
Adds script `setup_latest_dirs.sh` that can be used to automatically latest meta.yamls in each plugin dir. The added meta.yamls are copies of the meta.yaml with newest 'firstPublishedDate', with version set to be 'latest'. If a latest directory already exists and a newer version is present for that plugin, a warning is printed. Only applies to the v3 registry path. Also adds script to dockerfiles to ensure that each plugin has a 'latest' version. Signed-off-by: Angel Misevski <[email protected]>
Move build-related .sh files into scripts dir to clean up root folder of repo. Signed-off-by: Angel Misevski <[email protected]>
Adds 'latest' version for every existing plugin, which is a copy of the current latest version with version field overwritten to be 'latest'. For che-theia, since plugin version 1.0.0 actually points at the 'latest' dockerimage, it is instead renamed to 'latest'. For the remaining plugins, the newest version listed is unchanged. Signed-off-by: Angel Misevski <[email protected]>
What does this PR do?
Adds script
setup_latest_dirs.sh
that is used in dockerfiles. This script looks through each plugin's directory for the 'latest' version of each plugin and copies that plugins meta.yaml to a new latest folder.Rules for deciding which version is newest:
Only applies to v3 repo path.
Related: redhat-developer/rh-che#1395