Skip to content

Commit 6b5cd4e

Browse files
authored
Rollup merge of #130940 - workingjubilee:remove-space-saving-operations, r=Kobzol
Revert space-saving operations The "all of our artifacts" `mv` seems like it may save enough space to matter sometimes, since it can range up to a gigabyte of difference, if memory serves. For the rest, I think we're good. try-job: dist-aarch64-apple
2 parents 7e32221 + a2a4ea0 commit 6b5cd4e

File tree

2 files changed

+3
-20
lines changed

2 files changed

+3
-20
lines changed

src/ci/scripts/select-xcode.sh

-17
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,11 @@
11
#!/bin/bash
22
# This script selects the Xcode instance to use.
3-
# It also tries to do some cleanup in CI jobs of unused Xcodes.
43

54
set -euo pipefail
65
IFS=$'\n\t'
76

87
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
98

109
if isMacOS; then
11-
# This additional step is to try to remove an Xcode we aren't using because each one is HUGE
12-
old_xcode="$(xcode-select --print-path)"
13-
old_xcode="${old_xcode%/*}" # pop a dir
14-
old_xcode="${old_xcode%/*}" # twice
15-
if [[ $old_xcode =~ $SELECT_XCODE ]]; then
16-
echo "xcode-select.sh's brutal hack may not be necessary?"
17-
exit 1
18-
elif [[ $SELECT_XCODE =~ "16" ]]; then
19-
echo "Using Xcode 16? Please fix xcode-select.sh"
20-
exit 1
21-
fi
22-
if [ $CI ]; then # just in case someone sources this on their real computer
23-
sudo rm -rf "${old_xcode}"
24-
xcode_16="${old_xcode%/*}/Xcode-16.0.0.app"
25-
sudo rm -rf "${xcode_16}"
26-
fi
2710
sudo xcode-select -s "${SELECT_XCODE}"
2811
fi

src/ci/scripts/upload-artifacts.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ if [[ "${DEPLOY-0}" -eq "1" ]] || [[ "${DEPLOY_ALT-0}" -eq "1" ]]; then
2323
fi
2424

2525
# CPU usage statistics.
26-
mv build/cpu-usage.csv "${upload_dir}/cpu-${CI_JOB_NAME}.csv"
26+
cp build/cpu-usage.csv "${upload_dir}/cpu-${CI_JOB_NAME}.csv"
2727

2828
# Build metrics generated by x.py.
29-
mv "${build_dir}/metrics.json" "${upload_dir}/metrics-${CI_JOB_NAME}.json"
29+
cp "${build_dir}/metrics.json" "${upload_dir}/metrics-${CI_JOB_NAME}.json"
3030

3131
# Toolstate data.
3232
if [[ -n "${DEPLOY_TOOLSTATES_JSON+x}" ]]; then
33-
mv /tmp/toolstate/toolstates.json "${upload_dir}/${DEPLOY_TOOLSTATES_JSON}"
33+
cp /tmp/toolstate/toolstates.json "${upload_dir}/${DEPLOY_TOOLSTATES_JSON}"
3434
fi
3535

3636
echo "Files that will be uploaded:"

0 commit comments

Comments
 (0)