GNU bug report logs - #76187
vc-git-test-dir-branch-headers failure on Fedora

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Paul Eggert <eggert@HIDDEN>; dated Mon, 10 Feb 2025 22:59:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 76187 <at> debbugs.gnu.org:


Received: (at 76187) by debbugs.gnu.org; 13 Feb 2025 07:06:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 13 02:06:38 2025
Received: from localhost ([127.0.0.1]:39878 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tiTJ0-0003YJ-AW
	for submit <at> debbugs.gnu.org; Thu, 13 Feb 2025 02:06:38 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:35982)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tiTIy-0003Y5-TY
 for 76187 <at> debbugs.gnu.org; Thu, 13 Feb 2025 02:06:37 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1tiTIs-0004y0-Qm; Thu, 13 Feb 2025 02:06:30 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=tNa667ezCnLzA7JckHbDzOiX97BAuM1nb3c40ZBiuDY=; b=f0ttvcpUcWKGLu9pgK73
 OWx8b2jyi9WwB125djKdeOWA3TWjecdbfMMr9yCHhR3glWccLKbIwn6WOYYcumQTcq6oYrPU1bA+Q
 gvrnStIFgFr+abOuaJ4efJJPs+UkJ+CsSJBELnWBIHk9feWT7Z2FmMbqS5xALrLIz/EV7Tn+b0qEP
 dTPqO7JQqaLpJC6kZ8hZDzGkAChjFgunLqPyfVXl35rXQU4VtEY4Uc0ZPqLxwXV1TeJP2qvF+lKKP
 1ZR9DPRRH1XJlZx//AOXEr20NCeHml5gTGF/VQ+kCwyg0NBsqPyTP5Q+RgiufMeuwOI0bIukeao+0
 Amk/3zFzurgG8w==;
Date: Thu, 13 Feb 2025 09:06:27 +0200
Message-Id: <86ed02jpcc.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: =?utf-8?Q?K=C3=A9vin?= Le Gouguec <kevin.legouguec@HIDDEN>
In-Reply-To: <878qqardr4.fsf@HIDDEN> (message from =?utf-8?Q?K=C3=A9vin?=
 Le Gouguec on Wed, 12 Feb 2025 23:37:19 +0100)
Subject: Re: bug#76187: vc-git-test-dir-branch-headers failure on Fedora
References: <c8d5aeca-734e-43dd-88dc-635aa9c9e2a1@HIDDEN>
 <87a5ase33m.fsf@HIDDEN> <875xlgdxfd.fsf@HIDDEN>
 <cc62bd94-e2c3-4c1e-84ee-b741df1a60ce@HIDDEN>
 <871pw4duz8.fsf@HIDDEN> <87seokcevq.fsf@HIDDEN>
 <878qqardr4.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 76187
Cc: 76187 <at> debbugs.gnu.org, eggert@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Kévin Le Gouguec <kevin.legouguec@HIDDEN>
> Cc: 76187 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
> Date: Wed, 12 Feb 2025 23:37:19 +0100
> 
> Bafflement continues.  With the attached patch that
> 
> * removes the call to vc-dir-kill-dir-status-process to eliminate
> hypothesis c,
> * replaces it with a (while (vc-dir-busy) …) loop to mitigate a,
> * adds a (while (file-exists-p ".git/index.lock")) loop to mitigate b,
> 
> I still reproduce.  Here, after 700 runs in 6min:
> 
>       GEN      lisp/vc/vc-git-tests.log
>     Running 8 tests (2025-02-12 23:16:08+0100, selector `(not (or (tag :unstable) (tag :nativecomp)))')
>        passed  1/8  vc-git-test-annotate-time (0.002284 sec)
>     Paused 1 time(s) waiting for vc-dir-busy
>     err in /tmp/emacs-test-dhul2y-vc-git/: (error Failed (status 128): git --no-pager checkout -b feature/foo master .)
>     (buffer-string:
>     fatal: Unable to create '/tmp/emacs-test-dhul2y-vc-git/.git/index.lock': File exists.
> 
>     Another git process seems to be running in this repository, e.g.
>     an editor opened by 'git commit'. Please make sure all processes
>     are terminated then try again. If it still fails, a git process
>     may have crashed in this repository earlier:
>     remove the file manually to continue.
> 
>     )
> 
> I have a hard time making sense of the sequence of events.  Evidently:
> 
> 1. vc-git-test--run did *not* pause for (file-exists-p
>    ".git/index.lock"),
> 2. but Git *still* tripped over a preexisting .git/index.lock.
> 
> Logging default-directory in the condition-case error handler confirms
> we are in the correct directory, so I do not understand why
> file-exists-p did not see the lock that Git reports.  All I can think of
> is a stray Git process ¿started at some point by someone? that grabs the
> lock between steps 1 & 2.

Yes, something like that.  A.k.a. "a race condition".

> Barring "turn off background processing" knobs for VC and/or Git that I
> missed, not sure what to try next beside catching that "index.lock
> exists" error and re-trying after a delay.

How about just ignoring the error in this case?  AFAIU, it's rare
enough to not be important, right?  AFAIK, you cannot have more than
one Git instance modifying the repository at any given time, so this
problem cannot be fixed in principle if we are running tow or more Git
sessions in parallel.  IOW, these tests must NOT be run via parallel
make processing.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76187; Package emacs. Full text available.

Message received at 76187 <at> debbugs.gnu.org:


Received: (at 76187) by debbugs.gnu.org; 12 Feb 2025 22:37:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 12 17:37:32 2025
Received: from localhost ([127.0.0.1]:38811 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tiLMK-0008IO-6R
	for submit <at> debbugs.gnu.org; Wed, 12 Feb 2025 17:37:32 -0500
Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:38552)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <kevin.legouguec@HIDDEN>)
 id 1tiLMH-0008Hw-92
 for 76187 <at> debbugs.gnu.org; Wed, 12 Feb 2025 17:37:30 -0500
Received: by mail-wr1-x430.google.com with SMTP id
 ffacd0b85a97d-38dc9fc48fdso33923f8f.2
 for <76187 <at> debbugs.gnu.org>; Wed, 12 Feb 2025 14:37:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1739399843; x=1740004643; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=OdDdcTugXUSx8tNu1NB/vtYFtISFedY5veqGfbGEwpc=;
 b=jHSIiUZ1h1vZVgO1fY+nVgW1v07W2NFObtbIgPOWoshX0OLc68nrE+bKUswx25citR
 2zdVHgwSCR0pPeAps3uHA1jUj35fXRxaJAmVpDAlwNs1ygXHx7qzH5j+XDSrWYiNtisU
 cfavXdqiqDLjOuqKxt0NeGGMZNt+W7PXs+HOD2KPdhM8K+H8alvu8bme8EGaTZeWKT4w
 ppKD2pdobO60Gocq3v4N0E66IZ7RbVDhl/nw2KPU6cpPJA+hXpcfl3lW4/brnvBquW6d
 9BE3OFQg+joFf4QqyT04U0su7BpJVBs9pdov7wQ29tulFBfi0HC4jR0is14vpygcVe8j
 OrQA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739399843; x=1740004643;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=OdDdcTugXUSx8tNu1NB/vtYFtISFedY5veqGfbGEwpc=;
 b=YvYCmekuVakBfrH7ssK/zMkiSIrnmtUK4vlPBMOprRstHXqs3rtRMB8pz7bnqB6yaF
 6BDQ8zfCtX1HcFGig7KZ2CI5RjnT9YuyHdmZOVN2TdNTRQRDzMn4v2j80R8mY0imIFwu
 qWptCcdHveVsT/n+/B5LGoNzZdLBop21uLngYaUH8hqGU32hJa5R7GSuzBFVeIx9BCOD
 cGA1payFniWFfbZFWbDaORt4lXM4EaK+fyC6nYlkLKkOgb/Qy1K8eHaR54tc/VNZQZsq
 /1oKOGL/4ekSkgMZqIY5PwqXkQZVbm2be3slBw7kcHI7PqLFEj7DmjjzrRBsHYAnJ3Bc
 EN5g==
X-Gm-Message-State: AOJu0YwvLUzxW4jA5SvebluWYKQB1jEpLaXoeWEOwL/UNTzrwh+eDkV6
 I7E5CN1N9SHjsQMLAveyBhNA7tunGyBBXJW6V9K0dfs0/vjFKYq/
X-Gm-Gg: ASbGncvrcbG6Iw1N+cnXdF9T255Rp3whgWlMH5REkkyvu/m+eFdmiXU7tSMBrKIgW5Z
 Ic0AAK8aSG4EXPp8BHuc+hYSyUN2dDrhT3dj+RTyfRXh5LqOhbJlbsEZ2DzpYd/3aQXmi+9yu0x
 7+YwRKD07krFLN0YSZBK0pE2G5cLleixsJN1QFTQiVUIwpoeobPrgV8e22UC8kAj/RCJ/rtbMWS
 J695bo80eBWQcUQsomnvd+nuMBqCjtn4/EfhMbCdo0Qy52ggvw8guAkujZJL89xr2gG/m5KwU6X
 F+CEQ+EaiIIRsfq5Qk4=
X-Google-Smtp-Source: AGHT+IEwOyn0rDOrnvDJp8AiDHnuMbUmfdJj3idHK2F8+H8vskxRn9qGWn44lMNF8T8RPyXdAs+wFw==
X-Received: by 2002:a05:600c:1ca8:b0:434:941c:9df2 with SMTP id
 5b1f17b1804b1-439582be8f4mr18015665e9.8.1739399842351; 
 Wed, 12 Feb 2025 14:37:22 -0800 (PST)
Received: from amdahl30 ([2a01:e0a:253:fe0:2ef0:5dff:fed2:7b49])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-38f258ccda0sm152571f8f.27.2025.02.12.14.37.20
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 12 Feb 2025 14:37:21 -0800 (PST)
From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= <kevin.legouguec@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
Subject: Re: bug#76187: vc-git-test-dir-branch-headers failure on Fedora
In-Reply-To: <87seokcevq.fsf@HIDDEN>
References: <c8d5aeca-734e-43dd-88dc-635aa9c9e2a1@HIDDEN>
 <87a5ase33m.fsf@HIDDEN> <875xlgdxfd.fsf@HIDDEN>
 <cc62bd94-e2c3-4c1e-84ee-b741df1a60ce@HIDDEN>
 <871pw4duz8.fsf@HIDDEN> <87seokcevq.fsf@HIDDEN>
Date: Wed, 12 Feb 2025 23:37:19 +0100
Message-ID: <878qqardr4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76187
Cc: 76187 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

K=C3=A9vin Le Gouguec <kevin.legouguec@HIDDEN> writes:

>> My current working theories are:
>>
>> a. We fail to sync with some asynchronous processes spawned by vc before
>>    running these 'git checkout' commands; there is precedent for
>>    synchronization problems:
>>
[=E2=80=A6]
>>
>> b. One of the test's git commands spawns a=E2=80=A6 background GC job or
>>    something, and the test's next git command trips over that.
>
> c. That vc-dir-kill-dir-status-process actually kills a Git process that
>    is "holding the lock", in which case=E2=80=A6
>
>> I suppose either a or b would be solved by vc-git-test--run spinning for
>> a bit while (file-exists-p "=E2=80=A6/index.lock"); ideally though I'd p=
refer to
>> catch the locking process red-handed=E2=80=A6 not sure how to achieve th=
is
>> though.
>
> =E2=80=A6 this will not work.
>
> I'd like to believe that the present bug stems from that dodgy FIXME
> workaround, and addressing the latter will fix the former, but that
> FIXME was an admission of defeat already.  Haven't grown wiser since
> then unfortunately.

Bafflement continues.  With the attached patch that

* removes the call to vc-dir-kill-dir-status-process to eliminate
hypothesis c,
* replaces it with a (while (vc-dir-busy) =E2=80=A6) loop to mitigate a,
* adds a (while (file-exists-p ".git/index.lock")) loop to mitigate b,

I still reproduce.  Here, after 700 runs in 6min:

      GEN      lisp/vc/vc-git-tests.log
    Running 8 tests (2025-02-12 23:16:08+0100, selector `(not (or (tag :uns=
table) (tag :nativecomp)))')
       passed  1/8  vc-git-test-annotate-time (0.002284 sec)
    Paused 1 time(s) waiting for vc-dir-busy
    err in /tmp/emacs-test-dhul2y-vc-git/: (error Failed (status 128): git =
--no-pager checkout -b feature/foo master .)
    (buffer-string:
    fatal: Unable to create '/tmp/emacs-test-dhul2y-vc-git/.git/index.lock'=
: File exists.

    Another git process seems to be running in this repository, e.g.
    an editor opened by 'git commit'. Please make sure all processes
    are terminated then try again. If it still fails, a git process
    may have crashed in this repository earlier:
    remove the file manually to continue.

    )

I have a hard time making sense of the sequence of events.  Evidently:

1. vc-git-test--run did *not* pause for (file-exists-p
   ".git/index.lock"),
2. but Git *still* tripped over a preexisting .git/index.lock.

Logging default-directory in the condition-case error handler confirms
we are in the correct directory, so I do not understand why
file-exists-p did not see the lock that Git reports.  All I can think of
is a stray Git process =C2=BFstarted at some point by someone? that grabs t=
he
lock between steps 1 & 2.

Barring "turn off background processing" knobs for VC and/or Git that I
missed, not sure what to try next beside catching that "index.lock
exists" error and re-trying after a delay.


--=-=-=
Content-Type: text/x-patch; charset=utf-8
Content-Disposition: attachment; filename=debug.patch
Content-Transfer-Encoding: quoted-printable

diff --git a/test/lisp/vc/vc-git-tests.el b/test/lisp/vc/vc-git-tests.el
index 4b5cb75df01..decfb2220d4 100644
--- a/test/lisp/vc/vc-git-tests.el
+++ b/test/lisp/vc/vc-git-tests.el
@@ -103,10 +103,32 @@ vc-git-test--with-repo
        (vc-create-repo 'Git)
        ,@body)))
=20
+(defun vc-git-test--wait (what desc)
+  "TODO"
+  (let ((i 0)
+        (max 20))
+    (while (funcall what)
+      (when (> (cl-incf i) max)
+        (error "Timed out waiting for %s" desc))
+      (sleep-for .05))
+    (when (> i 0)
+      (message "Paused %d time(s) waiting for %s" i desc))))
+
 (defun vc-git-test--run (&rest args)
   "Run git ARGS=E2=80=A6, check for non-zero status, and return output."
+  ;; bug#76187: Git sometimes reports an index.lock file and bails,
+  ;; suggesting another lingering Git process in the same repo.  Since
+  ;; this test runs in a temporarily-generated repo, that process is
+  ;; probably an asynchronous one initiated earlier by this test; for
+  ;; lack of better understanding, wait until the lock is released.
+  (vc-git-test--wait (lambda () (file-exists-p ".git/index.lock"))
+                     "index.lock")
   (with-temp-buffer
-    (apply 'vc-git-command t 0 nil args)
+    (condition-case err
+        (apply 'vc-git-command t 0 nil args)
+      (t (message "err in %s: %s" default-directory err)
+         (message "(buffer-string:\n%s\n)" (buffer-string))
+         (signal (car err) (cdr err))))
     (buffer-string)))
=20
 (defun vc-git-test--start-branch ()
@@ -126,10 +148,10 @@ vc-git-test--dir-headers
 return a list of (NAME . VALUE) pairs, where VALUE is nil if the header
 is absent."
   ;; FIXME: to reproduce interactive sessions faithfully, we would need
-  ;; to wait for the dir-status-files process to terminate; have not
-  ;; found a reliable way to do this.  As a workaround, kill pending
-  ;; processes and revert the `vc-dir' buffer.
-  (vc-dir-kill-dir-status-process)
+  ;; to synchronize with the dir-status-files process; have not found a
+  ;; reliable way to do this.  As a workaround, wait until vc-dir stops
+  ;; being "busy" then revert the `vc-dir' buffer.
+  (vc-git-test--wait #'vc-dir-busy "vc-dir-busy")
   (revert-buffer)
   (mapcar
    (lambda (header)

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76187; Package emacs. Full text available.

Message received at 76187 <at> debbugs.gnu.org:


Received: (at 76187) by debbugs.gnu.org; 12 Feb 2025 13:21:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 12 08:21:45 2025
Received: from localhost ([127.0.0.1]:33249 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tiCgS-00067A-LV
	for submit <at> debbugs.gnu.org; Wed, 12 Feb 2025 08:21:44 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:58386)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tiCgQ-00066u-OW
 for 76187 <at> debbugs.gnu.org; Wed, 12 Feb 2025 08:21:43 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1tiCgK-0004HS-FA; Wed, 12 Feb 2025 08:21:36 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=ur/s5gT31+MZbYUThAmbCgH/VlU8/vt8lIvWeoatI6U=; b=Fqvhp7mUS0oX6ntTU4K4
 xT7Tj9hBtoI+ZYkrf0DGjQEhj9M2RD3HVmBuraIGy7utWKnuDPLSTUTU/dWHfTEhyJQPqhhltxSYC
 V9txVx+BMBpq0FIc3h9kPqzmbhYi+34+vV56bvAeukOMWt7Kl+5oL1WKEfDvtafLZSuUcrUmRYwDo
 IvPvtEykUcWD9PMt0a01oqubIx0VHTduLq3xBHXeK92vMY4pcs40EAvj7GXWiAvSOnF43ecyyhcLQ
 tVMs6vBk6ah4oOrhlRs3AT9s+GTFTerKQiaQ6KKXjYWzJIxL6GAVH4+BtA/Rhdv60Ul59Q214tUnT
 Zunga3u93np2gQ==;
Date: Wed, 12 Feb 2025 15:21:34 +0200
Message-Id: <86ikpfl2n5.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: =?utf-8?Q?K=C3=A9vin?= Le Gouguec <kevin.legouguec@HIDDEN>
In-Reply-To: <87seokcevq.fsf@HIDDEN> (message from =?utf-8?Q?K=C3=A9vin?=
 Le Gouguec on Tue, 11 Feb 2025 23:09:45 +0100)
Subject: Re: bug#76187: vc-git-test-dir-branch-headers failure on Fedora
References: <c8d5aeca-734e-43dd-88dc-635aa9c9e2a1@HIDDEN>
 <87a5ase33m.fsf@HIDDEN> <875xlgdxfd.fsf@HIDDEN>
 <cc62bd94-e2c3-4c1e-84ee-b741df1a60ce@HIDDEN>
 <871pw4duz8.fsf@HIDDEN> <87seokcevq.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 76187
Cc: 76187 <at> debbugs.gnu.org, eggert@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: 76187 <at> debbugs.gnu.org
> From: Kévin Le Gouguec <kevin.legouguec@HIDDEN>
> Date: Tue, 11 Feb 2025 23:09:45 +0100
> 
> Kévin Le Gouguec <kevin.legouguec@HIDDEN> writes:
> 
> >    FWIW, sticking one more speculative (vc-dir-kill-dir-status-process)
> >    after (revert-buffer) lowers the failure rate (took 10 minutes to
> >    reproduce it once; no second occurrence after >5k runs over 30min).
> >
> > b. One of the test's git commands spawns a… background GC job or
> >    something, and the test's next git command trips over that.
> 
> c. That vc-dir-kill-dir-status-process actually kills a Git process that
>    is "holding the lock", in which case…

When we kill a Git process, we should also remove the lock file, I
think.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76187; Package emacs. Full text available.

Message received at 76187 <at> debbugs.gnu.org:


Received: (at 76187) by debbugs.gnu.org; 12 Feb 2025 13:04:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 12 08:04:11 2025
Received: from localhost ([127.0.0.1]:33211 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tiCPS-0002Dl-MQ
	for submit <at> debbugs.gnu.org; Wed, 12 Feb 2025 08:04:11 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:45294)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tiCPQ-0002DV-Iv
 for 76187 <at> debbugs.gnu.org; Wed, 12 Feb 2025 08:04:09 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1tiCPJ-0007ow-2V; Wed, 12 Feb 2025 08:04:02 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=Rc/uhkQDt/pRB8zD2QH/27NEdFq296jM87XTyoXf49U=; b=gpx9ufltefLkfw1JKz2W
 FyM8B2alD3C7Cy2oPKKb9ybpBDK1zcrG1So1bdydTBWuZ5r/gHO9SE1kLfqbYMVtfgj45ye5btXmE
 QQWinSWgF+TPaTGgr/WGITlz6ajIy4AHkYMgTJW0WqO1HLgxYyXXEpvTOzMAi21xBjijUxMqOGHiY
 8SFw98NcPjf+4kUZwVUKeEITDi7tBRr17wTe+l4hVPJT+nxRPwynMMJhyksuoESP9tQUBsXushbGv
 OVcyhvnhEKMOLUBvErhWZZ8im4MrjWr4N9gwJCncFWCzgSdw93Az2nsGr672zTDHMFwKmjNZbQxzg
 lxyTaIdBx9f0XQ==;
Date: Wed, 12 Feb 2025 15:03:57 +0200
Message-Id: <86pljnl3gi.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
In-Reply-To: <cc62bd94-e2c3-4c1e-84ee-b741df1a60ce@HIDDEN> (message from
 Paul Eggert on Tue, 11 Feb 2025 13:12:44 -0800)
Subject: Re: bug#76187: vc-git-test-dir-branch-headers failure on Fedora
References: <c8d5aeca-734e-43dd-88dc-635aa9c9e2a1@HIDDEN>
 <87a5ase33m.fsf@HIDDEN> <875xlgdxfd.fsf@HIDDEN>
 <cc62bd94-e2c3-4c1e-84ee-b741df1a60ce@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 76187
Cc: 76187 <at> debbugs.gnu.org, kevin.legouguec@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: 76187 <at> debbugs.gnu.org
> Date: Tue, 11 Feb 2025 13:12:44 -0800
> From: Paul Eggert <eggert@HIDDEN>
> 
> On 2/11/25 12:43, Kévin Le Gouguec wrote:
> > Another git process seems to be running in this repository,
> 
> I guess the test won't work with "make -j check", since some other test 
> might also be running git in that repository. If my guess is right, to 
> fix this you can arrange for the test to run in a clone instead. 
> Similarly for any other test that might want to alter that repository or 
> its working files.

Or just arrange for this test to wait for a while until the lock is
freed.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76187; Package emacs. Full text available.

Message received at 76187 <at> debbugs.gnu.org:


Received: (at 76187) by debbugs.gnu.org; 12 Feb 2025 00:36:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 11 19:36:03 2025
Received: from localhost ([127.0.0.1]:59639 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ti0jT-0006ii-2f
	for submit <at> debbugs.gnu.org; Tue, 11 Feb 2025 19:36:03 -0500
Received: from mail.cs.ucla.edu ([131.179.128.66]:59944)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eggert@HIDDEN>)
 id 1ti0jO-0006i4-GQ
 for 76187 <at> debbugs.gnu.org; Tue, 11 Feb 2025 19:36:00 -0500
Received: from localhost (localhost [127.0.0.1])
 by mail.cs.ucla.edu (Postfix) with ESMTP id AA2473C011BC5;
 Tue, 11 Feb 2025 16:35:51 -0800 (PST)
Received: from mail.cs.ucla.edu ([127.0.0.1])
 by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP
 id wKuJ7pUCU_fh; Tue, 11 Feb 2025 16:35:51 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
 by mail.cs.ucla.edu (Postfix) with ESMTP id 6E3A13C011BD7;
 Tue, 11 Feb 2025 16:35:51 -0800 (PST)
DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 6E3A13C011BD7
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu;
 s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1739320551;
 bh=LFuvoOkPX9x8/zQkDcK/14KX1S90+f5oDyrwxkn1D0s=;
 h=Message-ID:Date:MIME-Version:To:From;
 b=IGO72Kx1BUNU2Jf68zTpJvxOq+najxYlM+f7aZ/P/OG3/X5f7jNTHztqNaLprEolW
 S9JZUCtmXAJzvJDlLpC4mNmbgbJOKwVzNwGnI0EXZ0hliI8m/PhTOoTIUpYmPAV1l4
 TibUjJDZNYEZlaFy0fErrzdgsIn4CVK/MqiyHApesPZsI/pUKrFJ2uWJEN53FmO3Cg
 z7Aggj0zonlfpbfKcndYNgdZjBDlDIuw6LtHSyzRgojbhehfkHjxTfydeznG8j6TCV
 VoYrB8yaPz4ayh5xr0/N/eURK+IOIarwqcm3ZIiS++gnuV8x82bIfiok1xsxxj7NXF
 kVcYIFATVEnig==
X-Virus-Scanned: amavis at mail.cs.ucla.edu
Received: from mail.cs.ucla.edu ([127.0.0.1])
 by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP
 id OOmPuybNkDUj; Tue, 11 Feb 2025 16:35:51 -0800 (PST)
Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200])
 by mail.cs.ucla.edu (Postfix) with ESMTPSA id 4D7D13C011BC5;
 Tue, 11 Feb 2025 16:35:51 -0800 (PST)
Message-ID: <bc1089cb-6a5f-4d72-9381-c421503dc3c1@HIDDEN>
Date: Tue, 11 Feb 2025 16:35:51 -0800
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#76187: vc-git-test-dir-branch-headers failure on Fedora
To: =?UTF-8?Q?K=C3=A9vin_Le_Gouguec?= <kevin.legouguec@HIDDEN>
References: <c8d5aeca-734e-43dd-88dc-635aa9c9e2a1@HIDDEN>
 <87a5ase33m.fsf@HIDDEN> <875xlgdxfd.fsf@HIDDEN>
 <cc62bd94-e2c3-4c1e-84ee-b741df1a60ce@HIDDEN> <871pw4duz8.fsf@HIDDEN>
Content-Language: en-US
From: Paul Eggert <eggert@HIDDEN>
Autocrypt: addr=eggert@HIDDEN; keydata=
 xsFNBEyAcmQBEADAAyH2xoTu7ppG5D3a8FMZEon74dCvc4+q1XA2J2tBy2pwaTqfhpxxdGA9
 Jj50UJ3PD4bSUEgN8tLZ0san47l5XTAFLi2456ciSl5m8sKaHlGdt9XmAAtmXqeZVIYX/UFS
 96fDzf4xhEmm/y7LbYEPQdUdxu47xA5KhTYp5bltF3WYDz1Ygd7gx07Auwp7iw7eNvnoDTAl
 KAl8KYDZzbDNCQGEbpY3efZIvPdeI+FWQN4W+kghy+P6au6PrIIhYraeua7XDdb2LS1en3Ss
 mE3QjqfRqI/A2ue8JMwsvXe/WK38Ezs6x74iTaqI3AFH6ilAhDqpMnd/msSESNFt76DiO1ZK
 QMr9amVPknjfPmJISqdhgB1DlEdw34sROf6V8mZw0xfqT6PKE46LcFefzs0kbg4GORf8vjG2
 Sf1tk5eU8MBiyN/bZ03bKNjNYMpODDQQwuP84kYLkX2wBxxMAhBxwbDVZudzxDZJ1C2VXujC
 OJVxq2kljBM9ETYuUGqd75AW2LXrLw6+MuIsHFAYAgRr7+KcwDgBAfwhPBYX34nSSiHlmLC+
 KaHLeCLF5ZI2vKm3HEeCTtlOg7xZEONgwzL+fdKo+D6SoC8RRxJKs8a3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NxzlWiqqQHZZ9momN0GXLPcGq
 4uyfq7yVEy7wP5PMOh6oqscKklE3gFQtq0P1Ki0xqdF6Fq5LPJc+0Db2CYkVIy7Xaa/f74I3
 sOfQfEeDylVXR5iDfUJEYv/0DYhOr7q5/0b1kh3M4wkrB4C5jVNHjIIj+RsAK90c3t38OhAl
 jiSN7Bkwy24Afy8eIu6wWzvhnsQGpZPB+IffmxT1wkTy8UxZKjUWV0C82iphVgCUUi2f9sDV
 Q/tNcwVWmOS+gdv9Wk6tdGeM+Ee+Qs6YG05jcSoajzF0TL07ajLcayRq2j1Os2CtQ8qu
Organization: UCLA Computer Science Department
In-Reply-To: <871pw4duz8.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76187
Cc: 76187 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 2/11/25 13:36, K=C3=A9vin Le Gouguec wrote:
>         ;; FIXME: to reproduce interactive sessions faithfully, we woul=
d need
>         ;; to wait for the dir-status-files process to terminate; have =
not
>         ;; found a reliable way to do this.

One way would be set up those processes with a pipe connecting them to=20
you, and then read from the pipe.

Admittedly I'm just spitballing at this point.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76187; Package emacs. Full text available.

Message received at 76187 <at> debbugs.gnu.org:


Received: (at 76187) by debbugs.gnu.org; 11 Feb 2025 22:09:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 11 17:09:57 2025
Received: from localhost ([127.0.0.1]:59249 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1thyS5-0004mL-7t
	for submit <at> debbugs.gnu.org; Tue, 11 Feb 2025 17:09:57 -0500
Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:41154)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <kevin.legouguec@HIDDEN>)
 id 1thyS2-0004lz-8P
 for 76187 <at> debbugs.gnu.org; Tue, 11 Feb 2025 17:09:55 -0500
Received: by mail-wm1-x332.google.com with SMTP id
 5b1f17b1804b1-4394412e6efso3809035e9.0
 for <76187 <at> debbugs.gnu.org>; Tue, 11 Feb 2025 14:09:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1739311788; x=1739916588; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=u2BkG6AuAtWwP5m9qzkSPXinIBSd835n8pO1DIV0WAI=;
 b=cJUrBVZAuSSnS4fBPHvSAd5MtuNXowKTI4u59yVQiZG4V0xm7SrSRjUX/8so5Sq5FZ
 AP83qFPbkMLOhBE8e8dexT2BmOB9SktQKiUhfy2FhLo8jBl1lGi2BtuBr3FDbtQ8ZeE3
 YOLntmGMo32puleIHhw2oYLTqBeM9o3GkN3fqQPpsM5dmffBTAbVQXPmWpMhkTlXzxHF
 YJYk3tmUszqy3qP3qCYnGw0Wv19adTmtZDua3ubH2PCq04uBr9t8BlXQWsOwWX9ngY0i
 OT/UY4FR0QD0dEl8X6WnM+RauviFtH0xg2anYaM6Jankh5Qgvog82xX2FKKKCh+9E3vq
 z6lw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739311788; x=1739916588;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=u2BkG6AuAtWwP5m9qzkSPXinIBSd835n8pO1DIV0WAI=;
 b=vDywOIAwnoejVSs/fXN33wpVjpo4+AIfHxS+4/cd4lErkEAfHvJmX8jP6/1ZEXzEDI
 vCUd/CgpZkVXCfcX7c5ja/cMnB08dkqK3ku1dlVVtOZBPSkcNQVeZmTH9ENGu46NsM3D
 x0doYbC0PjyQrW5w1+FsPYv5YXABTVyDcCOIvogM6lrlIScfOEtDwrp1FCsFn1G8OUul
 LXLfPVEb47GBX6+m6FfdkEkKOjf369o5G8NLsIQg5AkVISQz2tDxnRxWvMgcHqJQBn1m
 T0KLVQrU1n0e85dTcoaUvQkxHDmm5vxcS/WmpM9W1ZfVewG1XwWOD1wvFYqgH9ydR1FA
 r5iQ==
X-Gm-Message-State: AOJu0YycaeZ/E8iLcqSjydmKBx3qOxr+rBP81ANXLQSXFJehTjcAiSkh
 HcCUsiWTL/wbM1sAHd/OO8RNSnsB+Q9hTPaZ5K3xQ8Ep/N9xyN0TlVB4Xg==
X-Gm-Gg: ASbGnct1+R7SVaRPEqLu12XaChz7JojtQ71d8ruM+xPWvW/TmEg7WSaguPI1zhsA1k4
 5ToSZzwMp3+FVAC5Wi1UjM4FPHZX+62j8CLfChOpuQOrQQvnkIw/F9/liw1Md1OA7AIVr0UkCYo
 fK21jlTh+nJXqJH0aK3epJmcksYVBv3dAkFIzpFJJqIZoOIodcscuCXMDG29WBlmtwbHvqniMVS
 dazdYxUe1wMxSjcZ0K/VK/hBnv9TlfUZ6+s+Ao5PlUwTD7rczGmKPN6ANmSDXwL6z2T3jELUakb
 fp7/fUdSgPvrOXocFuE=
X-Google-Smtp-Source: AGHT+IFqisQhKeAEfoJOVNAmKUkiZ+NjEu7/4zZuidnt/0Zd5zdNq7eD+hei5M7xKRwGrsv+im1gPw==
X-Received: by 2002:a05:600c:46c7:b0:434:9cb7:7321 with SMTP id
 5b1f17b1804b1-439581600c7mr3356025e9.1.1739311787782; 
 Tue, 11 Feb 2025 14:09:47 -0800 (PST)
Received: from amdahl30 ([2a01:e0a:253:fe0:2ef0:5dff:fed2:7b49])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-4395a04f8a2sm805045e9.2.2025.02.11.14.09.46
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 11 Feb 2025 14:09:46 -0800 (PST)
From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= <kevin.legouguec@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
Subject: Re: bug#76187: vc-git-test-dir-branch-headers failure on Fedora
In-Reply-To: <871pw4duz8.fsf@HIDDEN>
References: <c8d5aeca-734e-43dd-88dc-635aa9c9e2a1@HIDDEN>
 <87a5ase33m.fsf@HIDDEN> <875xlgdxfd.fsf@HIDDEN>
 <cc62bd94-e2c3-4c1e-84ee-b741df1a60ce@HIDDEN>
 <871pw4duz8.fsf@HIDDEN>
Date: Tue, 11 Feb 2025 23:09:45 +0100
Message-ID: <87seokcevq.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76187
Cc: 76187 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

K=C3=A9vin Le Gouguec <kevin.legouguec@HIDDEN> writes:

> Paul Eggert <eggert@HIDDEN> writes:
>
>> On 2/11/25 12:43, K=C3=A9vin Le Gouguec wrote:
>>> Another git process seems to be running in this repository,
>>
>> I guess the test won't work with "make -j check", since some other test =
might also be running git in that repository. If my guess is right, to fix =
this you can arrange for the test to run in a clone instead. Similarly for =
any other test that might want to alter that repository or its working file=
s.
>
> The test does arrange to run in isolated directories, using
> ert-with-temp-directory:
>
> (defmacro vc-git-test--with-repo (name &rest body)
>   ;; =E2=80=A6
>   `(ert-with-temp-directory ,name
>      (let ((default-directory ,name)
>            ;; =E2=80=A6
>            )
>        (vc-create-repo 'Git)
>        ,@body)))
>
> (ert-deftest vc-git-test-dir-branch-headers ()
>   ;; =E2=80=A6
>   ;; Create a repository that will serve as the "remote".
>   (vc-git-test--with-repo origin-repo=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
>     (let ((main-branch (vc-git-test--start-branch)))
>       ;; 'git clone' this repository and test things in this clone.
>       (ert-with-temp-directory clone-repo
>         ;; =E2=80=A6
>         ))))
>
> So unless I am missing something, 'make -j' ought not be a factor.
>
> My current working theories are:
>
> a. We fail to sync with some asynchronous processes spawned by vc before
>    running these 'git checkout' commands; there is precedent for
>    synchronization problems:
>
>      (defun vc-git-test--dir-headers (headers)
>        "=E2=80=A6"
>        ;; FIXME: to reproduce interactive sessions faithfully, we would n=
eed
>        ;; to wait for the dir-status-files process to terminate; have not
>        ;; found a reliable way to do this.  As a workaround, kill pending
>        ;; processes and revert the `vc-dir' buffer.
>        (vc-dir-kill-dir-status-process)
>        (revert-buffer)
>        ;; =E2=80=A6
>        )
>
>    FWIW, sticking one more speculative (vc-dir-kill-dir-status-process)
>    after (revert-buffer) lowers the failure rate (took 10 minutes to
>    reproduce it once; no second occurrence after >5k runs over 30min).
>
> b. One of the test's git commands spawns a=E2=80=A6 background GC job or
>    something, and the test's next git command trips over that.

c. That vc-dir-kill-dir-status-process actually kills a Git process that
   is "holding the lock", in which case=E2=80=A6

> I suppose either a or b would be solved by vc-git-test--run spinning for
> a bit while (file-exists-p "=E2=80=A6/index.lock"); ideally though I'd pr=
efer to
> catch the locking process red-handed=E2=80=A6 not sure how to achieve this
> though.

=E2=80=A6 this will not work.

I'd like to believe that the present bug stems from that dodgy FIXME
workaround, and addressing the latter will fix the former, but that
FIXME was an admission of defeat already.  Haven't grown wiser since
then unfortunately.

(No luck reproducing any of this under strace FWIW)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76187; Package emacs. Full text available.

Message received at 76187 <at> debbugs.gnu.org:


Received: (at 76187) by debbugs.gnu.org; 11 Feb 2025 21:39:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 11 16:39:55 2025
Received: from localhost ([127.0.0.1]:59140 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1thxz0-0003HN-O4
	for submit <at> debbugs.gnu.org; Tue, 11 Feb 2025 16:39:55 -0500
Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:39672)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <kevin.legouguec@HIDDEN>)
 id 1thxyy-0003H8-8I
 for 76187 <at> debbugs.gnu.org; Tue, 11 Feb 2025 16:39:53 -0500
Received: by mail-wm1-x334.google.com with SMTP id
 5b1f17b1804b1-4393f673f76so4467135e9.2
 for <76187 <at> debbugs.gnu.org>; Tue, 11 Feb 2025 13:39:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1739309986; x=1739914786; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=eBYTMYPuAVQXseX/tHFDfUx5bI78pX8YmV0gZgibbXQ=;
 b=RjV1EN7O3R1Z3VBVOQlyWsaxlt0yxWUYFKsqXFFPiv1Rs7DZEgm6YHYzToQL8eLQ/d
 08RGdOoRgyMGOF7YEI7LtrBsIwpf1rfj09B/UB0EJwaBtLoFFjdZjTCZ7ZjxKvxi2ZVW
 jpcnm9jq1oeGITyL0welzEYfiykEr9wzJqSfYaN6v+0nIXuSyn+5JJw5/SrUOY5mSgcG
 AduvK4jPwWjBVcJM8GqrEop1Y5dTqD/I4O+jVOZX/S82eM7i6QAeT8vGnzAf0KjEq10+
 XquP6RXBMYo7At6vyX/3edrkYN9/VehYUP7xSuLWdIPGAxO0bVg7slVqh5V8NWs7OKJx
 oodw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739309986; x=1739914786;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=eBYTMYPuAVQXseX/tHFDfUx5bI78pX8YmV0gZgibbXQ=;
 b=q6V9pjrcexidckgnusZ8Fag0G/g+8Cb6/e0s37l13A+OFfOS3mWnYbqa6QqtqWN7iO
 KOpB83eN0K8FVrXP9+JG/AR4UYx0v9AFU7MJcPMMa0GhP66LulVxobnfqJiffh/w76aF
 ZQD2S/y/89+9noGcr3TR90CGLdXLQW1KsCfpmOVvuboLNy/gvSkwad57sYoZnnnJ6ECK
 2G7Oo07mDl6lgthjSlOojUZvr0BzZhKhaWvMg/EWjby4wJ3kTLPnv23CbKcTLxCfgN65
 oVDac+mxWJ2AxvMploymiDYC3J+e8F4S3i4mFJpeYSQtaeq/blLpiWRgPt96IPcaVU7z
 xL7Q==
X-Gm-Message-State: AOJu0Ywx8wgvW/JyhEvv2cT0CVi9A953es/PznpcxLJ875vFPzmAL9XX
 ii1+S41VQ5h7LqmPwhnlYAjM/yj1VrmLGGPIs4DOiKYHcOZz8WHu1vWztw==
X-Gm-Gg: ASbGncu1cD8e6MZfCmsvaGkHU6ZSxG4AHGziGTH50FagilgHtPRXjtbGmWcAOQkwG4t
 jmaJggy1XapUsp/RQSbw3bi34Yu6d8Ljm3HazPpJOVf5hb3xw9VFMRPCXmdg/+UKYGrIFnZChrT
 cDCwyqKZGsYIHz8CAon+oapYCorJCuldsby1BkmNfTSDNknHOkfPQ/oGwt4OZEWmPo47owPIvKE
 BLG3USctoVRq3lcBIXANGH4Um71gUeYTBZBbOGY4OrYJbHyS9/IHHQswrbxBqjiNtxLrm6aOdti
 SWKi0oFCRHH5SocC9Dw=
X-Google-Smtp-Source: AGHT+IEcuDyjWWSOoVSBlT9vDkvAFO/9eVitRugsumewCENDofWNCm8Clsxjd73Q6dWtRCxPUUuOXQ==
X-Received: by 2002:a05:6000:156f:b0:38d:be2c:37f with SMTP id
 ffacd0b85a97d-38dea26fbe0mr166939f8f.4.1739309985838; 
 Tue, 11 Feb 2025 13:39:45 -0800 (PST)
Received: from amdahl30 ([2a01:e0a:253:fe0:2ef0:5dff:fed2:7b49])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-38dc7711bbbsm13298049f8f.47.2025.02.11.13.39.44
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 11 Feb 2025 13:39:45 -0800 (PST)
From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= <kevin.legouguec@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
Subject: Re: bug#76187: vc-git-test-dir-branch-headers failure on Fedora
In-Reply-To: <871pw4duz8.fsf@HIDDEN>
References: <c8d5aeca-734e-43dd-88dc-635aa9c9e2a1@HIDDEN>
 <87a5ase33m.fsf@HIDDEN> <875xlgdxfd.fsf@HIDDEN>
 <cc62bd94-e2c3-4c1e-84ee-b741df1a60ce@HIDDEN>
 <871pw4duz8.fsf@HIDDEN>
Date: Tue, 11 Feb 2025 22:39:44 +0100
Message-ID: <87wmdwcg9r.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76187
Cc: 76187 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

K=C3=A9vin Le Gouguec <kevin.legouguec@HIDDEN> writes:

> Paul Eggert <eggert@HIDDEN> writes:
>
>> On 2/11/25 12:43, K=C3=A9vin Le Gouguec wrote:
>>> Another git process seems to be running in this repository,
>>
>> I guess the test won't work with "make -j check", since some other test =
might also be running git in that repository. If my guess is right, to fix =
this you can arrange for the test to run in a clone instead. Similarly for =
any other test that might want to alter that repository or its working file=
s.
>
> The test does arrange to run in isolated directories, using
> ert-with-temp-directory:

(As a matter of fact, to reproduce this issue, I have been running

  while make -C test lisp/vc/vc-git-tests ; do continue ; done

so AFAIU 'make -j' cannot be a factor?)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76187; Package emacs. Full text available.

Message received at 76187 <at> debbugs.gnu.org:


Received: (at 76187) by debbugs.gnu.org; 11 Feb 2025 21:36:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 11 16:36:54 2025
Received: from localhost ([127.0.0.1]:59134 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1thxw5-0003By-OM
	for submit <at> debbugs.gnu.org; Tue, 11 Feb 2025 16:36:54 -0500
Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:40187)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <kevin.legouguec@HIDDEN>)
 id 1thxw3-0003Bg-Ta
 for 76187 <at> debbugs.gnu.org; Tue, 11 Feb 2025 16:36:52 -0500
Received: by mail-wm1-x333.google.com with SMTP id
 5b1f17b1804b1-439454602e5so3890545e9.0
 for <76187 <at> debbugs.gnu.org>; Tue, 11 Feb 2025 13:36:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1739309805; x=1739914605; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=bun4DM5wDG2XNBy7EJwu20+O4Fp/qcesbClr4f5DS88=;
 b=k8BiQMPHfJHw8uf8e4CHJaFXCL1XQZuTxdDQXaivyDCPo8ac90THeHepveSlQN7VCn
 ZghKguJ1CqW7UFNAHZYMss2M5dEMNDMo9J2HC4tJwqd7WW47/NhSrkJq1bVjgYgPNObb
 VKyUNVv8ZuA5iJ/qmZI203Fx5vrMX854b+B3xWkX2/5UR6C0cy9Bw1+XSFyjpBMBvMXO
 bIMTXDj5JZiGyWSzKmBfdFCx2KLyLqHykb7LLTJNmaC3sektuFMYxazq4vJmQy4BwVg8
 lYbVcEs+jQNtMXAued0iJaCf9QbRTNL65raTfa+FvZWGb/4O8iZmqZlpQa5UsgbecuOm
 opDA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739309805; x=1739914605;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=bun4DM5wDG2XNBy7EJwu20+O4Fp/qcesbClr4f5DS88=;
 b=T/3+xl8kjRiH4wCxNap/G+Geo50tK2PJvnku6J2jU0XpIbtVUGKtmDcoBAh+hq5bPS
 TZBRyvUaXNTjyM9wOmwofo6syqIBFuFa8Hspr72D5gBIn2Rmd9NNOm/5Zeha41knNT1T
 5InyCz9E56GqkofoskPpWm0NUknan9gxuhkY6vZE0OgNJ9hllbSeS4AtrE6PRJg1G1ve
 M9ZSP5V7CGWZYlAhlnel6v0pT3GunsJVgiJJ9RGuVICFXsJ5PTdoElk+OfK2HbMCObHZ
 Glz7JqZ6MXsdHgta6qnEsJmDAvD56pICfLqileh4JqeSu4uJtW84X9nPIe389rEyPs8Y
 6lRQ==
X-Gm-Message-State: AOJu0YwIuTjswWN4fJ5XVAqRUt7l9g+SoufPFmwqMtgVnrotb+65FguZ
 1VInWkpUQka/NjQN/zOgbnQysMw9Y6Rgmdo3zTBVxe0cvNygN/VR9yM4lg==
X-Gm-Gg: ASbGncu9wQO9pJvo/XpsqbIsWc17jhY9HNaFjBdDMBZ1T8F/G/nuLvUMgqIr5pii8LE
 Y40wE00SN6JUARLby4q6bCXjZt/Nf7gRTINxul+9XPnm5cRgS0NLfLcY1UZTs0ktpOZy35Ayo5M
 USHbPzJHoIMC4u0EhJjkMKVATryN9WCMu9V8ksZngSqazBdWYxTBD0wBr6/79hUE1PlY2y0uAYb
 BIhL9F6sH/xtf0i4L4zyx8MngpI214qoenjearQyIl7RDC5c2gw+LmvClY1+5T/srNi2RfVsArA
 +YYW9GHOeik9/N9hQeA=
X-Google-Smtp-Source: AGHT+IHPPm73O9ajacKYipc8X23LpJkcSG6hUHFradRzVTjSX7QKozsVbg6nO2EIREx3LR7TxUaw/g==
X-Received: by 2002:a5d:648d:0:b0:38d:d906:dbbb with SMTP id
 ffacd0b85a97d-38dea250259mr207853f8f.2.1739309805065; 
 Tue, 11 Feb 2025 13:36:45 -0800 (PST)
Received: from amdahl30 ([2a01:e0a:253:fe0:2ef0:5dff:fed2:7b49])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-38dc5e6f027sm13867561f8f.4.2025.02.11.13.36.44
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 11 Feb 2025 13:36:44 -0800 (PST)
From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= <kevin.legouguec@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
Subject: Re: bug#76187: vc-git-test-dir-branch-headers failure on Fedora
In-Reply-To: <cc62bd94-e2c3-4c1e-84ee-b741df1a60ce@HIDDEN>
References: <c8d5aeca-734e-43dd-88dc-635aa9c9e2a1@HIDDEN>
 <87a5ase33m.fsf@HIDDEN> <875xlgdxfd.fsf@HIDDEN>
 <cc62bd94-e2c3-4c1e-84ee-b741df1a60ce@HIDDEN>
Date: Tue, 11 Feb 2025 22:36:43 +0100
Message-ID: <871pw4duz8.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76187
Cc: 76187 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Paul Eggert <eggert@HIDDEN> writes:

> On 2/11/25 12:43, K=C3=A9vin Le Gouguec wrote:
>> Another git process seems to be running in this repository,
>
> I guess the test won't work with "make -j check", since some other test m=
ight also be running git in that repository. If my guess is right, to fix t=
his you can arrange for the test to run in a clone instead. Similarly for a=
ny other test that might want to alter that repository or its working files.

The test does arrange to run in isolated directories, using
ert-with-temp-directory:

(defmacro vc-git-test--with-repo (name &rest body)
  ;; =E2=80=A6
  `(ert-with-temp-directory ,name
     (let ((default-directory ,name)
           ;; =E2=80=A6
           )
       (vc-create-repo 'Git)
       ,@body)))

(ert-deftest vc-git-test-dir-branch-headers ()
  ;; =E2=80=A6
  ;; Create a repository that will serve as the "remote".
  (vc-git-test--with-repo origin-repo=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
    (let ((main-branch (vc-git-test--start-branch)))
      ;; 'git clone' this repository and test things in this clone.
      (ert-with-temp-directory clone-repo
        ;; =E2=80=A6
        ))))

So unless I am missing something, 'make -j' ought not be a factor.

My current working theories are:

a. We fail to sync with some asynchronous processes spawned by vc before
   running these 'git checkout' commands; there is precedent for
   synchronization problems:

     (defun vc-git-test--dir-headers (headers)
       "=E2=80=A6"
       ;; FIXME: to reproduce interactive sessions faithfully, we would need
       ;; to wait for the dir-status-files process to terminate; have not
       ;; found a reliable way to do this.  As a workaround, kill pending
       ;; processes and revert the `vc-dir' buffer.
       (vc-dir-kill-dir-status-process)
       (revert-buffer)
       ;; =E2=80=A6
       )

   FWIW, sticking one more speculative (vc-dir-kill-dir-status-process)
   after (revert-buffer) lowers the failure rate (took 10 minutes to
   reproduce it once; no second occurrence after >5k runs over 30min).

b. One of the test's git commands spawns a=E2=80=A6 background GC job or
   something, and the test's next git command trips over that.

I suppose either a or b would be solved by vc-git-test--run spinning for
a bit while (file-exists-p "=E2=80=A6/index.lock"); ideally though I'd pref=
er to
catch the locking process red-handed=E2=80=A6 not sure how to achieve this
though.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76187; Package emacs. Full text available.

Message received at 76187 <at> debbugs.gnu.org:


Received: (at 76187) by debbugs.gnu.org; 11 Feb 2025 21:12:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 11 16:12:56 2025
Received: from localhost ([127.0.0.1]:59102 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1thxYu-000221-0h
	for submit <at> debbugs.gnu.org; Tue, 11 Feb 2025 16:12:56 -0500
Received: from mail.cs.ucla.edu ([131.179.128.66]:48590)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eggert@HIDDEN>)
 id 1thxYp-00021Z-H5
 for 76187 <at> debbugs.gnu.org; Tue, 11 Feb 2025 16:12:55 -0500
Received: from localhost (localhost [127.0.0.1])
 by mail.cs.ucla.edu (Postfix) with ESMTP id 2B49F3C00E400;
 Tue, 11 Feb 2025 13:12:45 -0800 (PST)
Received: from mail.cs.ucla.edu ([127.0.0.1])
 by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP
 id 91NSoxIo0uek; Tue, 11 Feb 2025 13:12:45 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
 by mail.cs.ucla.edu (Postfix) with ESMTP id E0C263C005179;
 Tue, 11 Feb 2025 13:12:44 -0800 (PST)
DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu E0C263C005179
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu;
 s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1739308364;
 bh=ph8FRNUIPqhqmg7sYtCXmIZTK3LQhDWiuitZJeHfjUE=;
 h=Message-ID:Date:MIME-Version:To:From;
 b=P/LC88s+CEANJkdKhRYJ/eiQsGJyuiZxc/3aOCdk0NUqY3Vn+FIaN8LLzxidt6xur
 NasU5IFFD182STXKjPg5Wbq8OspKq2x468znQfP2s0qUkJvassk6QaopruDiT7kyw0
 hNG6npgMivcYRlOvJ2r2FwM2o6RBJxnSMyI0LtqP7pwBd7yUrdds5e3cLgosJrgUwr
 SHdF6ALhLQU7YBaf6oIdEDb6H/lR8+R/7L6OAgSfRWJD3EiL6f2cItGiD1gXoX9Dtg
 KWqNErcLbtp4U/TNZz9+5/Bicasj/NEe+8dS/76PWMfVJa6GdPo4f3Ht52zNH2zoan
 XqZOU0oLry7Ng==
X-Virus-Scanned: amavis at mail.cs.ucla.edu
Received: from mail.cs.ucla.edu ([127.0.0.1])
 by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP
 id 6WKg0lc5Tdu6; Tue, 11 Feb 2025 13:12:44 -0800 (PST)
Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200])
 by mail.cs.ucla.edu (Postfix) with ESMTPSA id CBC873C00E400;
 Tue, 11 Feb 2025 13:12:44 -0800 (PST)
Message-ID: <cc62bd94-e2c3-4c1e-84ee-b741df1a60ce@HIDDEN>
Date: Tue, 11 Feb 2025 13:12:44 -0800
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#76187: vc-git-test-dir-branch-headers failure on Fedora
To: =?UTF-8?Q?K=C3=A9vin_Le_Gouguec?= <kevin.legouguec@HIDDEN>
References: <c8d5aeca-734e-43dd-88dc-635aa9c9e2a1@HIDDEN>
 <87a5ase33m.fsf@HIDDEN> <875xlgdxfd.fsf@HIDDEN>
Content-Language: en-US
From: Paul Eggert <eggert@HIDDEN>
Autocrypt: addr=eggert@HIDDEN; keydata=
 xsFNBEyAcmQBEADAAyH2xoTu7ppG5D3a8FMZEon74dCvc4+q1XA2J2tBy2pwaTqfhpxxdGA9
 Jj50UJ3PD4bSUEgN8tLZ0san47l5XTAFLi2456ciSl5m8sKaHlGdt9XmAAtmXqeZVIYX/UFS
 96fDzf4xhEmm/y7LbYEPQdUdxu47xA5KhTYp5bltF3WYDz1Ygd7gx07Auwp7iw7eNvnoDTAl
 KAl8KYDZzbDNCQGEbpY3efZIvPdeI+FWQN4W+kghy+P6au6PrIIhYraeua7XDdb2LS1en3Ss
 mE3QjqfRqI/A2ue8JMwsvXe/WK38Ezs6x74iTaqI3AFH6ilAhDqpMnd/msSESNFt76DiO1ZK
 QMr9amVPknjfPmJISqdhgB1DlEdw34sROf6V8mZw0xfqT6PKE46LcFefzs0kbg4GORf8vjG2
 Sf1tk5eU8MBiyN/bZ03bKNjNYMpODDQQwuP84kYLkX2wBxxMAhBxwbDVZudzxDZ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6u9yxZtaV+wxdpqglosQvjqhOYz7
 h50/ZTSq70/npoCq44TzdJKttaYvlW6ziRz0g4RRAqZyoxjYXiy5qj8r8zXJuB11ApZCGuKn
 /usbji9RYbflAhxFeh4LMmpDVi6BrF30b73Md59K7PuEKN1NxzlWiqqQHZZ9momN0GXLPcGq
 4uyfq7yVEy7wP5PMOh6oqscKklE3gFQtq0P1Ki0xqdF6Fq5LPJc+0Db2CYkVIy7Xaa/f74I3
 sOfQfEeDylVXR5iDfUJEYv/0DYhOr7q5/0b1kh3M4wkrB4C5jVNHjIIj+RsAK90c3t38OhAl
 jiSN7Bkwy24Afy8eIu6wWzvhnsQGpZPB+IffmxT1wkTy8UxZKjUWV0C82iphVgCUUi2f9sDV
 Q/tNcwVWmOS+gdv9Wk6tdGeM+Ee+Qs6YG05jcSoajzF0TL07ajLcayRq2j1Os2CtQ8qu
Organization: UCLA Computer Science Department
In-Reply-To: <875xlgdxfd.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76187
Cc: 76187 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 2/11/25 12:43, K=C3=A9vin Le Gouguec wrote:
> Another git process seems to be running in this repository,

I guess the test won't work with "make -j check", since some other test=20
might also be running git in that repository. If my guess is right, to=20
fix this you can arrange for the test to run in a clone instead.=20
Similarly for any other test that might want to alter that repository or=20
its working files.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76187; Package emacs. Full text available.

Message received at 76187 <at> debbugs.gnu.org:


Received: (at 76187) by debbugs.gnu.org; 11 Feb 2025 20:44:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 11 15:44:02 2025
Received: from localhost ([127.0.0.1]:59027 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1thx6w-0002zH-I4
	for submit <at> debbugs.gnu.org; Tue, 11 Feb 2025 15:44:02 -0500
Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:40100)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <kevin.legouguec@HIDDEN>)
 id 1thx6t-0002yd-8m
 for 76187 <at> debbugs.gnu.org; Tue, 11 Feb 2025 15:44:00 -0500
Received: by mail-wm1-x336.google.com with SMTP id
 5b1f17b1804b1-439454602e5so3825685e9.0
 for <76187 <at> debbugs.gnu.org>; Tue, 11 Feb 2025 12:43:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1739306633; x=1739911433; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=r42e38++/7V+3U8LvASbyr9rVgjNTI7F5ypL13Y+Bv8=;
 b=e/URk3iTMxDVTLHp0H8j5WkhVVrOzdVgkG8XHlJk02uzETFBfq/hJ+BuK4p2PSBigp
 GNa2ZjcFiMQUMJvFkN1eUM5ugo4YF9Lapu8oFTwtGWuYymvyvypeTIMyI5jYif681/gt
 W8lRtRqHUJ8p4DTJLDoModWoIqTCf5CWHf0n4CTIgIfkF65HVq6x0WE4iKrzdMTtY8/D
 0cK7Ja/YrRD9GKl5Zn1yISkHmissuli59IGEkDUOS2A5rxAq+2FUtM8kyaODtQwVs6r8
 g2aABzd0WXgyVk6+F02viBxXzHfAjxDLoE9pv9YKEY4sCIhE1WEg7Ja9b63+Qhf9zk4W
 ixnA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739306633; x=1739911433;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=r42e38++/7V+3U8LvASbyr9rVgjNTI7F5ypL13Y+Bv8=;
 b=uImdOgJtR5ibslgnAbHEwaU0J3G8ftpiEn1Bq985K8H9ybFrJ/mND69EaI0/Pw5aqQ
 PWy6h98nDEqkNJ/H7/4KxvqlB+crCxlzLYWVvgGTYDoUCbnRTXnup8jqVfud2WwToX4D
 6HA+iC894erIGIz0coG2GBjVGHbhrL2+kDAygrY61adBdG3BPKmhWvJ5NHtjidmk//fo
 x7qJ48sKjzK+jJrrKVUsYHumOOQyajtZwK54jUkiXfQMxKs83PS3EqOhjqd/9a+hA7qo
 vGQ5Ytm9cPA0ZOjinYo+q9iRDw9EHy5YMvm0v/NRaIhklKbcrIbkO/Ve4qADKmubdB5b
 ZKcw==
X-Gm-Message-State: AOJu0YwXIVAswl0YrORnbJ1f12LOFT5koYfsTbGzrwbSqvCaI4cftsPa
 XsqAjhFX+jLWiNe/3apWcPs69hkf52hhTlptoe01TJSv8+xHxIhh+uaFlQ==
X-Gm-Gg: ASbGncu8P4FfFB/Ztrpio9zWe2iFf3g47f55SVUVBdSHv6AHOccRMTvAA2XhvOYEGmo
 wSy/+eNIxUvOA82NPPvVUEKHtuekKObDKJDPJF74GR8eoSWOGUpmNLRku5+ANoZvmae7H5I30ke
 adt0PEikToXqigJNNtAb6U3752cFYPd8xAtZel50pBL5u65BAYvFBGb5HHdrGZIubF/CZcDg8rv
 52LKUnxHKNxb+VA+qhSiJaOkOxlRLj/gzWhyZMKF6oQKK28oa7Dy390ZB9DLh/gt5lwWB/4amWA
 237GSIFTfSRSKsGKAPA=
X-Google-Smtp-Source: AGHT+IEnyG21kgFZuD7OiBIO/7DUZeAnyTjh4JoPJqNBwSgGiT4M6krT9XquGCXoak0chFqZuchs4A==
X-Received: by 2002:a05:600c:1c06:b0:439:4d1c:bf72 with SMTP id
 5b1f17b1804b1-439581ca7abmr2471135e9.6.1739306632617; 
 Tue, 11 Feb 2025 12:43:52 -0800 (PST)
Received: from amdahl30 ([2a01:e0a:253:fe0:2ef0:5dff:fed2:7b49])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-439471bf782sm61304905e9.39.2025.02.11.12.43.51
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 11 Feb 2025 12:43:51 -0800 (PST)
From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= <kevin.legouguec@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
Subject: Re: bug#76187: vc-git-test-dir-branch-headers failure on Fedora
In-Reply-To: <87a5ase33m.fsf@HIDDEN>
References: <c8d5aeca-734e-43dd-88dc-635aa9c9e2a1@HIDDEN>
 <87a5ase33m.fsf@HIDDEN>
Date: Tue, 11 Feb 2025 21:43:50 +0100
Message-ID: <875xlgdxfd.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76187
Cc: 76187 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

K=C3=A9vin Le Gouguec <kevin.legouguec@HIDDEN> writes:

> Paul Eggert <eggert@HIDDEN> writes:
>
>> The second failure was with "make lisp/vc/vc-git-tests" in the test dire=
ctory. I repeatedly ran that test, and it failed on the 20th execution as f=
ollows:
>
>> Test vc-git-test-dir-branch-headers condition:
>>     (error
>>      "Failed (status 128): git --no-pager checkout -b feature/bar --trac=
k master .")
>>    FAILED  2/8  vc-git-test-dir-branch-headers (0.316582 sec) at lisp/vc=
/vc-git-tests.el:146
>
> Interesting.  I reproduced the 'checkout -b feature/foo master' failure
> after 300 executions.
>
> "status 128" confounds me a bit; tho there is a surprising (to me)
> number of hits for "git exit 128" on the net.  Wondering if Git outputs
> anything useful=E2=80=A6
>
> Anyhoo, no clue yet - just wanted to ACK (openSUSE Tumbleweed FWIW),
> what with having authored that test.

Ah-ha.

diff --git a/test/lisp/vc/vc-git-tests.el b/test/lisp/vc/vc-git-tests.el
index 4b5cb75df01..b9d815e9a5d 100644
--- a/test/lisp/vc/vc-git-tests.el
+++ b/test/lisp/vc/vc-git-tests.el
@@ -106,7 +106,11 @@ vc-git-test--with-repo
 (defun vc-git-test--run (&rest args)
   "Run git ARGS=E2=80=A6, check for non-zero status, and return output."
   (with-temp-buffer
-    (apply 'vc-git-command t 0 nil args)
+    (condition-case err
+        (apply 'vc-git-command t 0 nil args)
+      (t (message "err: %s" err)
+         (message "buffer-string: %s" (buffer-string))
+         (signal (car err) (cdr err))))
     (buffer-string)))
=20
 (defun vc-git-test--start-branch ()

Yields:

> err: (error Failed (status 128): git --no-pager checkout -b feature/foo m=
aster .)
> buffer-string: fatal: Unable to create '/tmp/emacs-test-uJtGe2-vc-git/.gi=
t/index.lock': File exists.
>=20
> Another git process seems to be running in this repository, e.g.
> an editor opened by 'git commit'. Please make sure all processes
> are terminated then try again. If it still fails, a git process
> may have crashed in this repository earlier:
> remove the file manually to continue.

Pondering.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76187; Package emacs. Full text available.

Message received at 76187 <at> debbugs.gnu.org:


Received: (at 76187) by debbugs.gnu.org; 11 Feb 2025 18:41:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 11 13:41:28 2025
Received: from localhost ([127.0.0.1]:58590 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1thvCK-0001Ze-9U
	for submit <at> debbugs.gnu.org; Tue, 11 Feb 2025 13:41:28 -0500
Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:41663)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <kevin.legouguec@HIDDEN>)
 id 1thvCH-0001ZO-9x
 for 76187 <at> debbugs.gnu.org; Tue, 11 Feb 2025 13:41:26 -0500
Received: by mail-wm1-x32f.google.com with SMTP id
 5b1f17b1804b1-434f398a171so6145875e9.2
 for <76187 <at> debbugs.gnu.org>; Tue, 11 Feb 2025 10:41:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1739299279; x=1739904079; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=hEblR/1TymiD6joBZt8zTK/OWdiUfLmmOfZmuj48ZSc=;
 b=FeaQzRIzQVRaSSO57bU3N4RnhyZUWvbHrta/0Xb6wf6CUFDk78JECoPxp7Wg4QAelN
 0zkjZk6MP4zsDxkyn7+AhpbwjHlIUM72F70hWGKDXCmtnM3lMCPM/JrOkOoX9gwNqU8S
 bakV+Rjjwya0EifsdhZOUEIBQ+9wcJimbnzw8WIi18vTkQT1Lnugj/0Ro6fLv73S0Gqd
 /tQy1n+RqCbJnRROTjmTguNJXzmfB+YzRI9R1cLOHzsTcFiZoVTBk+Cki/sIdyOvc4/y
 IEzEF4YEUJ66x8apANPZQIJKzpwxQeBi84ntagJAPxSkx52SNDFAU8K9TKvhu9ZeiMA8
 HbPw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1739299279; x=1739904079;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=hEblR/1TymiD6joBZt8zTK/OWdiUfLmmOfZmuj48ZSc=;
 b=oGf1M4HIYFNcm6cPf4CpRLOPt9v6XTEqfPH9/CIgGYN8GOqrizAKsSb+SK1b3nx9M1
 Y+AapEoShEO75scIhfg9rOjdk4jZ4Dcy/2+Qp2G9mHE5pTsXc9GD+tR8b01NRRbCNbg8
 J1Swg6v5POX0jsrJ/GB5bwz2c+M7H5FhYRr0BicI4/BtzX7TYqFyfX1q9dszfhaVLzLX
 96mp+cCswILgDwqFa4oYB35lBoSIFdCIxsF+89f5cUToXSRS7xVVKexE+wl9AzHkVAak
 XYta1qDuVydUboLmYVkdVlcg69nvkFjWnaCtmzMR2td5VTVbV69DKGl/3pyMz+J7zFfW
 oPdA==
X-Gm-Message-State: AOJu0YyvqvMmSbB2hdfBp0CBCaMS3dQ6qlktsgqZeIKhCJwjajmdk4jE
 zGMnlDVcN1NU/4jeS67LlC28oeZy6uGRrcPWy1CR1pUdnThLOQYgruLOeA==
X-Gm-Gg: ASbGncuiZaHf87eOZJSFZD5PIfUhFErk45AGZXQ6enyDCFl+Xe2FMW0Wimy3MTOd7Zr
 OTCQyiyP2D8zWElXgURs8duc1PdbnYeCithQt2PYA6NOTGvk5Vu6Ou2zW5KqT2gVKicRTlzSCZC
 36nf9lsVDXtlR2e1LRolUxngh60QOj8QQb99BwogaeknrzPBWQOtL5hBcZorP9iHJSLdv9JNyn1
 hM/t+gI6f7Vv4U5SrPEOl2dv1iIiZWN5UlyFRRftPuIsPZAr96sGVZ1hasgkFDvA4Lp1ZfXREw5
 5HzBKZ2D+eF5zkU7Ah4=
X-Google-Smtp-Source: AGHT+IERlrHNs7+2HfT+/XQEJRaE7R+MztT9pC7IFOQuxWnctKDN596PrkgNV4ZEs8oEKVZltkiGeQ==
X-Received: by 2002:a05:600c:19d1:b0:434:a0fd:95d0 with SMTP id
 5b1f17b1804b1-439581b819fmr1323365e9.4.1739299278712; 
 Tue, 11 Feb 2025 10:41:18 -0800 (PST)
Received: from amdahl30 ([2a01:e0a:253:fe0:2ef0:5dff:fed2:7b49])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-4394dcb43basm13464835e9.2.2025.02.11.10.41.17
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 11 Feb 2025 10:41:18 -0800 (PST)
From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= <kevin.legouguec@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
Subject: Re: bug#76187: vc-git-test-dir-branch-headers failure on Fedora
In-Reply-To: <c8d5aeca-734e-43dd-88dc-635aa9c9e2a1@HIDDEN>
References: <c8d5aeca-734e-43dd-88dc-635aa9c9e2a1@HIDDEN>
Date: Tue, 11 Feb 2025 19:41:17 +0100
Message-ID: <87a5ase33m.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76187
Cc: 76187 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Paul Eggert <eggert@HIDDEN> writes:

> The second failure was with "make lisp/vc/vc-git-tests" in the test direc=
tory. I repeatedly ran that test, and it failed on the 20th execution as fo=
llows:

> Test vc-git-test-dir-branch-headers condition:
>     (error
>      "Failed (status 128): git --no-pager checkout -b feature/bar --track=
 master .")
>    FAILED  2/8  vc-git-test-dir-branch-headers (0.316582 sec) at lisp/vc/=
vc-git-tests.el:146

Interesting.  I reproduced the 'checkout -b feature/foo master' failure
after 300 executions.

"status 128" confounds me a bit; tho there is a surprising (to me)
number of hits for "git exit 128" on the net.  Wondering if Git outputs
anything useful=E2=80=A6

Anyhoo, no clue yet - just wanted to ACK (openSUSE Tumbleweed FWIW),
what with having authored that test.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76187; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Feb 2025 22:58:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 10 17:58:49 2025
Received: from localhost ([127.0.0.1]:52927 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1thcjo-00005i-Oc
	for submit <at> debbugs.gnu.org; Mon, 10 Feb 2025 17:58:49 -0500
Received: from lists.gnu.org ([2001:470:142::17]:38196)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eggert@HIDDEN>)
 id 1thcjj-00005O-8e
 for submit <at> debbugs.gnu.org; Mon, 10 Feb 2025 17:58:47 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eggert@HIDDEN>)
 id 1thcjd-0002bw-Ek
 for bug-gnu-emacs@HIDDEN; Mon, 10 Feb 2025 17:58:37 -0500
Received: from mail.cs.ucla.edu ([131.179.128.66])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eggert@HIDDEN>)
 id 1thcjb-0001OJ-7E
 for bug-gnu-emacs@HIDDEN; Mon, 10 Feb 2025 17:58:37 -0500
Received: from localhost (localhost [127.0.0.1])
 by mail.cs.ucla.edu (Postfix) with ESMTP id EE8003C011BDC
 for <bug-gnu-emacs@HIDDEN>; Mon, 10 Feb 2025 14:58:32 -0800 (PST)
Received: from mail.cs.ucla.edu ([127.0.0.1])
 by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP
 id quvivm_t1uZ7 for <bug-gnu-emacs@HIDDEN>;
 Mon, 10 Feb 2025 14:58:32 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
 by mail.cs.ucla.edu (Postfix) with ESMTP id 7600D3C00FA87
 for <bug-gnu-emacs@HIDDEN>; Mon, 10 Feb 2025 14:58:32 -0800 (PST)
DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 7600D3C00FA87
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu;
 s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1739228312;
 bh=D3s/m01PqcH6Sr48Y7S5Gi4Vc3z3kunPD6qswMPtppI=;
 h=Message-ID:Date:MIME-Version:To:From;
 b=MLKn11WUg/rcV6yV30+2Z7Y1xT606OEacXXL8xwWE1bQZwaCeacSvtaTsLDHbpxh0
 5imvk2zaRk7kJaAmUuVFeQ4Ic4eWDoLZIWk5ETMUEUSnPxM3JJBEIa6+DY/OvhXgkQ
 qEuXUUImf6f09uZv8poHZ23Tjdvr6x/5luxDW88OuP3QqTb061PFNlPB9AjD9Uyt95
 5H/37VweZBllW4IOnt65GR7FgvEKYIVKJV7z0ur7lPwn5h4MKO5AGzkhmeldRuawTW
 1R0lbQ7u72QpIUZv2CEuolUdwEYMq+ViyjOMTf+sWxAumEJHypjsfH93nUh5x0o3WX
 0xmylJbgMbacA==
X-Virus-Scanned: amavis at mail.cs.ucla.edu
Received: from mail.cs.ucla.edu ([127.0.0.1])
 by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP
 id gNsleOpTnpyi for <bug-gnu-emacs@HIDDEN>;
 Mon, 10 Feb 2025 14:58:32 -0800 (PST)
Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200])
 by mail.cs.ucla.edu (Postfix) with ESMTPSA id 58BDC3C011BDC
 for <bug-gnu-emacs@HIDDEN>; Mon, 10 Feb 2025 14:58:32 -0800 (PST)
Message-ID: <c8d5aeca-734e-43dd-88dc-635aa9c9e2a1@HIDDEN>
Date: Mon, 10 Feb 2025 14:58:31 -0800
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: Emacs bug reports <bug-gnu-emacs@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Subject: vc-git-test-dir-branch-headers failure on Fedora
Autocrypt: addr=eggert@HIDDEN; keydata=
 xsFNBEyAcmQBEADAAyH2xoTu7ppG5D3a8FMZEon74dCvc4+q1XA2J2tBy2pwaTqfhpxxdGA9
 Jj50UJ3PD4bSUEgN8tLZ0san47l5XTAFLi2456ciSl5m8sKaHlGdt9XmAAtmXqeZVIYX/UFS
 96fDzf4xhEmm/y7LbYEPQdUdxu47xA5KhTYp5bltF3WYDz1Ygd7gx07Auwp7iw7eNvnoDTAl
 KAl8KYDZzbDNCQGEbpY3efZIvPdeI+FWQN4W+kghy+P6au6PrIIhYraeua7XDdb2LS1en3Ss
 mE3QjqfRqI/A2ue8JMwsvXe/WK38Ezs6x74iTaqI3AFH6ilAhDqpMnd/msSESNFt76DiO1ZK
 QMr9amVPknjfPmJISqdhgB1DlEdw34sROf6V8mZw0xfqT6PKE46LcFefzs0kbg4GORf8vjG2
 Sf1tk5eU8MBiyN/bZ03bKNjNYMpODDQQwuP84kYLkX2wBxxMAhBxwbDVZudzxDZJ1C2VXujC
 OJVxq2kljBM9ETYuUGqd75AW2LXrLw6+MuIsHFAYAgRr7+KcwDgBAfwhPBYX34nSSiHlmLC+
 KaHLeCLF5ZI2vKm3HEeCTtlOg7xZEONgwzL+fdKo+D6SoC8RRxJKs8a3sVfI4t6CnrQzvJbB
 n6gxdgCu5i29J1QCYrCYvql2UyFPAK+do99/1jOXT4m2836j1wARAQABzSBQYXVsIEVnZ2Vy
 dCA8ZWdnZXJ0QGNzLnVjbGEuZWR1PsLBlQQTAQgAPwIbAwYLCQgHAwIGFQgCCQoLBBYCAwEC
 HgECF4AWIQR+N5Kp2Kz31jO8FYjtl+kOYqp+NAUCZiLOewUJHWQLDAAKCRDtl+k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C82iphVgCUUi2f9sDV
 Q/tNcwVWmOS+gdv9Wk6tdGeM+Ee+Qs6YG05jcSoajzF0TL07ajLcayRq2j1Os2CtQ8qu
Organization: UCLA Computer Science Department
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=131.179.128.66; envelope-from=eggert@HIDDEN;
 helo=mail.cs.ucla.edu
X-Spam_score_int: -19
X-Spam_score: -2.0
X-Spam_bar: --
X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

On Fedora 41 x86-64 with the current Emacs master (commit 
4936a8d5acbfee2dee6d903400eba48cb2e3a6a7) I occasionally see failures of 
the vc-git-test-dir-branch-headers test. Usually it works. Here are the 
two failures I've seen.

The first was with a "make -j5 check" so it may have been a collision 
with some other test:

>   GEN      lisp/vc/ediff-diff-tests.log
>   GEN      lisp/vc/ediff-ptch-tests.log
>   GEN      lisp/vc/log-edit-tests.log
>   GEN      lisp/vc/smerge-mode-tests.log
>   GEN      lisp/vc/vc-bzr-tests.log
>   GEN      lisp/vc/vc-cvs-tests.log
>   GEN      lisp/vc/vc-git-tests.log
>   GEN      lisp/vc/vc-hg-tests.log
>   GEN      lisp/vc/vc-tests.log
>   GEN      lisp/version-tests.log
>   GEN      lisp/wdired-tests.log
>   GEN      lisp/which-key-tests.log
>   GEN      lisp/whitespace-tests.log
>   ELC+ELN  lisp/wid-edit-tests.elc
> Running 8 tests (2025-02-10 14:40:44-0800, selector `(not (or (tag :expensive-test) (tag :unstable)))')
>    passed  1/8  vc-git-test-annotate-time (0.006682 sec)
> Test vc-git-test-dir-branch-headers backtrace:
>   signal(error ("Failed (status 128): git --no-pager checkout -b featu
>   error("Failed (%s): %s" "status 128" "git --no-pager checkout -b fea
>   vc-do-command(t 0 "git" nil "--no-pager" "checkout" "-b" "feature/fo
>   apply(vc-do-command t 0 "git" nil "--no-pager" ("checkout" "-b" "fea
>   vc-git-command(t 0 nil "checkout" "-b" "feature/foo" "master")
>   apply(vc-git-command t 0 nil ("checkout" "-b" "feature/foo" "master"
>   vc-git-test--run("checkout" "-b" "feature/foo" "master")
>   #f(compiled-function () #<bytecode 0xca76da6649814e1>)()
>   #f(compiled-function () #<bytecode 0xf56a36e7feeaf22>)()
>   handler-bind-1(#f(compiled-function () #<bytecode 0xf56a36e7feeaf22>
>   ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
>   ert-run-test(#s(ert-test :name vc-git-test-dir-branch-headers :docum
>   ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
>   ert-run-tests((not (or (tag :expensive-test) (tag :unstable))) #f(co
>   ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable)))
>   ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
>   eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
>   command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l
>   command-line()
>   normal-top-level()
> Test vc-git-test-dir-branch-headers condition:
>     (error
>      "Failed (status 128): git --no-pager checkout -b feature/foo master .")
>    FAILED  2/8  vc-git-test-dir-branch-headers (0.349513 sec) at lisp/vc/vc-git-tests.el:146
>    passed  3/8  vc-git-test-program-version-apple (0.000109 sec)
>    passed  4/8  vc-git-test-program-version-general (0.000061 sec)
>    passed  5/8  vc-git-test-program-version-invalid-leading-dot (0.000059 sec)
>    passed  6/8  vc-git-test-program-version-invalid-leading-string (0.000052 sec)
>    passed  7/8  vc-git-test-program-version-other (0.000088 sec)
>    passed  8/8  vc-git-test-program-version-windows (0.000060 sec)
> 
> Ran 8 tests, 7 results as expected, 1 unexpected (2025-02-10 14:40:45-0800, 0.544882 sec)
> 
> 1 unexpected results:
>    FAILED  vc-git-test-dir-branch-headers
> 
> make[3]: *** [Makefile:185: lisp/vc/vc-git-tests.log] Error 1
>   GEN      lisp/x-dnd-tests.log
>   GEN      lisp/xdg-tests.log


The second failure was with "make lisp/vc/vc-git-tests" in the test 
directory. I repeatedly ran that test, and it failed on the 20th 
execution as follows:

> make[1]: Entering directory '/home/eggert/src/gnu/emacs/static-checking/test'
>   GEN      lisp/vc/vc-git-tests.log
> Running 8 tests (2025-02-10 14:50:43-0800, selector `(not (tag :unstable))')
>    passed  1/8  vc-git-test-annotate-time (0.006192 sec)
> Test vc-git-test-dir-branch-headers backtrace:
>   signal(error ("Failed (status 128): git --no-pager checkout -b featu
>   error("Failed (%s): %s" "status 128" "git --no-pager checkout -b fea
>   vc-do-command(t 0 "git" nil "--no-pager" "checkout" "-b" "feature/ba
>   apply(vc-do-command t 0 "git" nil "--no-pager" ("checkout" "-b" "fea
>   vc-git-command(t 0 nil "checkout" "-b" "feature/bar" "--track" "mast
>   apply(vc-git-command t 0 nil ("checkout" "-b" "feature/bar" "--track
>   (progn (apply 'vc-git-command t 0 nil args) (buffer-string))
>   (unwind-protect (progn (apply 'vc-git-command t 0 nil args) (buffer-
>   (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn
>   (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current
>   vc-git-test--run("checkout" "-b" "feature/bar" "--track" "master")
>   (progn (vc-git-test--run "clone" origin-repo clone-repo) (vc-dir clo
>   (unwind-protect (progn (vc-git-test--run "clone" origin-repo clone-r
>   (let* ((coding-system-for-write nil) (temp-file (file-name-as-direct
>   (let ((main-branch (vc-git-test--start-branch))) (let* ((coding-syst
>   (let ((default-directory origin-repo) (process-environment (append '
>   (progn (let ((default-directory origin-repo) (process-environment (a
>   (unwind-protect (progn (let ((default-directory origin-repo) (proces
>   (let* ((coding-system-for-write nil) (temp-file (file-name-as-direct
>   #f(lambda () [t] (let* ((fn-25 #'executable-find) (args-26 (conditio
>   #f(compiled-function () #<bytecode 0x97dde0d98f0ae9a>)()
>   handler-bind-1(#f(compiled-function () #<bytecode 0x97dde0d98f0ae9a>
>   ert--run-test-internal(#s(ert--test-execution-info :test ... :result
>   ert-run-test(#s(ert-test :name vc-git-test-dir-branch-headers :docum
>   ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
>   ert-run-tests((not (tag :unstable)) #f(compiled-function (event-type
>   ert-run-tests-batch((not (tag :unstable)))
>   ert-run-tests-batch-and-exit((not (tag :unstable)))
>   eval((ert-run-tests-batch-and-exit '(not (tag :unstable))) t)
>   command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l
>   command-line()
>   normal-top-level()
> Test vc-git-test-dir-branch-headers condition:
>     (error
>      "Failed (status 128): git --no-pager checkout -b feature/bar --track master .")
>    FAILED  2/8  vc-git-test-dir-branch-headers (0.316582 sec) at lisp/vc/vc-git-tests.el:146
>    passed  3/8  vc-git-test-program-version-apple (0.000139 sec)
>    passed  4/8  vc-git-test-program-version-general (0.000085 sec)
>    passed  5/8  vc-git-test-program-version-invalid-leading-dot (0.000079 sec)
>    passed  6/8  vc-git-test-program-version-invalid-leading-string (0.000114 sec)
>    passed  7/8  vc-git-test-program-version-other (0.000076 sec)
>    passed  8/8  vc-git-test-program-version-windows (0.000075 sec)
> 
> Ran 8 tests, 7 results as expected, 1 unexpected (2025-02-10 14:50:44-0800, 0.508602 sec)
> 
> 1 unexpected results:
>    FAILED  vc-git-test-dir-branch-headers
> 
> make[1]: *** [Makefile:185: lisp/vc/vc-git-tests.log] Error 1
> make[1]: Leaving directory '/home/eggert/src/gnu/emacs/static-checking/test'
> make: *** [Makefile:251: lisp/vc/vc-git-tests] Error 2





Acknowledgement sent to Paul Eggert <eggert@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#76187; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 13 Feb 2025 07:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.