Skip to content

gitlab-ci: use eatmydata in apt-get

Nicolás Alvarez requested to merge work/eatmydata-ci into master

apt-get uses several fsync() calls on each package it installs, and that's very slow, especially on non-SSD. eatmydata turns fsync into no-op, which makes package installation much faster (it can cause corruption if there's power loss or similar, but that doesn't matter in CI where we throw away the whole container anyway).

Currently the build_ubuntu_20_04 job in our GitLab CI runner takes 8-9 minutes to install dependencies (tested twice: 8m2s, 8m40s). Using eatmydata it went down to 2 minutes (test: 1m53s).

I did not test if the change to the build_clazy_clang_tidy job even works at all, but CI on this pull request will answer that :)

Merge request reports

Loading