Skip to content

Commit

Permalink
Remove CARGO_TARGET_CACHE_NAME, use BUILDKITE_LABEL
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Dec 17, 2018
1 parent cc11194 commit 9a5195e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 24 deletions.
17 changes: 8 additions & 9 deletions .buildkite/hooks/post-command
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
#
# Save target/ for the next CI build on this machine
#
if [[ -n $CARGO_TARGET_CACHE_NAME ]]; then
(
d=$HOME/cargo-target-cache/"$CARGO_TARGET_CACHE_NAME"
mkdir -p "$d"
set -x
rsync -a --delete --link-dest="$PWD" target "$d"
du -hs "$d"
)
fi
(
set -x
d=$HOME/cargo-target-cache/"$BUILDKITE_LABEL"
mkdir -p "$d"
set -x
rsync -a --delete --link-dest="$PWD" target "$d"
du -hs "$d"
)

#
# Add job_stats data point
Expand Down
6 changes: 3 additions & 3 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ export PS4="++"
#
# Restore target/ from the previous CI build on this machine
#
[[ -n "$CARGO_TARGET_CACHE_NAME" ]] || (
d=$HOME/cargo-target-cache/"$CARGO_TARGET_CACHE_NAME"
(
set -x
d=$HOME/cargo-target-cache/"$BUILDKITE_LABEL"

if [[ -d $d ]]; then
du -hs "$d"
Expand All @@ -24,6 +25,5 @@ export PS4="++"
fi

mkdir -p "$d"/target
set -x
rsync -a --delete --link-dest="$d" "$d"/target .
)
12 changes: 0 additions & 12 deletions ci/buildkite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,25 @@ steps:
timeout_in_minutes: 20
- command: "ci/docker-run.sh solanalabs/rust:1.31.0 ci/test-checks.sh"
name: "checks"
env:
CARGO_TARGET_CACHE_NAME: "checks"
timeout_in_minutes: 30
- wait
- command: "ci/test-stable-perf.sh"
name: "stable-perf"
env:
CARGO_TARGET_CACHE_NAME: "stable-perf"
timeout_in_minutes: 20
agents:
- "queue=cuda"
- command: "ci/test-bench.sh"
name: "bench"
env:
CARGO_TARGET_CACHE_NAME: "nightly"
timeout_in_minutes: 30
- command: "ci/docker-run.sh solanalabs/rust:1.31.0 ci/test-stable.sh"
name: "stable"
env:
CARGO_TARGET_CACHE_NAME: "stable"
timeout_in_minutes: 30
- command: "ci/docker-run.sh solanalabs/rust-nightly:2018-12-05 ci/test-nightly.sh"
name: "nightly"
env:
CARGO_TARGET_CACHE_NAME: "nightly"
timeout_in_minutes: 30
# TODO: Fix and re-enable test-large-network.sh
# - command: "ci/test-large-network.sh || true"
# name: "large-network [ignored]"
# env:
# CARGO_TARGET_CACHE_NAME: "stable"
# timeout_in_minutes: 20
# agents:
# - "queue=large"
Expand Down

0 comments on commit 9a5195e

Please sign in to comment.