You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Some CI do not ship with help included, and the secure devops pipeline also does not allow internet access, so we must update help from our local repository source.
197
197
198
-
# Only commands in Microsoft.PowerShell.Utility can be tested for help so as to minimize the repository storage.
198
+
# Only commands in Microsoft.PowerShell.Archive can be tested for help so as to minimize the repository storage.
199
199
# This requires admin rights for PS5.1
200
200
201
-
#NOTE: You can run this task once as admin or update help separately, and continue to run tests as non-admin, if for instance developing locally. Also this help is for PS5.1 so tests should be written for that even if PS7. For instance, don't write tests for new Invoke-RestMethod parameters.
201
+
#NOTE: You can run this task once as admin or update help separately, and continue to run tests as non-admin, if for instance developing locally.
202
202
203
203
$installHelpScript= {
204
204
param(
@@ -211,8 +211,8 @@ Task SetupHelpForTests {
211
211
$helpPath=Join-Path$helpPath'7'
212
212
}
213
213
214
-
if ((Get-HelpInvoke-RestMethod).remarks -notlike'Get-Help cannot find the Help files*') {
215
-
Write-Host-Fore Green "PowerShell $PSVersionUtility Help is already installed"
214
+
if ((Get-HelpExpand-Archive).remarks -notlike'Get-Help cannot find the Help files*') {
215
+
Write-Host-Fore Green "PowerShell $PSVersionArchive Help is already installed"
216
216
return
217
217
}
218
218
@@ -227,10 +227,10 @@ Task SetupHelpForTests {
227
227
}
228
228
}
229
229
230
-
Write-Host-Fore Magenta "Powershell $PSVersionUtility Help is not installed, installing from $helpPath"
230
+
Write-Host-Fore Magenta "Powershell $PSVersionArchive Help is not installed, installing from $helpPath"
Windows PowerShell does not have updated help in CI by default and we utilize a private Azure Devops repo for builds that has no internet access. The completion tests validate the Windows Help so we update it offline from here so these tests can work. The help is updated as part of the build pipeline in PowerShellEditorServices.build.ps1 for PS5 only.
1
+
Several CI platforms do not ship with PowerShell help. The build script updates help offline using this information.
2
+
As some of the CI platforms do not have internet access.
3
+
Linux servers use the zip file, while windows uses the cab files.
0 commit comments