File tree 3 files changed +18
-4
lines changed
scaletest/templates/scaletest-runner
3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.
28
28
google-cloud-cli \
29
29
jq \
30
30
kubectl \
31
+ zstd \
31
32
&& gcloud --version \
32
33
&& kubectl version --client \
33
34
&& rm -rf /var/lib/apt/lists/*
Original file line number Diff line number Diff line change 9
9
10
10
# Source scripts/lib.sh from coder/coder for common functions.
11
11
# shellcheck source=scripts/lib.sh
12
- . ~ /coder/scripts/lib.sh
12
+ . " ${HOME} /coder/scripts/lib.sh"
13
13
14
14
# Environment variables shared between scripts.
15
15
SCALETEST_STATE_DIR=" ${SCALETEST_RUN_DIR} /state"
Original file line number Diff line number Diff line change @@ -12,12 +12,25 @@ mkdir -p "${SCALETEST_RESULTS_DIR}"
12
12
echo " Preparing scaletest workspace environment..."
13
13
set_status Preparing
14
14
15
+ log " Compressing previous run logs (if applicable)..."
16
+ mkdir -p " ${HOME} /archive"
17
+ for dir in " ${HOME} /scaletest-" * ; do
18
+ if [[ -d $dir ]]; then
19
+ name=" $( basename " ${dir} " ) "
20
+ (
21
+ cd " $( dirname " ${dir} " ) "
22
+ tar --zstd -cf " ${HOME} /archive/${name} .tar.zst" " ${name} "
23
+ )
24
+ rm -rf " ${dir} "
25
+ fi
26
+ done
27
+
15
28
echo " Cloning coder/coder repo..."
16
29
17
- if [[ ! -d ~ /coder ]]; then
18
- git clone https://github.com/coder/coder.git ~ /coder
30
+ if [[ ! -d " ${HOME} /coder" ]]; then
31
+ git clone https://github.com/coder/coder.git " ${HOME} /coder"
19
32
fi
20
- (cd ~ /coder && git pull)
33
+ (cd " ${HOME} /coder" && git pull)
21
34
22
35
echo " Creating coder CLI token (needed for cleanup during shutdown)..."
23
36
You can’t perform that action at this time.
0 commit comments