Fix sporadic test failure
same_album_name_different_artist
test fails sometimes:
[ RUN ] SamplesTests/RefreshTests.Refresh/23
Info: src/MediaLibrary.cpp:311 initialize Initializing medialibrary...
Info: src/MediaLibrary.cpp:378 initialize Successfuly initialized
Info: src/MediaLibrary.cpp:384 start Starting medialibrary...
Info: src/factory/FileSystemFactory.cpp:117 refreshDevices Refreshing devices from IDeviceLister
Info: src/filesystem/unix/DeviceLister.cpp:120 listMountpoints Discovered mountpoint /dev/mapper/lvm-root mounted on /cache (ext4)
Info: src/filesystem/unix/DeviceLister.cpp:120 listMountpoints Discovered mountpoint /dev/mapper/lvm-root mounted on /builds/chouquette (ext4)
Info: src/filesystem/unix/DeviceLister.cpp:120 listMountpoints Discovered mountpoint /dev/mapper/lvm-root mounted on /etc/resolv.conf (ext4)
Info: src/filesystem/unix/DeviceLister.cpp:120 listMountpoints Discovered mountpoint /dev/mapper/lvm-root mounted on /etc/hostname (ext4)
Info: src/filesystem/unix/DeviceLister.cpp:120 listMountpoints Discovered mountpoint /dev/mapper/lvm-root mounted on /etc/hosts (ext4)
Warning: src/filesystem/unix/DeviceLister.cpp:266 devices Failed to list devices: Failed to open /dev/disk/by-uuid: No such file or directory. Falling back to a dummy device containing '/'
Info: src/factory/FileSystemFactory.cpp:140 refreshDevices Caching device {dummy-device} mounted on file:///. Removable: true
Info: src/factory/FileSystemFactory.cpp:151 refreshDevices Done refreshing devices from IDeviceLister
Debug: src/MediaLibrary.cpp:1739 refreshDevices Done refreshing devices in database.
Debug: src/MediaLibrary.cpp:1533 onParserIdleChanged Parse services were resumed
Debug: src/MediaLibrary.cpp:1542 onParserIdleChanged Setting background idle state to false
Info: src/discoverer/DiscovererWorker.cpp:75 discover Adding file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/ to the folder discovery list
Info: src/discoverer/DiscovererWorker.cpp:115 enqueue Queuing entrypoint file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/ of type 0
Info: src/parser/ParserWorker.cpp:149 mainloop Entering ParserService [VLC] thread
Debug: src/parser/ParserWorker.cpp:175 mainloop [VLC] has 1 tasks remaining
Debug: src/parser/ParserWorker.cpp:290 restoreTasks No task to resume.
Debug: src/parser/ParserWorker.cpp:161 mainloop Halting ParserService [VLC] mainloop
Debug: src/MediaLibrary.cpp:1533 onParserIdleChanged All parser services went idle
Info: src/discoverer/DiscovererWorker.cpp:144 run Entering DiscovererWorker thread
Debug: src/MediaLibrary.cpp:1509 onDiscovererIdleChanged Discover thread was resumed
Debug: src/MediaLibrary.cpp:1522 onDiscovererIdleChanged Setting background idle state to false
Info: src/discoverer/DiscovererWorker.cpp:304 runDiscover Running discover on: file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/
Debug: src/MediaLibrary.cpp:1542 onParserIdleChanged Setting background idle state to true
Info: src/discoverer/FsDiscoverer.cpp:391 addFolder Creating new device in DB {dummy-device}
Debug: src/discoverer/FsDiscoverer.cpp:246 checkFolder Checking for modifications in file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/
Debug: src/discoverer/FsDiscoverer.cpp:269 checkFolder New folder detected: file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_1/
Debug: src/discoverer/FsDiscoverer.cpp:246 checkFolder Checking for modifications in file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_1/
Debug: src/discoverer/FsDiscoverer.cpp:313 checkFiles Checking file in file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_1/
Debug: src/MediaLibrary.cpp:1533 onParserIdleChanged Parse services were resumed
Debug: src/MediaLibrary.cpp:1542 onParserIdleChanged Setting background idle state to false
Debug: src/discoverer/FsDiscoverer.cpp:375 checkFiles Done checking files in file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_1/
Debug: src/discoverer/FsDiscoverer.cpp:306 checkFolder Done checking subfolders in file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_1/
Debug: src/parser/ParserWorker.cpp:168 mainloop Resuming ParserService [VLC] mainloop
Debug: src/parser/ParserWorker.cpp:175 mainloop [VLC] has 1 tasks remaining
Debug: src/parser/ParserWorker.cpp:194 mainloop Executing VLC task on file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_1/track.mp3
Debug: src/discoverer/FsDiscoverer.cpp:269 checkFolder New folder detected: file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_2/
Debug: src/metadata_services/vlc/VLCMetadataService.cpp:57 run Parsing file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_1/track.mp3
Debug: src/parser/ParserWorker.cpp:216 mainloop Done executing VLC task on file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_1/track.mp3 in 91ms. Result: 1
Debug: src/discoverer/FsDiscoverer.cpp:246 checkFolder Checking for modifications in file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_2/
Debug: src/discoverer/FsDiscoverer.cpp:313 checkFiles Checking file in file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_2/
Debug: src/parser/ParserWorker.cpp:161 mainloop Halting ParserService [VLC] mainloop
Info: src/parser/ParserWorker.cpp:149 mainloop Entering ParserService [Metadata] thread
Debug: src/parser/ParserWorker.cpp:175 mainloop [Metadata] has 1 tasks remaining
Debug: src/parser/ParserWorker.cpp:194 mainloop Executing Metadata task on file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_1/track.mp3
Debug: src/metadata_services/MetadataParser.cpp:440 createFileAndMedia Adding file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_1/track.mp3
Debug: src/parser/ParserWorker.cpp:216 mainloop Done executing Metadata task on file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_1/track.mp3 in 288ms. Result: 1
Debug: src/parser/Parser.cpp:134 updateStats Updating progress: 100
Debug: src/parser/Parser.cpp:134 updateStats Updating progress: 50
Debug: src/discoverer/FsDiscoverer.cpp:375 checkFiles Done checking files in file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_2/
Debug: src/discoverer/FsDiscoverer.cpp:306 checkFolder Done checking subfolders in file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_2/
Debug: src/parser/ParserWorker.cpp:168 mainloop Resuming ParserService [VLC] mainloop
Debug: src/discoverer/FsDiscoverer.cpp:313 checkFiles Checking file in file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/
Debug: src/parser/ParserWorker.cpp:175 mainloop [VLC] has 1 tasks remaining
Debug: src/parser/ParserWorker.cpp:194 mainloop Executing VLC task on file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_2/track.mp3
Debug: src/discoverer/FsDiscoverer.cpp:375 checkFiles Done checking files in file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/
Debug: src/discoverer/FsDiscoverer.cpp:306 checkFolder Done checking subfolders in file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/
Debug: src/MediaLibrary.cpp:1509 onDiscovererIdleChanged Discoverer thread went idle
Debug: src/parser/ParserWorker.cpp:161 mainloop Halting ParserService [Metadata] mainloop
Debug: src/metadata_services/vlc/VLCMetadataService.cpp:57 run Parsing file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_2/track.mp3
test/samples/Tester.cpp:416: Failure
Value of: albums.size()
Actual: 1
Expected: expectedAlbums.Size()
Which is: 2
test/samples/Tester.cpp:210: Failure
Value of: audios.size()
Actual: 1
Expected: expected["nbAudios"].GetUint()
Which is: 2
Debug: src/parser/ParserWorker.cpp:216 mainloop Done executing VLC task on file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_2/track.mp3 in 65ms. Result: 1
Debug: src/parser/Parser.cpp:134 updateStats Updating progress: 33
Debug: src/parser/ParserWorker.cpp:175 mainloop [VLC] has 1 tasks remaining
Debug: src/parser/ParserWorker.cpp:194 mainloop Executing VLC task on file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_1/track.mp3
Debug: src/parser/ParserWorker.cpp:168 mainloop Resuming ParserService [Metadata] mainloop
Debug: src/parser/ParserWorker.cpp:175 mainloop [Metadata] has 1 tasks remaining
Debug: src/parser/ParserWorker.cpp:194 mainloop Executing Metadata task on file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_2/track.mp3
Debug: src/metadata_services/vlc/VLCMetadataService.cpp:57 run Parsing file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_1/track.mp3
Debug: src/parser/ParserWorker.cpp:216 mainloop Done executing VLC task on file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_1/track.mp3 in 91ms. Result: 1
Debug: src/metadata_services/MetadataParser.cpp:440 createFileAndMedia Adding file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_2/track.mp3
Debug: src/parser/ParserWorker.cpp:216 mainloop Done executing Metadata task on file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_2/track.mp3 in 454ms. Result: 1
Debug: src/parser/Parser.cpp:134 updateStats Updating progress: 66
Debug: src/parser/ParserWorker.cpp:161 mainloop Halting ParserService [Metadata] mainloop
Debug: src/parser/ParserWorker.cpp:161 mainloop Halting ParserService [VLC] mainloop
Debug: src/parser/ParserWorker.cpp:168 mainloop Resuming ParserService [Metadata] mainloop
Debug: src/parser/ParserWorker.cpp:175 mainloop [Metadata] has 1 tasks remaining
Debug: src/parser/ParserWorker.cpp:194 mainloop Executing Metadata task on file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_1/track.mp3
Debug: src/parser/ParserWorker.cpp:216 mainloop Done executing Metadata task on file:///builds/chouquette/medialibrary/test/samples/samples/music/same_album_name_different_artist/album_1/track.mp3 in 345ms. Result: 1
Debug: src/parser/Parser.cpp:134 updateStats Updating progress: 100
Debug: src/parser/ParserWorker.cpp:161 mainloop Halting ParserService [Metadata] mainloop
Debug: src/MediaLibrary.cpp:1533 onParserIdleChanged All parser services went idle
Debug: src/MediaLibrary.cpp:1542 onParserIdleChanged Setting background idle state to true
Info: src/discoverer/DiscovererWorker.cpp:186 run Exiting DiscovererWorker thread
Debug: src/parser/ParserWorker.cpp:168 mainloop Resuming ParserService [VLC] mainloop
Info: src/parser/ParserWorker.cpp:233 mainloop Exiting ParserService [VLC] thread
Debug: src/parser/ParserWorker.cpp:168 mainloop Resuming ParserService [Metadata] mainloop
Info: src/parser/ParserWorker.cpp:233 mainloop Exiting ParserService [Metadata] thread
[ FAILED ] SamplesTests/RefreshTests.Refresh/23, where GetParam() = ("same_album_name_different_artist", true) (2577 ms)
multi_cd test also appears to be failing intermittently
Edited by Hugo Beauzée-Luyssen