https://bugs.kde.org/show_bug.cgi?id=514743

--- Comment #2 from Marco Mattiolo <[email protected]> ---
Thank you for the feedback.

I don't think there's anything listening on port 1234 : tried "sudo lsof -i
:1234" on another terminal during compilation process, but nothing was
returned. Admittedly, the testing process is so fast that I cannot rule out
anything listening on that port specifically during the failing tests.

I cannot rule out any issue related to the sbuild chroot and something
(firewalld?) blocking ports, but I've looked for it on the web and couldn't
find any reference, that points me to this being unrealistic. I mean, neochat
isn't the only app using network ports during autotests...

Not sure whether that can help, but I've tried the following
$ sed -i 's/1234/12345/' autotests/server.cpp
$ sed -i 's/1234/12345/' autotests/servernoticestest.cpp
$ sed -i 's/1234/12345/' autotests/actionstest.cpp 
$ sed -i 's/1234/12345/' autotests/roommanagertest.cpp 

ending with

$ grep -R 1234 autotests/*
autotests/actionstest.cpp:    auto roomId =
server.createRoom(u"@user:localhost:12345"_s);
autotests/data/test-eventhandler-sync.json:          "age": 1234
autotests/data/test-eventhandler-sync.json:          "age": 1234
autotests/data/test-eventhandler-sync.json:          "age": 12345
autotests/data/test-eventhandler-sync.json:          "avatar_url":
"mxc://kde.org/123456",
autotests/data/test-eventhandler-sync.json:          "replaces_state":
"$1234567890:example.org",
autotests/data/test-eventhandler-sync.json:            "avatar_url":
"mxc://kde.org/12345",
autotests/data/test-eventhandler-sync.json:          "age": 1234
autotests/data/test-eventhandler-sync.json:            "url":
"mxc://kde.org/1234567"
autotests/data/test-pending-sync.json:        "origin_server_ts": 123456,
autotests/data/test-min-sync.json:          "age": 1234
autotests/data/test-min-sync.json:          "age": 1234
autotests/data/test-min-sync.json:          "age": 1234
autotests/data/test-min-sync.json:          "age": 1234
autotests/data/test-texthandler-sync.json:          "age": 1234
autotests/data/test-texthandler-sync.json:          "age": 1234
autotests/data/test-multiplelink-event.json:        "age": 1234
autotests/data/test-reactionmodel-sync.json:          "age": 1234
autotests/data/test-reactionmodel-sync.json:          "age": 1234
autotests/data/test-reactionmodel-sync.json:          "age": 12345
autotests/data/test-messageventmodel-sync.json:          "age": 1234
autotests/data/test-messageventmodel-sync.json:          "age": 1234
autotests/eventhandlertest.cpp:    QCOMPARE(mediaInfo["source"_L1],
room->makeMediaUrl(event->id(), QUrl("mxc://kde.org/1234567"_L1)));
autotests/reactionmodeltest.cpp:    parentModel = new
EventMessageContentModel(room, "123456"_L1);
autotests/roommanagertest.cpp:    auto roomId =
server.createRoom(u"@user:localhost:12345"_s);
autotests/server.cpp:    return u"!%1:localhost:12345"_s
autotests/server.cpp:                            {u"m.homeserver"_s,
QJsonObject{{u"base_url"_s, u"https://localhost:12345"_s}}},
autotests/server.cpp:                            {u"device_id"_s,
u"device_id_12345"_s},
autotests/server.cpp:                            {u"user_id"_s,
u"@user:localhost:12345"_s},
autotests/server.cpp:        // if data["identifier"]["user"] != "user" or
data["password"] != "12345":
autotests/server.cpp:                            {u"device_id"_s,
u"device_12345"_s},
autotests/server.cpp:                            {u"user_id"_s,
u"@user:localhost:12345"_s},
autotests/server.cpp:    if (!m_sslServer.listen(QHostAddress::LocalHost,
12345) || !m_server.bind(&m_sslServer)) {
autotests/server.cpp:                {u"unsigned"_s, QJsonObject{{u"age"_s,
12345}}},
autotests/server.cpp:                    {u"unsigned"_s, QJsonObject{{u"age"_s,
12345}}},
autotests/server.cpp:                {u"sender"_s, u"@user:localhost:12345"_s},
autotests/server.cpp:                {u"unsigned"_s, QJsonObject{{u"age"_s,
12345}}},
autotests/server.cpp:                {u"sender"_s, u"@user:localhost:12345"_s},
autotests/server.cpp:                {u"unsigned"_s, QJsonObject{{u"age"_s,
12345}}},
autotests/server.cpp:                {u"sender"_s, u"@user:localhost:12345"_s},
autotests/server.cpp:                {u"unsigned"_s, QJsonObject{{u"age"_s,
12345}}},
autotests/servernoticestest.cpp:    auto roomId =
server.createRoom(u"@user:localhost:12345"_s);
autotests/servernoticestest.cpp:    const auto roomId =
server.createServerNoticesRoom(u"@user:localhost:12345"_s);
autotests/texthandlertest.cpp:    QTest::newRow("same length") << u"<span
data-mx-spoiler style=\"color: #123456; background: #123456;\">Test<span>"_s


yet autotests are still failing

14: ********* Start testing of ActionsTest *********
14: Config: Using QtTest library 6.9.2, Qt 6.9.2 (x86_64-little_endian-lp64
shared (dynamic) release build; by GCC 15.2.0), debian unknown
14: QWARN  : ActionsTest::initTestCase() Server listening
14: QINFO  : ActionsTest::initTestCase() quotient.e2ee: End-to-end encryption
(E2EE) support is off for "@user:localhost:1234/device_1234"
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: No valid HTTP headers
from GET https://localhost:1234/_matrix/client/versions
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetVersionsJob" status
NetworkError: Connection refused
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetVersionsJob": retry
#1 in 2 s
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: No valid HTTP headers
from GET https://localhost:1234/_matrix/client/v3/capabilities
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetCapabilitiesJob"
status NetworkError: Connection refused
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetCapabilitiesJob":
retry #1 in 2 s
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: No valid HTTP headers
from GET
https://localhost:1234/_matrix/client/v3/profile/%40user%3Alocalhost%3A1234
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetUserProfileJob"
status NetworkError: Connection refused
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetUserProfileJob":
retry #1 in 2 s
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: No valid HTTP headers
from GET https://localhost:1234/_matrix/client/versions
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetVersionsJob" status
NetworkError: Connection refused
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetVersionsJob": retry
#1 in 2 s
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: No valid HTTP headers
from GET https://localhost:1234/_matrix/client/v3/account/whoami
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetTokenOwnerJob"
status NetworkError: Connection refused
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetTokenOwnerJob":
retry #1 in 2 s
14: QWARN  : ActionsTest::initTestCase() quotient.jobs.sync: No valid HTTP
headers from GET https://localhost:1234/_matrix/client/r0/sync
14: QWARN  : ActionsTest::initTestCase() quotient.jobs.sync: "SyncJob-1" status
NetworkError: Connection refused
14: QWARN  : ActionsTest::initTestCase() quotient.jobs.sync: "SyncJob-1": retry
#1 in 2 s
15: ********* Start testing of ServerNoticesTest *********
15: Config: Using QtTest library 6.9.2, Qt 6.9.2 (x86_64-little_endian-lp64
shared (dynamic) release build; by GCC 15.2.0), debian unknown
15: QFATAL : ServerNoticesTest::initTestCase() Server failed to listen on a
port.
15: FAIL!  : ServerNoticesTest::initTestCase() Received a fatal error.
15: Totals: 0 passed, 1 failed, 0 skipped, 0 blacklisted, 3ms
15: ********* Finished testing of ServerNoticesTest *********
15: Received signal 6 (SIGABRT)
15:          initTestCase function time: 2ms, total time: 3ms
16: ********* Start testing of RoomManagerTest *********
16: Config: Using QtTest library 6.9.2, Qt 6.9.2 (x86_64-little_endian-lp64
shared (dynamic) release build; by GCC 15.2.0), debian unknown
16: QFATAL : RoomManagerTest::initTestCase() Server failed to listen on a port.
16: FAIL!  : RoomManagerTest::initTestCase() Received a fatal error.
16: Totals: 0 passed, 1 failed, 0 skipped, 0 blacklisted, 3ms
16: ********* Finished testing of RoomManagerTest *********
16: Received signal 6 (SIGABRT)
16:          initTestCase function time: 2ms, total time: 3ms
14/16 Test #15: servernoticestest ................Subprocess
aborted***Exception:   0.48 sec
********* Start testing of ServerNoticesTest *********
Config: Using QtTest library 6.9.2, Qt 6.9.2 (x86_64-little_endian-lp64 shared
(dynamic) release build; by GCC 15.2.0), debian unknown
QFATAL : ServerNoticesTest::initTestCase() Server failed to listen on a port.
FAIL!  : ServerNoticesTest::initTestCase() Received a fatal error.
Totals: 0 passed, 1 failed, 0 skipped, 0 blacklisted, 3ms
********* Finished testing of ServerNoticesTest *********
Received signal 6 (SIGABRT)
         initTestCase function time: 2ms, total time: 3ms

15/16 Test #16: roommanagertest ..................Subprocess
aborted***Exception:   0.48 sec
********* Start testing of RoomManagerTest *********
Config: Using QtTest library 6.9.2, Qt 6.9.2 (x86_64-little_endian-lp64 shared
(dynamic) release build; by GCC 15.2.0), debian unknown
QFATAL : RoomManagerTest::initTestCase() Server failed to listen on a port.
FAIL!  : RoomManagerTest::initTestCase() Received a fatal error.
Totals: 0 passed, 1 failed, 0 skipped, 0 blacklisted, 3ms
********* Finished testing of RoomManagerTest *********
Received signal 6 (SIGABRT)
         initTestCase function time: 2ms, total time: 3ms

14: QWARN  : ActionsTest::initTestCase() quotient.jobs: No valid HTTP headers
from GET https://localhost:1234/_matrix/client/versions
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetVersionsJob" status
NetworkError: Connection refused
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetVersionsJob": retry
#2 in 5 s
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: No valid HTTP headers
from GET https://localhost:1234/_matrix/client/v3/capabilities
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetCapabilitiesJob"
status NetworkError: Connection refused
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetCapabilitiesJob":
retry #2 in 5 s
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: No valid HTTP headers
from GET
https://localhost:1234/_matrix/client/v3/profile/%40user%3Alocalhost%3A1234
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetUserProfileJob"
status NetworkError: Connection refused
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetUserProfileJob":
retry #2 in 5 s
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: No valid HTTP headers
from GET https://localhost:1234/_matrix/client/versions
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetVersionsJob" status
NetworkError: Connection refused
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetVersionsJob": retry
#2 in 5 s
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: No valid HTTP headers
from GET https://localhost:1234/_matrix/client/v3/account/whoami
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetTokenOwnerJob"
status NetworkError: Connection refused
14: QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetTokenOwnerJob":
retry #2 in 5 s
14: QWARN  : ActionsTest::initTestCase() quotient.jobs.sync: No valid HTTP
headers from GET https://localhost:1234/_matrix/client/r0/sync
14: QWARN  : ActionsTest::initTestCase() quotient.jobs.sync: "SyncJob-1" status
NetworkError: Connection refused
14: QWARN  : ActionsTest::initTestCase() quotient.jobs.sync: "SyncJob-1": retry
#2 in 5 s
14: FAIL!  : ActionsTest::initTestCase() 'syncSpy.wait()' returned FALSE. ()
14:    Loc: [./autotests/actionstest.cpp(54)]
14: PASS   : ActionsTest::cleanupTestCase()
14: Totals: 1 passed, 1 failed, 0 skipped, 0 blacklisted, 4901ms
14: ********* Finished testing of ActionsTest *********
16/16 Test #14: actionstest ......................***Failed    5.14 sec
********* Start testing of ActionsTest *********
Config: Using QtTest library 6.9.2, Qt 6.9.2 (x86_64-little_endian-lp64 shared
(dynamic) release build; by GCC 15.2.0), debian unknown
QWARN  : ActionsTest::initTestCase() Server listening
QINFO  : ActionsTest::initTestCase() quotient.e2ee: End-to-end encryption
(E2EE) support is off for "@user:localhost:1234/device_1234"
QWARN  : ActionsTest::initTestCase() quotient.jobs: No valid HTTP headers from
GET https://localhost:1234/_matrix/client/versions
QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetVersionsJob" status
NetworkError: Connection refused
QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetVersionsJob": retry #1
in 2 s
QWARN  : ActionsTest::initTestCase() quotient.jobs: No valid HTTP headers from
GET https://localhost:1234/_matrix/client/v3/capabilities
QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetCapabilitiesJob" status
NetworkError: Connection refused
QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetCapabilitiesJob": retry
#1 in 2 s
QWARN  : ActionsTest::initTestCase() quotient.jobs: No valid HTTP headers from
GET https://localhost:1234/_matrix/client/v3/profile/%40user%3Alocalhost%3A1234
QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetUserProfileJob" status
NetworkError: Connection refused
QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetUserProfileJob": retry
#1 in 2 s
QWARN  : ActionsTest::initTestCase() quotient.jobs: No valid HTTP headers from
GET https://localhost:1234/_matrix/client/versions
QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetVersionsJob" status
NetworkError: Connection refused
QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetVersionsJob": retry #1
in 2 s
QWARN  : ActionsTest::initTestCase() quotient.jobs: No valid HTTP headers from
GET https://localhost:1234/_matrix/client/v3/account/whoami
QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetTokenOwnerJob" status
NetworkError: Connection refused
QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetTokenOwnerJob": retry
#1 in 2 s
QWARN  : ActionsTest::initTestCase() quotient.jobs.sync: No valid HTTP headers
from GET https://localhost:1234/_matrix/client/r0/sync
QWARN  : ActionsTest::initTestCase() quotient.jobs.sync: "SyncJob-1" status
NetworkError: Connection refused
QWARN  : ActionsTest::initTestCase() quotient.jobs.sync: "SyncJob-1": retry #1
in 2 s
QWARN  : ActionsTest::initTestCase() quotient.jobs: No valid HTTP headers from
GET https://localhost:1234/_matrix/client/versions
QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetVersionsJob" status
NetworkError: Connection refused
QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetVersionsJob": retry #2
in 5 s
QWARN  : ActionsTest::initTestCase() quotient.jobs: No valid HTTP headers from
GET https://localhost:1234/_matrix/client/v3/capabilities
QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetCapabilitiesJob" status
NetworkError: Connection refused
QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetCapabilitiesJob": retry
#2 in 5 s
QWARN  : ActionsTest::initTestCase() quotient.jobs: No valid HTTP headers from
GET https://localhost:1234/_matrix/client/v3/profile/%40user%3Alocalhost%3A1234
QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetUserProfileJob" status
NetworkError: Connection refused
QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetUserProfileJob": retry
#2 in 5 s
QWARN  : ActionsTest::initTestCase() quotient.jobs: No valid HTTP headers from
GET https://localhost:1234/_matrix/client/versions
QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetVersionsJob" status
NetworkError: Connection refused
QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetVersionsJob": retry #2
in 5 s
QWARN  : ActionsTest::initTestCase() quotient.jobs: No valid HTTP headers from
GET https://localhost:1234/_matrix/client/v3/account/whoami
QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetTokenOwnerJob" status
NetworkError: Connection refused
QWARN  : ActionsTest::initTestCase() quotient.jobs: "GetTokenOwnerJob": retry
#2 in 5 s
QWARN  : ActionsTest::initTestCase() quotient.jobs.sync: No valid HTTP headers
from GET https://localhost:1234/_matrix/client/r0/sync
QWARN  : ActionsTest::initTestCase() quotient.jobs.sync: "SyncJob-1" status
NetworkError: Connection refused
QWARN  : ActionsTest::initTestCase() quotient.jobs.sync: "SyncJob-1": retry #2
in 5 s
FAIL!  : ActionsTest::initTestCase() 'syncSpy.wait()' returned FALSE. ()
   Loc: [./autotests/actionstest.cpp(54)]
PASS   : ActionsTest::cleanupTestCase()
Totals: 1 passed, 1 failed, 0 skipped, 0 blacklisted, 4901ms
********* Finished testing of ActionsTest *********


81% tests passed, 3 tests failed out of 16

Total Test time (real) =   5.36 sec

The following tests FAILED:
         14 - actionstest (Failed)
         15 - servernoticestest (Subprocess aborted)
         16 - roommanagertest (Subprocess aborted)
Errors while running CTest
make[2]: *** [Makefile:74: test] Error 8
make[2]: Leaving directory
'/build/reproducible-path/neochat-25.12.1/obj-x86_64-linux-gnu'
dh_auto_test: error: cd obj-x86_64-linux-gnu && make -j8 test ARGS\+=--verbose
ARGS\+=-j8 returned exit code 2
make[1]: *** [debian/rules:20: override_dh_auto_test] Error 25
make[1]: Leaving directory '/build/reproducible-path/neochat-25.12.1'

but it seems strange to me it still wants to connect to
https://localhost:1234/_matrix/client/versions 
I shtat hardcoded somewhere outside of the autotests folder?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to