public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/delve] f43: Fix TestWaitForSearchPastSeenProcess
@ 2026-11-27 12:48
0 siblings, 0 replies; only message in thread
From: @ 2026-11-27 12:48 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/delve
Branch : f43
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=f43
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}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-27 12:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27 12:48 [rpms/delve] f43: Fix TestWaitForSearchPastSeenProcess
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox