CI: Extricate BPF tests from stable-perf
This commit is contained in:
committed by
Trent Nelson
parent
fd9c10c2e2
commit
1eab0773af
@ -148,6 +148,33 @@ all_test_steps() {
|
|||||||
command_step stable ". ci/rust-version.sh; ci/docker-run.sh \$\$rust_stable_docker_image ci/test-stable.sh" 60
|
command_step stable ". ci/rust-version.sh; ci/docker-run.sh \$\$rust_stable_docker_image ci/test-stable.sh" 60
|
||||||
wait_step
|
wait_step
|
||||||
|
|
||||||
|
# BPF test suite
|
||||||
|
if affects \
|
||||||
|
.rs$ \
|
||||||
|
Cargo.lock$ \
|
||||||
|
Cargo.toml$ \
|
||||||
|
^ci/rust-version.sh \
|
||||||
|
^ci/test-stable-bpf.sh \
|
||||||
|
^ci/test-stable.sh \
|
||||||
|
^ci/test-local-cluster.sh \
|
||||||
|
^core/build.rs \
|
||||||
|
^fetch-perf-libs.sh \
|
||||||
|
^programs/ \
|
||||||
|
^sdk/ \
|
||||||
|
; then
|
||||||
|
cat >> "$output_file" <<"EOF"
|
||||||
|
- command: "ci/test-stable-bpf.sh"
|
||||||
|
name: "stable-bpf"
|
||||||
|
timeout_in_minutes: 20
|
||||||
|
artifact_paths: "bpf-dumps.tar.bz2"
|
||||||
|
agents:
|
||||||
|
- "queue=default"
|
||||||
|
EOF
|
||||||
|
else
|
||||||
|
annotate --style info \
|
||||||
|
"Stable-BPF skipped as no relevant files were modified"
|
||||||
|
fi
|
||||||
|
|
||||||
# Perf test suite
|
# Perf test suite
|
||||||
if affects \
|
if affects \
|
||||||
.rs$ \
|
.rs$ \
|
||||||
@ -165,7 +192,7 @@ all_test_steps() {
|
|||||||
cat >> "$output_file" <<"EOF"
|
cat >> "$output_file" <<"EOF"
|
||||||
- command: "ci/test-stable-perf.sh"
|
- command: "ci/test-stable-perf.sh"
|
||||||
name: "stable-perf"
|
name: "stable-perf"
|
||||||
timeout_in_minutes: 40
|
timeout_in_minutes: 20
|
||||||
artifact_paths: "log-*.txt"
|
artifact_paths: "log-*.txt"
|
||||||
agents:
|
agents:
|
||||||
- "queue=cuda"
|
- "queue=cuda"
|
||||||
|
@ -22,6 +22,7 @@ steps+=(shellcheck)
|
|||||||
steps+=(test-checks)
|
steps+=(test-checks)
|
||||||
steps+=(test-coverage)
|
steps+=(test-coverage)
|
||||||
steps+=(test-stable)
|
steps+=(test-stable)
|
||||||
|
steps+=(test-stable-bpf)
|
||||||
steps+=(test-stable-perf)
|
steps+=(test-stable-perf)
|
||||||
steps+=(test-downstream-builds)
|
steps+=(test-downstream-builds)
|
||||||
steps+=(test-bench)
|
steps+=(test-bench)
|
||||||
|
1
ci/test-stable-bpf.sh
Symbolic link
1
ci/test-stable-bpf.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
test-stable.sh
|
@ -21,10 +21,6 @@ export RUST_BACKTRACE=1
|
|||||||
export RUSTFLAGS="-D warnings"
|
export RUSTFLAGS="-D warnings"
|
||||||
source scripts/ulimit-n.sh
|
source scripts/ulimit-n.sh
|
||||||
|
|
||||||
# Clear the C dependency files, if dependency moves these files are not regenerated
|
|
||||||
test -d target/debug/bpf && find target/debug/bpf -name '*.d' -delete
|
|
||||||
test -d target/release/bpf && find target/release/bpf -name '*.d' -delete
|
|
||||||
|
|
||||||
# Limit compiler jobs to reduce memory usage
|
# Limit compiler jobs to reduce memory usage
|
||||||
# on machines with 2gb/thread of memory
|
# on machines with 2gb/thread of memory
|
||||||
NPROC=$(nproc)
|
NPROC=$(nproc)
|
||||||
@ -35,7 +31,11 @@ case $testName in
|
|||||||
test-stable)
|
test-stable)
|
||||||
_ "$cargo" stable test --jobs "$NPROC" --all --exclude solana-local-cluster ${V:+--verbose} -- --nocapture
|
_ "$cargo" stable test --jobs "$NPROC" --all --exclude solana-local-cluster ${V:+--verbose} -- --nocapture
|
||||||
;;
|
;;
|
||||||
test-stable-perf)
|
test-stable-bpf)
|
||||||
|
# Clear the C dependency files, if dependency moves these files are not regenerated
|
||||||
|
test -d target/debug/bpf && find target/debug/bpf -name '*.d' -delete
|
||||||
|
test -d target/release/bpf && find target/release/bpf -name '*.d' -delete
|
||||||
|
|
||||||
# solana-keygen required when building C programs
|
# solana-keygen required when building C programs
|
||||||
_ "$cargo" build --manifest-path=keygen/Cargo.toml
|
_ "$cargo" build --manifest-path=keygen/Cargo.toml
|
||||||
export PATH="$PWD/target/debug":$PATH
|
export PATH="$PWD/target/debug":$PATH
|
||||||
@ -52,7 +52,8 @@ test-stable-perf)
|
|||||||
_ "$cargo" stable test \
|
_ "$cargo" stable test \
|
||||||
--manifest-path programs/bpf/Cargo.toml \
|
--manifest-path programs/bpf/Cargo.toml \
|
||||||
--no-default-features --features=bpf_c,bpf_rust -- --nocapture
|
--no-default-features --features=bpf_c,bpf_rust -- --nocapture
|
||||||
|
;;
|
||||||
|
test-stable-perf)
|
||||||
if [[ $(uname) = Linux ]]; then
|
if [[ $(uname) = Linux ]]; then
|
||||||
# Enable persistence mode to keep the CUDA kernel driver loaded, avoiding a
|
# Enable persistence mode to keep the CUDA kernel driver loaded, avoiding a
|
||||||
# lengthy and unexpected delay the first time CUDA is involved when the driver
|
# lengthy and unexpected delay the first time CUDA is involved when the driver
|
||||||
|
Reference in New Issue
Block a user