diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f02e0f9ba..fae1dc58e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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