Skip to content

Commit 347b25d

Browse files
authored
CI: Allow warnings on downstream job tests (#6428)
* CI: Allow warnings on downstream job tests #### Problem During the downstream jobs, the patching step also updates crate versions, causing issues when the updated crate versions have things like deprecation warnings. See https://github.com/anza-xyz/agave/actions/runs/15462162384/job/43525772248?pr=6415 for an example. #### Summary of changes Since we mainly want to be sure that downstream repos don't break, allow warnings on the test step. * Oops, missed v0
1 parent 6d9cbbd commit 347b25d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/downstream-project-spl.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,28 +148,32 @@ jobs:
148148
run: |
149149
source ci/downstream-projects/common.sh
150150
cd "${{ matrix.programs }}"
151-
$CARGO_TEST_SBF --arch v0 --manifest-path program/Cargo.toml
151+
$CARGO_BUILD_SBF --arch v0 --manifest-path program/Cargo.toml
152+
RUSTFLAGS="-Awarnings" SBF_OUT_DIR="../target/deploy" cargo test --features test-sbf --manifest-path program/Cargo.toml
152153
153154
- name: Test SBPFv1
154155
shell: bash
155156
run: |
156157
source ci/downstream-projects/common.sh
157158
cd "${{ matrix.programs }}"
158159
rm -rf target/deploy target/sbpf*
159-
$CARGO_TEST_SBF --arch v1 --manifest-path program/Cargo.toml
160+
$CARGO_BUILD_SBF --arch v1 --manifest-path program/Cargo.toml
161+
RUSTFLAGS="-Awarnings" SBF_OUT_DIR="../target/deploy" cargo test --features test-sbf --manifest-path program/Cargo.toml
160162
161163
- name: Test SBPFv2
162164
shell: bash
163165
run: |
164166
source ci/downstream-projects/common.sh
165167
cd "${{ matrix.programs }}"
166168
rm -rf target/deploy target/sbpf*
167-
$CARGO_TEST_SBF --arch v2 --manifest-path program/Cargo.toml
169+
$CARGO_BUILD_SBF --arch v2 --manifest-path program/Cargo.toml
170+
RUSTFLAGS="-Awarnings" SBF_OUT_DIR="../target/deploy" cargo test --features test-sbf --manifest-path program/Cargo.toml
168171
169172
- name: Test SBPFv3
170173
shell: bash
171174
run: |
172175
source ci/downstream-projects/common.sh
173176
cd "${{ matrix.programs }}"
174177
rm -rf target/deploy target/sbpf*
175-
$CARGO_TEST_SBF --arch v3 --manifest-path program/Cargo.toml
178+
$CARGO_BUILD_SBF --arch v3 --manifest-path program/Cargo.toml
179+
RUSTFLAGS="-Awarnings" SBF_OUT_DIR="../target/deploy" cargo test --features test-sbf --manifest-path program/Cargo.toml

0 commit comments

Comments
 (0)