git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] test-lib: run EXPENSIVE tests one at a time

From
Kaartic Sivaraam <kaartic.sivaraam@gmail.com>
Date
Nov 27, 2026, 13:59 UTC
Message-ID
<d10dd696-789c-4c0c-ab6a-ee71f29ecb92@gmail.com>
In-Reply-To
<xmqq8q2g1x21.fsf@gitster.g>
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
Previous: Junio C HamanoNext: Junio C Hamano
Message 9 of 32 in “test-lib: run EXPENSIVE tests one at a time”
  1. test-lib: run EXPENSIVE tests one at a timeKaartic Sivaraam, Nov 19, 2026
  2. Patrick SteinhardtNov 19, 2026
  3. Kaartic SivaraamNov 19, 2026
  4. test-lib: run EXPENSIVE tests one at a timeKaartic Sivaraam, Nov 19, 2026
  5. Kaartic SivaraamNov 19, 2026
  6. Junio C HamanoNov 20, 2026
  7. Kaartic SivaraamNov 24, 2026
  8. Junio C HamanoNov 25, 2026
  9. Kaartic SivaraamNov 27, 2026
  10. Junio C HamanoNov 27, 2026
  11. Harald NordgrenNov 25, 2026
  12. test-lib: run EXPENSIVE tests one at a timeKaartic Sivaraam, Nov 27, 2026
  13. Junio C HamanoNov 27, 2026
  14. Kaartic SivaraamNov 28, 2026
  15. 0/2 test-lib: serialize EXPENSIVE tests to avoid OOM in CIKaartic Sivaraam, Nov 28, 2026
  16. 1/2 test-lib: run EXPENSIVE tests one at a timeKaartic Sivaraam, Nov 28, 2026
  17. Junio C HamanoNov 29, 2026
  18. Christian CouderNov 30, 2026
  19. Kaartic SivaraamDec 1, 2026
  20. Christian CouderDec 1, 2026
  21. Kaartic SivaraamDec 1, 2026
  22. Patrick SteinhardtDec 1, 2026
  23. Kaartic SivaraamDec 1, 2026
  24. Patrick SteinhardtDec 1, 2026
  25. Kaartic SivaraamDec 1, 2026
  26. Patrick SteinhardtDec 1, 2026
  27. 2/2 t0000: test taking over and releasing the EXPENSIVE lockKaartic Sivaraam, Nov 28, 2026
  28. Patrick SteinhardtDec 1, 2026
  29. Kaartic SivaraamDec 1, 2026
  30. test-lib: run EXPENSIVE tests one at a timeKaartic Sivaraam, Dec 1, 2026
  31. Patrick SteinhardtDec 3, 2026
  32. Kaartic SivaraamDec 3, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.