From fd462b1e0f9402a3e42548d0b15230299b947185 Mon Sep 17 00:00:00 2001 From: Alex Dowad Date: Wed, 23 Aug 2023 13:51:04 +0200 Subject: [PATCH] Print host CPU and installed package info in CI build log on Linux On one of the nightly CI builds last week, there were test failures in mbstring which appear like they might be related to SIMD-accelerated code. The function which failed testing has multiple implementations, and the specific implementation which is used depends on the features of the host CPU and the build configuration. The CI build log does not offer any clues about what implementation was actually used when the tests failed. If the same thing happens again, it will be helpful to (at least) know what CPU features the host CPU supports. This will also be helpful when diagnosing any other CI build failures which relate to CPU-specific code (or those which related to external packages such as ICU). It would be better to print even more information about the build configuration. It would also be better to print host CPU information on Windows CI builds as well. --- .github/workflows/nightly.yml | 16 ++++++++++++++++ .github/workflows/push.yml | 8 ++++++++ 2 files changed, 24 insertions(+) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index abd0ac01c67..feacf2fae4b 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -72,6 +72,14 @@ jobs: uses: ./.github/actions/setup-oracle - name: apt uses: ./.github/actions/apt-x64 + - name: System info + run: | + echo "::group::Show host CPU info" + lscpu + echo "::endgroup::" + echo "::group::Show installed package versions" + dpkg -l + echo "::endgroup::" - name: ./configure uses: ./.github/actions/configure-x64 with: @@ -160,6 +168,14 @@ jobs: ref: ${{ matrix.branch.ref }} - name: apt uses: ./.github/actions/apt-x32 + - name: System info + run: | + echo "::group::Show host CPU info" + lscpu + echo "::endgroup::" + echo "::group::Show installed package versions" + dpkg -l + echo "::endgroup::" - name: ./configure uses: ./.github/actions/configure-x32 with: diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 048492913da..45e11d6b5d6 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -71,6 +71,14 @@ jobs: uses: actions/checkout@v3 - name: apt uses: ./.github/actions/apt-x64 + - name: System info + run: | + echo "::group::Show host CPU info" + lscpu + echo "::endgroup::" + echo "::group::Show installed package versions" + dpkg -l + echo "::endgroup::" - name: Create MSSQL container if: ${{ !matrix.asan }} uses: ./.github/actions/setup-mssql