Git development
 help / color / mirror / Atom feed
From: Kaartic Sivaraam <kaartic.sivaraam@gmail.com>
To: Patrick Steinhardt <ps@pks.im>
Cc: Git mailing list <git@vger.kernel.org>,
	Harald Nordgren <haraldnordgren@gmail.com>,
	Junio C Hamano <gitster@pobox.com>
Subject: Re: [PATCH v4 2/2] t0000: test taking over and releasing the EXPENSIVE lock
Date: Tue, 1 Dec 2026 14:19:46 +0530	[thread overview]
Message-ID: <8a6e7bff-50e0-43dd-81b3-b3b44c332732@gmail.com> (raw)
In-Reply-To: <aw512E8H5qZFNcCW@pks.im>

On 12/1/26 12:53, Patrick Steinhardt wrote:
> On Sat, Nov 28, 2026 at 08:28:00PM +0530, Kaartic Sivaraam wrote:
>> 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.
> 

I mostly kept it separate to avoid blocking the main patch in case we 
get into some side discussion related to this test patch. I haven't seen 
much thoughts / suggestions on this. So, I think I can squash it in now.

-- 
Sivaraam


  reply	other threads:[~2026-12-01  8:49 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19  7:40 [PATCH] test-lib: run EXPENSIVE tests one at a time Kaartic Sivaraam
2026-11-19 10:07 ` Patrick Steinhardt
2026-11-19 17:12   ` Kaartic Sivaraam
2026-11-19 17:29 ` [PATCH v2] " Kaartic Sivaraam
2026-11-19 17:33   ` Kaartic Sivaraam
2026-11-20  6:28   ` Junio C Hamano
2026-11-24 13:34     ` Kaartic Sivaraam
2026-11-25 20:21       ` Junio C Hamano
2026-11-27 13:59         ` Kaartic Sivaraam
2026-11-27 18:34           ` Junio C Hamano
2026-11-25 19:09   ` Harald Nordgren
2026-11-27 17:23 ` [PATCH v3] " Kaartic Sivaraam
2026-11-27 20:46   ` Junio C Hamano
2026-11-28  8:06     ` Kaartic Sivaraam
2026-11-28 14:57 ` [PATCH v4 0/2] test-lib: serialize EXPENSIVE tests to avoid OOM in CI Kaartic Sivaraam
2026-11-28 14:57   ` [PATCH v4 1/2] test-lib: run EXPENSIVE tests one at a time Kaartic Sivaraam
2026-11-29 16:55     ` Junio C Hamano
2026-11-30 14:13     ` Christian Couder
2026-12-01 10:14       ` Kaartic Sivaraam
2026-12-01 11:10         ` Christian Couder
2026-12-01 12:34           ` Kaartic Sivaraam
2026-12-01  7:22     ` Patrick Steinhardt
2026-12-01  8:47       ` Kaartic Sivaraam
2026-12-01 11:07         ` Patrick Steinhardt
2026-12-01 12:50           ` Kaartic Sivaraam
2026-12-01 13:19             ` Patrick Steinhardt
2026-11-28 14:58   ` [PATCH v4 2/2] t0000: test taking over and releasing the EXPENSIVE lock Kaartic Sivaraam
2026-12-01  7:23     ` Patrick Steinhardt
2026-12-01  8:49       ` Kaartic Sivaraam [this message]
2026-12-01 19:53 ` [PATCH v5] test-lib: run EXPENSIVE tests one at a time Kaartic Sivaraam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8a6e7bff-50e0-43dd-81b3-b3b44c332732@gmail.com \
    --to=kaartic.sivaraam@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=haraldnordgren@gmail.com \
    --cc=ps@pks.im \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox