On Fri, 5 Dec 2025 at 17:20, christian.leeb via lists.yoctoproject.org <[email protected]> wrote: > > Thanks a lot, Gyorgy, for your feedback. Maybe a bit of background what we > are trying to do. > > We have the following situation - we call it "top-up": > We start bitbake fetch as described with DL_DIR containing the sources of a > previous release. > The state cache is empty. > The idea is that bitbake fetch only re-fetches repos which are not up-to-date. > > In a regular release, we always fetch all sources anew from upstream > (debatable if this is the right approach). At the end of the release we > archive all sources of the dl folder. We do not archive the sstate cache. > > For reproducing a release we take the archive of the release and rebuild > without network (BB_NONETWORK) > > The motivation for "top-up" came from last week's outage of cloudflare: we > urgently needed to issue a release, but one upstream server was down. So we > used dl archive of previous release, removed the "BB_NONETWORK and hoped it > would fetch the missing stuff (in my example some commits of the kernel) and > then we can build.
Keeping DL_DIR between builds to enable incremental fetches is a standard practice used by everyone, and it works, but you too need to do it regularly to ensure there's nothing strange in your configuration that gets in the way. In your builds you either throw away DL_DIR, or you use it only in offline builds, so incremental fetches are never happening. It would perhaps help to look at log.do_fetch from that task that was supposed to do an incremental fetch but didn't. We'd at least see what it tried to execute to bring in the latest commits. Otherwise you can try with a test recipe and a test git repo: make a fetch/unpack, add commits, change SRCREV, make another fetch. It will work. Or if it does not, we then have a way to reproduce the issue and look into it. Alex
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#66093): https://lists.yoctoproject.org/g/yocto/message/66093 Mute This Topic: https://lists.yoctoproject.org/mt/116612004/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
