Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/new-framework-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,19 @@ jobs:
ref: "main"
fetch-depth: 0

- name: init environment
if: always() && matrix.platform == 'windows'
shell: cmd
continue-on-error: true
run: |
:: 前置清理:杀掉上次残留的进程,避免 DLL/日志文件被占用
set "FOUND_PROCESS=0"
for %%I in (python.exe python3.exe taosd.exe tmq_sim.exe taosdump.exe taosBenchmark.exe) do (
taskkill /F /T /IM "%%~I" >nul 2>&1
if not errorlevel 1 set "FOUND_PROCESS=1"
)
if "%FOUND_PROCESS%"=="1" (echo Processes terminated) else (echo No processes found)

- name: Debug env
run: |
echo "platform=${{ matrix.platform }}"
Expand Down
27 changes: 12 additions & 15 deletions .github/workflows/run-tests-on-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ jobs:
continue-on-error: true
if: always()
run: |
tasklist /FI "IMAGENAME eq python3.exe" /NH | findstr /I python3.exe >nul
if %errorlevel% equ 0 (
wmic process where "name='python3.exe'" delete
echo Python3 process has been terminated.
) else (
echo No Python3 process was found.
:: 前置清理:杀掉上次残留的进程,避免 DLL/日志文件被占用
set "FOUND_PROCESS=0"
for %%I in (python.exe python3.exe taosd.exe tmq_sim.exe taosdump.exe taosBenchmark.exe) do (
taskkill /F /T /IM "%%~I" >nul 2>&1
if not errorlevel 1 set "FOUND_PROCESS=1"
)
if "%FOUND_PROCESS%"=="1" (echo Processes terminated) else (echo No processes found)

- name: Set environment variables based on condition
run: |
Expand Down Expand Up @@ -248,13 +248,10 @@ jobs:
continue-on-error: true
if: always()
run: |
taskkill /F ^
/IM "python.exe" ^
/IM "python3.exe" ^
/IM "taosd.exe" ^
/IM "tmq_sim.exe" ^
/IM "taosdump.exe" ^
/IM "taosBenchmark.exe" ^
>nul 2>&1
if %errorlevel% EQU 0 (echo Processes terminated) else (echo No processes found)
set "FOUND_PROCESS=0"
for %%I in (python.exe python3.exe taosd.exe tmq_sim.exe taosdump.exe taosBenchmark.exe) do (
taskkill /F /T /IM "%%~I" >nul 2>&1
if not errorlevel 1 set "FOUND_PROCESS=1"
)
if "%FOUND_PROCESS%"=="1" (echo Processes terminated) else (echo No processes found)
exit /b 0