Script worker: Windows suspend path (NtSuspendProcess) for the soft-clock tests is untested #842

Closed
opened 2026-11-11 03:27:28 -05:00 by dohertj2 · 3 comments
Owner

From #827. The worker soft-clock / stalled-transport tests freeze the worker with SIGSTOP on Linux/macOS. The Windows path (NtSuspendProcess) is implemented but no test has run on Windows. Run ScriptWorker.Tests (Category=ScriptWorker) on a Windows host and fix or document.

From #827. The worker soft-clock / stalled-transport tests freeze the worker with SIGSTOP on Linux/macOS. The Windows path (NtSuspendProcess) is implemented but no test has run on Windows. Run ScriptWorker.Tests (`Category=ScriptWorker`) on a Windows host and fix or document.
dohertj2 added the type:testpriority:p3 labels 2026-11-11 03:27:28 -05:00
dohertj2 added the blocked label 2026-11-11 03:30:16 -05:00
Author
Owner

Blocked: needs a Windows host to run Category=ScriptWorker. Remote exec on the wonder boxes is suspended and the Mac dev rig cannot run it.

Blocked: needs a Windows host to run `Category=ScriptWorker`. Remote exec on the wonder boxes is suspended and the Mac dev rig cannot run it.
Author
Owner

Owner 2026-11-11: windev may be used to run ScriptWorker.Tests (Category=ScriptWorker) on Windows. Unblocked.

Owner 2026-11-11: windev may be used to run `ScriptWorker.Tests` (`Category=ScriptWorker`) on Windows. Unblocked.
Author
Owner

Done. ScriptWorker.Tests (Category=ScriptWorker) passed 107/107 (2 skipped) on windev, including all 13 soft-clock tests; five of them suspend a real worker via NtSuspendProcess. No code change was needed. Run the suite from a folder all users can read (e.g. C:\build): a restricted worker identity can't read a user-profile folder, which is the intended isolation. Pushed to master in e857135e..7a27ef1f; full suite green (20 projects, 0 failures, 0 warnings).

Done. `ScriptWorker.Tests` (`Category=ScriptWorker`) passed 107/107 (2 skipped) on windev, including all 13 soft-clock tests; five of them suspend a real worker via NtSuspendProcess. No code change was needed. Run the suite from a folder all users can read (e.g. C:\build): a restricted worker identity can't read a user-profile folder, which is the intended isolation. Pushed to master in `e857135e..7a27ef1f`; full suite green (20 projects, 0 failures, 0 warnings).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/lmxopcua#842