public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/delve] rawhide: Fix TestWaitForSearchPastSeenProcess
Date: Fri, 27 Nov 2026 12:17:49 GMT	[thread overview]
Message-ID: <179578186937.1.9805217636145104042.rpms-delve-8bdc098a2c72@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/delve
Branch : rawhide
Commit : 8bdc098a2c72d9b6b6768899d0741a500f572d8e
Author : Álex Sáez <asm@redhat.com>
Date   : 2026-11-27T13:17:11+01:00
Stats  : +31/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/delve/c/8bdc098a2c72d9b6b6768899d0741a500f572d8e?branch=rawhide

Log:
Fix TestWaitForSearchPastSeenProcess

---
diff --git a/4442.patch b/4442.patch
new file mode 100644
index 0000000..4732873
--- /dev/null
+++ b/4442.patch
@@ -0,0 +1,26 @@
+From bc5d2741aa05b1a9b7e6648ecb984e1d469d1003 Mon Sep 17 00:00:00 2001
+From: aarzilli <alessandro.arzilli@gmail.com>
+Date: Thu, 3 Sep 2026 09:41:00 +0200
+Subject: [PATCH] tests: fix TestWaitForSearchPastSeenProcess flake
+
+TestWaitForSearchPastSeenProcess seems to flake on linux, especially on
+linux/386 which runs on a virtual machine. This is probably because of
+a race condition with the kernel listing new processes through procfs.
+Add a small sleep to see if this fixes it.
+---
+ pkg/proc/native/waitfor_test.go | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/pkg/proc/native/waitfor_test.go b/pkg/proc/native/waitfor_test.go
+index c25d9e0c99..47e7436a15 100644
+--- a/pkg/proc/native/waitfor_test.go
++++ b/pkg/proc/native/waitfor_test.go
+@@ -49,6 +49,8 @@ func TestWaitForSearchPastSeenProcess(t *testing.T) {
+ 		_ = cmd.Wait()
+ 	})
+ 
++	time.Sleep(10 * time.Millisecond)
++
+ 	pid, err = waitForSearchProcess(strings.Join(cmd.Args, " "), seen)
+ 	if err != nil {
+ 		t.Fatal(err)

diff --git a/delve.spec b/delve.spec
index fd2294f..909f629 100644
--- a/delve.spec
+++ b/delve.spec
@@ -34,6 +34,10 @@ Source0:        %{gosource}
 Source1:        %{archivename}-vendor.tar.bz2
 Source2:        go-vendor-tools.toml
 
+# TestWaitForSearchPastSeenProcess fails on x86_64. This patch is not included
+# in the current Delve release.
+Patch001:       4442.patch
+
 BuildRequires:  go-vendor-tools
 BuildRequires:  lsof
 BuildRequires:  git
@@ -51,7 +55,7 @@ Recommends:     yama-ptrace-enable
 %prep
 %goprep -A
 %setup -q -T -D -a1 %{forgesetupargs}
-#autopatch -v -p1
+%autopatch -v -p1
 
 %generate_buildrequires
 %go_vendor_license_buildrequires -c %{S:2}

                 reply	other threads:[~2026-11-27 12:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=179578186937.1.9805217636145104042.rpms-delve-8bdc098a2c72@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /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