Skip to content

Conversation

elinor-fung
Copy link
Member

@elinor-fung elinor-fung commented Oct 10, 2025

The BundledAppWithSubDirs tests intermittently hit out of space issues in CI. They do clean up the bundled apps they create, but only after all tests in the class have run. This change makes those tests clean up earlier for environments that may not have the space for all the bundled apps at the same time. This also fixes the one case where we were leaving an extracted file (mockcoreclr) behind on non-Windows.

Fixes #119249

cc @dotnet/appmodel @AaronRobinsonMSFT

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 intermittent out-of-space issues in CI by changing the cleanup behavior of bundled app tests. Instead of waiting until all tests in a class finish to clean up created bundled apps, each test now cleans up its bundled app immediately after running.

  • Modified cleanup timing to delete bundled apps after each test instead of after all tests complete
  • Added explicit cleanup for extracted files in one test case that was missing it
  • Renamed parameter from deleteExtracted to deleteApp to better reflect the new behavior

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
BundledAppWithSubDirs.cs Updated RunTheApp method to delete bundled apps immediately after each test and renamed cleanup parameter
BundleExtractToSpecificPath.cs Added missing cleanup for extraction directory in UndefinedHOME_getpwuidFallback test

@elinor-fung elinor-fung merged commit 3239112 into dotnet:main Oct 10, 2025
79 checks passed
@elinor-fung elinor-fung deleted the fix119249 branch October 10, 2025 23:32
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.

AppHost tests fail with "Failure extracting contents of the application bundle."

3 participants