[Bug 2144934] Re: Selfbuild autopkgtest is flaky due to excessive resource usage

Launchpad Bug Tracker 2144934 at bugs.launchpad.net
Thu Mar 19 18:25:29 UTC 2026


** Merge proposal linked:
   https://code.launchpad.net/~maxgmr/ubuntu/+source/rustc-1.85/+git/rustc-1.85/+merge/498512

** Merge proposal linked:
   https://code.launchpad.net/~maxgmr/ubuntu/+source/rustc-1.85/+git/rustc-1.85/+merge/498395

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rustc-1.85 in Ubuntu.
https://bugs.launchpad.net/bugs/2144934

Title:
  Selfbuild autopkgtest is flaky due to excessive resource usage

Status in rustc-1.85 package in Ubuntu:
  Triaged
Status in rustc-1.85 source package in Noble:
  Triaged
Status in rustc-1.85 source package in Questing:
  Triaged
Status in rustc-1.85 source package in Resolute:
  Triaged

Bug description:
  The large resource usage of the rustc selfbuild autopkgtest not only causes
  a large, unnecessary load on our autopkgtest infrastructure, but the tests can
  also sometimes run out of resources, making the autopkgtests flaky. This
  flakiness problem is extra bad for tests which can take upwards of 2 hours to
  run.

  Currently, Rust toolchains before rustc-1.93 run the entire bootstrap process
  during the selfbuild autopkgtest, including thousands of unit tests. This is
  unnecessary, as we already run the unit tests during the build process itself.

  Additionally, many settings which are important for optimizing the toolchain
  are left on for the selfbuild autopkgtest. The performance of the toolchain
  built by the autopkgtest is irrelevant, and the settings increase resource
  usage, so they should be disabled as well.

  Luckily, as stated above, rustc-1.93 has solved this problem by disabling
  certain resource-intensive bootstrap optimizations and only running a
  subset of unit tests to verify that the new toolchain is capable of testing
  other toolchain builds.

  The solution is to cherry-pick these fixes from rustc-1.93 in order to make
  older toolchains' autopkgtests more reliable.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rustc-1.85/+bug/2144934/+subscriptions




More information about the foundations-bugs mailing list