Skip to content

Commit 033e7ed

Browse files
TEMP: Add Windows test scripts for debugging stdio test failures
These scripts are temporary and should be removed once the Windows test issues are resolved. They automate: - Force pulling latest changes from remote - Running the failing stdio tests with verbose output Reported-by: fweinberger
1 parent bbbc6cc commit 033e7ed

File tree

2 files changed

+73
-0
lines changed

2 files changed

+73
-0
lines changed

run_windows_tests.bat

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
@echo off
2+
REM Windows batch script to pull latest changes and run tests
3+
4+
echo ========================================
5+
echo Pulling latest changes from remote...
6+
echo ========================================
7+
8+
REM Force pull the current branch, discarding any local changes
9+
git fetch origin
10+
git reset --hard origin/HEAD
11+
12+
echo.
13+
echo ========================================
14+
echo Current branch status:
15+
echo ========================================
16+
git status
17+
18+
echo.
19+
echo ========================================
20+
echo Installing/updating dependencies with uv...
21+
echo ========================================
22+
uv sync
23+
24+
echo.
25+
echo ========================================
26+
echo Running tests for test_stdio.py...
27+
echo ========================================
28+
echo.
29+
30+
REM Run the tests with verbose output to help debug
31+
set PYTEST_DISABLE_PLUGIN_AUTOLOAD=
32+
uv run --frozen pytest -xvs tests/client/test_stdio.py
33+
34+
echo.
35+
echo ========================================
36+
echo Test run completed
37+
echo ========================================

run_windows_tests.ps1

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# PowerShell script to pull latest changes and run tests
2+
3+
Write-Host "========================================"
4+
Write-Host "Pulling latest changes from remote..."
5+
Write-Host "========================================"
6+
7+
# Force pull the current branch, discarding any local changes
8+
git fetch origin
9+
git reset --hard origin/HEAD
10+
11+
Write-Host ""
12+
Write-Host "========================================"
13+
Write-Host "Current branch status:"
14+
Write-Host "========================================"
15+
git status
16+
17+
Write-Host ""
18+
Write-Host "========================================"
19+
Write-Host "Installing/updating dependencies with uv..."
20+
Write-Host "========================================"
21+
uv sync
22+
23+
Write-Host ""
24+
Write-Host "========================================"
25+
Write-Host "Running tests for test_stdio.py..."
26+
Write-Host "========================================"
27+
Write-Host ""
28+
29+
# Run the tests with verbose output to help debug
30+
$env:PYTEST_DISABLE_PLUGIN_AUTOLOAD = ""
31+
uv run --frozen pytest -xvs tests/client/test_stdio.py
32+
33+
Write-Host ""
34+
Write-Host "========================================"
35+
Write-Host "Test run completed"
36+
Write-Host "========================================"

0 commit comments

Comments
 (0)