Skip to content

Commit fd462b1

Browse files
committed
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.
1 parent 6ee2a63 commit fd462b1

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

Diff for: .github/workflows/nightly.yml

+16
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ jobs:
7272
uses: ./.github/actions/setup-oracle
7373
- name: apt
7474
uses: ./.github/actions/apt-x64
75+
- name: System info
76+
run: |
77+
echo "::group::Show host CPU info"
78+
lscpu
79+
echo "::endgroup::"
80+
echo "::group::Show installed package versions"
81+
dpkg -l
82+
echo "::endgroup::"
7583
- name: ./configure
7684
uses: ./.github/actions/configure-x64
7785
with:
@@ -160,6 +168,14 @@ jobs:
160168
ref: ${{ matrix.branch.ref }}
161169
- name: apt
162170
uses: ./.github/actions/apt-x32
171+
- name: System info
172+
run: |
173+
echo "::group::Show host CPU info"
174+
lscpu
175+
echo "::endgroup::"
176+
echo "::group::Show installed package versions"
177+
dpkg -l
178+
echo "::endgroup::"
163179
- name: ./configure
164180
uses: ./.github/actions/configure-x32
165181
with:

Diff for: .github/workflows/push.yml

+8
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ jobs:
7171
uses: actions/checkout@v3
7272
- name: apt
7373
uses: ./.github/actions/apt-x64
74+
- name: System info
75+
run: |
76+
echo "::group::Show host CPU info"
77+
lscpu
78+
echo "::endgroup::"
79+
echo "::group::Show installed package versions"
80+
dpkg -l
81+
echo "::endgroup::"
7482
- name: Create MSSQL container
7583
if: ${{ !matrix.asan }}
7684
uses: ./.github/actions/setup-mssql

0 commit comments

Comments
 (0)