Skip to content

Avoid staging macOS app test fixtures in system temp - #17409

Merged
akoeplinger merged 3 commits into
mainfrom
akoeplinger/avoid-temp-app-fixtures
Aug 27, 2026
Merged

akoeplinger merged 3 commits into
mainfrom
akoeplinger/avoid-temp-app-fixtures

Conversation

@akoeplinger

Copy link
Copy Markdown
Member

Keep macOS package and signing test workspaces under the build artifacts directory, including nested package extraction scratch paths, to avoid triggering Defender endpoint protection heuristics.

Co-authored-by: Copilot [email protected]

To double check:

Keep macOS package and signing test workspaces under the build artifacts directory, including nested package extraction scratch paths, to avoid triggering endpoint protection heuristics.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 9f27e529-3921-42bd-9a9b-4932badf6b59
Copilot AI lite review requested due to automatic review settings August 26, 2026 12:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 adjusts macOS packaging/signing test and extraction workflows to avoid staging executable-containing fixtures under the system temp directory, instead keeping workspaces under the build output/artifacts area to reduce endpoint protection (Defender) heuristic triggers.

Changes:

  • Move SignToolTests fixture staging from Path.GetTempPath() to AppContext.BaseDirectory/test-artifacts/....
  • Keep nested .pkg repack scratch paths and payload extraction scratch directories within the caller-provided workspace (dstPath) instead of system temp.
  • Update UnpackPackTests to allocate all temp paths under a per-test testRoot workspace (and add cleanup via IDisposable).

Reviewed changes

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

File Description
src/Microsoft.DotNet.SignTool.Tests/SignToolTests.cs Moves signing test fixture staging under the test output directory instead of system temp.
src/Microsoft.DotNet.MacOsPkg/Core/Package.cs Keeps nested package repack and payload extraction scratch paths within the unpack workspace.
src/Microsoft.DotNet.MacOsPkg.Tests/UnpackPackTests.cs Makes MacOsPkg tests use a dedicated workspace under build output and adds cleanup.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Copilot AI review requested due to automatic review settings August 26, 2026 12:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

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

Copilot AI review requested due to automatic review settings August 26, 2026 12:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

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

@akoeplinger
akoeplinger merged commit f220891 into main Aug 27, 2026
12 of 13 checks passed
@akoeplinger
akoeplinger deleted the akoeplinger/avoid-temp-app-fixtures branch August 27, 2026 08:36
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Aug 28, 2026
@akoeplinger

Copy link
Copy Markdown
Member Author

/backport to release/11.0

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/11.0 (link to workflow run)

@akoeplinger

Copy link
Copy Markdown
Member Author

/backport to release/10.0

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/10.0 (link to workflow run)

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.

3 participants