Skip to content

test(whatif): run the confirm test in the device's own host - #99

Merged
fadwen merged 3 commits into
mainfrom
fix/test-arm-host
Nov 24, 2026
Merged

fadwen merged 3 commits into
mainfrom
fix/test-arm-host

Conversation

@fadwen

@fadwen fadwen commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

Closes #98. One test of Tests/Unit/Module.WhatIf.Tests.ps1 starts 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 the Windows on ARM job, 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 300 where the test had 60. The architecture stays x86.
  • A comment on why: this is the one unit test that starts the emulated x86 host for real, and the Windows on ARM job runs the unit suites only.
  • CHANGELOG entry under Fixed.

Verification

Notes

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 fadwen left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@fadwen

fadwen commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

Re-run twice: Windows on ARM passed in all three attempts of run 45474937952. But the change itself is revised in 97961da, because the description gave a wrong reason for it.

  • What was wrong. The description said the integration suites still cover x86 on ARM64. They do not in CI: the Windows on ARM job runs ./Tests/Invoke-Tests.ps1 -TestType Unit, and the other unit tests that name x86 mock the launch. This test is the one that starts the emulated x86 host for real on that runner, so moving it to the native host would have left that host untested there.

  • What it does now. The test keeps Architecture = 'x86' and gives the run 300 seconds, the default of the commands, where it had 60. The comment says why.

  • Still open. The test failed in 5 of 9 ARM runs of the fix(harness)!: raise run failures as terminating errors with IDs #92 stack and in none of about 8 of main's code, while the passing runs take the same time on both. A WhatIf test times out in the emulated x86 host on the ARM64 runner #98 now says that this is not explained, and withdraws the earlier "the spread is the runner's". With 300 seconds the test no longer tells the two apart.

  • CI on 97961da: run 45484952778 passed all five jobs, Windows on ARM included.

@fadwen
fadwen merged commit 0dbcd5e into main Nov 24, 2026
5 checks passed
@fadwen
fadwen deleted the fix/test-arm-host branch November 24, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A WhatIf test times out in the emulated x86 host on the ARM64 runner

1 participant