File tree Expand file tree Collapse file tree 4 files changed +5
-2
lines changed
Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 99
1010 - name : lint-plugin
1111 plugins :
12+ - planetscale/telemetry#${BUILDKITE_COMMIT}: {}
1213 - docker-compose#v5.3.0:
1314 run : lint-plugin
1415
Original file line number Diff line number Diff line change 22
33BUILDKITE_TELEMETRY_PLUGIN_TMPDIR=$( mktemp -d)
44BUILDKITE_TELEMETRY_PLUGIN_OUTFILE=" ${BUILDKITE_TELEMETRY_PLUGIN_TMPDIR} /out.txt"
5+ BUILDKITE_TELEMETRY_PLUGIN_CONTAINER_NAME=" telemetry-plugin-$RANDOM "
56
67export BUILDKITE_TELEMETRY_PLUGIN_TMPDIR
78export BUILDKITE_TELEMETRY_PLUGIN_OUTFILE
9+ export BUILDKITE_TELEMETRY_PLUGIN_CONTAINER_NAME
Original file line number Diff line number Diff line change 33set -eou pipefail
44# set -x
55
6- docker stop -t1 telemetry-plugin
6+ docker stop -t1 " $BUILDKITE_TELEMETRY_PLUGIN_CONTAINER_NAME " || true
77
88vcpus=$( lscpu | awk -F " :" ' /Thread/ { t=$2; }; /Core/ { c=$2; }; /Socket/ { s=$2; }; END { print s*c*t }' )
99phys_cpus=$( lscpu | awk -F " :" ' /Core/ { c=$2; }; /Socket/ { s=$2; }; END { print s*c }' )
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ docker run \
99 --rm \
1010 --init \
1111 --detach \
12- --name telemetry-plugin \
12+ --name " $BUILDKITE_TELEMETRY_PLUGIN_CONTAINER_NAME " \
1313 --pid host \
1414 --net host \
1515 --userns host \
You can’t perform that action at this time.
0 commit comments