Re: RFC: subcommand to pause/resume builds

2020-11-08 Thread Ludovic Courtès
Hi Mark, Mark H Weaver skribis: > Ludovic Courtès writes: > >> Last, you’d need to send SIGTSTP to the whole process group of the >> build, like so (I think, haven’t tried): >> >> sudo kill -TSTP -123 >> >> where 123 is the “SessionPID” shown by ‘guix processes’. However, doing >> so may aff

Re: RFC: subcommand to pause/resume builds

2020-11-06 Thread John Soo
Hello everyone, Ludovic Courtès writes: >> After perusing info recutils some, I expected the output to be more >> like: >> >> ChildProcessPID: 16923 >> ChildProcessCommand: guile --no-auto-compile -L >> /gnu/store/8a0wry8cvr405ha8d8bpjyzj5dzghigd-module-import >> /gnu/store/mh1fkn1d9c9mg6hihxvjn

Re: RFC: subcommand to pause/resume builds

2020-11-06 Thread Mark H Weaver
Hi Ludovic, Ludovic Courtès writes: > Last, you’d need to send SIGTSTP to the whole process group of the > build, like so (I think, haven’t tried): > > sudo kill -TSTP -123 > > where 123 is the “SessionPID” shown by ‘guix processes’. However, doing > so may affect build results: processes in

Re: RFC: subcommand to pause/resume builds

2020-11-06 Thread Ludovic Courtès
Hi, John Soo skribis: > After even further investigation, > > Does guix processes output the desired rec format? It seems hard to > select the child process pid: > > ChildProcess: 16923: guile --no-auto-compile -L > /gnu/store/8a0wry8cvr405ha8d8bpjyzj5dzghigd-module-import > /gnu/store/mh1fkn1

Re: RFC: subcommand to pause/resume builds

2020-11-06 Thread Ludovic Courtès
Hi, John Soo skribis: > This feels close to little sed/awk pipelines. Which is not to be > entirely dismissive. I like the compositionality of these tools. In > fact I mentioned earlier that it might be good to send arbitrary > signals. But why not let kill (shell or scheme) do that? All we w

RFC: subcommand to pause/resume builds

2020-11-04 Thread John Soo
Hello Guix, I just sent a patch to normalize the output of processes with bug number 44460. The allows me to compose recutils with kill to get the desired effect of pausing all process trees for the things I want without any convoluted implementation.I think I would be sat

Re: RFC: subcommand to pause/resume builds

2020-11-04 Thread Bengt Richter
Hi all, On +2020-11-03 14:53:07 +0100, Ludovic Courtès wrote: > Hi, > > John Soo skribis: > > > I was looking to pause a long build today and asked on IRC how to > > accomplish pause/resume. It seems this is possible already with the > > following: > > > > kill --signal SIGSTOP|SIGCONT {pids-o

Re: RFC: subcommand to pause/resume builds

2020-11-03 Thread John Soo
After even further investigation, Does guix processes output the desired rec format? It seems hard to select the child process pid: ChildProcess: 16923: guile --no-auto-compile -L /gnu/store/8a0wry8cvr405ha8d8bpjyzj5dzghigd-module-import /gnu/store/mh1fkn1d9c9mg6hihxvjngxmn3qjmp38-ungoogled-chr

Re: RFC: subcommand to pause/resume builds

2020-11-03 Thread John Soo
After further review, I realize that guix processes already formats for recutils. I never think to reach for that tool, but it seems good.

Re: RFC: subcommand to pause/resume builds

2020-11-03 Thread Tobias Geerinckx-Rice
After playing around with the daemon I agree that it plays a little too loose with processes to make this upstream material ATM (groups? shepherd? *shrug*). To close: Tobias Geerinckx-Rice 写道: However, this is FUD: Last, you’d need to send SIGTSTP to the whole process group of the build, l

Re: RFC: subcommand to pause/resume builds

2020-11-03 Thread John Soo
Hello Tobias :), Tobias Geerinckx-Rice writes: > Ludo', > > Ludovic Courtès 写道: >> First, note that the daemon is unaware of “packages”, it only knows >> about “derivations”. > > Derivations have a (file) name, which can be matched with a regex > allowing one to, say, ‘pause libreoffice’. It wo

Re: RFC: subcommand to pause/resume builds

2020-11-03 Thread Tobias Geerinckx-Rice
Ludo', Ludovic Courtès 写道: First, note that the daemon is unaware of “packages”, it only knows about “derivations”. Derivations have a (file) name, which can be matched with a regex allowing one to, say, ‘pause libreoffice’. It works in practice. I do this often & it's *extremely* convenie

Re: RFC: subcommand to pause/resume builds

2020-11-03 Thread John Soo
Hello! I want to preface all this by saying this is not a huge priority to me. pause/resume would just be a nice quality of life improvement. Ludovic Courtès writes: > First, note that the daemon is unaware of “packages”, it only knows > about “derivations”. Agreed. I was thinking mostly about

Re: RFC: subcommand to pause/resume builds

2020-11-03 Thread Ludovic Courtès
Hi, John Soo skribis: > I was looking to pause a long build today and asked on IRC how to > accomplish pause/resume. It seems this is possible already with the > following: > > kill --signal SIGSTOP|SIGCONT {pids-of-build-process-tree} > > There is already a command to list the processes associ

RFC: subcommand to pause/resume builds

2020-11-02 Thread John Soo
Hi Guix! I was looking to pause a long build today and asked on IRC how to accomplish pause/resume. It seems this is possible already with the following: kill --signal SIGSTOP|SIGCONT {pids-of-build-process-tree} There is already a command to list the processes associated to guix commands: guix