Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions documentation/troubleshoot-ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,19 @@ One or more tests failed
See test reports in artifacts/Test and fix failures related to your changes.

In case you see more failures, please contact test owning team. Common way is to find a person who edited the cmdlet or test last. Networking tests are also marked with header like this to simplify team search: `[Trait(Category.Owner, Category.TeamAlias)]`

## Test failures (.psd1 of other modules not found)

### Message

> Exception:System.IO.FileNotFoundException: The specified module 'D:\a\1\s\artifacts\Debug\Az.Network\Az.Network.psd1' was not loaded because no valid module file was found in any module directory.

### Reasons

This is because your test cases are using cmdlets from other module, but it was not built by CI.

### Solution

Add the missing module's csproj to your module's .sln file. For example this is how `Compute.sln` references `Network.csproj`:
https://github.com/Azure/azure-powershell/blob/58ded2ba3e0a5f7da0d1ffed9e0adb986986ab6f/src/Compute/Compute.sln#L11