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

Re: [PATCH v4 2/2] t0000: test taking over and releasing the EXPENSIVE lock

From
Patrick Steinhardt <ps@pks.im>
Date
Dec 1, 2026, 07:23 UTC
Message-ID
<aw512E8H5qZFNcCW@pks.im>
In-Reply-To
<20261128-ks-ci-long-test-hang-fix-v4-2-f117badd2e13@gmail.com>
On Sat, Nov 28, 2026 at 08:28:00PM +0530, Kaartic Sivaraam wrote:
Show 16 quoted lines
> The previous commit serializes EXPENSIVE tests with a lock that a
> waiter takes over when its holder was killed, and that the EXIT trap
> releases when a script dies while holding it.
> 
> Add subtests checking that:
> 
>   - a lock left by a dead process is taken over, held while the test
>     runs, and released afterwards;
> 
>   - a lock carrying the script's own PID, which can only be left by a
>     dead holder whose PID was reused, is taken over;
> 
>   - a script exiting in the middle of an EXPENSIVE test does not leave
>     the lock behind.
> 
> None of them has to wait, as a stale lock is cleared without polling.

I would have folded this into the preceding commit, so that it's easier for the reader to connect expected behaviour with the new logic that you're adding.

No strong blocker though from my side.
Patrick
Previous: Kaartic SivaraamNext: Kaartic Sivaraam
Message 28 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.