Skip to content

Fix mock file stream truncation and strengthen XHarness path assertions - #17597

Open
akoeplinger wants to merge 1 commit into
dotnet:mainfrom
akoeplinger:fix/mock-file-stream-create-semantics
Open

akoeplinger wants to merge 1 commit into
dotnet:mainfrom
akoeplinger:fix/mock-file-stream-create-semantics

Conversation

@akoeplinger

@akoeplinger akoeplinger commented Sep 19, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #17571: fix mock stream truncation and expansion, preserve NUL characters, and assert exact XHarness archive paths.

Validation: Helix SDK tests passed. Full Release validation failed in the central-package-management and SignTool tests, outside this patch.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 208e5355-ef64-4625-8d0c-2c153e134dfa
Copilot AI lite review requested due to automatic review settings September 19, 2026 17: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.

Copilot review overview

🟡 Changes recommended

Fix append-mode positioning and add committed regression coverage for the mock stream behavior.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Low severity

Open (1)
What changed in this PR

Fixes mock file stream truncation and strengthens XHarness archive path assertions.

Changes:

  • Adds mode-aware, expandable mock streams while preserving embedded NUL characters.
  • Adds exact archive destination and metadata assertions.
File Changes
src/​Microsoft.DotNet.Helix/​Sdk.Tests/​Microsoft.DotNet.Helix.Sdk.Tests/​CreateXHarnessAppleWorkItemsTests.cs Adds exact Apple archive-path assertions.
src/​Microsoft.DotNet.Helix/​Sdk.Tests/​Microsoft.DotNet.Helix.Sdk.Tests/​CreateXHarnessAndroidWorkItemsTests.cs Adds exact Android archive-path assertions.
src/​Common/​Microsoft.Arcade.Test.Common/​MockFileSystem.cs Updates mock stream initialization and persistence behavior.

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

Comment thread src/Common/Microsoft.Arcade.Test.Common/MockFileSystem.cs

This branch has not been deployed

No deployments
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