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 11, 2024
1 parent 8437fdb commit 0edf470
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 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,33 @@ 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; Add-Content $env:GITHUB_PATH "$env:ProgramData\chocolatey\bin\"

# 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
Invoke-WebRequest -Uri 'https://download.sysinternals.com/files/Procdump.zip' -OutFile Procdump.zip
Expand-Archive Procdump.zip -DestinationPath .
cargo test --no-run --locked -p zebra-consensus --release --verbose
.\procdump.exe -accepteula -ma -x "crashdumps" C:/zebra-target/release/deps/zebra_consensus*
continue-on-error: true

- name: Upload Crash Dump
uses: actions/upload-artifact@v3
with:
name: crashdumps
path: crashdumps

- name: Upload Exes
uses: actions/upload-artifact@v3
with:
name: exes
path: C:/zebra-target/release/deps/zebra_consensus*

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

Expand Down

0 comments on commit 0edf470

Please sign in to comment.