Re: [PATCH v2] test-lib: run EXPENSIVE tests one at a time
On 11/26/26 01:51, Junio C Hamano wrote:
Show 17 quoted lines
> Kaartic Sivaraam <kaartic.sivaraam@gmail.com> writes:
> >> That's a good catch. I suppose setting the have_expensive_lock_ variable
>> before writing the pid to the file, the issue should be sufficiently
>> averted. That's because release_expensive_lock_ would proceed with
>> removal of the directory even if we fail to write the pid file.
>> ...
>> I'm not sure if we need to go down the rabbit hold of fixing those too
>> without actually facing those issues. I suppose it may be better to get
>> the jobs running with a version of the patch that includes the above
>> changes and look into further changes as we notice any more issues. I
>> would love to hear your thoughts.
> > If we open ourselves to a possible deadlock, then it will be a serious
> regression. If our locking is leaky or buggy and allows multiple
> processes to run simultaneously, that is the same as the status quo, so
> as long as we kill the deadlock this proposed version introduces in the
> updated version, I will be happy.
>
Okay. I'll try to send a v3 with another variant of this which tries to avoid deadlocks as much as possible by using a different mechanism for the locking. I suppose we may have to trade-off on the "only one test runs" guarantee as a consequence.
--
Sivaraam