On Fri, 2024-10-04 at 01:49 -0700, philip.dawson via lists.yoctoproject.org wrote: > I'm trying to set up a network sstate cache server for yocto builds > run on developer machines and CI systems. > > One of my recipes is not using the sstate cache objects from the > network server only when run from the CI machine. When run from my > development PC it uses the network cache just fine. > > I have copied the siginfo files for the do_fetch task from the CI > build stamps folder (which had an sstate cache miss) and the sstate > cache (for the dev PC which used the cache objects). Putting them > both through bitbake-diffsigs shows no difference. Putting them both > through bitbake-dumpsig shows they only differ on "Computed task > hash" the rest of the output (including Computed base hash) is > identical. > > I've tried reading through the various bits of bitbake and yocto > documentation on sstate hashes/signatures and as far as I can tell > the task hash is supposed to be based on the basehash and the hashes > of any tasks it depends on, but in this case its a do_fetch and has > no tasks it depends on. > > The signature handler as checked through bitbake-getvar is: > BB_SIGNATURE_HANDLER="OEBasicHash" > > How is the task hash being computed? And why is it different on these > two machines even though the rest of the siginfo is identical?
It sounds like you're on the right track but there is a piece of information which I can highlight: do_fetch is not an sstate accelerated task. As such, I'd not expect a do_fetch task to come from sstate. What happens is that a recipe's other sstate tasks (populate_sysroot, package_write_XXX, package, package_qa, packagedata) come from sstate and if that happens, tasks like fetch, configure, compile and so on don't need to happen. I'd therefore look at the populate_sysroot task and compare the sigs there. Also, FWIW do_fetch can have task dependencies although you may be right that yours does not. Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#63937): https://lists.yoctoproject.org/g/yocto/message/63937 Mute This Topic: https://lists.yoctoproject.org/mt/108814179/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-