File tree 3 files changed +21
-4
lines changed
scaletest/templates/scaletest-runner
3 files changed +21
-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,28 @@ 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 [[ ${dir} = " ${SCALETEST_RUN_DIR} " ]]; then
19
+ continue
20
+ fi
21
+ if [[ -d ${dir} ]]; then
22
+ name=" $( basename " ${dir} " ) "
23
+ (
24
+ cd " $( dirname " ${dir} " ) "
25
+ tar --zstd -cf " ${HOME} /archive/${name} .tar.zst" " ${name} "
26
+ )
27
+ rm -rf " ${dir} "
28
+ fi
29
+ done
30
+
15
31
echo " Cloning coder/coder repo..."
16
32
17
- if [[ ! -d ~ /coder ]]; then
18
- git clone https://github.com/coder/coder.git ~ /coder
33
+ if [[ ! -d " ${HOME} /coder" ]]; then
34
+ git clone https://github.com/coder/coder.git " ${HOME} /coder"
19
35
fi
20
- (cd ~ /coder && git pull)
36
+ (cd " ${HOME} /coder" && git pull)
21
37
22
38
echo " Creating coder CLI token (needed for cleanup during shutdown)..."
23
39
You can’t perform that action at this time.
0 commit comments