root/root-Ignore-warnings-from-uring-IO.patch
Mattias Ellert 0afdff9fae Add root-tree-ntuple and root-tree-ntuple-utils dependensies to root-core
(listed in root-config --libs)
Rename root-fonts package to root-font-files
Add optional test dependency python3-pandas now available in EPEL 10
Add dependency jupyter-notebook to root-jupyroot for EPEL 10.1 and later
Fix Python 3.14 refcount issues in tests
2025-06-21 05:38:04 +02:00

62 lines
2.7 KiB
Diff

From f4ac6bf20278c19c88cf98f6062ecfad86b87378 Mon Sep 17 00:00:00 2001
From: Mattias Ellert <mattias.ellert@physics.uu.se>
Date: Thu, 19 Jun 2025 14:02:31 +0200
Subject: [PATCH] Ignore warnings from uring IO
Tests randomly fail because the uring memory is exhausted.
Here are some examples:
[ RUN ] RNTuple.RandomAccess
.../root-6.36.00/core/testsupport/src/TestSupport.cxx:79: Failure
Failed
Received unexpected diagnostic of severity 2000 at 'RIoUring' reading 'io_uring is unexpectedly not available because:
Failed to allocate memory for the smallest possible io_uring instance. 'memlock' memory has been exhausted for this user'.
Suppress those using ROOT/TestSupport.hxx
.../root-6.36.00/core/testsupport/src/TestSupport.cxx:79: Failure
Failed
Received unexpected diagnostic of severity 2000 at 'RRawFileUnix' reading 'io_uring setup failed, falling back to blocking I/O in ReadV'.
Suppress those using ROOT/TestSupport.hxx
[ FAILED ] RNTuple.RandomAccess (20472 ms)
[ RUN ] RNTupleDSTest.ChainMT
.../root-6.34.08/core/testsupport/src/TestSupport.cxx:79: Failure
Failed
Received unexpected diagnostic of severity 2000 at 'RIoUring' reading 'io_uring is unexpectedly not available because:
Failed to allocate memory for the smallest possible io_uring instance. 'memlock' memory has been exhausted for this user'.
Suppress those using ROOT/TestSupport.hxx
.../root-6.34.08/core/testsupport/src/TestSupport.cxx:79: Failure
Failed
Received unexpected diagnostic of severity 2000 at 'RRawFileUnix' reading 'io_uring setup failed, falling back to blocking I/O in ReadV'.
Suppress those using ROOT/TestSupport.hxx
[ FAILED ] RNTupleDSTest.ChainMT (1004 ms)
---
core/testsupport/src/TestSupport.cxx | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/core/testsupport/src/TestSupport.cxx b/core/testsupport/src/TestSupport.cxx
index 9889a432f4..4c3395ef16 100644
--- a/core/testsupport/src/TestSupport.cxx
+++ b/core/testsupport/src/TestSupport.cxx
@@ -76,6 +76,18 @@ static struct ForbidDiagnostics {
return;
}
+ if (level == kWarning && strcmp(location, "RIoUring") == 0 &&
+ strstr(msg, "io_uring is unexpectedly not available because:") != nullptr) {
+ std::cerr << "Warning in " << location << " " << msg << std::endl;
+ return;
+ }
+
+ if (level == kWarning && strcmp(location, "RRawFileUnix") == 0 &&
+ strcmp(msg, "io_uring setup failed, falling back to blocking I/O in ReadV") == 0) {
+ std::cerr << "Warning in " << location << " " << msg << std::endl;
+ return;
+ }
+
FAIL() << "Received unexpected diagnostic of severity "
<< level
<< " at '" << location << "' reading '" << msg << "'.\n"
--
2.49.0