pytorch
0844213f - Improve Windows CI logic to cleanup leftover processes (#93914)

Commit
1 year ago
Improve Windows CI logic to cleanup leftover processes (#93914) This is really hard to debug, the faulty runner already disappeared by the time I tried to login. However, I figure out a way to get all the processes that could potentially hold the workspace by running: ``` choco install sysinternals -y handle64.exe C:\actions-runner\_work\pytorch\pytorch\test\test-reports\ ``` This gives me a better list of processes to kill. ``` PS C:\Windows\system32> handle64.exe C:\actions-runner\_work\pytorch\pytorch\test\test-reports\ Nthandle v5.0 - Handle viewer Copyright (C) 1997-2022 Mark Russinovich Sysinternals - www.sysinternals.com python.exe pid: 1672 type: File 574: C:\actions-runner\_work\pytorch\pytorch\test\test-reports\test_cpp_extensions_jit_r04_oc2b.log python.exe pid: 4604 type: File 6C8: C:\actions-runner\_work\pytorch\pytorch\test\test-reports\test_cpp_extensions_jit_r04_oc2b.log python.exe pid: 4604 type: File 6CC: C:\actions-runner\_work\pytorch\pytorch\test\test-reports\test_cpp_extensions_jit_r04_oc2b.log ninja.exe pid: 4764 type: File 468: C:\actions-runner\_work\pytorch\pytorch\test\test-reports\test_cpp_extensions_jit_r04_oc2b.log ninja.exe pid: 4764 type: File 5F4: C:\actions-runner\_work\pytorch\pytorch\test\test-reports\test_cpp_extensions_jit_r04_oc2b.log cl.exe pid: 5336 type: File 468: C:\actions-runner\_work\pytorch\pytorch\test\test-reports\test_cpp_extensions_jit_r04_oc2b.log cl.exe pid: 5336 type: File 5F4: C:\actions-runner\_work\pytorch\pytorch\test\test-reports\test_cpp_extensions_jit_r04_oc2b.log nvcc.exe pid: 1680 type: File 468: C:\actions-runner\_work\pytorch\pytorch\test\test-reports\test_cpp_extensions_jit_r04_oc2b.log nvcc.exe pid: 1680 type: File 5F4: C:\actions-runner\_work\pytorch\pytorch\test\test-reports\test_cpp_extensions_jit_r04_oc2b.log cmd.exe pid: 976 type: File 468: C:\actions-runner\_work\pytorch\pytorch\test\test-reports\test_cpp_extensions_jit_r04_oc2b.log cmd.exe pid: 976 type: File 5F4: C:\actions-runner\_work\pytorch\pytorch\test\test-reports\test_cpp_extensions_jit_r04_oc2b.log ``` Crossing my fingers to have this working Pull Request resolved: https://github.com/pytorch/pytorch/pull/93914 Approved by: https://github.com/clee2000
Author
Committer
Parents
Loading