Bug 1217774

Summary: qt6-webengine qtpdf.index reproducible builds
Product: [openSUSE] openSUSE Tumbleweed Reporter: Bernhard Wiedemann <bwiedemann>
Component: KDE ApplicationsAssignee: Antonio Larrosa <alarrosa>
Status: IN_PROGRESS --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: alarrosa
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Bernhard Wiedemann 2023-12-04 13:16:24 UTC
While working on reproducible builds for openSUSE, I found that
our qt6-webengine / qt6-webengine-docs-html subpackage

varied between builds in /usr/share/doc/qt6/qtpdf/qtpdf.index
See diff at
https://rb.zq1.de/compare.factory-20230830/diffs/qt6-webengine-compare.out

You probably need to build with
osc build -M docs
Comment 1 Bernhard Wiedemann 2023-12-05 20:52:10 UTC
My tools told me that the variations go away when both builds run on 1-core-VMs.
Builds between 3-core and 4-core VMs also matched once.

So it could be some race-condition. Looking at
https://rb.zq1.de/other/qt6-webengine/provenance.dot.svg
there are 2 qdoc runs triggered by
 cmake --build build -j $N -t docs

https://rb.zq1.de/other/qt6-webengine/
also has the raw strace output so you could check which other files were read or written by qdoc. Maybe it kept some shared cache.
Comment 2 Christophe Marin 2023-12-06 10:49:08 UTC
is qtwebengine the only package affected?

Almost all our qt6-* packages build doc
Comment 3 Bernhard Wiedemann 2023-12-08 02:20:00 UTC
qt6-webengine is the only one with this problem of the 38 qt6-* packages.
Comment 4 Antonio Larrosa 2023-12-20 13:48:04 UTC
https://build.opensuse.org/request/show/1134211 should fix this. I submitted the patch to upstream at https://codereview.qt-project.org/c/qt/qtwebengine/+/526880
Comment 5 OBSbugzilla Bot 2023-12-20 17:35:03 UTC
This is an autogenerated message for OBS integration:
This bug (1217774) was mentioned in
https://build.opensuse.org/request/show/1134292 Factory / qt6-webengine