Fix prerelease module imports - #428
Merged
Eugene Tolmachev (et1975) merged 1 commit intoSep 23, 2026
Merged
Conversation
Import installed prerelease modules through their manifest files rather than passing version directories to Import-Module. Replace mocked path assertions with real import regression coverage for both CDR import paths. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6c70a477-596a-450c-be69-4914b1d3e629
Copilot started reviewing on behalf of
Eugene Tolmachev (et1975)
September 22, 2026 19:39
View session
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
All reviewed changes are covered by passing regression tests with no unresolved issues.
Review effort: Balanced
Findings: None
What changed in this PR
Fixes prerelease module imports by targeting installed module manifests rather than version directories.
Changes:
- Resolves prerelease modules through their
.psd1manifests. - Applies the fix to both import workflows.
- Adds real PowerShell import regression coverage.
| File | Description |
|---|---|
tests/Microsoft.AVS.CDR.Tests.ps1 |
Adds regression coverage for both prerelease import paths. |
Microsoft.AVS.CDR/Microsoft.AVS.CDR.psm1 |
Resolves prerelease module manifests before importing. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
david becher (thinkdavid)
approved these changes
Sep 23, 2026
Eugene Tolmachev (et1975)
deleted the
copilot/fix-prerelease-module-import
branch
September 23, 2026 20:33
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
Import-ModulePinnedandImport-PSResourceDependenciesRoot cause
PSResourceGet correctly installs prerelease modules in suffix-less version directories such as
ModuleName/11.0.262. Passing that directory directly toImport-Modulefails because the directory basename is the version, not the module name. CDR now importsModuleName/11.0.262/ModuleName.psd1.Fixes the metadata-generation failure observed in ADO build 1377.
Validation
git diff --checkpassed