-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[Infra]: Addressing Ubuntu 24 memory usage issue #28565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[Infra]: Addressing Ubuntu 24 memory usage issue #28565
Conversation
Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR addresses memory issues on Ubuntu 24.04 pipeline agents by throttling MSBuild's CPU parallelism and applying additional diagnostic messaging. The changes aim to prevent Out-of-Memory (OOM) issues that have been causing flaky test runs since upgrading to Ubuntu 24.
- Adds MSBuild parallelism throttling to single-threaded mode (
-m:1
) - Updates diagnostic message for better clarity
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Description
Throttles
-m
(maxCpuCount) in msbuild process to1
to prevent OOM issues on pipeline. Upgrading pipeline agent to Ubuntu 24 has created flaky test runs, it appears to be a common issue with Ubuntu 24 agents and memory heavy processes.Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.md
and reviewed the following information:ChangeLog.md
file(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
.## Upcoming Release
header in the past tense.ChangeLog.md
if no new release is required, such as fixing test case only.