summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorPeter Tatrai <peter.tatrai.ext@siemens.com>2024-11-08 19:23:12 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-12 23:54:35 +0000
commitb82bb08f15587a376b2b4da5ff553b630e87283d (patch)
tree2a76db7ab74c4ef3d1d98f755630b33ff2c931a6 /meta
parentd8407ca2d0f68c2ae3f0be00f126e2f90d732682 (diff)
downloadpoky-b82bb08f15587a376b2b4da5ff553b630e87283d.tar.gz
rust: Add patch to increase timeout in process-sigpipe rust selftest
This commit adds a patch to increase the timeout in the process-sigpipe rust selftest to prevent occasional failures under heavy server load. The patch aims to reduce the likelihood of false negatives when the test environment is overloaded. Patch file: * oeqa-selftest-Increase-timeout-in-process-sigpipe-ru.patch Fixes [YOCTO #15625] (From OE-Core rev: 12c85933e2150ba78a8a914787e400c95c5cf585) Signed-off-by: Peter Tatrai <peter.tatrai.ext@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/rust/files/oeqa-selftest-Increase-timeout-in-process-sigpipe-ru.patch31
-rw-r--r--meta/recipes-devtools/rust/rust-source.inc1
2 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/files/oeqa-selftest-Increase-timeout-in-process-sigpipe-ru.patch b/meta/recipes-devtools/rust/files/oeqa-selftest-Increase-timeout-in-process-sigpipe-ru.patch
new file mode 100644
index 0000000000..b42dda8b34
--- /dev/null
+++ b/meta/recipes-devtools/rust/files/oeqa-selftest-Increase-timeout-in-process-sigpipe-ru.patch
@@ -0,0 +1,31 @@
1From b4524278985f517b0785b6f64a21380dcf1ff096 Mon Sep 17 00:00:00 2001
2From: Peter Tatrai <peter.tatrai.ext@siemens.com>
3Date: Mon, 4 Nov 2024 13:58:16 +0100
4Subject: [PATCH] oeqa/selftest: Increase timeout in process-sigpipe rust test
5
6This patch increases the timeout for the process-sigpipe rust test, which
7occasionally fails when the server is under heavy load. Increasing the timeout
8reduces the likelihood of false negatives under load.
9
10Fixes [YOCTO #15625]
11
12Upstream-Status: Inappropriate [OE testing specific]
13
14Signed-off-by: Peter Tatrai <peter.tatrai.ext@siemens.com>
15---
16 tests/ui/process/process-sigpipe.rs | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/tests/ui/process/process-sigpipe.rs b/tests/ui/process/process-sigpipe.rs
20index 11f363d62..c12d66016 100644
21--- a/tests/ui/process/process-sigpipe.rs
22+++ b/tests/ui/process/process-sigpipe.rs
23@@ -23,7 +23,7 @@ use std::thread;
24 fn main() {
25 // Just in case `yes` doesn't check for EPIPE...
26 thread::spawn(|| {
27- thread::sleep_ms(5000);
28+ thread::sleep_ms(10000);
29 process::exit(1);
30 });
31 let output = process::Command::new("sh")
diff --git a/meta/recipes-devtools/rust/rust-source.inc b/meta/recipes-devtools/rust/rust-source.inc
index 929a4a9b0c..f0681c8776 100644
--- a/meta/recipes-devtools/rust/rust-source.inc
+++ b/meta/recipes-devtools/rust/rust-source.inc
@@ -9,6 +9,7 @@ SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;n
9 file://rustdoc-repro-issue-fix-cargo-config-for-codegenunits.patch;patchdir=${RUSTSRC} \ 9 file://rustdoc-repro-issue-fix-cargo-config-for-codegenunits.patch;patchdir=${RUSTSRC} \
10 file://rust-oe-selftest.patch;patchdir=${RUSTSRC} \ 10 file://rust-oe-selftest.patch;patchdir=${RUSTSRC} \
11 file://repro-issue-fix-with-cc-crate-hashmap.patch;patchdir=${RUSTSRC} \ 11 file://repro-issue-fix-with-cc-crate-hashmap.patch;patchdir=${RUSTSRC} \
12 file://oeqa-selftest-Increase-timeout-in-process-sigpipe-ru.patch;patchdir=${RUSTSRC} \
12" 13"
13SRC_URI[rust.sha256sum] = "ab826e84b8d48ec6eda3370065034dea8c006f6a946d78a9ba12bcb50e6d3c7a" 14SRC_URI[rust.sha256sum] = "ab826e84b8d48ec6eda3370065034dea8c006f6a946d78a9ba12bcb50e6d3c7a"
14 15