Skip to content

Commit

Permalink
ci: log CPU details when testing (#7574)
Browse files Browse the repository at this point in the history
* ci: log CPU details when testing

When testing, there are certain CPU-dependent features that influence
Cranelift's codegen (e.g., availability of AVX512 instructions). This
additional CI step logs the current CPU information to aid in
troubleshooting, such as the MPK-related troubleshooting over in #7445.
Also, if we let this run in CI for a while, we may be able to run
queries on the logs to determine how often jobs run on servers with
certain features enabled.

prtest:full

* Add Windows variant of 'lscpu'

* Add MacOS variant of 'lscpu'
  • Loading branch information
abrown authored Nov 22, 2023
1 parent b49e38a commit 212faea
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,19 @@ jobs:
run: |
diff -ru crates/wasi/wit crates/wasi-http/wit
# Record some CPU details; this is helpful information if tests fail due
# to CPU-specific features.
- name: CPU information
run: lscpu
if: matrix.os == 'ubuntu-latest'
- name: CPU information
run: sysctl hw
if: matrix.os == 'macos-latest'
- name: CPU information
run: wmic cpu list /format:list
shell: pwsh
if: matrix.os == 'windows-latest'

# Build and test all features
- run: ./ci/run-tests.sh --locked
env:
Expand Down

0 comments on commit 212faea

Please sign in to comment.