[Windows] Add dependency-resolution preflight for downstream builds - #14565
Open
alex-harvey-z3q wants to merge 1 commit into
Open
[Windows] Add dependency-resolution preflight for downstream builds#14565alex-harvey-z3q wants to merge 1 commit into
alex-harvey-z3q wants to merge 1 commit into
Conversation
alex-harvey-z3q
force-pushed
the
codex/14564-windows-resolver-preflight
branch
4 times, most recently
from
August 16, 2026 14:02
16d86d7 to
c6c336d
Compare
alex-harvey-z3q
marked this pull request as ready for review
August 18, 2026 14:55
alex-harvey-z3q
force-pushed
the
codex/14564-windows-resolver-preflight
branch
2 times, most recently
from
August 19, 2026 02:00
06ca451 to
18ae80c
Compare
alex-harvey-z3q
force-pushed
the
codex/14564-windows-resolver-preflight
branch
from
August 19, 2026 02:19
18ae80c to
219ae64
Compare
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.
Description
Adds an opt-in, non-installing Windows dependency-resolution preflight for downstream consumers to run from the exact revision and effective Packer inputs they are about to build, before starting Packer.
-Imageselects normal runner-images defaults. Supported targets are:Windows2022Windows2025Windows2025VS2026Windows11Arm64Windows11VS2026Arm64Downstream consumers that prepare templates outside the checkout can supply
-TemplatePath,-ToolsetPath, and-ScriptsRoot. With all three effective paths supplied,-Imageis optional; partial overrides combine with image-derived defaults.${path.root}references are resolved relative to the effective template directory and normalized to absolute filesystem paths before validation.The preflight reports its selected inputs, static-check progress and counts, each network-check phase, and explicit network-skip status. It:
For custom networked runs without
-Image,-Architecture x64or-Architecture arm64is required so the GitHub CLI asset matches the intended image.It does not create Azure resources, provision a VM, download installer payloads, or mutate the build machine.
-SkipNetworkruns the static checks only.The accompanying unit suite uses mocked endpoint responses and runs in the existing fast PowerShell-test workflow when the preflight changes.
Related issue:
Check list
Validation
Invoke-Pester -Output Detailed images/windows/scripts/preflight/tests(24 passed)-Imagevalues-TemplatePath,-ToolsetPath, and-ScriptsRoot${path.root}/../../../shared/assets/certificatesreference resolves to the expected existing directory; a missing nested path reports both original and normalized pathsBicepand toolset-pinnedcmake.install3.31.6Pester5.9.0