From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.175 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796311671; b=Nj6LkN1+a1o/PWNSfL7OiXT7ZkdbnV1UClNIYQqhnmgL6FA1X7g1kQv7debTKsukyF+9 k4rfnRxsha836kVAP5Iw7GPTmgGyJvnviLHyQw0ZcS2wCfGB+z+SWX5RKAZYj1PEP7wl+ BBOOAQX3jKrUZeLyEp/T9Gh3uTwbK+VUS56/GRTJW+/EKmjD4Qz1MlVX91aDqADiI45ix sU1NEIcZnCChFd6KMubBMIS7NNjRbofKCXcz6I0g46FJzUAZLokrJNDZq+26JWcEgEpNp cIPI/yPEhPE8CJEPyToJzUKFwSBTwxlpEhQqzX0BnADURLlZFwmK9QlfaTukWaj/iHA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796311671; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Message-ID:Date: MIME-Version:User-Agent:Subject:To:Cc:References:Content-Language: From:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=ul3UnCiD+7mEoUE29GSWQmtr5opsk61KkqxfH/nNlyM=; b=j+RrjwNXWeoYBI79kLtsvSDQSVxP/nsNqLzYJTPQf0O0Lge/0GV4Ki8LGmGAXqe9/Wej oPWw8EuuszCMYwCfZESEtpcz8wHA5Oimh6x1LGh6MfoWOSGPYmNwTHYXTD8w7LGmC+qS1 DAXn46fnjA/RDZcUht1VWXmxiaa8l7VWGXHWjyh+qW6RdVCy56GFmgsR9/YQjiZ0suTZj TuD9SPnE/xqX3Xbn1ElI8s5F230nQ1Qvc423RcFR6s47AHbfdMeyUOj9/5598DwnqvuPt Yr/LjPy4Jem3+kt2PNZvLjtHoWhIw6eGMfP8XZimsIx5lAkjRsrib+Lm6A1A2kNJwEw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=kNXeDys7; arc=none smtp.remote-ip=209.85.210.175 Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 560A9606A322 for ; Thu, 3 Dec 2026 15:27:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 560A9606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=kNXeDys7 Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-8c4cc85a315so9232077b3a.0 for ; Thu, 03 Dec 2026 07:27:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796311670; x=1796916470; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ul3UnCiD+7mEoUE29GSWQmtr5opsk61KkqxfH/nNlyM=; b=kNXeDys7kvpgRk/yocaydN1ZgLJmRINF84QfpudqrCnrRM1E624jUJxrXOGKTJwx65 J0u86rtP8zWnHnEu6gFLS9wtxdKAJuVpHvW0Gy+IeSHxmibC1YMpCY0lb9q1g6P0HmUM qMfFYYnTky1SASRohv0iWd9ZUz3VS1oM1+NpGEitQdFX7XMXfCuWsCgBixGR8SfXwcwp INhaDWcaPKqrkA/tBx16hgxovYJ5AMBUJEnGJoJnjDswvz5sU6Or5yNCUopVgJKcNNx1 7lQlFMf9H3EVyTIUrU51bg9r1afuCTAEgvJZiL4ca7CzQ35pUBzOMJv0xGjUwb6gcVxZ B/gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796311670; x=1796916470; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ul3UnCiD+7mEoUE29GSWQmtr5opsk61KkqxfH/nNlyM=; b=Baf0pYsuMlLo1ouqpk5ZuTm6GF5zpGCdppAIr1PGNkOWufoxAagRPhn2hdbm5+rgMb /k3bZVD8UvZRdEWFGQbCsggahIaylqgQdmJgOGerYX+Mjum1mwRV5TLOmKUkGASfcP0y TCq7Et4HLF+HAuEa66KqbD0YeNBOV0FH9URh0i2aG/6OFXyaVD4mHy+D9mL3jq2jHGAL aVu4J+HAps2bNga1gPohWEHzG9XD4UBi6i5GbrA0acVd0ixqLa+vTDpdGNPhkSQ5R9kS djRyG+RKJekO3Sc8eT7VXxLqIRTH9rSun1bPAC19N88v8wuPfBREllTelpXadk0n96ZC dJyQ== X-Gm-Message-State: APuU4Z9GO++2WuNOB9ggA2koSVjrFgnB3nzmoaPCKJxgyLI2aMRkHUoj bTe9tNW/jLW5FGodf3npdABqyA4z5ssqiA5WE7AUvZhFHJGlNi/bYAv2 X-Gm-Gg: AZFdTZd8LjsJjZ/1oRfnf9gvsMXkHKPdKSQombGAxel2VvhYXOQM82SvCwHxQvaNVu0 QE6AoNkZYcQCT1m6Y0cOGGch/r+MprFPB1FH4/xv5mHLy/K3xxuOTX6a4gjB8lHBePJKv9KEZvD 59/5QKjd+NQH4ju6sjVISpkwNQNg/YQ9eR7metSoiMAKIxzFAbv4OnRuOm1eYoJbqeOvYJq3sC5 e1FL/NCjUZmHQbS49tiIWX4fiLQzHUDfP3APDqnwmVlIkv/iKsOawRbM55cvEWq4SMoPae9nFzC WYjwYTOxuej90iNArClLfw0jGHgCJAMBTbIHJryk28tjMwjkvHHJZAkkspg+9GXUaP2az0tsBig PDOVR/aSAQfZFdHahycbLlSUzdiy2HhndGpd8lh5ldApwQ8UYN0eRD0awVRAq7YgnWebrMQgHjM tPs5xRvYEHRPyUpWxbQE/WDK6KGFK8AtYi6PNBylwKYUD6ZUxVPOrR2NVGRfMUoXWaO/37EobeJ f+g7JSjpUqXTas2PkNjsNHDH+orwMrvcPHQnMHwpyhGwpbQqAKT/wADQ7qWUAlmnjWBWBtB19RG psJ9scKuS/K0FiPXlfyRhafgGuvmZl54znZ7mkJZoA== X-Received: by 2002:aa7:8dce:0:b0:8a0:3ed7:93a1 with SMTP id d2e1a72fcca58-8d9f00a1866mr8169702b3a.50.1796311670493; Thu, 03 Dec 2026 07:27:50 -0800 (PST) Received: from [192.168.1.34] ([103.215.237.233]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c872e457d1sm23527508b3a.30.2026.12.03.07.27.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Dec 2026 07:27:49 -0800 (PST) Message-ID: Date: Thu, 3 Dec 2026 20:57:46 +0530 X-Mailing-List: git@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5] test-lib: run EXPENSIVE tests one at a time To: Patrick Steinhardt Cc: Git mailing list , Christian Couder , Junio C Hamano , Harald Nordgren References: <20261119-ks-ci-long-test-hang-fix-v1-1-45c2fff6d9f0@gmail.com> <20261202-ks-ci-long-test-hang-fix-v5-1-aeb09e4dbc25@gmail.com> Content-Language: en-US From: Kaartic Sivaraam In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/3/26 15:08, Patrick Steinhardt wrote: > 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" >> + 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