[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1059264: qbs: ftbfs on riscv64: test timeout



Package: qbs
Version: 1.24.1+dfsg-2
Severity: important
Tags: ftbfs patch
User: debian-riscv@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-riscv@lists.debian.org

Dear Maintainer,

qbs has ftbfs on riscv64 since 2.1.1-2(2023/08) on sid. The problem is
due to timeout on buildd machines for riscv64 now:

```
11: PASS   : TestBlackboxQt::pkgconfigQt(dummy)
11:
11:          pkgconfigQt function time: 14094ms, total time: 641516ms
11: QFATAL : TestBlackboxQt::pkgconfigQt(cross-compiling) Test function timed out
11: QObject: Cannot create children for a parent that is in a different thread.
11: (Parent is QCoreApplication(0x3fffc21be0), parent's thread is QThread(0x2adb309710), current thread is QThread(0x2adb310660)
11: FAIL!  : TestBlackboxQt::pkgconfigQt(cross-compiling) Received a fatal error.
11: Totals: 27 passed, 1 failed, 0 skipped, 0 blacklisted, 641517ms
11: ********* Finished testing of TestBlackboxQt *********
11: Received signal 6 (SIGABRT)
11:          pkgconfigQt function time: 14094ms, total time: 641517ms
11/16 Test #11: tst_blackbox-qt ..................Subprocess aborted***Exception: 641.58 sec

```

see 2.1.1-2: https://buildd.debian.org/status/fetch.php?pkg=qbs&arch=riscv64&ver=2.1.1-2&stamp=1692573450&raw=0

```
         staticQtPluginLinking function time: 2857ms, total time: 1026576ms
QFATAL : TestBlackboxQt::staticQtPluginLinking() Test function timed out
QObject: Cannot create children for a parent that is in a different thread.
(Parent is QCoreApplication(0x3fedebcbe0), parent's thread is QThread(0x2b098c5710), current thread is QThread(0x2b098cc660)
FAIL!  : TestBlackboxQt::staticQtPluginLinking() Received a fatal error.
Totals: 40 passed, 1 failed, 2 skipped, 0 blacklisted, 1026576ms
********* Finished testing of TestBlackboxQt *********
Received signal 6 (SIGABRT)
         staticQtPluginLinking function time: 2857ms, total time: 1026576ms

```
see 2.1.2-1: https://buildd.debian.org/status/fetch.php?pkg=qbs&arch=riscv64&ver=2.1.2-1&stamp=1696133341&raw=0

One case of 2.1.2-2:

```
         includedMocCpp function time: 49495ms, total time: 335283ms
11: QFATAL : TestBlackboxQt::includedMocCpp() Test function timed out
11: QObject: Cannot create children for a parent that is in a different thread.
11: (Parent is QCoreApplication(0x3ff6485b00), parent's thread is QThread(0x2b0e560710), current thread is QThread(0x2b0e5676b0)
11: FAIL!  : TestBlackboxQt::includedMocCpp() Received a fatal error.
11: Totals: 9 passed, 1 failed, 0 skipped, 0 blacklisted, 335283ms
...
```
https://buildd.debian.org/status/fetch.php?pkg=qbs&arch=riscv64&ver=2.1.2-2&stamp=1702154123&raw=0

So we can see the timeout on tst_blackbox-qt suite mainly. But the
question is that failed test function cases are randomized. So I have
captured a few cases to temporarily skip over riscv64 buildd(holpe this
works). And I would like to suggest that we keep opening the reportbug
until we have more powerful buildd machines to close it as expected
it. I can build it on vf2 without any patch but it has not been tested
many times. 

So could you apply it on next upload or any ideas?

Regards,
--
  Bo YU

diff -Nru qbs-2.1.2/debian/changelog qbs-2.1.2/debian/changelog
--- qbs-2.1.2/debian/changelog	2023-12-08 10:54:19.000000000 +0000
+++ qbs-2.1.2/debian/changelog	2023-12-19 10:57:03.000000000 +0000
@@ -1,3 +1,10 @@
+qbs (2.1.2-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Skip some test cases on riscv64. (Closes: #-1) 
+
+ -- Bo YU <tsu.yubo@gmail.com>  Tue, 19 Dec 2023 10:57:03 +0000
+
 qbs (2.1.2-2) unstable; urgency=medium
 
   * Update debian/libqbscore2.1.symbols for loong64 (closes: #1057757).
diff -Nru qbs-2.1.2/debian/patches/series qbs-2.1.2/debian/patches/series
--- qbs-2.1.2/debian/patches/series	2023-12-08 10:54:19.000000000 +0000
+++ qbs-2.1.2/debian/patches/series	2023-12-19 10:57:03.000000000 +0000
@@ -3,3 +3,4 @@
 no_nosys_specs.diff
 disable_bad_assembly.diff
 asan_atomic.diff
+skip-some-blackbox-qt-tests-on-riscv64.patch
diff -Nru qbs-2.1.2/debian/patches/skip-some-blackbox-qt-tests-on-riscv64.patch qbs-2.1.2/debian/patches/skip-some-blackbox-qt-tests-on-riscv64.patch
--- qbs-2.1.2/debian/patches/skip-some-blackbox-qt-tests-on-riscv64.patch	1970-01-01 00:00:00.000000000 +0000
+++ qbs-2.1.2/debian/patches/skip-some-blackbox-qt-tests-on-riscv64.patch	2023-12-19 10:57:03.000000000 +0000
@@ -0,0 +1,71 @@
+Description: skip some test cases on riscv64
+Author: Bo YU <tsu.yubo@gmail.com>
+Forwarded: not-needed
+Last-Update: 2023-12-19
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/tests/auto/blackbox/tst_blackboxqt.cpp
++++ b/tests/auto/blackbox/tst_blackboxqt.cpp
+@@ -133,6 +133,8 @@
+ 
+ void TestBlackboxQt::forcedMoc()
+ {
++    if (m_qbsStdout.contains("riscv64"))
++        QSKIP("timeout on riscv64 buildd now");
+     QDir::setCurrent(testDataDir + "/forced-moc");
+     QCOMPARE(runQbs(QbsRunParameters("resolve")), 0);
+     if (m_qbsStdout.contains("using qt4"))
+@@ -145,6 +147,8 @@
+ 
+ void TestBlackboxQt::includedMocCpp()
+ {
++    if (m_qbsStdout.contains("riscv64"))
++        QSKIP("timeout on riscv64 buildd now");
+     QDir::setCurrent(testDataDir + "/included-moc-cpp");
+     QCOMPARE(runQbs(), 0);
+     if (m_qbsStdout.contains("using qt4"))
+@@ -212,6 +216,8 @@
+ 
+ void TestBlackboxQt::metaTypes()
+ {
++    if (m_qbsStdout.contains("riscv64"))
++        QSKIP("timeout on riscv64 buildd now");
+     QDir::setCurrent(testDataDir + "/metatypes");
+     QFETCH(bool, generate);
+     QFETCH(QString, installDir);
+@@ -287,6 +293,8 @@
+ 
+ void TestBlackboxQt::noRelinkOnQDebug()
+ {
++    if (m_qbsStdout.contains("riscv64"))
++        QSKIP("timeout on riscv64 buildd now");
+     QFETCH(QString, checkMode);
+     QFETCH(bool, expectRelink);
+ 
+@@ -351,6 +359,8 @@
+ 
+ void TestBlackboxQt::pkgconfigQt()
+ {
++    if (m_qbsStdout.contains("riscv64"))
++        QSKIP("timeout on riscv64 buildd now");
+     QFETCH(QStringList, arguments);
+     QFETCH(bool, success);
+ 
+@@ -621,6 +631,8 @@
+ 
+ void TestBlackboxQt::staticQtPluginLinking()
+ {
++    if (m_qbsStdout.contains("riscv64"))
++        QSKIP("timeout on riscv64 buildd now");
+     QDir::setCurrent(testDataDir + "/static-qt-plugin-linking");
+     QCOMPARE(runQbs(QStringList("products.p.type:application")), 0);
+     const bool isStaticQt = m_qbsStdout.contains("Qt is static");
+@@ -632,6 +644,8 @@
+ 
+ void TestBlackboxQt::trackAddMocInclude()
+ {
++    if (m_qbsStdout.contains("riscv64"))
++        QSKIP("timeout on riscv64 buildd now");
+     QDir::setCurrent(testDataDir + "/trackAddMocInclude");
+     if (QFile::exists("work"))
+         rmDirR("work");

Attachment: signature.asc
Description: PGP signature


Reply to: