rust icon indicating copy to clipboard operation
rust copied to clipboard

CI: use free runners for 4-core Linux jobs

Open Kobzol opened this issue 1 year ago • 44 comments

It looks like the free runners already have the same spec as the 4c custom "large" runner (4 cores, 16 GiB of memory, Ubuntu 20.04).

try-job: arm-android try-job: armhf-gnu try-job: dist-aarch64-linux try-job: dist-android try-job: dist-arm-linux try-job: dist-armhf-linux try-job: dist-armv7-linux try-job: dist-i586-gnu-i586-i686-musl try-job: dist-i686-linux try-job: dist-loongarch64-linux try-job: dist-loongarch64-musl try-job: dist-ohos try-job: dist-powerpc-linux try-job: dist-powerpc64-linux try-job: dist-powerpc64le-linux try-job: dist-riscv64-linux try-job: dist-s390x-linux try-job: dist-various-1 try-job: dist-various-2 try-job: dist-x86_64-freebsd try-job: dist-x86_64-illumos try-job: dist-x86_64-netbsd try-job: mingw-check try-job: test-various try-job: x86_64-gnu try-job: x86_64-gnu-stable try-job: x86_64-gnu-aux try-job: x86_64-gnu-debug try-job: x86_64-gnu-nopt

Kobzol avatar Oct 07 '24 14:10 Kobzol

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

rustbot avatar Oct 07 '24 14:10 rustbot

@bors r+ rollup=never p=1

Mark-Simulacrum avatar Oct 07 '24 18:10 Mark-Simulacrum

:pushpin: Commit e2a3c507b9f7ff4c86a6ba4d43c4d7f4c08642e0 has been approved by Mark-Simulacrum

It is now in the queue for this repository.

bors avatar Oct 07 '24 18:10 bors

:hourglass: Testing commit e2a3c507b9f7ff4c86a6ba4d43c4d7f4c08642e0 with merge ea2efb0c66d959db6b8de0edaef1bd0f24f87971...

bors avatar Oct 07 '24 21:10 bors

The job dist-various-1 failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
[RUSTC-TIMING] icu_provider_adapters test:false 0.166
[RUSTC-TIMING] fluent_langneg test:false 0.111
   Compiling rustc_hir v0.0.0 (/checkout/compiler/rustc_hir)
[RUSTC-TIMING] fluent_bundle test:false 2.369
##[warning]You are running out of disk space. The runner will stop working when the machine runs out of disk space. Free space left: 65 MB
   Compiling rustc_type_ir_macros v0.0.0 (/checkout/compiler/rustc_type_ir_macros)
[RUSTC-TIMING] rustc_ast test:false 9.806
   Compiling itertools v0.12.1
[RUSTC-TIMING] rustc_type_ir_macros test:false 0.782
---
[RUSTC-TIMING] getopts test:false 1.090
   Compiling field-offset v0.3.6
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/bin:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/bin:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcBv7Q5G/symbols.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/release/build/memoffset-5b6b698f667648c7/build_script_build-5b6b698f667648c7.build_script_build.c548b25d7b3c6eee-cgu.0.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/release/build/memoffset-5b6b698f667648c7/build_script_build-5b6b698f667648c7.8vzl1s3uv27qnhf1qqzflkc68.rcgu.o" "-Wl,--as-needed" "-Wl,-Bstatic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/release/deps/libautocfg-e9abd31ba576ff3d.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-ddfa30f5b2dff88d.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-d58ba3f1cf32ddd2.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-2dbef2699a18c754.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-5b026333cdfb63da.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-113c49093f0fcc2b.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-019e23faa7643465.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-2cf2c3dfc6c03f4d.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-901a4b8bab9b89aa.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-85120886601cc0a9.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-1470e1ba5156a741.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-4885f4c688995969.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-1d696803940285c8.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-e21bf89e627e698a.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-33f46c78576842ef.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-17be2b16923e3bb8.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-567de79732361682.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-4cf833632aafa84c.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-65c2c6d2d6ae570b.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-aa3eb6fd597e79f5.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/release/build/memoffset-5b6b698f667648c7/build_script_build-5b6b698f667648c7" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: /usr/bin/ld: final link failed: No space left on device
          

[RUSTC-TIMING] build_script_build test:false 0.176
error: could not compile `memoffset` (build script) due to 1 previous error
error: could not compile `memoffset` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/bin:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/bin:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustceY0m9r/symbols.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/release/build/field-offset-fb001b237fc0e3d2/build_script_build-fb001b237fc0e3d2.build_script_build.b4433ad78397c5fe-cgu.0.rcgu.o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/release/build/field-offset-fb001b237fc0e3d2/build_script_build-fb001b237fc0e3d2.9mzg83qaekwspkkrdw30ekqxn.rcgu.o" "-Wl,--as-needed" "-Wl,-Bstatic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/release/deps/librustc_version-87ec8058b6c28a31.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/release/deps/libsemver-f9883934cb2c64ae.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-ddfa30f5b2dff88d.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-d58ba3f1cf32ddd2.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-2dbef2699a18c754.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-5b026333cdfb63da.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-113c49093f0fcc2b.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-019e23faa7643465.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-2cf2c3dfc6c03f4d.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-901a4b8bab9b89aa.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-85120886601cc0a9.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-1470e1ba5156a741.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-4885f4c688995969.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-1d696803940285c8.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-e21bf89e627e698a.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-33f46c78576842ef.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-17be2b16923e3bb8.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-567de79732361682.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-4cf833632aafa84c.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-65c2c6d2d6ae570b.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-aa3eb6fd597e79f5.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/release/build/field-offset-fb001b237fc0e3d2/build_script_build-fb001b237fc0e3d2" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: /usr/bin/ld: final link failed: No space left on device
          

[RUSTC-TIMING] build_script_build test:false 0.197
error: could not compile `field-offset` (build script) due to 1 previous error
error: could not compile `field-offset` (build script) due to 1 previous error
error: failed to write to `/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/rmetaiVP5hQ/lib.rmeta`: No space left on device (os error 28)
error: could not compile `rustc_errors` (lib) due to 1 previous error
error: could not compile `rustc_errors` (lib) due to 1 previous error
rustc-LLVM ERROR: IO failure on output stream: No space left on device
Build completed unsuccessfully in 0:08:22
  local time: Mon Oct  7 21:21:13 UTC 2024
  network time: Mon, 07 Oct 2024 21:21:13 GMT
##[error]Process completed with exit code 1.

rust-log-analyzer avatar Oct 07 '24 21:10 rust-log-analyzer

:broken_heart: Test failed - checks-actions

bors avatar Oct 07 '24 21:10 bors

Ran out of disk space. Fun.

Kobzol avatar Oct 08 '24 06:10 Kobzol

@bors try

Kobzol avatar Oct 11 '24 07:10 Kobzol

@bors try

Kobzol avatar Oct 11 '24 07:10 Kobzol

:hourglass: Trying commit 16d6cabc590138dcb20e80d647001153ab6fdc11 with merge 85bd59c08d43d74244cbca77ddc4d3c19ccdfb4a...

bors avatar Oct 11 '24 07:10 bors

:sunny: Try build successful - checks-actions Build commit: 85bd59c08d43d74244cbca77ddc4d3c19ccdfb4a (85bd59c08d43d74244cbca77ddc4d3c19ccdfb4a)

bors avatar Oct 11 '24 08:10 bors

@bors try

Kobzol avatar Oct 11 '24 09:10 Kobzol

:hourglass: Trying commit 128a5137a34d48464699cce088211a684d85f7da with merge 2862436ee252c5b249a4b38225d99e58a41d73f3...

bors avatar Oct 11 '24 09:10 bors

:sunny: Try build successful - checks-actions Build commit: 2862436ee252c5b249a4b38225d99e58a41d73f3 (2862436ee252c5b249a4b38225d99e58a41d73f3)

bors avatar Oct 11 '24 10:10 bors

@bors try

Kobzol avatar Oct 11 '24 14:10 Kobzol

:hourglass: Trying commit ac4533d72d6ffd887d4bc639569bd143603b84d4 with merge ccaf01debf99b479302580153431381f4ccf43a6...

bors avatar Oct 11 '24 14:10 bors

:sunny: Try build successful - checks-actions Build commit: ccaf01debf99b479302580153431381f4ccf43a6 (ccaf01debf99b479302580153431381f4ccf43a6)

bors avatar Oct 11 '24 15:10 bors

I added an action to reduce disk usage. I'd suggest trying to merge this again and see if all other CI jobs that use the free runner now can fit within the available space.

@rustbot ready

Kobzol avatar Oct 11 '24 20:10 Kobzol

@bors r+

Mark-Simulacrum avatar Oct 12 '24 19:10 Mark-Simulacrum

:pushpin: Commit a1d9e2fcfb1b47438f8a6bfc696d4273c9830dc7 has been approved by Mark-Simulacrum

It is now in the queue for this repository.

bors avatar Oct 12 '24 19:10 bors

:hourglass: Testing commit a1d9e2fcfb1b47438f8a6bfc696d4273c9830dc7 with merge 7c1cdeaef9e836876aba31fb9ae26fd7c05e2be3...

bors avatar Oct 12 '24 21:10 bors

:broken_heart: Test failed - checks-actions

bors avatar Oct 12 '24 21:10 bors

A job failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
Prepare all required actions
Getting action download info
Download action repository 'msys2/[email protected]' (SHA:cc11e9188b693c2b100158c3322424c4cc1dadea)
Download action repository 'actions/checkout@v4' (SHA:eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871)
Download action repository 'jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be' (SHA:54081f138730dfa15788a46383842cd2f914a1be)
Complete job name: auto - aarch64-apple
##[group]Run git config --global core.autocrlf false
git config --global core.autocrlf false
shell: /bin/bash --noprofile --norc -e -o pipefail {0}
---
branch 'auto' set up to track 'origin/auto'.
##[endgroup]
[command]/opt/homebrew/bin/git log -1 --format=%H
7c1cdeaef9e836876aba31fb9ae26fd7c05e2be3
##[group]Run jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be
  large-packages: false
  android: true
  dotnet: true
  haskell: true
---
  DOCKER_TOKEN: ***
  SCCACHE_BUCKET: rust-lang-ci-sccache2
  CACHE_DOMAIN: ci-caches.rust-lang.org
##[endgroup]
##[group]Run # ======
# ======
# MACROS
# ======


# macro to print a line of equals
# (silly but works)
printSeparationLine() {
  str=${1:=}
  num=${2:-80}
  output=""
  output=""
  while [ $counter -le $num ]
  do
     output="${output}${str}"
     counter=$((counter+1))
  done
  echo "${output}"

# macro to compute available space
# macro to compute available space
# REF: https://unix.stackexchange.com/a/42049/60849
# REF: https://stackoverflow.com/a/450821/408734
getAvailableSpace() { echo $(df -a $1 | awk 'NR > 1 {avail+=$4} END {print avail}'); }

# macro to make Kb human readable (assume the input is Kb)
# REF: https://unix.stackexchange.com/a/44087/60849
formatByteCount() { echo $(numfmt --to=iec-i --suffix=B --padding=7 $1'000'); }
# macro to output saved space
printSavedSpace() {
  saved=${1}
  saved=${1}
  title=${2:-}
  echo ""
  printSeparationLine '*' 80
  printSeparationLine '*' 80
  if [ ! -z "${title}" ]; then
    echo "=> ${title}: Saved $(formatByteCount $saved)"
  else
    echo "=> Saved $(formatByteCount $saved)"
  printSeparationLine '*' 80
  echo ""
}


# macro to print output of dh with caption
printDH() {
  caption=${1:-}
  printSeparationLine '=' 80
  echo "${caption}"
  echo ""
  echo ""
  echo "$ dh -h /"
  df -h /
  df -h /
  echo "$ dh -a /"
  df -a /
  df -a /
  echo "$ dh -a"
  df -a
  printSeparationLine '=' 80
}

---
# ======

# Display initial disk space stats

AVAILABLE_INITIAL=$(getAvailableSpace)
AVAILABLE_ROOT_INITIAL=$(getAvailableSpace '/')
printDH "BEFORE CLEAN-UP:"
echo ""



# Option: Remove Android library

if [[ true == 'true' ]]; then
  BEFORE=$(getAvailableSpace)
  
  sudo rm -rf /usr/local/lib/android || true

  AFTER=$(getAvailableSpace)
  SAVED=$((AFTER-BEFORE))
  printSavedSpace $SAVED "Android library"

# Option: Remove .NET runtime


if [[ true == 'true' ]]; then
  BEFORE=$(getAvailableSpace)

  # https://github.community/t/bigger-github-hosted-runners-disk-space/17267/11
  sudo rm -rf /usr/share/dotnet || true
  
  AFTER=$(getAvailableSpace)
  SAVED=$((AFTER-BEFORE))
  printSavedSpace $SAVED ".NET runtime"

# Option: Remove Haskell runtime


if [[ true == 'true' ]]; then
  BEFORE=$(getAvailableSpace)

  sudo rm -rf /opt/ghc || true
  sudo rm -rf /usr/local/.ghcup || true
  
  AFTER=$(getAvailableSpace)
  SAVED=$((AFTER-BEFORE))
  printSavedSpace $SAVED "Haskell runtime"

# Option: Remove large packages
# Option: Remove large packages
# REF: https://github.com/apache/flink/blob/master/tools/azure-pipelines/free_disk_space.sh

if [[ false == 'true' ]]; then
  BEFORE=$(getAvailableSpace)
  
  sudo apt-get remove -y '^aspnetcore-.*' || echo "::warning::The command [sudo apt-get remove -y '^aspnetcore-.*'] failed to complete successfully. Proceeding..."
  sudo apt-get remove -y '^dotnet-.*' --fix-missing || echo "::warning::The command [sudo apt-get remove -y '^dotnet-.*' --fix-missing] failed to complete successfully. Proceeding..."
  sudo apt-get remove -y '^llvm-.*' --fix-missing || echo "::warning::The command [sudo apt-get remove -y '^llvm-.*' --fix-missing] failed to complete successfully. Proceeding..."
  sudo apt-get remove -y 'php.*' --fix-missing || echo "::warning::The command [sudo apt-get remove -y 'php.*' --fix-missing] failed to complete successfully. Proceeding..."
  sudo apt-get remove -y '^mongodb-.*' --fix-missing || echo "::warning::The command [sudo apt-get remove -y '^mongodb-.*' --fix-missing] failed to complete successfully. Proceeding..."
  sudo apt-get remove -y '^mysql-.*' --fix-missing || echo "::warning::The command [sudo apt-get remove -y '^mysql-.*' --fix-missing] failed to complete successfully. Proceeding..."
  sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri --fix-missing || echo "::warning::The command [sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri --fix-missing] failed to complete successfully. Proceeding..."
  sudo apt-get remove -y google-cloud-sdk --fix-missing || echo "::debug::The command [sudo apt-get remove -y google-cloud-sdk --fix-missing] failed to complete successfully. Proceeding..."
  sudo apt-get remove -y google-cloud-cli --fix-missing || echo "::debug::The command [sudo apt-get remove -y google-cloud-cli --fix-missing] failed to complete successfully. Proceeding..."
  sudo apt-get autoremove -y || echo "::warning::The command [sudo apt-get autoremove -y] failed to complete successfully. Proceeding..."
  sudo apt-get clean || echo "::warning::The command [sudo apt-get clean] failed to complete successfully. Proceeding..."

  AFTER=$(getAvailableSpace)
  SAVED=$((AFTER-BEFORE))
  printSavedSpace $SAVED "Large misc. packages"

# Option: Remove Docker images


if [[ true == 'true' ]]; then
  BEFORE=$(getAvailableSpace)
  sudo docker image prune --all --force || true


  AFTER=$(getAvailableSpace)
  SAVED=$((AFTER-BEFORE))
  printSavedSpace $SAVED "Docker images"

# Option: Remove tool cache
# REF: https://github.com/actions/virtual-environments/issues/2875#issuecomment-1163392159


if [[ false == 'true' ]]; then
  BEFORE=$(getAvailableSpace)

  sudo rm -rf "$AGENT_TOOLSDIRECTORY" || true
  
  AFTER=$(getAvailableSpace)
  SAVED=$((AFTER-BEFORE))
  printSavedSpace $SAVED "Tool cache"

# Option: Remove Swap storage


if [[ true == 'true' ]]; then
  BEFORE=$(getAvailableSpace)

  sudo swapoff -a || true
  sudo rm -f /mnt/swapfile || true
  free -h
  
  AFTER=$(getAvailableSpace)
  SAVED=$((AFTER-BEFORE))
  printSavedSpace $SAVED "Swap storage"



# Output saved space statistic
# Output saved space statistic

AVAILABLE_END=$(getAvailableSpace)
AVAILABLE_ROOT_END=$(getAvailableSpace '/')
echo ""
printDH "AFTER CLEAN-UP:"

echo ""
echo ""
echo ""

echo "/dev/root:"
printSavedSpace $((AVAILABLE_ROOT_END - AVAILABLE_ROOT_INITIAL))
echo "overall:"
printSavedSpace $((AVAILABLE_END - AVAILABLE_INITIAL))
---
/Users/runner/work/_temp/c28a6e21-9abe-4258-8b49-00eab87867c8.sh: line 28: numfmt: command not found
=> Docker images: Saved 
********************************************************************************

sudo: swapoff: command not found
/Users/runner/work/_temp/c28a6e21-9abe-4258-8b49-00eab87867c8.sh: line 173: free: command not found
##[error]Process completed with exit code 127.
[command]/opt/homebrew/bin/git version
git version 2.46.2
Copying '/Users/runner/.gitconfig' to '/Users/runner/work/_temp/d29db22c-9614-4466-ac6f-a9b1698323fe/.gitconfig'
Temporarily overriding HOME='/Users/runner/work/_temp/d29db22c-9614-4466-ac6f-a9b1698323fe' before making global git config changes

rust-log-analyzer avatar Oct 12 '24 21:10 rust-log-analyzer

Ah, forgot to only do the cleaning on Ubuntu.

@bors r=Mark-Simulacrum

Kobzol avatar Oct 12 '24 21:10 Kobzol

:pushpin: Commit e3d93db02d717395c0367a3270c81eaa47c9f114 has been approved by Mark-Simulacrum

It is now in the queue for this repository.

bors avatar Oct 12 '24 21:10 bors

:hourglass: Testing commit e3d93db02d717395c0367a3270c81eaa47c9f114 with merge 21e16e54f22cee08ba7213e2cceecf73f3f783a2...

bors avatar Oct 13 '24 02:10 bors

The job dist-powerpc64-linux failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
[TIMING] core::build_steps::dist::RustDev { target: powerpc64-unknown-linux-gnu } -- 429.049
Dist extended stage1 (powerpc64-unknown-linux-gnu)
[TIMING] core::build_steps::dist::CodegenBackend { compiler: Compiler { stage: 2, host: powerpc64-unknown-linux-gnu }, backend: "cranelift" } -- 0.000
Dist rust-nightly-powerpc64-unknown-linux-gnu
##[warning]You are running out of disk space. The runner will stop working when the machine runs out of disk space. Free space left: 92 MB

Caused by:
    0: failed to tar file '/checkout/obj/build/tmp/tarball/rust/powerpc64-unknown-linux-gnu/rust-nightly-powerpc64-unknown-linux-gnu/rustc/lib/libyoke_derive-4d7af7462c2a330a.so'
    1: No space left on device (os error 28)
    1: No space left on device (os error 28)
Command has failed. Rerun with -v to see more details.
  local time: Sun Oct 13 03:57:06 UTC 2024
  network time: Sun, 13 Oct 2024 03:57:06 GMT
##[error]Process completed with exit code 1.
Post job cleanup.

rust-log-analyzer avatar Oct 13 '24 03:10 rust-log-analyzer

:broken_heart: Test failed - checks-actions

bors avatar Oct 13 '24 03:10 bors

Ok, time to selectively disable the free runners on selected jobs. But there are a lot of them. @Mark-Simulacrum Can we do a merge attempt where I set fail-fast: false to the matrix, just to see all the jobs that fail? Then I could move all of them to the large runner at once.

Kobzol avatar Oct 13 '24 06:10 Kobzol

Sure. We could probably also add a bunch of try-job: to the PR description for all of those?

Mark-Simulacrum avatar Oct 13 '24 13:10 Mark-Simulacrum