Skip to content

[IsolationSession] The concurrent one-shot test relies on log-file writes that fail without any session ending early #1650

Closed

Description

@adpa-ms

Relevant area(s)

Windows

Brief description of your issue

The concurrent one-shot test in tests/scripts/run_isolation_session_tests.ps1 is meant to prove that one-shot sessions with overlapping lifetimes each run their workload to completion and that each wxc-exec exits 0 after cleanup. Its evidence comes from files: each workload appends markers to its own log in a shared host directory with Add-Content, the test starts each session after the previous workload's <X>-started marker appears, and after all three exit it checks each log for the final markers.

Those writes can fail while the workload keeps running, for a reason not yet established. Add-Content errors do not stop the script, so the workload exits 0, and the test reports the missing markers as truncation, the failure it exists to detect. The launch gating depends on the same writes: when a <X>-started marker is missing, the test waits 30 seconds and starts the next session anyway, and nothing checks that the sessions overlapped.

Steps to reproduce

The test failed in four runs of the windows-prerelease-26h1 jobs:

  • 36763692758 (2026-09-30, arm64): B-still-alive-5 missing (truncated?); B-done missing
  • 37592050334 (2026-10-07, x64): C-still-alive-30 missing (truncated?); C-done missing
  • 38832144295 (2026-10-16, arm64): A-still-alive-15 missing (truncated?); A-done missing
  • 39110920592 (2026-10-18, arm64): A-still-alive-15 missing (truncated?); A-done missing

Expected behavior

The test proves the same properties without depending on the workloads' writes to shared files: it fails only when a session ends early or fails to clean up, and it shows that the sessions ran at the same time.

Actual behavior

Each run reported truncation although all three wxc-exec processes exited 0. In the 09-30, 10-16 and 10-18 runs, the failing workload's captured stderr showed Add-Content : Stream was not readable.; the 10-07 run's was not checked, and the uploaded logs are no longer available.

Activity

  1. added
    Issue-Bug
    Needs-Triage
    on Nov 3, 2026
  2. added theissue type on Nov 3, 2026
  3. added
    OS-Windows
    Area-Test
    Backend-IsolationSession
    on Nov 3, 2026
  4. removed
    Needs-Triage
    on Nov 5, 2026
  5. added 3 commits that reference this issue on Nov 13, 2026
    cb8bfcf
    0b2ce00
    1029844
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-TestBackend-IsolationSessionIssue-BugOS-Windows

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions