On 19/12/2019 11:16, Richard Purdie wrote:
Do you have any idea on how to use these fetchers (or other SSH keys-
based secure fetcher) to share sstate cache ?
I think this is a "not implemented" problem.
If you look at bitbake/lib/bb/fetch2/ssh.py or sftp.py, they don't have
a checkstatus() method that local.py or wget.py has.
I think the sstate code relies on the checkstatus method working to
know know if an sstate artefact is present.
Performance of that function is key and creating a new ssh connection
to check for each sstate artefact may make the build prohibitively
slow. There are some connection caching mechanisms present which may
help with that.
I actually started implementing this a while ago:
http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=ross/mut2&id=42bdcd8181d2826a5a5dff6803958a900c0c4a2d
I *think* that worked but I can't be sure, it was a while ago and
typically I forgot to put notes to my future self in the commit message.
As RP says, you'll want to use connection sharing: this is configured
using ControlMaster and friends in the ssh configuration. That should
make the performance reasonable.
Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#47770): https://lists.yoctoproject.org/g/yocto/message/47770
Mute This Topic: https://lists.yoctoproject.org/mt/68829185/21656
Mute #yocto: https://lists.yoctoproject.org/mk?hashtag=yocto&subid=6691583
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-