Skip to contentSkip to conversation

Add a libvirt build job.

PATCH In review Ian Campbell 3 participants 6 messages Mar 11, 2014 – Mar 21, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add a libvirt build job.

The ts-libvirt-build, sg-run-job and mfi-common changes have been tested in standalone mode.

The remaining changes are intended to introduce a libvirt push gate and have been tested as far as my limited ability to invoke cr-daily-branch by hand is able, but I am sure they are incomplete in some way or other.

Actually installing/running the result is left for another day.

Cc Jim Fehlig <[email protected]>
Cc Dario Faggioli <[email protected]>
---
 ap-common            |  5 ++++
 ap-fetch-version     |  4 +++
 ap-fetch-version-old |  5 ++++
 ap-print-url         |  3 ++
 ap-push              |  5 ++++
 cr-daily-branch      |  8 +++++
 cri-common           |  1 +
 mfi-common           | 10 +++++++
 sg-run-job           |  5 ++++
 ts-libvirt-build     | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 10 files changed, 130 insertions(+)
 create mode 100755 ts-libvirt-build
ap-common +5 -0
index cb0cfff..73bb90c 100644
@@ -33,6 +33,10 @@
 
 : ${TREEVCS_LINUX:=git}
 
+: ${TREE_LIBVIRT:=git://libvirt.org/libvirt.git}
+: ${PUSH_TREE_LIBVIRT:=$XENBITS:/home/xen/git/libvirt.git}
+: ${TREEVCS_LIBVIRT:=git}
+
 : ${TREE_LINUXFIRMWARE:=git://xenbits.xen.org/osstest/linux-firmware.git}
 : ${PUSH_TREE_LINUXFIRMWARE:=$XENBITS:/home/osstest/ext/linux-firmware.git}
 : ${UPSTREAM_TREE_LINUXFIRMWARE:=$GIT_KERNEL_ORG/pub/scm/linux/kernel/git/firmware/linux-firmware.git}
@@ -56,6 +60,7 @@ fi
 
 : ${LOCALREV_XEN:=daily-cron.$branch}
 : ${LOCALREV_LINUX:=daily-cron.$branch}
+: ${LOCALREV_LIBVIRT:=daily-cron.$branch}
 
 : ${TREEBASE_LINUX_XCP:=http://hg.uk.xensource.com/carbon/trunk/linux-2.6.27}
 
ap-fetch-version +4 -0
index a0a3b16..142ae5e 100755
@@ -69,6 +69,10 @@ linuxfirmware)
 	repo_tree_rev_fetch_git linuxfirmware \
 		$UPSTREAM_TREE_LINUXFIRMWARE master daily-cron.$branch
 	;;
+libvirt)
+	repo_tree_rev_fetch_git libvirt \
+		$TREE_LIBVIRT master $LOCALREV_LIBVIRT
+	;;
 osstest)
 	if [ "x$OSSTEST_USE_HEAD" != xy ] ; then
 	    git fetch $HOME/testing.git pretest:ap-fetch >&2
ap-fetch-version-old +5 -0
index 3772891..1f44e2a 100755
@@ -27,6 +27,7 @@ select_xenbranch
 
 : ${BASE_TAG_LINUX2639:=tested/2.6.39.x}
 : ${BASE_LOCALREV_LINUX:=daily-cron.$branch.old}
+: ${BASE_LOCALREV_LIBVIRT:=daily-cron.$branch.old}
 
 : ${BASE_TREE_QEMU_UPSTREAM:=${TREE_QEMU_UPSTREAM/\/staging\//\/}}
 
@@ -73,6 +74,10 @@ linuxfirmware)
 	repo_tree_rev_fetch_git linuxfirmware \
 		$TREE_LINUXFIRMWARE master daily-cron-old.$branch
 	;;
+libvirt)
+	repo_tree_rev_fetch_git libvirt \
+		$TREE_LIBVIRT master $BASE_LOCALREV_LIBVIRT
+	;;
 osstest)
 	if [ "x$OSSTEST_USE_HEAD" != xy ] ; then
 	    git fetch -f $HOME/testing.git incoming:ap-fetch
ap-print-url +3 -0
index f2812d0..2b55fce 100755
@@ -46,6 +46,9 @@ linux-2.6.39)
 linuxfirmware)
 	echo $UPSTREAM_TREE_LINUXFIRMWARE
 	;;
+libvirt)
+	echo $TREE_LIBVIRT
+	;;
 osstest)
 	echo none:;
 	;;
ap-push +5 -0
index dc0a166..af76ecc 100755
@@ -32,6 +32,7 @@ select_xenbranch
 TREE_LINUX=$PUSH_TREE_LINUX
 TREE_QEMU_UPSTREAM=$XENBITS:/home/xen/git/qemu-upstream-${xenbranch#xen-}.git
 TREE_XEN=$PUSH_TREE_XEN
+TREE_LIBVIRT=$PUSH_TREE_LIBVIRT
 
 if info_linux_tree "$branch"; then
 	cd $repos/linux
@@ -72,6 +73,10 @@ linux-xen-*)
         cd $repos/linux
         git push $TREE_LINUX $revision:refs/heads/$branch
         ;;
+libvirt)
+	cd $repos/libvirt
+	git push $TREE_LIBVIRT $revision:master
+	;;
 osstest)
 	git push $HOME/testing.git $revision:incoming
 	git push $XENBITS:/home/xen/git/osstest.git $revision:master
cr-daily-branch +8 -0
index 28ccc7e..12a1ee8 100755
@@ -133,6 +133,10 @@ if [ "x$REVISION_LINUX_ARM" = x ]; then
         export REVISION_LINUX_ARM
     fi
 fi
+if [ "x$REVISION_LIBVIRT" = x ]; then
+	determine_version REVISION_LIBVIRT libvirt
+	export REVISION_LIBVIRT
+fi
 if [ "x$REVISION_LINUXFIRMWARE" = x ]; then
 	determine_version REVISION_LINUXFIRMWARE linuxfirmware
         export REVISION_LINUXFIRMWARE
@@ -165,6 +169,10 @@ linuxfirmware)
 	realtree=linuxfirmware
 	NEW_REVISION=$REVISION_LINUXFIRMWARE
         ;;
+libvirt)
+	realtree=libvirt
+	NEW_REVISION=$REVISION_LIBVIRT
+	;;
 *)
 	NEW_REVISION=''
 	wantpush=false
cri-common +1 -0
index 497d4e3..f472927 100644
@@ -42,6 +42,7 @@ select_xenbranch () {
 	linux)			tree=linux;	xenbranch=xen-unstable ;;
 	linux-*)		tree=linux;	xenbranch=xen-unstable ;;
 	linuxfirmware)	    tree=linuxfirmware;	xenbranch=xen-unstable ;;
+	libvirt)		tree=libvirt;	xenbranch=xen-unstable ;;
 	osstest)		tree=osstest;	xenbranch=xen-unstable ;;
 	esac
 	if [ "x$tree" = xlinux ]; then
mfi-common +10 -0
index f84ee97..37444b3 100644
@@ -164,6 +164,16 @@ create_build_jobs () {
                 tree_linuxfirmware=$TREE_LINUXFIRMWARE                       \
                 revision_linuxfirmware=$REVISION_LINUXFIRMWARE
 
+    ./cs-job-create $flight build-$arch-libvirt build-libvirt                \
+                arch=$arch                                                   \
+        tree_xen=$TREE_XEN                                                   \
+                $RUNVARS $BUILD_RUNVARS $BUILD_LIBVIRT_RUNVARS $arch_runvars \
+                $suite_runvars                                               \
+                host_hostflags=$build_hostflags                              \
+                buildjob=${bfi}build-$arch                                   \
+                tree_libvirt=$TREE_LIBVIRT revision_libvirt=$REVISION_LIBVIRT\
+                ${TREEVCS_LIBVIRT:+treevcs_libvirt=}${TREEVCS_LIBVIRT}
+
     case "$arch" in
     armhf|arm64) continue;; # don't do any other kernel builds
     esac
sg-run-job +5 -0
index d894711..e3c6b00 100755
@@ -306,6 +306,7 @@ proc test-guest-nomigr {g} {
 
 proc need-hosts/build {} { return BUILD }
 proc need-hosts/build-kern {} { return BUILD }
+proc need-hosts/build-libvirt {} { return BUILD }
 
 proc run-job/build {} {
     run-ts . = ts-xen-build
@@ -315,6 +316,10 @@ proc run-job/build-kern {} {
     run-ts . = ts-kernel-build
 }
 
+proc run-job/build-libvirt {} {
+    run-ts . = ts-libvirt-build
+}
+
 proc prepare-build-host {} {
     global jobinfo
     run-ts broken = ts-hosts-allocate + host
ts-libvirt-build new file +84 -0

84 lines not on this page · raw message

Signature · 1 line
1.8.5.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Ian Campbell

The ts-libvirt-build, sg-run-job and mfi-common changes have been tested in standalone mode.

Awesome!

Quoted 2 lines

Actually installing/running the result is left for another day.

Do you have something, even half baked, about it already? Because, if you want, I can pick this up myself. In case you're fine with it, feel free to send me whatever you've got, and I'll use it as a starting point. Otherwise, I'll just start from scratch.

Quoted 4 lines
Cc Jim Fehlig <[email protected]>
Cc Dario Faggioli <[email protected]>

Regards,
Dario

Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
Quoted 9 lines · Dario Faggioli
Quoted 3 lines · Ian Campbell

The ts-libvirt-build, sg-run-job and mfi-common changes have been tested in standalone mode.

Awesome!

Quoted 2 lines

Actually installing/running the result is left for another day.

Do you have something, even half baked, about it already?

I've done nothing in this regard except vaguely think about it.

Quoted 15 lines

Because, if
you want, I can pick this up myself. In case you're fine with it, feel free to send me whatever you've got, and I'll use it as a starting point. Otherwise, I'll just start from scratch.

Quoted 4 lines
Cc Jim Fehlig <[email protected]>
Cc Dario Faggioli <[email protected]>

Regards,
Dario

Acked-by on v1 1/1
#3 lore raw
In reply to Ian Campbell

Ian Campbell writes ("[PATCH OSSTEST] Add a libvirt build job."):

Quoted 8 lines

The ts-libvirt-build, sg-run-job and mfi-common changes have been tested in standalone mode.

The remaining changes are intended to introduce a libvirt push gate and have been tested as far as my limited ability to invoke cr-daily-branch by hand is able, but I am sure they are incomplete in some way or other.

Actually installing/running the result is left for another day.

Ian.

#4 lore raw
Quoted 11 lines · Ian Jackson

Ian Campbell writes ("[PATCH OSSTEST] Add a libvirt build job."):

Quoted 8 lines

The ts-libvirt-build, sg-run-job and mfi-common changes have been tested in standalone mode.

The remaining changes are intended to introduce a libvirt push gate and have been tested as far as my limited ability to invoke cr-daily-branch by hand is able, but I am sure they are incomplete in some way or other.

Actually installing/running the result is left for another day.

Thanks, at some point I'll come over and pick your brains about exactly what needs to happen to deploy a new git tree and push gate...

(IOW I won't be pushing this right away)

Ian.

#5 lore raw

Ian Campbell writes ("Re: [PATCH OSSTEST] Add a libvirt build job."):

Quoted 3 lines · Ian Jackson
Quoted 2 lines

Ian Campbell writes ("[PATCH OSSTEST] Add a libvirt build job."):

Quoted 1 line

The ts-libvirt-build, sg-run-job and mfi-common changes have been test\

ed in

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

standalone mode.

The remaining changes are intended to introduce a libvirt push gate an\

d have

Quoted 1 line
Quoted 1 line
Quoted 1 line

been tested as far as my limited ability to invoke cr-daily-branch by \

hand is

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

able, but I am sure they are incomplete in some way or other.

Actually installing/running the result is left for another day.

Thanks, at some point I'll come over and pick your brains about exactly what needs to happen to deploy a new git tree and push gate...

Right. I'll walk you through it at some point.

Quoted 1 line

(IOW I won't be pushing this right away)

OK.

Thanks,
Ian.