Skip to content

Commit

Permalink
chore: run isolated test
Browse files Browse the repository at this point in the history
  • Loading branch information
vmx committed Sep 3, 2024
1 parent 34b7ff4 commit d388a69
Showing 1 changed file with 53 additions and 49 deletions.
102 changes: 53 additions & 49 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,34 +55,38 @@ jobs:
# - name: Run cargo fmt
# run: cargo fmt --all -- --check

#test_release:
# runs-on: ubuntu-latest
# name: Test in release mode
# strategy:
# matrix:
# cargo-args: ['', '--features fixed-rows-to-discard']
# env:
# # Run all tests with multicore-SDR enabled.
# FIL_PROOFS_USE_MULTICORE_SDR: true
# steps:
# - uses: actions/checkout@v4
# - name: Install required packages
# run: sudo apt install --no-install-recommends --yes libhwloc-dev ocl-icd-opencl-dev
#
# - name: Download the proof params
# uses: ./.github/actions/proof-params-download
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Test in release profile
# run: |
# cargo test --verbose --release --workspace --all-targets ${{ matrix.cargo-args }}
# # Run sequentially due to core assignment tests that otherwise might
# # interfere with each other
# cargo test --release -p storage-proofs-porep --features isolated-testing ${{ matrix.cargo-args }} -- --test-threads=1
# # Some `storage-proofs-update` tests need to run sequentially due to
# # their high memory usage.
# cargo test --release -p storage-proofs-update --features isolated-testing ${{ matrix.cargo-args }} -- --test-threads=1
test_release:
runs-on: ubuntu-latest
name: Test in release mode
strategy:
matrix:
cargo-args: ['', '--features fixed-rows-to-discard']
env:
# Run all tests with multicore-SDR enabled.
FIL_PROOFS_USE_MULTICORE_SDR: true
steps:
- uses: actions/checkout@v4
- name: Install required packages
run: sudo apt install --no-install-recommends --yes libhwloc-dev ocl-icd-opencl-dev

- name: Download the proof params
uses: ./.github/actions/proof-params-download
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Test in release profile
run: |
#cargo test --verbose --release --workspace --all-targets ${{ matrix.cargo-args }}
# Run sequentially due to core assignment tests that otherwise might
# interfere with each other
#cargo test --release -p storage-proofs-porep --features isolated-testing ${{ matrix.cargo-args }} -- --test-threads=1
# Getting the cores does not work on GitHub Actions, hence skip that
# specific test.
cargo test --release -p storage-proofs-porep --features isolated-testing ${{ matrix.cargo-args }} -- --skip stacked::vanilla::cores::tests::test_checkout_cores
# Some `storage-proofs-update` tests need to run sequentially due to
# their high memory usage.
#cargo test --release -p storage-proofs-update --features isolated-testing ${{ matrix.cargo-args }} -- --test-threads=1
cargo test --release -p storage-proofs-update --features isolated-testing ${{ matrix.cargo-args }}
#test_ignored_release:
# runs-on: ubuntu-latest
Expand Down Expand Up @@ -127,24 +131,24 @@ jobs:
# - name: Test ignored in release profile
# run: cargo build --workspace --features cuda,opencl

multicore_sdr:
runs-on: ubuntu-latest
name: Run specific multicore SDR tests
env:
RUST_TEST_THREADS: 1
steps:
- uses: actions/checkout@v4
- name: Install required packages
run: sudo apt install --no-install-recommends --yes libhwloc-dev ocl-icd-opencl-dev

#- name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
# with:
# limit-access-to-actor: true

- name: Without multicore SDR
run: cargo test -p storage-proofs-porep --features isolated-testing --release --lib stacked::vanilla::cores -- --skip stacked::vanilla::cores::tests::test_checkout_cores
- name: With multicore SDR
run: cargo test -p storage-proofs-porep --features isolated-testing --release --lib stacked::vanilla::cores -- --skip stacked::vanilla::cores::tests::test_checkout_cores
env:
FIL_PROOFS_USE_MULTICORE_SDR: true
#multicore_sdr:
# runs-on: ubuntu-latest
# name: Run specific multicore SDR tests
# env:
# RUST_TEST_THREADS: 1
# steps:
# - uses: actions/checkout@v4
# - name: Install required packages
# run: sudo apt install --no-install-recommends --yes libhwloc-dev ocl-icd-opencl-dev
#
# #- name: Setup tmate session
# # uses: mxschmitt/action-tmate@v3
# # with:
# # limit-access-to-actor: true
#
# - name: Without multicore SDR
# run: cargo test -p storage-proofs-porep --features isolated-testing --release --lib stacked::vanilla::cores -- --skip stacked::vanilla::cores::tests::test_checkout_cores
# - name: With multicore SDR
# run: cargo test -p storage-proofs-porep --features isolated-testing --release --lib stacked::vanilla::cores -- --skip stacked::vanilla::cores::tests::test_checkout_cores
# env:
# FIL_PROOFS_USE_MULTICORE_SDR: true

0 comments on commit d388a69

Please sign in to comment.