tag:help.appveyor.com,2012-11-13:/discussions/problems/27445-byoc-process-runner-leaves-behind-workdir-on-cancelled-jobs
AppVeyor: Discussion
2020-06-10T04:14:34Z
tag:help.appveyor.com,2012-11-13:Comment/48372739
2020-06-10T04:14:31Z
2020-06-10T04:14:31Z
BYOC: process runner leaves behind workdir on cancelled jobs
<div><p>unlike <a href="https://help.appveyor.com/discussions/problems/27520-byoc-process-runner-fails-to-delete-work-dir">https://help.appveyor.com/discussions/problems/27520-byoc-process-r...</a> , there's no attempt to delete the build dir in the logs:</p>
<pre>
<code>Jun 10 04:08:07 46eca2fdaf2d appveyor-host-agent[325]: info: Appveyor.HostAgent.BuildAgentProcess.WorkerCloud[0]
Jun 10 04:08:07 46eca2fdaf2d appveyor-host-agent[325]: [worker-968-001] Worker 5e52362c4237430cb83c3f4399be2194 has been decommissioned. Reverting worker...
Jun 10 04:08:07 46eca2fdaf2d appveyor-host-agent[325]: info: Appveyor.HostAgent.BuildAgentProcess.WorkerCloud[0]
Jun 10 04:08:07 46eca2fdaf2d appveyor-host-agent[325]: Set status: Recreate
Jun 10 04:08:07 46eca2fdaf2d appveyor-host-agent[325]: info: Appveyor.HostAgent.BuildAgentProcess.WorkerCloud[0]
Jun 10 04:08:07 46eca2fdaf2d appveyor-host-agent[325]: [worker-968-001] Terminate worker process
Jun 10 04:08:07 46eca2fdaf2d appveyor-host-agent[325]: info: Appveyor.HostAgent.BuildAgentProcess.WorkerCloud[0]
Jun 10 04:08:07 46eca2fdaf2d appveyor-host-agent[325]: ProcessWorker.Decommission - Killing worker process 5e52362c4237430cb83c3f4399be2194 with process ID 17537
Jun 10 04:08:07 46eca2fdaf2d appveyor-host-agent[325]: info: Appveyor.HostAgent.BuildAgentProcess.WorkerCloud[0]
Jun 10 04:08:07 46eca2fdaf2d appveyor-host-agent[325]: Set status: Create
Jun 10 04:08:07 46eca2fdaf2d appveyor-host-agent[325]: info: Appveyor.HostAgent.BuildAgentProcess.WorkerCloud[0]
Jun 10 04:08:07 46eca2fdaf2d appveyor-host-agent[325]: [worker-968-001] Create worker
Jun 10 04:08:07 46eca2fdaf2d appveyor-host-agent[325]: info: Appveyor.HostAgent.BuildAgentProcess.WorkerCloud[0]
Jun 10 04:08:07 46eca2fdaf2d appveyor-host-agent[325]: Set status: Ready
Jun 10 04:08:07 46eca2fdaf2d appveyor-host-agent[325]: info: Appveyor.HostAgent.AppHost[0]
Jun 10 04:08:07 46eca2fdaf2d appveyor-host-agent[325]: Updating cloud availability (buildCloudId=968): 5 worker(s) available, 0 worker(s) busy
Jun 10 04:08:08 46eca2fdaf2d appveyor-host-agent[325]: info: Appveyor.HostAgent.BuildAgentProcess.WorkerCloud[0]
Jun 10 04:08:08 46eca2fdaf2d appveyor-host-agent[325]: [worker-968-001] Ready
Jun 10 04:08:08 46eca2fdaf2d appveyor-host-agent[325]: info: Appveyor.HostAgent.AppHost[0]
Jun 10 04:08:08 46eca2fdaf2d appveyor-host-agent[325]: Updating cloud availability (buildCloudId=968): 5 worker(s) available, 0 worker(s) busy
Jun 10 04:08:13 46eca2fdaf2d appveyor-host-agent[325]: info: Appveyor.HostAgent.BuildAgentProcess.WorkerCloud[0]
Jun 10 04:08:13 46eca2fdaf2d appveyor-host-agent[325]: Deleting build 'bin' directory: /tmp/av-build-33427213
Jun 10 04:08:13 46eca2fdaf2d appveyor-host-agent[325]: appveyor-host-agent Information: 0 : sudo rm -r "/tmp/av-build-33427213"
Jun 10 04:08:13 46eca2fdaf2d appveyor-host-agent[325]: appveyor-host-agent Information: 0 :
Jun 10 04:08:13 46eca2fdaf2d appveyor-host-agent[325]: sudo rm -r "/tmp/av-build-33427213"
Jun 10 04:08:13 46eca2fdaf2d sudo[18354]: appveyor : TTY=unknown ; PWD=/opt/appveyor/host-agent ; USER=root ; COMMAND=/bin/rm -r /tmp/av-build-33427213
Jun 10 04:08:13 46eca2fdaf2d sudo[18354]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jun 10 04:08:13 46eca2fdaf2d sudo[18354]: pam_unix(sudo:session): session closed for user root
Jun 10 04:08:25 46eca2fdaf2d appveyor-host-agent[325]: info: Appveyor.HostAgent.AppHost[0]
Jun 10 04:08:25 46eca2fdaf2d appveyor-host-agent[325]: Checking Host Agent connection: d8457800-7c9f-4563-ac1f-920924b16b56</code>
</pre></div>
Jan Vesely