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
Improve E2E Test Fixtures to be less flaky (#2208)
* Improve E2E Test Fixtures to be less flaky
* Adjust test skips
* Fix dangling IsLinux reference
* Kick Hover Test issue can down the road
* Make CanSendGetCommandRequestAsync Skip in CI Again
* Remove unneded using namespace
* Bump GetCommandRequest to 2 minutes
It took longer than 1 minute in Github Actions!
* Skip HoverRequest on Windows for Now
* Swap management for utility command and ensure help is cached.
* Fix symbol test regression oopsie
* Update POST
* Fix DSC Test
Contengent assuming #2208 (comment) is OK from @andyleejordan
* Fix Help Update Process
* Add upterm debugging to pipeline
* Expand help update to all potential pwsh versions
* Add PS7 Help
* Try Help CAB again
* Apparently it's a zip not a cab on Linux...
* Fixup PS5.1 Help Script
* Switch to Microsoft.PowerShell.Archive for help tests for smaller artifact size.
* Clean up build script comments
---------
Co-authored-by: Andy Jordan <[email protected]>
# 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
+
198
+
# Only commands in Microsoft.PowerShell.Archive can be tested for help so as to minimize the repository storage.
199
+
# This requires admin rights for PS5.1
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.
202
+
203
+
$installHelpScript= {
204
+
param(
205
+
[Parameter(Position=0)][string]$helpPath
206
+
)
207
+
$PSVersion=$PSVersionTable.PSVersion
208
+
$ErrorActionPreference='Stop'
209
+
$helpPath=Resolve-Path$helpPath
210
+
if ($PSEdition-ne'Desktop') {
211
+
$helpPath=Join-Path$helpPath'7'
212
+
}
213
+
214
+
if ((Get-HelpExpand-Archive).remarks -notlike'Get-Help cannot find the Help files*') {
215
+
Write-Host-ForegroundColor Green "PowerShell $PSVersion Archive help is already installed"
216
+
return
217
+
}
218
+
219
+
if ($PSEdition-eq'Desktop') {
220
+
# Cant use requires RunAsAdministrator because PS isn't smart enough to know this is a subscript.
221
+
if (-not [Security.Principal.WindowsPrincipal]::new(
0 commit comments