aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-06-23 21:43:23 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-06-23 21:43:23 +0300
commita66f4c64e9d1591f042a94d6f3bef3b4298a4d1c (patch)
tree747de08b6ada4300afb4124da9feff0cc66b96a7 /.github
parent5981ba426e8ed8f6785195a03cc0d8a190173e61 (diff)
fix: force system conpty on windows
refs #761
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml32
1 files changed, 1 insertions, 31 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e6c55dc7..e19e8c94 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -138,35 +138,5 @@ jobs:
shell: pwsh
run: |
$ErrorActionPreference = "Stop"
- $env:HERDR_SESSION = "ci-windows-$env:GITHUB_RUN_ID-$env:GITHUB_RUN_ATTEMPT"
$exe = Join-Path $PWD "target\x86_64-pc-windows-msvc\debug\herdr.exe"
-
- & $exe --version
- & $exe --default-config | Out-Null
-
- $server = Start-Process -FilePath $exe -ArgumentList "server" -PassThru -WindowStyle Hidden
- try {
- $deadline = (Get-Date).AddSeconds(10)
- do {
- Start-Sleep -Milliseconds 250
- $status = & $exe status server 2>&1
- if ($LASTEXITCODE -eq 0 -and (($status -join "`n") -match "status: running")) {
- break
- }
- } while ((Get-Date) -lt $deadline)
-
- if ((Get-Date) -ge $deadline) {
- throw "server did not become ready"
- }
-
- & $exe agent start smoke -- "$env:ComSpec" /K dir
- Start-Sleep -Seconds 2
- $read = & $exe agent read smoke --source recent --lines 40 --format text
- $text = $read -join "`n"
- if ($text -notmatch "File\(s\)" -or $text -notmatch "Dir\(s\)") {
- throw "pane read did not include cmd.exe directory output: $text"
- }
- } finally {
- & $exe server stop 2>$null
- Wait-Process -Id $server.Id -Timeout 10 -ErrorAction SilentlyContinue
- }
+ .\scripts\windows_smoke_conpty_path.ps1 -ExePath $exe -Session "ci-windows-$env:GITHUB_RUN_ID-$env:GITHUB_RUN_ATTEMPT"