cirruslabs/cirrus-ci-docs

Print out full cmdline for process list in Debugging View

igsilya opened this issue · 1 comments

Description

Currently Debugging View shows the list of running processes at the task termination like this:

2023/07/13 15:57:25 803 1 cirrus-ci-agent
2023/07/13 15:57:25 39588 1 ovsdb-server
2023/07/13 15:57:25 299 1 dhclient
2023/07/13 15:57:25 302 1 dhclient
2023/07/13 15:57:25 752 1 syslogd
2023/07/13 15:57:25 22578 1 gmake

It would be nice if it showed a full cmdline like in a ps -aux output instead of just a base name.

Context

We're still fighting with some occasional job hangs due to our testsuite not killing all the spawned processes and subsequent gmake waiting for them forever on FreeBSD instances. Re-run with a terminal access is useful, but the issue reproduction rate is not that high and re-runs have high chances to not hit the issue. If we had a better Debugging View, we could tell which tests are the reason and what actually happened without need to re-run with a terminal access.

@edigaryev Hi, thanks for a quick turnaround on a request.
Though the change implemented in cirruslabs/cirrus-ci-agent#300 doesn't seem to help much. It is using gopsutilProcess.Exe(), AFAICT, and that's fine. But I was looking for something like gopsutilProcess.Cmdline() instead.