Skip to content

Commit 6c3972f

Browse files
committed
chore: try again multicore-sdr by default
1 parent 7eb8682 commit 6c3972f

File tree

1 file changed

+41
-40
lines changed

1 file changed

+41
-40
lines changed

.github/workflows/ci.yml

+41-40
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,47 @@ jobs:
5555
# - name: Run cargo fmt
5656
# run: cargo fmt --all -- --check
5757

58-
#test_release:
58+
test_release:
59+
runs-on: ubuntu-latest
60+
name: Test in release mode
61+
strategy:
62+
matrix:
63+
cargo-args: ['', '--features fixed-rows-to-discard']
64+
env:
65+
# Run all tests with multicore-SDR enabled.
66+
FIL_PROOFS_USE_MULTICORE_SDR: true
67+
steps:
68+
- uses: actions/checkout@v4
69+
- name: Install required packages
70+
run: sudo apt install --no-install-recommends --yes libhwloc-dev ocl-icd-opencl-dev
71+
72+
- name: Download the proof params
73+
uses: ./.github/actions/proof-params-download
74+
with:
75+
github-token: ${{ secrets.GITHUB_TOKEN }}
76+
77+
- name: Test in release profile
78+
run: |
79+
cargo test --verbose --release --workspace --all-targets ${{ matrix.cargo-args }}
80+
# Run sequentially due to core assignment tests that otherwise might
81+
# interfere with each other
82+
cargo test --release -p storage-proofs-porep --features isolated-testing ${{ matrix.cargo-args }} -- --test-threads=1
83+
# Some `storage-proofs-update` tests need to run sequentially due to
84+
# their high memory usage.
85+
cargo test --release -p storage-proofs-update --features isolated-testing ${{ matrix.cargo-args }} -- --test-threads=1
86+
87+
#test_ignored_release:
5988
# runs-on: ubuntu-latest
60-
# name: Test in release mode
89+
# name: Test ignored in release mode
6190
# strategy:
6291
# matrix:
63-
# cargo-args: ['', '--features fixed-rows-to-discard']
64-
# env:
65-
# # Run all tests with multicore-SDR enabled.
66-
# FIL_PROOFS_USE_MULTICORE_SDR: true
92+
# crate: [
93+
# 'filecoin-proofs',
94+
# 'storage-proofs-core',
95+
# 'storage-proofs-porep',
96+
# 'storage-proofs-post',
97+
# 'storage-proofs-update'
98+
# ]
6799
# steps:
68100
# - uses: actions/checkout@v4
69101
# - name: Install required packages
@@ -74,27 +106,12 @@ jobs:
74106
# with:
75107
# github-token: ${{ secrets.GITHUB_TOKEN }}
76108
#
77-
# - name: Test in release profile
78-
# run: |
79-
# cargo test --verbose --release --workspace --all-targets ${{ matrix.cargo-args }}
80-
# #cargo test --release -p storage-proofs-porep --features isolated-testing ${{ matrix.cargo-args }} -- --test-threads=1
81-
# cargo test --release -p storage-proofs-porep --features isolated-testing ${{ matrix.cargo-args }}
82-
# # Some `storage-proofs-update` tests need to run sequentially due to
83-
# # their high memory usage.
84-
# cargo test --release -p storage-proofs-update --features isolated-testing ${{ matrix.cargo-args }} -- --test-threads=1
109+
# - name: Test ignored in release profile
110+
# run: cargo test --package ${{ matrix.crate }} --release -- ignored --nocapture
85111

86112
#test_ignored_release:
87113
# runs-on: ubuntu-latest
88114
# name: Test ignored in release mode
89-
# strategy:
90-
# matrix:
91-
# crate: [
92-
# 'filecoin-proofs',
93-
# 'storage-proofs-core',
94-
# 'storage-proofs-porep',
95-
# 'storage-proofs-post',
96-
# 'storage-proofs-update'
97-
# ]
98115
# steps:
99116
# - uses: actions/checkout@v4
100117
# - name: Install required packages
@@ -106,23 +123,7 @@ jobs:
106123
# github-token: ${{ secrets.GITHUB_TOKEN }}
107124
#
108125
# - name: Test ignored in release profile
109-
# run: cargo test --package ${{ matrix.crate }} --release -- ignored --nocapture
110-
111-
test_ignored_release:
112-
runs-on: ubuntu-latest
113-
name: Test ignored in release mode
114-
steps:
115-
- uses: actions/checkout@v4
116-
- name: Install required packages
117-
run: sudo apt install --no-install-recommends --yes libhwloc-dev ocl-icd-opencl-dev
118-
119-
- name: Download the proof params
120-
uses: ./.github/actions/proof-params-download
121-
with:
122-
github-token: ${{ secrets.GITHUB_TOKEN }}
123-
124-
- name: Test ignored in release profile
125-
run: cargo test --release --workspace -- ignored --nocapture
126+
# run: cargo test --release --workspace -- ignored --nocapture
126127

127128
test_no_default_features:
128129
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)