[gparted] Print kernel and OS details first in the GitLab CI jobs



commit 2ff4a4203f04cb4fcb80fa9157391fe6e092aa3e
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Sat Jun 18 21:35:58 2022 +0100

    Print kernel and OS details first in the GitLab CI jobs
    
    When the CentOS 7 CI jobs were failing on a subset of the job runners
    [1] during March to May 2022, the docker image would hang even before
    the packages were fully installed so cat /proc/version and cat
    /etc/os-release were never run.  Move them to the first thing done in
    the docker image.
    
    [1] Hanging of GitLab CI jobs on a subset of job runners
        https://discourse.gnome.org/t/hanging-of-gitlab-ci-jobs-on-a-subset-of-job-runners/9931

 .gitlab-ci.yml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8bac05c5..cb9cf71d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,6 +6,8 @@ stages:
   # Use official CentOS image https://hub.docker.com/_/centos/.
   image: centos:centos7
   before_script:
+    - cat /proc/version
+    - cat /etc/os-release
     - yum update -y
     - yum install -y which gnome-common yelp-tools glib2-devel intltool
                      gcc-c++ libuuid-devel parted-devel gtkmm30-devel make
@@ -17,14 +19,14 @@ stages:
                      mtools hfsplus-tools util-linux cryptsetup device-mapper
                      lvm2 ntfsprogs udftools xfsprogs xfsdump
                      xorg-x11-server-Xvfb kmod
-    - cat /proc/version
-    - cat /etc/os-release
     - systemd-machine-id-setup
 
 .ubuntu_image_template: &ubuntu_image_definition
   # Use official Ubuntu image https://hub.docker.com/_/ubuntu/.
   image: ubuntu:latest
   before_script:
+    - cat /proc/version
+    - cat /etc/os-release
     - export DEBIAN_FRONTEND=noninteractive
     - apt-get update
     - apt-get install -y build-essential gnome-common yelp-tools
@@ -35,8 +37,6 @@ stages:
                          hfsutils hfsprogs jfsutils util-linux cryptsetup-bin
                          dmsetup lvm2 nilfs-tools ntfs-3g reiser4progs
                          reiserfsprogs udftools xfsprogs xfsdump xvfb kmod
-    - cat /proc/version
-    - cat /etc/os-release
 
 .build_stage_template: &build_stage_definition
   stage: build


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]