gitlab: speed up msys windows jobs with GCC
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 15 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | gitlab: remove duplication between msys jobs.gitlab-ci.d/ | +49 | 1 reply | |
| 2/8 | gitlab: print timestamps during windows msys jobs.gitlab-ci.d/ | +5 | 1 reply | |
| 3/8 | gitlab: always use updated msys installer.gitlab-ci.d/ | +27 | 2 replies | |
| 4/8 | gitlab: drop $CI_PROJECT_DIR from cache path.gitlab-ci.d/ | +1 | 1 reply | |
| 5/8 | gitlab: always populate cache for windows msys jobs.gitlab-ci.d/ | +1 | 1 reply | |
| 6/8 | configure: support passthrough of -Dxxx args to mesonconfigure | +5 | 2 replies | |
| 7/8 | gitlab: disable optimization and debug symbols in msys build.gitlab-ci.d/ | +2 | 2 replies | |
| 8/8 | gitlab: disable FF_SCRIPT_SECTIONS on msys jobs.gitlab-ci.d/ | +4 | 1 reply |
Reviews trailers per patch
6 of 8 patches have a Reviewed-by or Acked-by.
| Patch | Thomas Huth |
|---|---|
| 1/8 | R-b |
| 2/8 | R-b |
| 3/8 | R-b |
| 4/8 | R-b |
| 5/8 | R-b |
| 6/8 | |
| 7/8 | |
| 8/8 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/8] gitlab: speed up msys windows jobs with GCC
This is an alternative and/or complementary to Thomas' proposal to use CLang with msys:
https://lists.gnu.org/archive/html/qemu-devel/2023-07/msg05402.html
First of all, the current msys installer we're using is over 12 months out of date. Thus after running the install, pacman then replaces most of what we've just installed with new downloaded content. Using the most update installer cuts 3+1/2 minutes off the msys install time - 7 minutes becomes 3+1/2.
Secondly, QEMU defaults to compiling with -O2 and this is more computationally expensive for GCC. Switching to -O0 drops the build time from 60 minutes down to 45 minutes.
Thirdly, including debug symbols also has an overhead, and turning that off reduces time still further down to 38 minutes.
IOW, between all three changes, we can cut approx 25-26 minutes off the job execution time, bringing it nicely within the job timeout.
The actually phase of installing the mingw deps still accounts for about 10 minutes and has not been optimized.
Possibly the same trick of -O0 and skipping -g would also help the clang alternative Thomas' proposed. If so, that could be enough to let us enable more features / targets during the msys build.
Daniel P. Berrangé (8):
gitlab: remove duplication between msys jobs
gitlab: print timestamps during windows msys jobs
gitlab: always use updated msys installer
gitlab: drop $CI_PROJECT_DIR from cache path
gitlab: always populate cache for windows msys jobs
configure: support passthrough of -Dxxx args to meson
gitlab: disable optimization and debug symbols in msys build
gitlab: disable FF_SCRIPT_SECTIONS on msys jobs
.gitlab-ci.d/windows.yml | 174 +++++++++++++++++++-------------------- configure | 5 ++ 2 files changed, 92 insertions(+), 87 deletions(-)
Signature · 1 line
2.41.0