Skip to contentSkip to conversation

OSSTEST: introduce a raisin build test

PATCH Superseded Stefano Stabellini 3 participants 10 messages Jun 22, 2015 – Jul 20, 2015

v7 of 8 Superseded Latest is v8 →

lore
Share & tools
lore
#0 lore raw

v7 cover OSSTEST: introduce a raisin build test

Hi all,

the first patch introduces a Raisin build job, meant to test Raisin itself. The second patch push-gates Raisin on successful builds.

Changes in v7:
- update raisin git url after http://marc.info/?l=xen-devel&m=143472251602803
- add a patch to push-gate raisin

Changes in v6:
- move divide to Osstest/BuildSupport.pm and rename it to divide_xen_build; use divide_xen_build in ts-raisin-build and ts-xen-build.

Changes in v5:
- remove setting DEFAULT_REVISION_RAISIN to master
- disable raisin when branch is not xen*
- do not overwrite raisin default variables unless both revision_* and tree_* are set of a given component

Changes in v4:
- introduce enable_raisin in mfi-common: only build raisin when building xen-unstable
- start off from the default raisin config, then append osstest config options to it
- do not write variable to the raisin config if the conrresponding runvar is not set
- remove TREE_OVMF and TREE_SEABIOS

Changes in v3:
- use $raisindir throughout ts-raisin-build
- do not specify ENABLED_COMPONENTS so that empty REVISION variables can be used to disable building a raisin component

Changes in v2:
- set revision_* variables in mfi-common;
- in ts-raisin-build set the *_REVISION config options based on the revision_* variables;
- in ts-raisin-build, call store_revision appropriately;
- divide the output in an hypervisor and a tools tarball.

Stefano Stabellini (2):
OSSTEST: introduce a raisin build test
OSSTest: push successful raisin builds

 Osstest/BuildSupport.pm |   48 +++++++++++++++++
 ap-common               |    5 ++
 ap-fetch-version        |    3 ++
 ap-fetch-version-old    |    5 ++
 ap-print-url            |    3 ++
 ap-push                 |    5 ++
 cr-daily-branch         |    8 +++
 cri-common              |    1 +
 mfi-common              |   41 +++++++++++++++
 sg-run-job              |    5 ++
 ts-raisin-build         |  133 +++++++++++++++++++++++++++++++++++++++++++++++
 ts-xen-build            |   44 +---------------
 12 files changed, 259 insertions(+), 42 deletions(-)
 create mode 100755 ts-raisin-build
#1 lore raw

PATCH v7 1/2 OSSTEST: introduce a raisin build test

---

Changes in v7:
- update raisin git url after http://marc.info/?l=xen-devel&m=143472251602803

Changes in v6:
- move divide to Osstest/BuildSupport.pm and rename it to divide_xen_build; use divide_xen_build in ts-raisin-build and ts-xen-build.

Changes in v5:
- remove setting DEFAULT_REVISION_RAISIN to master
- disable raisin when branch is not xen*
- do not overwrite raisin default variables unless both revision_* and tree_* are set of a given component

Changes in v4:
- introduce enable_raisin in mfi-common: only build raisin when building xen-unstable
- start off from the default raisin config, then append osstest config options to it
- do not write variable to the raisin config if the conrresponding runvar is not set
- remove TREE_OVMF and TREE_SEABIOS

Changes in v3:
- use $raisindir throughout ts-raisin-build
- do not specify ENABLED_COMPONENTS so that empty REVISION variables can be used to disable building a raisin component

Changes in v2:
- set revision_* variables in mfi-common;
- in ts-raisin-build set the *_REVISION config options based on the revision_* variables;
- in ts-raisin-build, call store_revision appropriately;
- divide the output in an hypervisor and a tools tarball.

---
 Osstest/BuildSupport.pm |   48 +++++++++++++++++
 ap-common               |    2 +
 mfi-common              |   41 +++++++++++++++
 sg-run-job              |    5 ++
 ts-raisin-build         |  133 +++++++++++++++++++++++++++++++++++++++++++++++
 ts-xen-build            |   44 +---------------
 6 files changed, 231 insertions(+), 42 deletions(-)
 create mode 100755 ts-raisin-build
Osstest/BuildSupport.pm +48 -0
index 933f6e1..76a3feb 100644
@@ -43,6 +43,10 @@ BEGIN {
                       xendist
                       $xendist
 
+                      divide_xen_build
+                      trapping
+                      die_if_fail
+
                       submodulefixup submodule_have submodule_find
 
                       );
@@ -84,6 +88,50 @@ sub xendist () {
 	($ho, 'xendist', '', $r{"buildjob"});
 }
 
+sub divide_xen_build ($$) {
+    my ($subdir, $postfix) = @_;
+    # Only move hv to xeninstall, so that we can have
+    # xenpolicy in tools tarball.
+    #
+    # The files inside boot/ after `make dist' are
+    # xen-$XEN_VERSION: Xen binary
+    # xen.gz/xen: symlink to xen-$XEN_VERSION
+    # xen-$MAJOR: symlink to xen-$XEN_VERSION
+    # xen-$MAJOR.$MINOR: symlink to xen-$XEN_VERSION
+    # xen-sym-$XEN_VERSION: Xen symbol
+    # xenpolicy-$XEN_VERSION: flask policy binary if xsm is enabled
+    #
+    # So the following snippet will leave xenpolicy* in
+    # install/boot and get packaged to tools tarball.
+    target_cmd_build($ho, 100, $builddir, <<END);
+        cd $subdir
+        mkdir xen$postfix
+        for f in *$postfix; do
+            mkdir -p \$f/lib
+        done
+        if test -d $postfix/boot; then
+            if test -f $postfix/boot/xen.gz || test -f $postfix/boot/xen; then
+                mkdir xen$postfix/boot
+                mvfiles=`find $postfix/boot -name 'xen[a-z]*' -prune -o -name 'xen*' -print`
+                mv \$mvfiles xen$postfix/boot/.
+            fi
+        fi
+END
+}
+
+our @probs;
+
+sub trapping ($) {
+    my ($sub) = @_;
+    my $tok= eval { $sub->(); 1; };
+    if (!$tok) { push @probs, $@; print STDERR "failure (trapped): $@\n"; }
+}
+
+sub die_if_fail () {
+    die "*** something failed:\n\n".(join "\n\n",@probs)."\n** something failed"
+        if @probs;
+}
+
 #----- submodules -----
 
 sub submodulefixup ($$$$) {
ap-common +2 -0
index 64749e3..6e1c472 100644
@@ -47,6 +47,8 @@
 # rumpsrc-related runvars needed only for old rumpuser-xen
 # (ie ones which need $bodges=1 in ts-rumpuserxen-build)
 
+: ${TREE_RAISIN:=git://xenbits.xen.org/raisin.git}
+
 : ${TREE_SEABIOS_UPSTREAM:=git://git.seabios.org/seabios.git}
 : ${PUSH_TREE_SEABIOS:=$XENBITS:/home/xen/git/osstest/seabios.git}
 : ${BASE_TREE_SEABIOS:=git://xenbits.xen.org/osstest/seabios.git}
mfi-common +41 -0

53 lines not on this page · raw message

sg-run-job +5 -0
index eae159d..449118d 100755
@@ -346,6 +346,7 @@ proc need-hosts/build {} { return BUILD }
 proc need-hosts/build-kern {} { return BUILD }
 proc need-hosts/build-libvirt {} { return BUILD }
 proc need-hosts/build-rumpuserxen {} { return BUILD }
+proc need-hosts/build-raisin {} { return BUILD }
 
 proc run-job/build {} {
     run-ts . = ts-xen-build
@@ -364,6 +365,10 @@ proc run-job/build-rumpuserxen {} {
     run-ts . = ts-xen-build + host tools
 }
 
+proc run-job/build-raisin {} {
+    run-ts . = ts-raisin-build
+}
+
 proc prepare-build-host {} {
     global jobinfo
     run-ts broken = ts-hosts-allocate + host
ts-raisin-build new file +133 -0

133 lines not on this page · raw message

ts-xen-build +2 -42

60 lines not on this page · raw message

Signature · 1 line
1.7.10.4
#2 lore raw
Quoted 1 line · Stefano Stabellini

In general I'm very suspicious of a 200 line patch with _no_ commit message at all.

What about the details of the stuff around overriding the versions iff tree and revision are set etc and why that matters and how the two projects therefore interact wrt selecting what to build? I remember discussing this at length either IRL or in older versions of the thread and we both know it wasn't trivial to arrive at how this should be done, but I _already_ can't remember how we reached this point or why and that is information which really needs to be recorded so it can be referred to later when we wonder why it does this.

The scope is also missing, i.e. this is currently just a straight raisin build test, and the results are not consumed by anything. This is important because of all the stuff about splitting up the dist dir and incremental builds which we discussed means that as it stands this test step is not producing build artefacts suitable as an input for actual tests.

I expect there's also stuff in the intra-version changelog which actually belongs in the main changelog, such as why you are refactoring certain things into BuildSupport.pm, which deserves some sort of brief mention IMHO.

[...]

Quoted 4 lines

Changes in v3:
- use $raisindir throughout ts-raisin-build
- do not specify ENABLED_COMPONENTS so that empty REVISION variables can be used to disable building a raisin component

I see we do again in the code below, which I suspect was deliberate and based on some discussion, but it's not mentioned in the Changes in v4+ and since the changelog doesn't explain anything I can't even begin to guess why or how we arrived at this point.

[...]

ts-raisin-build line 77

Quoted 4 lines
ts-raisin-build new file +4 -0
+sub build () {
+    target_cmd_root($ho, <<END);
+        cd $raisindir
+        ./raise -y install-builddep

If two of these happen to run in parallel (build machines can be shared) then one or the other risks timing out on the underlying dpkg lock waiting for the other, since the wait might be arbitrarily long depending on what is going on.

It also risks other builds happening in an environment which differs from one build to the next (if this happened to run in the middle) or even things changing while a build is happening.

This is why all build dependencies are installed from ts-xen-build-prep, that step is run once for each build host as it is installed. This does unfortunately mean that I think we can't take advantage of raisin's tracking of necessary build dependencies, but at least it will be checking things for us.

Ian.

#3 lore raw
Quoted 22 lines · Ian Campbell
Quoted 1 line · Stefano Stabellini

In general I'm very suspicious of a 200 line patch with _no_ commit message at all.

What about the details of the stuff around overriding the versions iff tree and revision are set etc and why that matters and how the two projects therefore interact wrt selecting what to build? I remember discussing this at length either IRL or in older versions of the thread and we both know it wasn't trivial to arrive at how this should be done, but I _already_ can't remember how we reached this point or why and that is information which really needs to be recorded so it can be referred to later when we wonder why it does this.

The scope is also missing, i.e. this is currently just a straight raisin build test, and the results are not consumed by anything. This is important because of all the stuff about splitting up the dist dir and incremental builds which we discussed means that as it stands this test step is not producing build artefacts suitable as an input for actual tests.

Quoted 6 lines

I expect there's also stuff in the intra-version changelog which actually belongs in the main changelog, such as why you are refactoring certain things into BuildSupport.pm, which deserves some sort of brief mention IMHO.

[...]

I didn't do a good job with the commit message. I'll try to track down the old discussion and write some more details.

Quoted 25 lines
Quoted 4 lines

Changes in v3:
- use $raisindir throughout ts-raisin-build
- do not specify ENABLED_COMPONENTS so that empty REVISION variables can be used to disable building a raisin component

I see we do again in the code below, which I suspect was deliberate and based on some discussion, but it's not mentioned in the Changes in v4+ and since the changelog doesn't explain anything I can't even begin to guess why or how we arrived at this point.

[...]

ts-raisin-build line 77

Quoted 4 lines
ts-raisin-build new file +4 -0
+sub build () {
+    target_cmd_root($ho, <<END);
+        cd $raisindir
+        ./raise -y install-builddep

If two of these happen to run in parallel (build machines can be shared) then one or the other risks timing out on the underlying dpkg lock waiting for the other, since the wait might be arbitrarily long depending on what is going on.

It also risks other builds happening in an environment which differs from one build to the next (if this happened to run in the middle) or even things changing while a build is happening.

Quoted 5 lines

This is why all build dependencies are installed from ts-xen-build-prep, that step is run once for each build host as it is installed. This does unfortunately mean that I think we can't take advantage of raisin's tracking of necessary build dependencies, but at least it will be checking things for us.

It is fine for OSSTest not use install-builddep. I think that the best way for OSSTest to use Raisin would be to call raise in ts-xen-build-prep to list the dependencies and install them from there.

But here we are testing Raisin itself so I think that in this context it is actually important to run install-builddep. I don't think it would cause any troubles to other builds happening in parallel because the build dependencies of those builds would be installed by ts-xen-build-prep beforehand, that I was told is run before any build jobs? If I am wrong, then we have a problem.

Otherwise is there a way to guarantee that only one raisin build happen simultaneously?

Given that the series is already at v7, I would prefer to remove the call to install-builddep, even though I think it is important, rather than make substantial modifications. However, if I do remove the call to install-builddep from ts-raisin-build, I would have to install any missing build dependencies somewhere else. Where would that be? In ts-xen-build-prep? Is that script even called for non-xen build jobs?

#4 lore raw

Ian -- various questions for you here.

Quoted 7 lines · Stefano Stabellini
Quoted 3 lines · Ian Campbell
Quoted 1 line · Stefano Stabellini

[...]

I didn't do a good job with the commit message. I'll try to track down the old discussion and write some more details.

Thanks!

Quoted 31 lines
Quoted 25 lines
Quoted 4 lines

Changes in v3:
- use $raisindir throughout ts-raisin-build
- do not specify ENABLED_COMPONENTS so that empty REVISION variables can be used to disable building a raisin component

I see we do again in the code below, which I suspect was deliberate and based on some discussion, but it's not mentioned in the Changes in v4+ and since the changelog doesn't explain anything I can't even begin to guess why or how we arrived at this point.

[...]

ts-raisin-build line 77

Quoted 4 lines
ts-raisin-build new file +4 -0
+sub build () {
+    target_cmd_root($ho, <<END);
+        cd $raisindir
+        ./raise -y install-builddep

If two of these happen to run in parallel (build machines can be shared) then one or the other risks timing out on the underlying dpkg lock waiting for the other, since the wait might be arbitrarily long depending on what is going on.

It also risks other builds happening in an environment which differs from one build to the next (if this happened to run in the middle) or even things changing while a build is happening.

Quoted 5 lines

This is why all build dependencies are installed from ts-xen-build-prep, that step is run once for each build host as it is installed. This does unfortunately mean that I think we can't take advantage of raisin's tracking of necessary build dependencies, but at least it will be checking things for us.

Quoted 3 lines

It is fine for OSSTest not use install-builddep. I think that the best way for OSSTest to use Raisin would be to call raise in ts-xen-build-prep to list the dependencies and install them from there.

Unfortunately ts-xen-build-prep will not have access to the repo, since it won't be cloned. Also when reusing a host (which happens for builds) I think this step is skipped (Ian J: can you confirm or deny that?)

Quoted 6 lines

But here we are testing Raisin itself so I think that in this context it is actually important to run install-builddep. I don't think it would cause any troubles to other builds happening in parallel because the build dependencies of those builds would be installed by ts-xen-build-prep beforehand, that I was told is run before any build jobs? If I am wrong, then we have a problem.

I think there are two problems, one is that install-builddep will take the apt/dpkg lock, which will be shared by any other invocations -- making the timeout hard to decide upon (since it will pipeline things).

Second if install-builddep did install something extra due to some change in raisin.git, for example, then some jobs would see new build deps arrive half way through, or subsequent tests of older branches might see something installed which wouldn't have been before.

Is there a check-builddep? That's the thing I would suggest we run here, so we get an explicit failure.

Quoted 2 lines

Otherwise is there a way to guarantee that only one raisin build happen simultaneously?

Ian?

I suspect we don't want this,

Quoted 7 lines

Given that the series is already at v7, I would prefer to remove the call to install-builddep, even though I think it is important, rather than make substantial modifications. However, if I do remove the call to install-builddep from ts-raisin-build, I would have to install any missing build dependencies somewhere else. Where would that be? In ts-xen-build-prep? Is that script even called for non-xen build jobs?

In ts-xen-build-prep, I think.

Ian.

#5 lore raw

Ian Campbell writes ("Re: [PATCH v7 1/2] OSSTEST: introduce a raisin build test"):

Quoted 3 lines

Unfortunately ts-xen-build-prep will not have access to the repo, since it won't be cloned. Also when reusing a host (which happens for builds) I think this step is skipped (Ian J: can you confirm or deny that?)

Indeed. It is ts-xen-build-prep which marks a shared build host as `ready', when it is done. Near the top of ts-xen-build-prep (and ts-host-install) you can see

    exit 0 if $ho->{SharedReady};
Quoted 3 lines

I think there are two problems, one is that install-builddep will take the apt/dpkg lock, which will be shared by any other invocations -- making the timeout hard to decide upon (since it will pipeline things).

Worse, unless we took special measures (like target_install_packages does) we would be relying on the underlying apt/dpkg lock, which apt and dpkg try to lock in a non-waiting mode: that is, if the lock is already held they simply fail.

Quoted 4 lines

Second if install-builddep did install something extra due to some change in raisin.git, for example, then some jobs would see new build deps arrive half way through, or subsequent tests of older branches might see something installed which wouldn't have been before.

Indeed, that would be bad.

Quoted 2 lines

Is there a check-builddep? That's the thing I would suggest we run here, so we get an explicit failure.

That would be best.

Quoted 4 lines
Quoted 2 lines

Otherwise is there a way to guarantee that only one raisin build happen simultaneously?

Ian?

It would be possible to completely avoid sharing the build host. That would be quite wasteful - particularly as the raisin build is likely to be able to otherwise share not just the effort of installing the host, but also a ccache.

Quoted 8 lines
Quoted 6 lines

Given that the series is already at v7, I would prefer to remove the call to install-builddep, even though I think it is important, rather than make substantial modifications. However, if I do remove the call to install-builddep from ts-raisin-build, I would have to install any missing build dependencies somewhere else. Where would that be? In ts-xen-build-prep? Is that script even called for non-xen build jobs?

In ts-xen-build-prep, I think.

ts-xen-build-prep is slightly misnamed. It is run for all build jobs. (Or, relied on as having been run, for a shared host.)

Ian.

#6 lore raw

PATCH v7 2/2 OSSTest: push successful raisin builds

In reply to Stefano Stabellini

Determine the most recent raisin revision that needs to be tested, by comparing with the already tested xen-tested-master branch. Push to raisin.git:xen-tested-master when the build is successful.

---
 ap-common            |    3 +++
 ap-fetch-version     |    3 +++
 ap-fetch-version-old |    5 +++++
 ap-print-url         |    3 +++
 ap-push              |    5 +++++
 cr-daily-branch      |    8 ++++++++
 cri-common           |    1 +
 7 files changed, 28 insertions(+)
ap-common +3 -0
index 6e1c472..34613bf 100644
@@ -48,6 +48,8 @@
 # (ie ones which need $bodges=1 in ts-rumpuserxen-build)
 
 : ${TREE_RAISIN:=git://xenbits.xen.org/raisin.git}
+: ${PUSH_TREE_RAISIN:=$XENBITS:/home/xen/git/raisin.git}
+: ${BASE_TREE_RAISIN:=$TREE_RAISIN}
 
 : ${TREE_SEABIOS_UPSTREAM:=git://git.seabios.org/seabios.git}
 : ${PUSH_TREE_SEABIOS:=$XENBITS:/home/xen/git/osstest/seabios.git}
@@ -84,6 +86,7 @@ fi
 : ${LOCALREV_RUMPUSERXEN:=daily-cron.$branch}
 : ${LOCALREV_SEABIOS:=daily-cron.$branch}
 : ${LOCALREV_OVMF:=daily-cron.$branch}
+: ${LOCALREV_RAISIN:=daily-cron.$branch}
 
 : ${TREEBASE_LINUX_XCP:=http://hg.uk.xensource.com/carbon/trunk/linux-2.6.27}
 
ap-fetch-version +3 -0
index 33aaf00..fffbbcf 100755
@@ -80,6 +80,9 @@ libvirt)
 rumpuserxen)
 	repo_tree_rev_fetch_git rumpuserxen \
 		$TREE_RUMPUSERXEN master $LOCALREV_RUMPUSERXEN
+raisin)
+	repo_tree_rev_fetch_git raisin \
+		$TREE_RAISIN master $LOCALREV_RAISIN
 	;;
 seabios)
 	repo_tree_rev_fetch_git seabios \
ap-fetch-version-old +5 -0
index 0b4739b..9a2544d 100755
@@ -29,6 +29,7 @@ select_xenbranch
 : ${BASE_LOCALREV_LINUX:=daily-cron.$branch.old}
 : ${BASE_LOCALREV_LIBVIRT:=daily-cron.$branch.old}
 : ${BASE_LOCALREV_RUMPUSERXEN:=daily-cron.$branch.old}
+: ${BASE_LOCALREV_RAISIN:=daily-cron.$branch.old}
 : ${BASE_LOCALREV_SEABIOS:=daily-cron.$branch.old}
 : ${BASE_LOCALREV_OVMF:=daily-cron.$branch.old}
 
@@ -89,6 +90,10 @@ rumpuserxen)
 	repo_tree_rev_fetch_git rumpuserxen \
 		$BASE_TREE_RUMPUSERXEN xen-tested-master $BASE_LOCALREV_RUMPUSERXEN
 	;;
+raisin)
+	repo_tree_rev_fetch_git raisin \
+		$BASE_TREE_RAISIN xen-tested-master $BASE_LOCALREV_RAISIN
+	;;
 seabios)
 	repo_tree_rev_fetch_git seabios \
 		$BASE_TREE_SEABIOS xen-tested-master $BASE_LOCALREV_SEABIOS
ap-print-url +3 -0
index 3db2375..e999b65 100755
@@ -55,6 +55,9 @@ libvirt)
 rumpuserxen)
 	echo $TREE_RUMPUSERXEN
 	;;
+raisin)
+	echo $TREE_RAISIN
+	;;
 seabios)
 	echo $TREE_SEABIOS_UPSTREAM
 	;;
ap-push +5 -0
index c141464..c869a8b 100755
@@ -37,6 +37,7 @@ TREE_LIBVIRT=$PUSH_TREE_LIBVIRT
 TREE_RUMPUSERXEN=$PUSH_TREE_RUMPUSERXEN
 TREE_SEABIOS=$PUSH_TREE_SEABIOS
 TREE_OVMF=$PUSH_TREE_OVMF
+TREE_RAISIN=$PUSH_TREE_RAISIN
 
 if info_linux_tree "$branch"; then
 	cd $repos/linux
@@ -89,6 +90,10 @@ rumpuserxen)
 	cd $repos/rumpuserxen
 	git push $TREE_RUMPUSERXEN $revision:xen-tested-master
 	;;
+raisin)
+	cd $repos/raisin
+	git push $TREE_RAISIN $revision:xen-tested-master
+	;;
 seabios)
 	cd $repos/seabios
 	git push $TREE_SEABIOS $revision:refs/heads/xen-tested-master
cr-daily-branch +8 -0
index c7d1071..0b7bb78 100755
@@ -164,6 +164,10 @@ if [ "x$REVISION_RUMPUSERXEN" = x ]; then
 	determine_version REVISION_RUMPUSERXEN rumpuserxen RUMPUSERXEN
 	export REVISION_RUMPUSERXEN
 fi
+if [ "x$REVISION_RAISIN" = x ]; then
+	determine_version REVISION_RAISIN raisin RAISIN
+	export REVISION_RAISIN
+fi
 if [ "x$REVISION_LINUXFIRMWARE" = x ]; then
 	determine_version REVISION_LINUXFIRMWARE linuxfirmware LINUXFIRMWARE
         export REVISION_LINUXFIRMWARE
@@ -209,6 +213,10 @@ rumpuserxen)
 	export REVISION_LINUX_OLD=disable
 	export REVISION_LIBVIRT=disable
 	;;
+raisin)
+	realtree=raisin
+	NEW_REVISION=$REVISION_RAISIN
+	;;
 seabios)
 	realtree=seabios
 	NEW_REVISION=$REVISION_SEABIOS
cri-common +1 -0
index ad44546..c091622 100644
@@ -70,6 +70,7 @@ select_xenbranch () {
 	linuxfirmware)	    tree=linuxfirmware;	xenbranch=xen-unstable ;;
 	libvirt)		tree=libvirt;	xenbranch=xen-unstable ;;
 	rumpuserxen)	      tree=rumpuserxen; xenbranch=xen-unstable ;;
+	raisin)			tree=raisin;	xenbranch=xen-unstable ;;
 	seabios)		tree=seabios;	xenbranch=xen-unstable ;;
 	ovmf)			tree=ovmf;	xenbranch=xen-unstable ;;
 	osstest)		tree=osstest;	xenbranch=xen-unstable ;;
Signature · 1 line
1.7.10.4
#7 lore raw

Re: [PATCH v7 2/2] OSSTest: push successful raisin builds

Quoted 3 lines · Stefano Stabellini

Determine the most recent raisin revision that needs to be tested, by comparing with the already tested xen-tested-master branch. Push to raisin.git:xen-tested-master when the build is successful.

The mechanics here look right to me, but do you perhaps want to adopt the staging->master push gate scheme used in xen.git etc? This would make master (the default thing which users use) be something which has undergone at least some amount of testing. We typically use xen-tested-master for 3rd party things where the output of the test gate is mainly just for osstest's bookkeeping and not really aimed at actually users.

Oh, one thing you missed is adding raisin to the default $BRANCHES at the top of cr-for-branches, without that there will be no raisin flights run and therefore no push.

You might also want to considering all non-raisin build and test jobs from the raisin flight, since they are a waste of time until the raisin build results are actually used for something. You can filter tests in make-flight:job_create_test_filter_callback and for jobs you will need my "mfi-common: Allow make-*flight to filter the set of build jobs to include" patch which adds job_create_build_filter_callback.

Ian.

#8 lore raw

Re: [PATCH v7 2/2] OSSTest: push successful raisin builds

Quoted 5 lines · Ian Campbell
Quoted 3 lines · Stefano Stabellini

Determine the most recent raisin revision that needs to be tested, by comparing with the already tested xen-tested-master branch. Push to raisin.git:xen-tested-master when the build is successful.

Quoted 7 lines

The mechanics here look right to me, but do you perhaps want to adopt the staging->master push gate scheme used in xen.git etc? This would make master (the default thing which users use) be something which has undergone at least some amount of testing. We typically use xen-tested-master for 3rd party things where the output of the test gate is mainly just for osstest's bookkeeping and not really aimed at actually users.

OK

Quoted 3 lines

Oh, one thing you missed is adding raisin to the default $BRANCHES at the top of cr-for-branches, without that there will be no raisin flights run and therefore no push.

OK

Quoted 6 lines

You might also want to considering all non-raisin build and test jobs from the raisin flight, since they are a waste of time until the raisin build results are actually used for something. You can filter tests in make-flight:job_create_test_filter_callback and for jobs you will need my "mfi-common: Allow make-*flight to filter the set of build jobs to include" patch which adds job_create_build_filter_callback.

I filtered all jobs in make-flight (there are no jobs with raisin yet). We can add a filter on the builds later?

#9 lore raw

Re: [PATCH v7 2/2] OSSTest: push successful raisin builds

Quoted 31 lines · Stefano Stabellini
Quoted 5 lines · Ian Campbell
Quoted 3 lines · Stefano Stabellini

Determine the most recent raisin revision that needs to be tested, by comparing with the already tested xen-tested-master branch. Push to raisin.git:xen-tested-master when the build is successful.

Quoted 7 lines

The mechanics here look right to me, but do you perhaps want to adopt the staging->master push gate scheme used in xen.git etc? This would make master (the default thing which users use) be something which has undergone at least some amount of testing. We typically use xen-tested-master for 3rd party things where the output of the test gate is mainly just for osstest's bookkeeping and not really aimed at actually users.

OK

Quoted 3 lines

Oh, one thing you missed is adding raisin to the default $BRANCHES at the top of cr-for-branches, without that there will be no raisin flights run and therefore no push.

OK

Quoted 6 lines

You might also want to considering all non-raisin build and test jobs from the raisin flight, since they are a waste of time until the raisin build results are actually used for something. You can filter tests in make-flight:job_create_test_filter_callback and for jobs you will need my "mfi-common: Allow make-*flight to filter the set of build jobs to include" patch which adds job_create_build_filter_callback.

Quoted 2 lines

I filtered all jobs in make-flight (there are no jobs with raisin yet). We can add a filter on the builds later?

Sure.