From 4ac09ee085caa6b33c34ab5ce7827b7745adc676 Mon Sep 17 00:00:00 2001 From: Yeming Liu Date: Tue, 21 Apr 2020 13:48:42 +0800 Subject: [PATCH] Update troubleshoot-ci.md add a case to troubleshooting --- documentation/troubleshoot-ci.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/documentation/troubleshoot-ci.md b/documentation/troubleshoot-ci.md index c4daba503b8a..fe1309f7e27f 100644 --- a/documentation/troubleshoot-ci.md +++ b/documentation/troubleshoot-ci.md @@ -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 +