Skip to content

Conversation

DanielMicrosoft
Copy link
Contributor

@DanielMicrosoft DanielMicrosoft commented Sep 16, 2025

Description

Throttles -m (maxCpuCount) in msbuild process to 1 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

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

Copy link

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

@DanielMicrosoft DanielMicrosoft marked this pull request as ready for review September 16, 2025 08:33
@Copilot Copilot AI review requested due to automatic review settings September 16, 2025 08:33
Copy link
Contributor

@Copilot Copilot AI left a 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

@DanielMicrosoft
Copy link
Contributor Author

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@DanielMicrosoft DanielMicrosoft changed the title temp: add diag statement [Infra]: Addressing Ubuntu 24 memory usage issue Sep 17, 2025
@VeryEarly
Copy link
Collaborator

image can see the test log is complaining

@DanielMicrosoft
Copy link
Contributor Author

image can see the test log is complaining

yeah i noticed that. still working on it

@DanielMicrosoft DanielMicrosoft marked this pull request as draft September 17, 2025 09:09
@DanielMicrosoft
Copy link
Contributor Author

image can see the test log is complaining

sorry i realized i marked it "ready for review", i put it back to draft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants