GNOME Bugzilla – Bug 697046
build server auto-updates
Last modified: 2014-04-30 13:58:48 UTC
The autobuilder.js code used to have an ugly hack to run "git pull -r" on itself, but: * We aren't running make/make install, so we're not getting code updates * We aren't updating dependencies like ostree, glib, gjs etc. At the moment, the recommended build configuration is RHEL6 + jhbuild, but it's also possible to have packaged everything except gnome-ostree itself. What we need is a way for gnome-ostree to gracefully update itself: 1) Run git pull -r 2) If changed, don't queue any more tasks, let the current ones finish 3) run build tool (jhbuild make) 4) restart The default for 3) would be just jhbuild make, but for the RHEL6 configuration it'd need to be "jhbuild build gnome-ostree"
Partially addressed by https://git.gnome.org/browse/gnome-ostree/commit/?id=fa13aadede36d715e184ae3964b249e80fedd276 We get manifest.json updates with this, but not code changes.
*** Bug 707762 has been marked as a duplicate of this bug. ***
Created attachment 275421 [details] [review] Rebuild itself This makes gnome-continious do 'jhbuild make' (or jhbuild build gnome-continuous' if it fails) if autoupdate-self is specified. Not sure if this will make it re-run itself though
Review of attachment 275421 [details] [review]: Can you make this a separate command line option? In the future I'm thinking about having Continuous deployed via Docker containers, and in that case we might still want to do the "git pull -r" to get new manifest versions, but have the actual code come from the container.
Created attachment 275470 [details] [review] Rebuild itself if --autoupdate-rebuild specified Added a different option --autoupdate-rebuild
Review of attachment 275470 [details] [review]: Looks good. I'm not sure why the need to fall back to jhbuild build, but OK. Thanks for the patch!
Pushed as https://git.gnome.org/browse/gnome-continuous/commit/?id=56bd9a2d2295d4c0bd0f85e0f62cb791a68c38ce