AUTOREV, to use or not to use
summary
AUTOREV fetches the latest VCS commit at parse time, making builds nonreproducible but convenient for fast-moving projects and CI; it works only with fetchers that support source revisions (git, not http/ftp; CVS uses date). Recommended mitigations: enable buildhistory collect-source-revision to record exact commits, use bb.source_ref_policy=cached for offline/repeatable rebuilds, or use DevUpstream class or paired fixed/git recipes and devtool/auto-upgrade-helper for controlled updates; avoid AUTOREV in release branches.
AI-written summary · about
chapters (17)
- 0:00Introduction and speaker
- 1:24What is AUTOREV and why
- 3:52How AUTOREV works in recipes
- 7:23Fixed vs latest builds
- 9:10Fetchers and AUTOREV support
- 10:36Behind the scenes of AUTOREV
- 12:47Pros and cons of AUTOREV
- 14:53When to use AUTOREV
- 15:37Build history with AUTOREV
- 17:42Source revision caching
- 19:08Manual recipe upgrades
- 20:57Automated recipe upgrades
- 22:42Two recipe versions approach
- 25:15Handling multiple URLs
- 25:36Should you use AUTOREV
- 27:09AUTOREV in release builds
- 29:20Q&A on AUTOREV
