Skip to content

Commit 0200050

Browse files
committed
ci: upload toolstates.json to rust-lang-ci2
Uploading the toolstate data for each commit will help our release tooling understand which components are failing, to possibly skip shipping broken tools to users.
1 parent 4479de4 commit 0200050

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/ci/azure-pipelines/auto.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ jobs:
140140
IMAGE: x86_64-gnu-aux
141141
x86_64-gnu-tools:
142142
IMAGE: x86_64-gnu-tools
143+
DEPLOY_TOOLSTATES_JSON: toolstates-linux.json
143144
x86_64-gnu-debug:
144145
IMAGE: x86_64-gnu-debug
145146
x86_64-gnu-nopt:
@@ -264,6 +265,7 @@ jobs:
264265
MSYS_BITS: 64
265266
SCRIPT: src/ci/docker/x86_64-gnu-tools/checktools.sh x.py /tmp/toolstates.json windows
266267
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --save-toolstates=/tmp/toolstates.json
268+
DEPLOY_TOOLSTATES_JSON: toolstates-windows.json
267269

268270
# 32/64-bit MinGW builds.
269271
#

src/ci/scripts/upload-artifacts.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ fi
2323
# CPU usage statistics.
2424
cp cpu-usage.csv "${upload_dir}/cpu-${CI_JOB_NAME}.csv"
2525

26+
# Toolstate data.
27+
if [[ ! -z "${DEPLOY_TOOLSTATES_JSON+x}" ]]; then
28+
cp /tmp/toolstates.json "${upload_dir}/${DEPLOY_TOOLSTATES_JSON}"
29+
fi
30+
2631
echo "Files that will be uploaded:"
2732
ls -lah "${upload_dir}"
2833
echo

0 commit comments

Comments
 (0)