Skip to content

Commit 65b4ffc

Browse files
authored
Update troubleshoot-ci.md (Azure#11645)
add a case to troubleshooting
1 parent da9fecf commit 65b4ffc

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

documentation/troubleshoot-ci.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,19 @@ One or more tests failed
8383
See test reports in artifacts/Test and fix failures related to your changes.
8484

8585
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)]`
86+
87+
## Test failures (.psd1 of other modules not found)
88+
89+
### Message
90+
91+
> 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.
92+
93+
### Reasons
94+
95+
This is because your test cases are using cmdlets from other module, but it was not built by CI.
96+
97+
### Solution
98+
99+
Add the missing module's csproj to your module's .sln file. For example this is how `Compute.sln` references `Network.csproj`:
100+
https://github.com/Azure/azure-powershell/blob/58ded2ba3e0a5f7da0d1ffed9e0adb986986ab6f/src/Compute/Compute.sln#L11
101+

0 commit comments

Comments
 (0)