diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-12-16 20:00:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-16 20:00:09 +0100 |
| commit | 0ff00b6adb868996f3c73d666b21102bb7beb693 (patch) | |
| tree | 782ff16f5ea27e9062039d0f0f9fa4d9a6619f70 /src/ci/docker/scripts/add_dummy_commit.sh | |
| parent | 83ab648e00ecbdef415baba3cfbac6f5df263b1c (diff) | |
| parent | ac078a4cccf1ef4294960eecf6bc8b14149d2aa9 (diff) | |
| download | rust-0ff00b6adb868996f3c73d666b21102bb7beb693.tar.gz rust-0ff00b6adb868996f3c73d666b21102bb7beb693.zip | |
Rollup merge of #134124 - MarcoIeni:split-llvm-jobs, r=Kobzol
CI: use free runners for x86_64-gnu-llvm jobs try-job: x86_64-gnu-llvm-19-1 try-job: x86_64-gnu-llvm-19-2 try-job: x86_64-gnu-llvm-19-3 try-job: x86_64-gnu-llvm-18-1 try-job: x86_64-gnu-llvm-18-2 try-job: x86_64-gnu-llvm-18-3
Diffstat (limited to 'src/ci/docker/scripts/add_dummy_commit.sh')
| -rwxr-xr-x | src/ci/docker/scripts/add_dummy_commit.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/ci/docker/scripts/add_dummy_commit.sh b/src/ci/docker/scripts/add_dummy_commit.sh new file mode 100755 index 00000000000..029e4ae141f --- /dev/null +++ b/src/ci/docker/scripts/add_dummy_commit.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +set -ex + +if [ "$READ_ONLY_SRC" = "0" ]; then + # `core::builder::tests::ci_rustc_if_unchanged_logic` bootstrap test ensures that + # "download-rustc=if-unchanged" logic don't use CI rustc while there are changes on + # compiler and/or library. Here we are adding a dummy commit on compiler and running + # that test to make sure we never download CI rustc with a change on the compiler tree. + echo "" >> ../compiler/rustc/src/main.rs + git config --global user.email "dummy@dummy.com" + git config --global user.name "dummy" + git add ../compiler/rustc/src/main.rs + git commit -m "test commit for rust.download-rustc=if-unchanged logic" + DISABLE_CI_RUSTC_IF_INCOMPATIBLE=0 ../x.py test bootstrap \ + -- core::builder::tests::ci_rustc_if_unchanged_logic + # Revert the dummy commit + git reset --hard HEAD~1 +fi |
