-
Notifications
You must be signed in to change notification settings - Fork 108
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 policy to release stable releases #11762
Comments
@amaltaro , here is an dedicated issue about stable images. |
From my side, I would say that we need to adapt the CD pipeline (github action) to - in addition to the usual docker image setup - labeling specific images with the Policy for what to tag as
Further information about tagging scheme in WMCore and definitions can be found in this wiki: https://github.com/dmwm/WMCore/wiki/TaggingAndReleasing#new-tagging-convention |
I agree with proposed solution and can implement it. Said that I also in favor of creating separate (from workflows yaml file) script which will perform all necessary actions, like build, deploy, etc. For example:
The script will be wrapper around docker commands itself and can implement proper policies. Doing this within yaml file is not impossible but will complicate significantly its logic. While the script can be use within and outside yaml CICD files, being part of repository and managed separately. For instance, we can implement auto-deployment of services into dev cluster with every release candidate tag (as it is done for other services, like DBS/DAS) etc. @amaltaro , let me know if it is acceptable with your vision. |
Whenever people say less complication, I am all in for it! For the deployment in kubernetes clusters - potentially to be used in the future - I would suggest not to spend any time with that at the moment |
Alan, I prepared the script and you can view it here: https://gist.github.com/vkuznet/9d4956c9afe158757897ea8316b05085 So far I didn't put it anywhere in WMCore since I'm not sure if it belongs there. I would like to replace the CI/CD lines with this script starting from here https://github.com/dmwm/WMCore/blob/master/.github/workflows/docker_images_template.yaml#L49 I see few possibilities here:
I would appreciate if you'll look into these details and let me know your opinion where it belongs that I can act accordingly. |
Valentin, keeping it under the WMCore repository looks more manageable to me. Regarding the script, to avoid extra complexity of finding out which image(s) have been built before we can push them upstream, I feel like the best would be to call that script only once per service, and in case it has to tag something with the stable suffix, it would basically:
Another option would be to call this script twice for each service, e.g.: But then we need to find out where we have or not a stable build. Which looks more inconvenient to me. HTH. |
Hi @amaltaro , I have pushed a commit to @vkuznet 's PR to implement some modifications needed according to some local tests. For the time being, I would stick with the procedure suggested by Valentin, removing the As it is used in the yaml routing, |
Impact of the new feature
On CMSWEB we should use images with
-stable
suffix to allow longer retention policies of images. The stable images will be available for 1 year in CERN registry.Is your feature request related to a problem? Please describe.
the CMSWEB group suggest to use
-stable
images for all production images to keep it uniform across all services. Therefore, we should define proper policies how to create these images for all WMCore services.Describe the solution you'd like
Write proper document how we can build and upload
-stable
images. This document can define all steps required and build stable images. For instance:In this document we should define:
Describe alternatives you've considered
None, as we can run as is using non-stable images on k8s
Additional context
The text was updated successfully, but these errors were encountered: