Skip to contentSkip to conversation

test/eal: remove PCI probing for vdev tests

PATCH Applied David Marchand 3 participants 5 messages Feb 23 – Feb 24

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test/eal: remove PCI probing for vdev tests

Similarly to commit f67f76e6bbfd ("test/eal: remove PCI probing for recursive calls"), let's disable PCI probing in vdev tests as it triggers false positive failures in GHA.

---
 app/test/test_eal_flags.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
app/test/test_eal_flags.c +4 -4
index bebddf1c98..06a605cce1 100644
@@ -422,17 +422,17 @@ test_invalid_vdev_flag(void)
 
 	/* Test with invalid vdev option */
 	const char *vdevinval[] = {prgname, prefix, no_huge, eal_debug_logs,
-				bus_debug_logs, vdev, "eth_dummy"};
+				bus_debug_logs, no_pci, vdev, "eth_dummy"};
 
 	/* Test with valid vdev option */
 	const char *vdevval1[] = {prgname, prefix, no_huge, eal_debug_logs,
-				bus_debug_logs,	vdev, "net_ring0"};
+				bus_debug_logs,	no_pci, vdev, "net_ring0"};
 
 	const char *vdevval2[] = {prgname, prefix, no_huge, eal_debug_logs,
-				bus_debug_logs, vdev, "net_ring0,args=test"};
+				bus_debug_logs, no_pci, vdev, "net_ring0,args=test"};
 
 	const char *vdevval3[] = {prgname, prefix, no_huge, eal_debug_logs,
-				bus_debug_logs, vdev, "net_ring0,nodeaction=r1:0:CREATE"};
+				bus_debug_logs, no_pci, vdev, "net_ring0,nodeaction=r1:0:CREATE"};
 
 	if (launch_proc(vdevinval) == 0) {
 		printf("Error (line %d) - process did run ok with invalid vdev parameter\n",
Signature · 1 line
2.53.0
Acked-by on v1 1/1
#1 lore raw
Quoted 37 lines · David Marchand

Similarly to commit f67f76e6bbfd ("test/eal: remove PCI probing for recursive calls"), let's disable PCI probing in vdev tests as it triggers false positive failures in GHA.

---
 app/test/test_eal_flags.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
app/test/test_eal_flags.c +4 -4
index bebddf1c98..06a605cce1 100644
@@ -422,17 +422,17 @@ test_invalid_vdev_flag(void)
 
 	/* Test with invalid vdev option */
 	const char *vdevinval[] = {prgname, prefix, no_huge, eal_debug_logs,
-				bus_debug_logs, vdev, "eth_dummy"};
+				bus_debug_logs, no_pci, vdev, "eth_dummy"};
 
 	/* Test with valid vdev option */
 	const char *vdevval1[] = {prgname, prefix, no_huge, eal_debug_logs,
-				bus_debug_logs,	vdev, "net_ring0"};
+				bus_debug_logs,	no_pci, vdev, "net_ring0"};
 
 	const char *vdevval2[] = {prgname, prefix, no_huge, eal_debug_logs,
-				bus_debug_logs, vdev, "net_ring0,args=test"};
+				bus_debug_logs, no_pci, vdev, "net_ring0,args=test"};
 
 	const char *vdevval3[] = {prgname, prefix, no_huge, eal_debug_logs,
-				bus_debug_logs, vdev, "net_ring0,nodeaction=r1:0:CREATE"};
+				bus_debug_logs, no_pci, vdev, "net_ring0,nodeaction=r1:0:CREATE"};
 
 	if (launch_proc(vdevinval) == 0) {
 		printf("Error (line %d) - process did run ok with invalid vdev parameter\n",
Signature · 1 line
2.53.0
Acked-by Tested-by on v1 1/1
#2 lore raw
In reply to David Marchand
Quoted 21 lines

-----Original Message-----
From: David Marchand <[email protected]>
Sent: Monday 23 February 2026 15:56
To: [email protected]
Cc: [email protected]
Subject: [PATCH] test/eal: remove PCI probing for vdev tests

Similarly to commit f67f76e6bbfd ("test/eal: remove PCI probing for recursive calls"), let's disable PCI probing in vdev tests as it triggers false positive failures in GHA.

---
 app/test/test_eal_flags.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
app/test/test_eal_flags.c +0 -0
index bebddf1c98..06a605cce1 100644

app/test/test_eal_flags.c test_invalid_vdev_flag(void) · line 429

Quoted 10 lines
app/test/test_eal_flags.c +2 -2
@@ -422,17 +422,17 @@ test_invalid_vdev_flag(void)
 
 	/* Test with invalid vdev option */
 	const char *vdevinval[] = {prgname, prefix, no_huge, eal_debug_logs,
-				bus_debug_logs, vdev, "eth_dummy"};
+				bus_debug_logs, no_pci, vdev, "eth_dummy"};
 
 	/* Test with valid vdev option */
 	const char *vdevval1[] = {prgname, prefix, no_huge, eal_debug_logs,
-				bus_debug_logs,	vdev, "net_ring0"};
+				bus_debug_logs,	no_pci, vdev, "net_ring0"};

Could use this opportunity to replace tab before no_pci with space.

Quoted 12 lines
app/test/test_eal_flags.c +2 -3
 	const char *vdevval2[] = {prgname, prefix, no_huge, eal_debug_logs,
-				bus_debug_logs, vdev, "net_ring0,args=test"};
+				bus_debug_logs, no_pci, vdev, "net_ring0,args=test"};
 
 	const char *vdevval3[] = {prgname, prefix, no_huge, eal_debug_logs,
-				bus_debug_logs, vdev, "net_ring0,nodeaction=r1:0:CREATE"};
+				bus_debug_logs, no_pci, vdev, "net_ring0,nodeaction=r1:0:CREATE"};
 
 	if (launch_proc(vdevinval) == 0) {
 		printf("Error (line %d) - process did run ok with invalid vdev parameter\n",
--
Quoted 1 line

2.53.0

Definitely not a problem of this patch, but creating a separate define for each command-line argument like --no-huge does nothing to save us from repeating prgname, prefix, eal_debug_logs, ... bazillion times. If tokens are burning a hole in someone's pocket, perhaps instead we could move this whole command prefix into some kind of function or macro with parameters (possibly one launching subprocess as well).

Another thought, should we have NOPCI_OK/NOPCI_SKIP similar to ASAN and NOHUGE?

#3 lore raw
Quoted 7 lines · Marat Khalili
Quoted 7 lines
app/test/test_eal_flags.c +1 -1
@@ -422,17 +422,17 @@ test_invalid_vdev_flag(void)
 
      /* Test with invalid vdev option */
      const char *vdevinval[] = {prgname, prefix, no_huge, eal_debug_logs,
-                             bus_debug_logs, vdev, "eth_dummy"};
+                             bus_debug_logs, no_pci, vdev, "eth_dummy"};
 
Quoted 6 lines

app/test/test_eal_flags.c test_invalid_vdev_flag(void) · line 429

Quoted 4 lines
app/test/test_eal_flags.c +1 -1
      /* Test with valid vdev option */
      const char *vdevval1[] = {prgname, prefix, no_huge, eal_debug_logs,
-                             bus_debug_logs, vdev, "net_ring0"};
+                             bus_debug_logs, no_pci, vdev, "net_ring0"};

Could use this opportunity to replace tab before no_pci with space.

Oh yes, good catch.

Quoted 15 lines
Quoted 13 lines
app/test/test_eal_flags.c +2 -3
      const char *vdevval2[] = {prgname, prefix, no_huge, eal_debug_logs,
-                             bus_debug_logs, vdev, "net_ring0,args=test"};
+                             bus_debug_logs, no_pci, vdev, "net_ring0,args=test"};
 
      const char *vdevval3[] = {prgname, prefix, no_huge, eal_debug_logs,
-                             bus_debug_logs, vdev, "net_ring0,nodeaction=r1:0:CREATE"};
+                             bus_debug_logs, no_pci, vdev, "net_ring0,nodeaction=r1:0:CREATE"};
 
      if (launch_proc(vdevinval) == 0) {
              printf("Error (line %d) - process did run ok with invalid vdev parameter\n",
--
Quoted 1 line

2.53.0

Quoted 6 lines

Definitely not a problem of this patch, but creating a separate define for each command-line argument like --no-huge does nothing to save us from repeating prgname, prefix, eal_debug_logs, ... bazillion times. If tokens are burning a hole in someone's pocket, perhaps instead we could move this whole command prefix into some kind of function or macro with parameters (possibly one launching subprocess as well).

Another thought, should we have NOPCI_OK/NOPCI_SKIP similar to ASAN and NOHUGE?

It would be simpler to always disable pci and keep it enabled for those tests that do require it.
I wonder what unit tests do require PCI in the fast-tests suite... probably really few.

Signature · 1 line
David Marchand