Skip to content

Commit 29b1240

Browse files
committed
Auto merge of #129509 - ChrisDenton:hack-hack-hack, r=Mark-Simulacrum
Add a hack to workaround MSVC CI issues I'm still attempting to figure out the issue but the failure rate atm seems really high so I'd like to propose an interim hack. This adds a single delay of 5 minutes, which is absurdly long in CPU time but practically nothing compared to overall CI time.
2 parents f167efa + b267457 commit 29b1240

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh

+11
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ case $HOST_TARGET in
5555
python3 "$X_PY" test --stage 2 src/tools/miri --target s390x-unknown-linux-gnu --test-args pass
5656
;;
5757
x86_64-pc-windows-msvc)
58+
# FIXME: This will rebuild miri because it's being built without the miri flags above.
59+
# However, for some reason rebuilding is very likely to fail at the final stage when
60+
# Cargo overwrites the existing hardlinks.
61+
# So we introduce a pause here in the hope it fixes itself and display a list of process for
62+
# diagnotistic purposes.
63+
ps -W || true
64+
echo "HACK: sleeping for 5 minutes"
65+
sleep 5m
66+
# Show the process list again in case the changes are interesting.
67+
ps -W || true
68+
5869
# Strangely, Linux targets do not work here. cargo always says
5970
# "error: cannot produce cdylib for ... as the target ... does not support these crate types".
6071
# Only run "pass" tests, which is quite a bit faster.

0 commit comments

Comments
 (0)