Hi all!
I have added another Docker image into the YaST:Head OBS project. It's a Ruby image
based on Leap 15.4.
The reason is that Leap 15.4 contains Ruby 2.5 (just like SLE), the original image
based on Tumbleweed contains Ruby 3.0 now (3.1 soon...).
The goal is to run CI using both images so we can be sure the YaST packages work
properly in both Tumbleweed and SLE/Leap. Another goal is to run Rubocop and Yardoc
in the Ruby 2.5 image as they do not work properly in Ruby 3.x.
I have adapted all YaST repositories which use our Ruby Docker image in the GitHub
Actions. See [1] as an example.
Notes:
- Only the unit tests and package build jobs run in both images, the rest
(Rubocop,
Yardoc, ...) run in just one image, that should be enough.
- Code coverage is sent only from the Tumbleweed build to avoid race conditions
and possibly inconsistent results.
- The YAML files were automatically patched by a script (in 120 Git
repositories!)
but I did a manual review of each change and did some manual tweaks in some
cases
(e.g. it does no make sense to build the TW control file in Leap, or the
other way
round, the SLES control file does not make sense to build in TW).
- If you think some builds or some changes do not make sense, or the other way
round,
something is missing feel free to fix that. The config is not set in a stone.
:-)
If you have any questions just ping me.
Enjoy!
Ladislav
[1]
https://github.com/yast/yast-autoinstallation/commit/a50cf8e2455342ccef96d5dc057d03ca7f449558
--
Ladislav Slezák
YaST Developer
SUSE LINUX, s.r.o.
Corso IIa
Křižíkova 148/34
18600 Praha 8