Repository navigation
test(inbox): allow the Defender platform's two modules to be absent on the host - #45
Merged
Merged
Conversation
…n the host ConfigDefender and ConfigDefenderPerformance are put under System32 by the Defender platform update, not the Windows image, so a host whose platform is still at the image's baseline lacks them. Two hosted ARM64 runners on the same image differed on this within ten minutes, failing the inbox-module test on one. The test treats them like the edition-only modules: listed, and allowed to be missing from the host.
fadwen
commented
Oct 15, 2026
fadwen
left a comment
Owner
Author
There was a problem hiding this comment.
Notes on the lines whose reason the diff does not show.
| # whose Defender platform is still at the image's baseline does not have them yet. Two hosted | ||
| # ARM64 runners on the same image (windows-11-vs2026-arm64 20261013.183.4) differed on this | ||
| # within ten minutes of each other; a device that has updated once has both | ||
| $script:PlatformUpdateModules = 'ConfigDefender', 'ConfigDefenderPerformance' |
Owner
Author
There was a problem hiding this comment.
A separate list rather than two more names in EditionOnly: the edition list is about what a Home SKU never ships, and this pair is about timing on any SKU. Keeping them apart keeps the comment on each honest, and the table stays as it is because a managed device that has taken one platform update has both modules, which is what the IslModuleDependency rule needs to know.
Merged
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Tests/Unit/Private/Get-IslInboxModule.Tests.ps1checks that every module the inbox table lists is under the host's system module paths, with an allowance for the Pro and Enterprise features a Home edition does not ship. On 15 October the Windows on ARM job failed that check on thedocs/validation-kitbranch, twice, withConfigDefenderandConfigDefenderPerformancemissing, while the same runner image (windows-11-vs2026-arm6420261013.183.4) had passed it onfix/inex-evidenceten minutes earlier.Those two modules are placed under
System32\WindowsPowerShell\v1.0\Modulesby the Microsoft Defender platform update, not by the Windows image, so a host whose Defender platform is still at the image's baseline does not have them yet. Which hosted runner has taken the update is not something the test can control.Changes
PlatformUpdateModules, for the two Defender platform modules, and leaves them out of the "missing from the host" check the way it leaves out the edition-only modules. The table itself is unchanged: a device that has updated once has both, and the rule that reads the table is about what a script may import on a managed device.Verification
Get-IslInboxModule.Tests.ps1: 4 passed on PowerShell 7.6.6 on this ARM64 host, where both modules are present and the allowance is not exercised.Notes