Repository navigation
test(whatif): run the confirm test in the device's own host - #99
Conversation
The test of the confirm preference inside a run started the 32-bit host with a timeout of 60 seconds. On the ARM64 runner that host is emulated, and twice the run took longer than the timeout and came back without an exit code. The test is about the preference, not the architecture, so it runs the native 64-bit host now. Closes #98.
fadwen
left a comment
There was a problem hiding this comment.
Verdict: approve.
- The change: one line,
Architecture = (Get-IslHostArchitecture)in place of'x86', plus a comment pointing to #98. The test is about the confirm preference inside a run, so using the device's own host loses nothing. As you note, x86 on ARM64 is still covered by the integration suites. - CI on this PR: run 45474937952 passed all five jobs, including
Windows on ARM. One green ARM run doesn't prove much against a 2-in-6 flake, so a couple of reruns would show it's gone. - Value for the stack: #96's manual CI run failed only on this test on ARM. Merging this first should let #92 → #95 → #96 go green on that job.
The previous change moved the test to the native host. But the ARM64 job runs the unit suites only, and this is the one unit test that starts the emulated x86 host for real: the others mock the launch. The test goes back to x86, which keeps that host covered on the runner, and the run has 300 seconds, the default of the commands, where it had 60.
|
Re-run twice:
|
Summary
Closes #98. One test of
Tests/Unit/Module.WhatIf.Tests.ps1starts the 32-bit host with a timeout of 60 seconds. On the ARM64 runner that host is emulated, and the run there took longer than the timeout in several runs of theWindows on ARMjob, came back without an exit code, and failed the job. The test keeps the 32-bit host and gives the run 300 seconds, the default of the commands.This pull request is independent of the others and is based on
main.Changes
-TimeoutSeconds 300where the test had60. The architecture staysx86.Windows on ARMjob runs the unit suites only.Verification
quality-gates.ymlon 97961da: run 45484952778 passed all five jobs.Notes
Windows on ARMjob runs./Tests/Invoke-Tests.ps1 -TestType Unit, and the other unit tests that namex86mock the launch. The native host would have left the emulated host untested on that runner, so the test keeps x86 and gets more time. That version passed theWindows on ARMjob in three attempts of run 45474937952.main's code, although the whole test file takes about the same time in the passing runs of both (47 to 53 seconds, with one of 80 and one of 87). A WhatIf test times out in the emulated x86 host on the ARM64 runner #98 has the runs. With 300 seconds the test no longer tells the two apart; if the emulated start is slower on those branches, this will not show it.