Skip to content

Commit

Permalink
ci: log CPU details when testing
Browse files Browse the repository at this point in the history
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 bytecodealliance#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.
  • Loading branch information
abrown committed Nov 22, 2023
1 parent 5073372 commit c357cc5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,10 @@ 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.
- run: lscpu

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

0 comments on commit c357cc5

Please sign in to comment.