From b267457d1ec932d13ffad34124a9e22c8726ec91 Mon Sep 17 00:00:00 2001 From: Chris Denton Date: Sat, 24 Aug 2024 04:12:00 +0000 Subject: [PATCH] Add a hack to workaround MSVC CI issues --- .../docker/host-x86_64/x86_64-gnu-tools/checktools.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh b/src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh index a5a5acc333be9..f8f904b415c0f 100755 --- a/src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh +++ b/src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh @@ -55,6 +55,17 @@ case $HOST_TARGET in python3 "$X_PY" test --stage 2 src/tools/miri --target s390x-unknown-linux-gnu --test-args pass ;; x86_64-pc-windows-msvc) + # FIXME: This will rebuild miri because it's being built without the miri flags above. + # However, for some reason rebuilding is very likely to fail at the final stage when + # Cargo overwrites the existing hardlinks. + # So we introduce a pause here in the hope it fixes itself and display a list of process for + # diagnotistic purposes. + ps -W || true + echo "HACK: sleeping for 5 minutes" + sleep 5m + # Show the process list again in case the changes are interesting. + ps -W || true + # Strangely, Linux targets do not work here. cargo always says # "error: cannot produce cdylib for ... as the target ... does not support these crate types". # Only run "pass" tests, which is quite a bit faster.