Skip to content

Commit

Permalink
tmp: change CI to debug windows crash
Browse files Browse the repository at this point in the history
  • Loading branch information
conradoplg committed Jun 8, 2024
1 parent 8437fdb commit a829929
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/ci-unit-tests-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [windows-latest]
rust: [stable, beta]
# TODO: When vars.EXPERIMENTAL_FEATURES has features in it, add it here.
# Or work out a way to trim the space from the variable: GitHub doesn't allow empty variables.
Expand Down Expand Up @@ -111,17 +111,6 @@ jobs:
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=${{ matrix.rust }} --profile=minimal
- uses: Swatinem/rust-cache@v2.7.3
# TODO: change Rust cache target directory on Windows,
# or remove this workaround once the build is more efficient (#3005).
#with:
# workspaces: ". -> C:\\zebra-target"
with:
# Split the experimental features cache from the regular cache, to avoid linker errors.
# (These might be "disk full" errors, or they might be dependency resolution issues.)
key: ${{ matrix.features }}

- name: Change target output directory on Windows
# Windows doesn't have enough space on the D: drive, so we redirect the build output to the
# larger C: drive.
Expand Down Expand Up @@ -161,12 +150,23 @@ jobs:
echo "PROPTEST_CASES=1" >> $GITHUB_ENV
echo "PROPTEST_MAX_SHRINK_ITERS=1024" >> $GITHUB_ENV
- name: Install WinDbg
run: |
choco install windows-sdk-10-version-2004-windbg -y
# Run unit and basic acceptance tests, only showing command output if the test fails.
#
# If some tests hang, add "-- --nocapture" for just that test, or for all the tests.
- name: Run tests${{ matrix.features }}
run: |
cargo test --features "${{ matrix.features }}" --release --verbose --workspace
mkdir crashdumps
windbg -c ".logopen /t crashdumps/crashlog.txt; g; .dump /ma crashdumps/crashdump.dmp; q" cargo test --locked -p zebra-consensus --features "${{ matrix.features }}" --release --verbose
- name: Upload Crash Dump
uses: actions/upload-artifact@v3
with:
name: crashdumps
path: crashdumps

# Explicitly run any tests that are usually #[ignored]

Expand Down

0 comments on commit a829929

Please sign in to comment.