Skip to content

Conversation

DanielMicrosoft
Copy link
Contributor

@DanielMicrosoft DanielMicrosoft commented Sep 15, 2025

Description

This PR adds memory management parameters to the Linux test execution pipeline to prevent out-of-memory (OOM) failures on Ubuntu 24.04 test agents. The changes implement specific garbage collection and parallelism restrictions to reduce memory consumption during test runs.

  • Adds Linux-specific memory tuning parameters for .NET garbage collection
  • Restricts CPU parallelism for test execution on Linux platforms
  • Refactors the MSBuild command arguments for better maintainability

These changes are implemented to mitigate ADO agents from killing the process and causing Linux test step to be flaky.

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
Copy link
Contributor Author

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@DanielMicrosoft
Copy link
Contributor Author

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@DanielMicrosoft
Copy link
Contributor Author

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@DanielMicrosoft
Copy link
Contributor Author

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@DanielMicrosoft DanielMicrosoft changed the title fix: trialling memory management tweaks for linux on test steps [Infra] trialling memory management tweaks for linux on test steps Sep 15, 2025
@DanielMicrosoft
Copy link
Contributor Author

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@DanielMicrosoft DanielMicrosoft marked this pull request as ready for review September 15, 2025 22:41
@Copilot Copilot AI review requested due to automatic review settings September 15, 2025 22:41
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 adds memory management parameters to the Linux test execution pipeline to prevent out-of-memory (OOM) failures on Ubuntu 24.04 test agents. The changes implement specific garbage collection and parallelism restrictions to reduce memory consumption during test runs.

  • Adds Linux-specific memory tuning parameters for .NET garbage collection
  • Restricts CPU parallelism for test execution on Linux platforms
  • Refactors the MSBuild command arguments for better maintainability

@DanielMicrosoft
Copy link
Contributor Author

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@VeryEarly VeryEarly merged commit 8b8f77a into Azure:main Sep 16, 2025
12 checks passed
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