Skip to content

Commit b267457

Browse files
committed
Add a hack to workaround MSVC CI issues
1 parent 5ad98b4 commit b267457

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)