Ruby 3.2 contains a number of kwargs fixes, and Rails 7 may be a
prerequisite for Ruby 3.2. We'll want to test and deploy Ruby 3.1
before jumping to 3.2.
Ruby 3.1 requires at least rubygems v3.1.3. Let's just bump
everything to 3.4, and consolidate the Ruby 3.2 build.
Update docker engine and remove manual buildx installation
See merge request https://gitlab.com/gitlab-org/gitlab-build-images/-/merge_requests/642
Merged-by: Stan Hu <stanhu@gmail.com>
Approved-by: Lin Jen-Shin <jen-shin@gitlab.com>
Reviewed-by: Lin Jen-Shin <jen-shin@gitlab.com>
Co-authored-by: Andrejs Cunskis <acunskis@gitlab.com>
There were a number of issues:
1. `rustc` wasn't actually installed since the `INSTALL_RUST_VERSION`
argument wasn't set.
2. `rustup` wasn't running properly since the `CARGO_HOME` and
`RUSTUP_HOME`weren't being exported and set by default. We now use the
technique described in https://github.com/rust-lang/rustup/issues/1085
to create a wrapper and link all the binaries in /opt/rust/bin and
link them to /usr/local/bin.
3. `rustc version` is not a valid command. `rustc --version` is valid.
We often have flaky tests around emoji rendering. Maybe we can improve
the test quality by adding a proper emoji font.
The existing install-noto-image script wasn't utilized and could be
simplified anyhow. Furthermore I think it is fine to install the font
when Chrome is installed, given that we use the Chrome images for
integration tests with the browser.
Replace `apt install` with `apt-get install` because the former should
not be used for scripting purposes.
Otherwise I wasn't able to get it running locally as well.
Previously we had to remember to apply specific patches for each
version of Ruby, and it was easy to forget. Let's just simplify this
by applying patches for the major and minor versions (e.g. 2.7, 3.0,
etc.).
Cache chromium for arm64 builds
See merge request https://gitlab.com/gitlab-org/gitlab-build-images/-/merge_requests/578
Merged-by: Rémy Coutable <remy@rymai.me>
Approved-by: Stan Hu <stanhu@gmail.com>
Approved-by: Rémy Coutable <remy@rymai.me>
Co-authored-by: Andrejs Cunskis <acunskis@gitlab.com>