Repository navigation
Allow variable page sizes in codesign output in Microsoft.NET.HostModel.Tests - #134588
Merged
Merged
Conversation
Co-authored-by: Copilot <[email protected]> Copilot-Session: aab39968-c93b-478a-acee-e9f7b2eefc26
|
Azure Pipelines: Successfully started running 3 pipeline(s). 13 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The parser now supports both tested page sizes without affecting signature metadata validation.
Review effort: Lite
Findings: None
What changed in this PR
Updates codesign parser tests to support both 4 KiB and 16 KiB macOS page sizes.
Changes:
- Accepts variable
Page size=values. - Tests parsing with 4096 and 16384 page sizes.
| File | Description |
|---|---|
src/installer/tests/Microsoft.NET.HostModel.Tests/MachObjectSigning/MachObjectTests.cs |
Adds test cases for both page sizes. |
src/installer/tests/Microsoft.NET.HostModel.Tests/MachObjectSigning/CodesignOutputInfo.cs |
Relaxes page-size parsing and parameterizes sample output. |
jtschuster
approved these changes
Sep 24, 2026
Member
Author
|
/backport to release/11.0 |
Member
Author
|
/backport to release/10.0 |
Contributor
|
Started backporting to |
Contributor
|
Started backporting to |
akoeplinger
added a commit
that referenced
this pull request
Oct 2, 2026
…oft.NET.HostModel.Tests (#134600) Backport of #134588 to release/11.0 /cc @akoeplinger ## Customer Impact - [ ] Customer reported - [X] Found internally None, this just fixes a test to be compatible with newer versions of macOS. ## Regression - [ ] Yes - [x] No ## Testing CI testing. ## Risk None. Co-authored-by: Alexander Köplinger <[email protected]> Copilot-Session: aab39968-c93b-478a-acee-e9f7b2eefc26
akoeplinger
added a commit
that referenced
this pull request
Oct 2, 2026
…oft.NET.HostModel.Tests (#134599) Backport of #134588 to release/10.0 /cc @akoeplinger ## Customer Impact - [ ] Customer reported - [X] Found internally None, this just fixes a test to be compatible with newer versions of macOS. ## Regression - [ ] Yes - [x] No ## Testing CI testing. ## Risk None. Co-authored-by: Alexander Köplinger <[email protected]> Copilot-Session: aab39968-c93b-478a-acee-e9f7b2eefc26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Page size=field emitted bycodesignwithout requiring a 4 KiB valueContext
On macOS 26.7 arm64,
/usr/bin/codesignreportsPage size=16384for the locally builtapphostandsinglefilehost. The existing parser requiredPage size=4096, causing twoMicrosoft.NET.HostModel.Testsfailures.The page size is not represented in
CodesignOutputInfoor used by the subsequent comparison. The test validates the meaningful signature metadata and code/special-slot hashes, so the parser only needs to verify that the expected field is present.This was not caught by the current macOS arm64 CI arrangement:
OSX.26.Arm64.OpenHelix queuecodesign --display --verbose=6runs on the Helix machine, but reports the page size stored in the signature previously created on the macOS 15 build agentA recent scheduled run confirmed that
Microsoft.NET.HostModel.Testsexecuted on macOS 26.4.1 in Helix and passed all 148 tests (147 passed and one unrelated skip), while still observing the build-agent-created signatures.Testing
All host test assemblies passed.
Note
This pull request description was generated with GitHub Copilot.