Skip to content

Fix CI free-disk-space-linux script#157159

Open
ehuss wants to merge 1 commit into
rust-lang:mainfrom
ehuss:fix-free-disk-space
Open

Fix CI free-disk-space-linux script#157159
ehuss wants to merge 1 commit into
rust-lang:mainfrom
ehuss:fix-free-disk-space

Conversation

@ehuss
Copy link
Copy Markdown
Contributor

@ehuss ehuss commented May 30, 2026

Occasionally we've been having jobs running on systems with limited free disk space, triggering this script to run. However, it has recently been failing with the error:

E: Failed to fetch mirror+file:/etc/apt/apt-mirrors.txt/pool/main/o/openjdk-21/openjdk-21-jre-headless_21.0.10%2b7-1%7e24.04_amd64.deb 404 Not Found [IP: 52.252.163.49 80]
E: Unable to correct problems, you have held broken packages.
E: Aborting install.

This adds an apt-get update to try to repair the index before trying to remove any packages. This seems to work in my testing, but I am far from an expert on apt.

Occasionally we've been having jobs running on systems with limited free
disk space, triggering this script to run. However, it has recently been
failing with the error:

E: Failed to fetch mirror+file:/etc/apt/apt-mirrors.txt/pool/main/o/openjdk-21/openjdk-21-jre-headless_21.0.10%2b7-1%7e24.04_amd64.deb 404 Not Found [IP: 52.252.163.49 80]
E: Unable to correct problems, you have held broken packages.
E: Aborting install.

This adds an `apt-get update` to try to repair the index before trying
to remove any packages. This seems to work in my testing, but I am far
from an expert on apt.
@rustbot rustbot added A-CI Area: Our Github Actions CI A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels May 30, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 30, 2026

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

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: infra-ci
  • infra-ci expanded to Kobzol, Mark-Simulacrum, jdno, jieyouxu, marcoieni
  • Random selection from Mark-Simulacrum, jdno, marcoieni

Copy link
Copy Markdown
Contributor

@JonathanBrouwer JonathanBrouwer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to me, but I'm also not an expert in ci so I'll wait for someone else to review

View changes since this review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-CI Area: Our Github Actions CI A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants