Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
WIP: Run only local-cluster CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyera Eulberg committed Jun 25, 2021
1 parent 08eafe1 commit 1eaa739
Showing 1 changed file with 82 additions and 82 deletions.
164 changes: 82 additions & 82 deletions ci/buildkite-pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,94 +125,94 @@ wait_step() {
}

all_test_steps() {
command_step checks ". ci/rust-version.sh; ci/docker-run.sh \$\$rust_nightly_docker_image ci/test-checks.sh" 20
wait_step
# command_step checks ". ci/rust-version.sh; ci/docker-run.sh \$\$rust_nightly_docker_image ci/test-checks.sh" 20
# wait_step

# Coverage...
if affects \
.rs$ \
Cargo.lock$ \
Cargo.toml$ \
^ci/rust-version.sh \
^ci/test-coverage.sh \
^scripts/coverage.sh \
; then
command_step coverage ". ci/rust-version.sh; ci/docker-run.sh \$\$rust_nightly_docker_image ci/test-coverage.sh" 30
wait_step
else
annotate --style info --context test-coverage \
"Coverage skipped as no .rs files were modified"
fi
# if affects \
# .rs$ \
# Cargo.lock$ \
# Cargo.toml$ \
# ^ci/rust-version.sh \
# ^ci/test-coverage.sh \
# ^scripts/coverage.sh \
# ; then
# command_step coverage ". ci/rust-version.sh; ci/docker-run.sh \$\$rust_nightly_docker_image ci/test-coverage.sh" 30
# wait_step
# else
# annotate --style info --context test-coverage \
# "Coverage skipped as no .rs files were modified"
# fi

# Full test suite
command_step stable ". ci/rust-version.sh; ci/docker-run.sh \$\$rust_stable_docker_image ci/test-stable.sh" 60
wait_step
# command_step stable ". ci/rust-version.sh; ci/docker-run.sh \$\$rust_stable_docker_image ci/test-stable.sh" 60
# wait_step

# Perf test suite
if affects \
.rs$ \
Cargo.lock$ \
Cargo.toml$ \
^ci/rust-version.sh \
^ci/test-stable-perf.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-perf.sh"
name: "stable-perf"
timeout_in_minutes: 40
artifact_paths: "log-*.txt"
agents:
- "queue=cuda"
EOF
else
annotate --style info \
"Stable-perf skipped as no relevant files were modified"
fi

# Downstream backwards compatibility
if affects \
.rs$ \
Cargo.lock$ \
Cargo.toml$ \
^ci/rust-version.sh \
^ci/test-stable-perf.sh \
^ci/test-stable.sh \
^ci/test-local-cluster.sh \
^core/build.rs \
^fetch-perf-libs.sh \
^programs/ \
^sdk/ \
^scripts/build-downstream-projects.sh \
; then
cat >> "$output_file" <<"EOF"
- command: "scripts/build-downstream-projects.sh"
name: "downstream-projects"
timeout_in_minutes: 30
EOF
else
annotate --style info \
"downstream-projects skipped as no relevant files were modified"
fi
# Benches...
if affects \
.rs$ \
Cargo.lock$ \
Cargo.toml$ \
^ci/rust-version.sh \
^ci/test-coverage.sh \
^ci/test-bench.sh \
; then
command_step bench "ci/test-bench.sh" 30
else
annotate --style info --context test-bench \
"Bench skipped as no .rs files were modified"
fi
# if affects \
# .rs$ \
# Cargo.lock$ \
# Cargo.toml$ \
# ^ci/rust-version.sh \
# ^ci/test-stable-perf.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-perf.sh"
# name: "stable-perf"
# timeout_in_minutes: 40
# artifact_paths: "log-*.txt"
# agents:
# - "queue=cuda"
# EOF
# else
# annotate --style info \
# "Stable-perf skipped as no relevant files were modified"
# fi
#
# # Downstream backwards compatibility
# if affects \
# .rs$ \
# Cargo.lock$ \
# Cargo.toml$ \
# ^ci/rust-version.sh \
# ^ci/test-stable-perf.sh \
# ^ci/test-stable.sh \
# ^ci/test-local-cluster.sh \
# ^core/build.rs \
# ^fetch-perf-libs.sh \
# ^programs/ \
# ^sdk/ \
# ^scripts/build-downstream-projects.sh \
# ; then
# cat >> "$output_file" <<"EOF"
# - command: "scripts/build-downstream-projects.sh"
# name: "downstream-projects"
# timeout_in_minutes: 30
# EOF
# else
# annotate --style info \
# "downstream-projects skipped as no relevant files were modified"
# fi
# # Benches...
# if affects \
# .rs$ \
# Cargo.lock$ \
# Cargo.toml$ \
# ^ci/rust-version.sh \
# ^ci/test-coverage.sh \
# ^ci/test-bench.sh \
# ; then
# command_step bench "ci/test-bench.sh" 30
# else
# annotate --style info --context test-bench \
# "Bench skipped as no .rs files were modified"
# fi

command_step "local-cluster" \
". ci/rust-version.sh; ci/docker-run.sh \$\$rust_stable_docker_image ci/test-local-cluster.sh" \
Expand Down

0 comments on commit 1eaa739

Please sign in to comment.