I've just noticed that the mocking of those tests is incomplete. Normally this is not a problem because the test just expects the relevant requests to fail anyway. However, maybe you have an HTTP server running on your system that returns a 200 response on the query http://localhost:8080/rest/db/ignores?folder=GXWxf-3zgnU
. So I've just pushed a new change to test that hypothesis. With this change Ignore patterns have been changed.
will hopefully vanish from your test logs and tests will pass.
Search Criteria
Package Details: syncthingtray-qt6 1.7.1-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/syncthingtray-qt6.git (read-only, click to copy) |
---|---|
Package Base: | syncthingtray-qt6 |
Description: | Tray application for Syncthing (using Qt 6) |
Upstream URL: | https://github.com/Martchus/syncthingtray |
Licenses: | GPL-2-or-later |
Submitter: | Martchus |
Maintainer: | Martchus |
Last Packager: | Martchus |
Votes: | 28 |
Popularity: | 4.32 |
First Submitted: | 2020-11-07 16:16 (UTC) |
Last Updated: | 2025-01-09 22:38 (UTC) |
Dependencies (28)
- boost-libs
- c++utilitiesAUR
- desktop-file-utils (desktop-file-utils-gitAUR)
- libboost_filesystem.so (boost183-libsAUR, boost-libs)
- libc++utilities.so (c++utilitiesAUR)
- libqtforkawesome-qt6.so (qtforkawesome-qt6AUR)
- libqtutilities-qt6.so (qtutilities-qt6AUR)
- openssl (openssl-gitAUR, openssl-staticAUR)
- qt6-declarative (qt6-declarative-gitAUR)
- qt6-svg
- qt6-webengine
- qtforkawesome-qt6AUR
- qtutilities-qt6AUR
- boost (boost-gitAUR) (make)
- clang (llvm-gitAUR, clang-minimal-gitAUR, clang17-binAUR) (make)
- cmake (cmake-gitAUR) (make)
- extra-cmake-modules (extra-cmake-modules-gitAUR) (make)
- kio (kio-gitAUR) (make)
- libplasma (libplasma-gitAUR) (make)
- ninja (ninja-kitwareAUR, ninja-memAUR, ninja-fuchsia-gitAUR, ninja-gitAUR, ninja-jobserverAUR) (make)
- Show 8 more dependencies...
Required by (0)
Sources (1)
Martchus commented on 2024-09-17 18:57 (UTC)
Martchus commented on 2024-09-17 18:45 (UTC)
Too bad that it didn't work. At this point I have no idea why the test behaves differently in your case. The line that would print Ignore patterns have been changed.
is actually not indented to be covered by the test in its current form. It is actually expected that saving ignore patterns fails with Unable to change ignore patterns: …
. Not sure what I can do about it because I can really not reproduce this locally.
FichteFoll commented on 2024-09-17 16:48 (UTC)
@Martchus
3: ********* Start testing of ModelTests *********
3: Config: Using QtTest library 6.7.2, Qt 6.7.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 14.2.1 20240805), arch unknown
3: PASS : ModelTests::initTestCase()
3: PASS : ModelTests::testDirectoryModel()
3: PASS : ModelTests::testDevicesModel()
3: QDEBUG : ModelTests::testFileModel() connection error: "Unable to query ignore patterns of \"GXWxf-3zgnU\": No mockup reply available for this request."
3: QWARN : ModelTests::testFileModel() qt.svg: Cannot open file ':/icons/hicolor/scalable/actions/view-refresh.svg', because: No such file or directory
3: QWARN : ModelTests::testFileModel() qt.svg: Cannot open file ':/icons/hicolor/scalable/actions/view-refresh.svg', because: No such file or directory
3: QWARN : ModelTests::testFileModel() qt.svg: Cannot open file ':/icons/hicolor/scalable/places/folder-open.svg', because: No such file or directory
3: QWARN : ModelTests::testFileModel() qt.svg: Cannot open file ':/icons/hicolor/scalable/places/folder-open.svg', because: No such file or directory
3: QWARN : ModelTests::testFileModel() qt.svg: Cannot open file ':/icons/hicolor/scalable/places/edit-copy.svg', because: No such file or directory
3: QWARN : ModelTests::testFileModel() qt.svg: Cannot open file ':/icons/hicolor/scalable/places/edit-copy.svg', because: No such file or directory
3: QDEBUG : ModelTests::testFileModel() file model notification of type "info" : "Ignore patterns have been changed."
3: QDEBUG : ModelTests::testFileModel() connection error: "Unable to query ignore patterns of \"GXWxf-3zgnU\": No mockup reply available for this request."
3: FAIL! : ModelTests::testFileModel() Timeout exceeded
3: Loc: [/usr/src/debug/syncthingtray-git/syncthingtray/syncthingmodel/tests/models.cpp(48)]
3: PASS : ModelTests::cleanupTestCase()
3: Totals: 4 passed, 1 failed, 0 skipped, 0 blacklisted, 4801ms
3: ********* Finished testing of ModelTests *********
crashoverarch commented on 2024-09-14 11:00 (UTC) (edited on 2024-09-14 11:00 (UTC) by crashoverarch)
Regarding the error :: installing boost-libs (1.86.0-2) breaks dependency 'libboost_filesystem.so=1.83.0-64' required by syncthingtray-qt6
For me it worked:
- Removing
syncthingtray-qt6
before updating
sudo pacman -R syncthingtray-qt6
sudo pacman -Syu
- Installing the deps from AUR and then installing
syncthingtray-qt6
paru -S c++utilities
paru -S qtutilities-qt6
paru -S qtforkawesome-qt6
paru -S syncthingtray-qt6
Martchus commented on 2024-09-11 13:52 (UTC) (edited on 2024-09-11 13:53 (UTC) by Martchus)
@FichteFoll I cannot reproduce this problem. However, I pushed a change to the Git repository that will probably let tests pass. For now you can simply go ahead and build this package without tests (as mentioned in the pinned comment). If you like to help me you can also try to build the syncthingtray-git
package and tell me whether it works. Even if it works I'd be interested in the logs between 3: ********* Start testing of ModelTests *********
and ********* Finished testing of ModelTests *********
. With my latest change more QDEBUG
lines should show up in any case and the information would be useful to me. Note that you can install syncthingtray-git
and its dependencies alongside syncthingtray-qt6
so you don't have to uninstall anything for doing this test.
FichteFoll commented on 2024-09-11 07:57 (UTC) (edited on 2024-09-11 07:57 (UTC) by FichteFoll)
Tests are failing for me on both this package and the qt5 one (built via aurutils in chroot):
Start 3: syncthingmodel-qt6_run_models_tests
3: Test command: /build/syncthingtray-qt6/src/syncthingtray-1.6.2/syncthingmodel/syncthingmodel-qt6_models_tests
3: Working Directory: /build/syncthingtray-qt6/src/syncthingtray-1.6.2/syncthingmodel
3: Test timeout computed to be: 10000000
3: /build/syncthingtray-qt6/src/syncthingtray-1.6.2/syncthingmodel/../syncthingconnector/testfiles/
3: ./testfiles/
3: Directory used to store working copies:
3: ./testfiles/workingdir/
3: ********* Start testing of ModelTests *********
3: Config: Using QtTest library 6.7.2, Qt 6.7.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 14.2.1 20240805), arch unknown
3: PASS : ModelTests::initTestCase()
3: PASS : ModelTests::testDirectoryModel()
3: PASS : ModelTests::testDevicesModel()
3: QDEBUG : ModelTests::testFileModel() connection error: "Unable to query ignore patterns of \"GXWxf-3zgnU\": No mockup reply available for this request."
3: QWARN : ModelTests::testFileModel() qt.svg: Cannot open file ':/icons/hicolor/scalable/actions/view-refresh.svg', because: No such file or directory
3: QWARN : ModelTests::testFileModel() qt.svg: Cannot open file ':/icons/hicolor/scalable/actions/view-refresh.svg', because: No such file or directory
3: QWARN : ModelTests::testFileModel() qt.svg: Cannot open file ':/icons/hicolor/scalable/places/folder-open.svg', because: No such file or directory
3: QWARN : ModelTests::testFileModel() qt.svg: Cannot open file ':/icons/hicolor/scalable/places/folder-open.svg', because: No such file or directory
3: QWARN : ModelTests::testFileModel() qt.svg: Cannot open file ':/icons/hicolor/scalable/places/edit-copy.svg', because: No such file or directory
3: QWARN : ModelTests::testFileModel() qt.svg: Cannot open file ':/icons/hicolor/scalable/places/edit-copy.svg', because: No such file or directory
3: FAIL! : ModelTests::testFileModel() Compared values are not the same
3: Actual (type) : "info"
3: Expected (QStringLiteral("error")): "error"
3: Loc: [/usr/src/debug/syncthingtray-qt6/syncthingtray-1.6.2/syncthingmodel/tests/models.cpp(369)]
3: PASS : ModelTests::cleanupTestCase()
3: Totals: 4 passed, 1 failed, 0 skipped, 0 blacklisted, 35ms
3: ********* Finished testing of ModelTests *********
3/4 Test #3: syncthingmodel-qt6_run_models_tests .....***Failed 0.06 sec
springtwr commented on 2024-09-07 05:22 (UTC) (edited on 2024-09-07 05:27 (UTC) by springtwr)
@MalteDoron You need to install the devtools
package and then run pkgctl build
to rebuild c++utilities
, qtutilities-qt6
, qtforkawesome-qt6
and syncthingtray-qt6
in that order in a clean chroot environment.
For example, you can build c++utilities
with:
pkgctl build -- --nocheck
Build qtutilities-qt6
with:pkgctl build -I c++utilities-xxxx.pkg.tar.zst -- --nocheck
and so on.More details can be found in ArchWiki.
xamindar commented on 2024-09-07 03:59 (UTC)
@Martchus Unfortunately, the "clean" solution proposed gives no explaination on how to do it in the slightest. Wheras the "dirty" solution is clear.
Martchus commented on 2024-09-06 22:31 (UTC) (edited on 2024-09-06 22:32 (UTC) by Martchus)
@MalteDoron This is already mentioned in the pinned comment under "Important remarks". It mentions that what you've just did is the "dirty" way and there's a better "correct" solution :-)
Note that having to do these kinds of rebuilds is normal when building packages on top of distribution provided packages.
MalteDoron commented on 2024-09-06 21:15 (UTC)
Got an error while trying to update my system:
:: installing boost-libs (1.86.0-2) breaks dependency 'libboost_filesystem.so=1.83.0-64' required by syncthingtray-qt6
Manually tried to git pull
and makepkg -si
the latest syncthingtray-qt6
but the error remained. Uninstalled syncthingtray-qt6
and updated the system, then clean rebuilt and installed syncthingtray-qt6
again.
This seems to have worked.
Pinned Comments
Martchus commented on 2023-11-21 23:20 (UTC) (edited on 2024-10-21 15:10 (UTC) by Martchus)
All my packages are managed at GitHub where you can also contribute directly: https://github.com/Martchus/PKGBUILDs
There also exist a binary repository: https://wiki.archlinux.org/index.php/Unofficial_user_repositories#ownstuff
Important remarks:
pkgrel
of the AUR package when a rebuild is required (only in accordance with Arch Linux of course, not in accordance with Manjaro).syncthingtray-qt6
broken until it has been rebuilt) or to uninstallsyncthingtray-qt6
temporarily before the update. After the updatesyncthingtray-qt6
can be rebuilt and reinstalled again.makechrootpkg
which is also how official developers build their packages (and how packages in my binary repository are built).c++utilities
,qtutilities-qt6
,qtforkawesome-qt6
andsyncthingtray-qt6
in that order.makepkg --nocheck
ormakechrootpkg -- --nocheck
. It makes still sense to report failures. But please include the actual error message and not just the last few lines.