Skip to content

Conversation

@amadeuszl
Copy link
Contributor

@amadeuszl amadeuszl commented Dec 2, 2025

Copilot AI review requested due to automatic review settings December 2, 2025 10:47
@amadeuszl amadeuszl requested a review from a team as a code owner December 2, 2025 10:47
Copy link
Contributor

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 pull request addresses test isolation issues by disabling parallelization for tests that manipulate environment variables. The changes ensure that environment variable-based tests don't interfere with each other when running concurrently by using xUnit's collection feature with DisableParallelization = true.

Key changes include:

  • Creating a test collection definition to control parallel execution of environment variable tests
  • Making environment variable prefixes unique across different test scenarios (Linux, Windows, and general tests) to improve isolation
  • Marking relevant test classes to be part of the non-parallelized collection

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
TestKubernetesEnvironmentSetup.cs Added xUnit collection definition with DisableParallelization = true and updated the default environment variable prefix from "MYCLUSTER_" to "TEST_SETUP_CLUSTER_"
KubernetesResourceQuotasServiceCollectionExtensionsTests.cs Incorrectly added CollectionDefinition attribute instead of Collection attribute to test class
KubernetesMetadataTests.cs Correctly added Collection attribute to associate test class with the environment variable test collection
Windows/AcceptanceTest.cs Changed environment variable prefix from "ACCEPTANCE_TEST_" to "ACCEPTANCE_TEST_WINDOWS_" for better test isolation
Linux/AcceptanceTest.cs Changed environment variable prefix from "ACCEPTANCE_TEST_" to "ACCEPTANCE_TEST_LINUX_" for better test isolation

@amadeuszl amadeuszl merged commit 152765f into dotnet:main Dec 2, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants