Skip to content

Commit e6242b9

Browse files
Skip attach E2E test on in-box Windows PowerShell
CanAttachScriptWithPathMappings hangs on in-box Windows PowerShell 5.1 since the windows-2025-vs2026 runner image refreshed from 20260608 to 20260614. The cross-process Debug-Runspace attach wedges and the test rides the job timeout; the windows-latest leg cannot complete. Scope the skip to IsWindowsPowerShell so the in-box WinPS suites (including CLM) are exempt while PowerShell Core, the preview, macOS, and Linux keep full coverage of the attach path. This is a stopgap pending a real fix for the in-box attach deadlock, tracked by #2323; the 30-minute timeout-minutes backstop in ci-test.yml stays as a guard. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a2ecbab commit e6242b9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/PowerShellEditorServices.Test.E2E/DebugAdapterProtocolMessageTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,13 @@ public async Task CanLaunchScriptWithNewChildAttachSessionAsJob()
635635
[SkippableFact(Timeout = 15000)]
636636
public async Task CanAttachScriptWithPathMappings()
637637
{
638+
// This passes against PowerShell Core but hangs against in-box Windows
639+
// PowerShell since the windows-2025-vs2026 runner image moved from
640+
// 20260608 to 20260614: the cross-process Debug-Runspace attach wedges
641+
// and rides the job timeout. Skipped pending a real fix; see #2323.
642+
Skip.If(PsesStdioLanguageServerProcessHost.IsWindowsPowerShell,
643+
"Attach wedges on Windows PowerShell since the 20260614 runner image; see #2323.");
644+
638645
Skip.If(PsesStdioLanguageServerProcessHost.RunningInConstrainedLanguageMode,
639646
"Breakpoints can't be set in Constrained Language Mode.");
640647

0 commit comments

Comments
 (0)