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

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

From
Kaartic Sivaraam <kaartic.sivaraam@gmail.com>
Date
Dec 3, 2026, 15:27 UTC
Message-ID
<d028eadb-90ff-4927-8f2b-0bce895d3db0@gmail.com>
In-Reply-To
<axE4meb1_pNz7BTJ@pks.im>
On 12/3/26 15:08, Patrick Steinhardt wrote:
Show 26 quoted lines
> On Wed, Dec 02, 2026 at 01:23:30AM +0530, Kaartic Sivaraam wrote:
>> Range-diff vs. v4:
>>
>> 1:  ad8fa8d872 ! 1:  2fcdeefff3 test-lib: run EXPENSIVE tests one at a time
>>       @@ t/test-lib.sh: test_missing_prereq=
>>
>>        test_external_has_tap=0
>>
>>      ++# Remove the lock only if it still names $1 as its owner, so that
>>      ++# a lock someone else has just taken is left alone.
> > I feel like this comment is a bit on the verbose side as it doesn't
> really provide much value over what the code already trivially tells
> you, but okay.
> Makes sense. I'll drop it.
>>      @@ t/test-lib.sh: fail_117 () {
>>       +			#
>>       +			# Another waiter may have taken it over since we
>>       +			# looked, so only remove it if it is still the same.
>>      -+			if test "$(cat "$expensive_lock_" 2>/dev/null)" = "$owner"
>>      ++			#
>>      ++			# Rarely, after a holder is killed, two waiters can
>>      ++			# both get past this check and run together.
> > Heh, it takes courage to claim that a race happens rarely. My experience
> is that no matter how unlikely a race, CI systems know to trigger that
> race often enough to annoy the hell out of you.
>
Haha. That makes sense. Will replace the "Rarely" part with "In some scenarios". Hope that reads better.
 >>      ++			if remove_expensive_lock_owned_by_ "$owner"
Show 10 quoted lines
>>       +			then
>>      -+				rm -f "$expensive_lock_"
>>      ++				echo >&2 "# removing stale EXPENSIVE lock left by PID $owner"
>>       +			fi
>>       +			continue
>>       +		fi
> > It's a bit funny to say "removing" after you have removed the lock
> already. But providing that context can definitely be helpful, I'd
> assume.
> Good point. Will do a s/removing/removed/
> Anyway, my comments are really only just nits, so please feel free to
> ignore them. Other than that I'm happy with this version, thanks!
>
Cool. Thank you for the review!
-- 
Sivaraam
Previous: Patrick Steinhardt
Message 32 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.