Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 936132

Summary: sci-geosciences/qgis-3.38.3 fails tests: TestQgsCopcProvider::testQgsRangeRequestCache() 'files[0].baseName().endsWith( QLatin1String( "bytes=3-4" ) )' returned FALSE.
Product: Gentoo Linux Reporter: matoro <matoro_gentoo>
Component: Current packagesAssignee: Sci-geo Project <sci-geosciences>
Status: CONFIRMED ---    
Severity: normal CC: matoro_gentoo
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=933037
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log and emerge --info
build.log and emerge --info

Description matoro archtester 2024-07-16 03:52:31 UTC
Created attachment 897756 [details]
build.log and emerge --info

269/330 Testing: test_provider_copcprovider
269/330 Test: test_provider_copcprovider
Command: "/var/tmp/portage/sci-geosciences/qgis-3.36.3-r1/work/qgis-3.36.3_build/output/bin/test_provider_copcprovider" "-maxwarnings" "10000"
Directory: /var/tmp/portage/sci-geosciences/qgis-3.36.3-r1/work/qgis-3.36.3_build/tests/src/providers
"test_provider_copcprovider" start time: Jul 16 03:47 UTC
Output:
----------------------------------------------------------
********* Start testing of TestQgsCopcProvider *********
Config: Using QtTest library 5.15.14, Qt 5.15.14 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 13.2.1 20240210), gentoo 2.15
PASS   : TestQgsCopcProvider::initTestCase()
PASS   : TestQgsCopcProvider::filters()
PASS   : TestQgsCopcProvider::encodeUri()
PASS   : TestQgsCopcProvider::decodeUri()
PASS   : TestQgsCopcProvider::absoluteRelativeUri()
PASS   : TestQgsCopcProvider::preferredUri()
PASS   : TestQgsCopcProvider::layerTypesForUri()
PASS   : TestQgsCopcProvider::uriIsBlocklisted()
PASS   : TestQgsCopcProvider::querySublayers()
PASS   : TestQgsCopcProvider::brokenPath()
PASS   : TestQgsCopcProvider::testLazInfo()
PASS   : TestQgsCopcProvider::validLayer()
PASS   : TestQgsCopcProvider::validLayerWithCopcHierarchy()
PASS   : TestQgsCopcProvider::attributes()
PASS   : TestQgsCopcProvider::calculateZRange()
PASS   : TestQgsCopcProvider::testIdentify(copc)
PASS   : TestQgsCopcProvider::testExtraBytesAttributesExtraction()
PASS   : TestQgsCopcProvider::testExtraBytesAttributesValues()
PASS   : TestQgsCopcProvider::testClassFlagsValues()
PASS   : TestQgsCopcProvider::testPointCloudIndex()
PASS   : TestQgsCopcProvider::testStatsCalculator()
PASS   : TestQgsCopcProvider::testSaveLoadStats()
PASS   : TestQgsCopcProvider::testPointCloudRequest()
FAIL!  : TestQgsCopcProvider::testQgsRangeRequestCache() 'files[0].baseName().endsWith( QLatin1String( "bytes=3-4" ) )' returned FALSE. ()
   Loc: [/var/tmp/portage/sci-geosciences/qgis-3.36.3-r1/work/qgis-3.36.3/tests/src/providers/testqgscopcprovider.cpp(1103)]
PASS   : TestQgsCopcProvider::cleanupTestCase()
Totals: 24 passed, 1 failed, 0 skipped, 0 blacklisted, 798ms
********* Finished testing of TestQgsCopcProvider *********
<end of output>
Test time =   0.92 sec
----------------------------------------------------------
Test Failed.
"test_provider_copcprovider" end time: Jul 16 03:47 UTC
"test_provider_copcprovider" time elapsed: 00:00:00
----------------------------------------------------------
Comment 1 Andreas Sturmlechner gentoo-dev 2024-10-04 19:25:20 UTC
What about 3.38.3?
Comment 2 matoro archtester 2024-10-05 00:32:03 UTC
Created attachment 904915 [details]
build.log and emerge --info

Still present with 3.38.3
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-05 06:58:23 UTC
https://github.com/qgis/QGIS/blob/f549811d78ca0590352c834c9fa158e3ac6bfc9d/tests/src/providers/testqgscopcprovider.cpp#L1054

Looks like it might be racey. At the assertion which fails, does anything exist in the cache? (Wrong filename or simply not there)?

What happens if you tweak the sleep times?