OSSTEST: introduce a raisin build test
PATCH v4 1/1 OSSTEST: introduce a raisin build test
---
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.
--- ap-common | 3 + mfi-common | 36 +++++++++++ sg-run-job | 5 ++ ts-raisin-build | 186 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 230 insertions(+) create mode 100755 ts-raisin-build
ap-common +3 -0
@@ -47,6 +47,9 @@ # 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/people/sstabellini/raisin.git} +: ${DEFAULT_REVISION_RAISIN:=master} + : ${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 +36 -0
@@ -148,6 +148,17 @@ create_build_jobs () { *) enable_ovmf=true; esac + case "$xenbranch" in + xen-3.*-testing) enable_raisin=false;; + xen-4.0-testing) enable_raisin=false;; + xen-4.1-testing) enable_raisin=false;; + xen-4.2-testing) enable_raisin=false;; + xen-4.3-testing) enable_raisin=false;; + xen-4.4-testing) enable_raisin=false;; + xen-4.5-testing) enable_raisin=false;; + *) enable_raisin=true; + esac + eval " arch_runvars=\"\$ARCH_RUNVARS_$arch\" "
@@ -215,6 +226,31 @@ create_build_jobs () { fi + if [ "x$REVISION_RAISIN" != xdisable ] && [ "$enable_raisin" = "true" ]; then + + ./cs-job-create $flight build-$arch-raisin build-raisin \ + arch=$arch \ + tree_xen=$TREE_XEN \ + $RUNVARS $BUILD_RUNVARS $BUILD_RAISIN_RUNVARS $arch_runvars \ + $suite_runvars \ + host_hostflags=$build_hostflags \ + buildjob=${bfi}build-$arch \ + tree_raisin=$TREE_RAISIN \ + tree_qemuu=$TREE_QEMU_UPSTREAM \ + tree_qemu=$TREE_QEMU \ + tree_seabios=$TREE_SEABIOS \ + tree_libvirt=$TREE_LIBVIRT \ + tree_ovmf=$TREE_OVMF \ + revision_xen=$REVISION_XEN \ + revision_qemu=$REVISION_QEMU \ + revision_qemuu=$REVISION_QEMU_UPSTREAM \ + revision_seabios=$REVISION_SEABIOS \ + revision_ovmf=$REVISION_OVMF \ + revision_libvirt=$REVISION_LIBVIRT \ + revision_raisin=${REVISION_RAISIN:-${DEFAULT_REVISION_RAISIN}}\ + + fi + if branch_wants_rumpkernel_tests; then case $arch in
sg-run-job +5 -0
@@ -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 +186 -0
186 lines not on this page · raw message
Signature · 1 line
1.7.10.4
Quoted 37 lines · Stefano Stabellini
Signed-off-by Stefano Stabellini <[email protected]>---
Changes in v4:
- introduceenable_raisinin 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
- removeTREE_OVMFandTREE_SEABIOSChanges in v3:
- use $raisindir throughout ts-raisin-build
- do not specifyENABLED_COMPONENTSso that empty REVISION variables can be used to disable building a raisin componentChanges in v2:
- set revision_* variables in mfi-common;
- in ts-raisin-build set the*_REVISIONconfig options based on the revision_* variables;
- in ts-raisin-build, callstore_revisionappropriately;
- divide the output in an hypervisor and a tools tarball.--- ap-common | 3 + mfi-common | 36 +++++++++++ sg-run-job | 5 ++ ts-raisin-build | 186 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 230 insertions(+) create mode 100755 ts-raisin-buildap-common +0
-0
ap-common line 51
Quoted 5 lines
ap-common +2
-0@@ -47,6 +47,9 @@ # 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/people/sstabellini/raisin.git} +: ${DEFAULT_REVISION_RAISIN:=master}
If master is what you get if you just do git clone URL then I think you can omit this and its usage in mfi-common, build_clone will see the empty revision_xen and accept the default from the clone.
Otherwise I think this script, together with the corresponding raisin change does the right thing.
The next step towards having this actually used by the automated tests would be to add cases for raisin to ap-fetch-version and ap-fetch-version-old. Those should return the "new version of raisin to be tested" and "the already tested version of raisin for other branches to use" respectively.
Then you need to add some code to cr-daily-branch which calls "determine_version REVISION_RAISIN raisin RAISIN" if REVISION_RAISIN is not set, e.g. like it does for libvirt.
That should be enough to get xen-unstable flights doing something useful with this new test case, I think.
You can more closely emulate the automated environment by using cr-daily-branch instead of make-flight directly. The easiest way is to use the helper script. e.g.
./standalone make-flight xen-unstable
Use -f NAME to name the flight something other than "standalone", which can be useful if you want to generate and compare multiple flights.
Have you seen ./mg-show-flight-runvars <FLIGHT_NAME>? It shows you the result of make-flight.
A few thoughts:
We currently have build jobs for both normal and the XSM case. Duplicating the raisin jobs is also going to duplicate the build for everything else it builds, which might be wasteful?
More generally this now ties everything together into one build job. Currently while bisecting osstest can try and reuse e.g. the xen job with a different libvirt build, which saves some time. I think this is an unavoidable consequence of how raisin is designed to work and we'll just have to suck it up.
The only alternative I can see would be for raisin to have an "incremental" mode where it can be pointed at the results of a previous raisin build and build additional components based on that. I suspect you don't want this complexity in raisin though.
Quoted 7 lines
mfi-common +0
-0@@ -148,6 +148,17 @@ create_build_jobs () { *) enable_ovmf=true; esac
mfi-common create_build_jobs () { · line 159
Quoted 10 lines
mfi-common +9
-0+ case "$xenbranch" in + xen-3.*-testing) enable_raisin=false;; + xen-4.0-testing) enable_raisin=false;; + xen-4.1-testing) enable_raisin=false;; + xen-4.2-testing) enable_raisin=false;; + xen-4.3-testing) enable_raisin=false;; + xen-4.4-testing) enable_raisin=false;; + xen-4.5-testing) enable_raisin=false;; + *) enable_raisin=true;
Hr, $xenbranch==xen-unstable for a bunch of other flights too, e.g. ovmf and seabios.
Eventually this is what we would want, but for now might it be better to test $branch so we test exactly with the xen-unstable flight?
($branch == the actual thing under test, $xenbranch == the version of Xen to use when testing $branch, which may differ if $branch is not a Xen of some sort)
Ian Campbell writes ("Re: [PATCH v4] OSSTEST: introduce a raisin build test"):
Quoted 1 line
More generally this now ties everything together into one build job.
I hadn't spotted that.
I think this is very undesirable.
Quoted 4 lines
Currently while bisecting osstest can try and reuse e.g. the xen job with a different libvirt build, which saves some time. I think this is an unavoidable consequence of how raisin is designed to work and we'll just have to suck it up.
It's not just that. It also means that failures to build different components all get smashed into the same test step failure. So the osstest reports and the information in the database will lose the knowledge of whilch component failed to build.
Quoted 4 lines
The only alternative I can see would be for raisin to have an "incremental" mode where it can be pointed at the results of a previous raisin build and build additional components based on that. I suspect you don't want this complexity in raisin though.
If raisin doesn't want to support building individual components based on the outputs of previous builds, then I think we need to have osstest continue to build things the way it currently does, at least for the main tests.
It's fine of course to have an additional test to check that raisin works.
Ian.
Quoted 41 lines · Ian Campbell
Quoted 40 lines · Stefano Stabellini
Signed-off-by Stefano Stabellini <[email protected]>---
Changes in v4:
- introduceenable_raisinin 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
- removeTREE_OVMFandTREE_SEABIOSChanges in v3:
- use $raisindir throughout ts-raisin-build
- do not specifyENABLED_COMPONENTSso that empty REVISION variables can be used to disable building a raisin componentChanges in v2:
- set revision_* variables in mfi-common;
- in ts-raisin-build set the*_REVISIONconfig options based on the revision_* variables;
- in ts-raisin-build, callstore_revisionappropriately;
- divide the output in an hypervisor and a tools tarball.--- ap-common | 3 + mfi-common | 36 +++++++++++ sg-run-job | 5 ++ ts-raisin-build | 186 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 230 insertions(+) create mode 100755 ts-raisin-buildap-common +0
-0@@ -47,6 +47,9 @@ # rumpsrc-related runvars needed only for old rumpuser-xen # (ie ones which need $bodges=1 in ts-rumpuserxen-build)
Quoted 6 lines
ap-common line 51
Quoted 2 lines
ap-common +2
-0+: ${TREE_RAISIN:=git://xenbits.xen.org/people/sstabellini/raisin.git} +: ${DEFAULT_REVISION_RAISIN:=master}If master is what you get if you just do git clone URL then I think you can omit this and its usage in mfi-common,
build_clonewill see the emptyrevision_xenand accept the default from the clone.
OK
Quoted 25 lines
Otherwise I think this script, together with the corresponding raisin change does the right thing.
The next step towards having this actually used by the automated tests would be to add cases for raisin to ap-fetch-version and ap-fetch-version-old. Those should return the "new version of raisin to be tested" and "the already tested version of raisin for other branches to use" respectively.
Then you need to add some code to cr-daily-branch which calls "
determine_versionREVISION_RAISINraisin RAISIN" ifREVISION_RAISINis not set, e.g. like it does for libvirt.That should be enough to get xen-unstable flights doing something useful with this new test case, I think.
You can more closely emulate the automated environment by using cr-daily-branch instead of make-flight directly. The easiest way is to use the helper script. e.g.
./standalone make-flight xen-unstable
Use -f NAME to name the flight something other than "standalone", which can be useful if you want to generate and compare multiple flights.
Quoted 8 lines
Have you seen ./mg-show-flight-runvars <
FLIGHT_NAME>? It shows you the result of make-flight.A few thoughts:
We currently have build jobs for both normal and the XSM case. Duplicating the raisin jobs is also going to duplicate the build for everything else it builds, which might be wasteful?
We could disable the raisin build if [ enable_xsm = "true" ] ?
Quoted 5 lines
More generally this now ties everything together into one build job. Currently while bisecting osstest can try and reuse e.g. the xen job with a different libvirt build, which saves some time. I think this is an unavoidable consequence of how raisin is designed to work and we'll just have to suck it up.
It is possible to just build xen first and libvirt later, as long as you reuse the same raisin environment, or you install xen on the system first.
Quoted 4 lines
The only alternative I can see would be for raisin to have an "incremental" mode where it can be pointed at the results of a previous raisin build and build additional components based on that. I suspect you don't want this complexity in raisin though.
I don't want to support the case where raisin is asked to build a component based on a previous raisin build at an alternative location. But building Xen first, then going back to the same raisin directory and building libvirt later is fine.
Quoted 21 lines
Quoted 7 lines
mfi-common +0
-0@@ -148,6 +148,17 @@ create_build_jobs () { *) enable_ovmf=true; esacmfi-common create_build_jobs () { · line 159
Quoted 10 lines
mfi-common +9
-0+ case "$xenbranch" in + xen-3.*-testing) enable_raisin=false;; + xen-4.0-testing) enable_raisin=false;; + xen-4.1-testing) enable_raisin=false;; + xen-4.2-testing) enable_raisin=false;; + xen-4.3-testing) enable_raisin=false;; + xen-4.4-testing) enable_raisin=false;; + xen-4.5-testing) enable_raisin=false;; + *) enable_raisin=true;Hr, $xenbranch==xen-unstable for a bunch of other flights too, e.g. ovmf and seabios.
Quoted 6 lines
Eventually this is what we would want, but for now might it be better to test $branch so we test exactly with the xen-unstable flight?
($branch == the actual thing under test, $xenbranch == the version of Xen to use when testing $branch, which may differ if $branch is not a Xen of some sort)
OK
Quoted 5 lines · Stefano Stabellini
Quoted 3 lines
We currently have build jobs for both normal and the XSM case. Duplicating the raisin jobs is also going to duplicate the build for everything else it builds, which might be wasteful?
We could disable the raisin build if [
enable_xsm= "true" ] ?
That isn't necessary now. I was thinking about the future when we may want to switch to raisin for building everything (i.e. removing the current build jobs).
Quoted 9 lines
Quoted 5 lines
More generally this now ties everything together into one build job. Currently while bisecting osstest can try and reuse e.g. the xen job with a different libvirt build, which saves some time. I think this is an unavoidable consequence of how raisin is designed to work and we'll just have to suck it up.
It is possible to just build xen first and libvirt later, as long as you reuse the same raisin environment, or you install xen on the system first.
I don't think we can install Xen, since this will be a potentially shared build host.
Quoted 9 lines
Quoted 4 lines
The only alternative I can see would be for raisin to have an "incremental" mode where it can be pointed at the results of a previous raisin build and build additional components based on that. I suspect you don't want this complexity in raisin though.
I don't want to support the case where raisin is asked to build a component based on a previous raisin build at an alternative location. But building Xen first, then going back to the same raisin directory and building libvirt later is fine.
Would a separate clone of the same raisin version with some sort of "dist" directory transported over be sufficient and supportable? Or are raisin's outputs not in one place and easily transportable?
i.e. today build-$ARCH-libvirt picks up the dist.tar.gz files from the corresponding build-$ARCH, unpacks them and asks libvirt to build against that tree.
Ian.
Quoted 35 lines · Ian Campbell
Quoted 5 lines · Stefano Stabellini
Quoted 3 lines
We currently have build jobs for both normal and the XSM case. Duplicating the raisin jobs is also going to duplicate the build for everything else it builds, which might be wasteful?
We could disable the raisin build if [
enable_xsm= "true" ] ?That isn't necessary now. I was thinking about the future when we may want to switch to raisin for building everything (i.e. removing the current build jobs).
Quoted 9 lines
Quoted 5 lines
More generally this now ties everything together into one build job. Currently while bisecting osstest can try and reuse e.g. the xen job with a different libvirt build, which saves some time. I think this is an unavoidable consequence of how raisin is designed to work and we'll just have to suck it up.
It is possible to just build xen first and libvirt later, as long as you reuse the same raisin environment, or you install xen on the system first.
I don't think we can install Xen, since this will be a potentially shared build host.
Quoted 9 lines
Quoted 4 lines
The only alternative I can see would be for raisin to have an "incremental" mode where it can be pointed at the results of a previous raisin build and build additional components based on that. I suspect you don't want this complexity in raisin though.
I don't want to support the case where raisin is asked to build a component based on a previous raisin build at an alternative location. But building Xen first, then going back to the same raisin directory and building libvirt later is fine.
Quoted 7 lines
Would a separate clone of the same raisin version with some sort of "dist" directory transported over be sufficient and supportable? Or are raisin's outputs not in one place and easily transportable?
i.e. today build-$ARCH-libvirt picks up the dist.tar.gz files from the corresponding build-$ARCH, unpacks them and asks libvirt to build against that tree.
Moving the dist directory over should work, although I have never tested this configuration.
Quoted 10 lines · Stefano Stabellini
Quoted 7 lines
Would a separate clone of the same raisin version with some sort of "dist" directory transported over be sufficient and supportable? Or are raisin's outputs not in one place and easily transportable?
i.e. today build-$ARCH-libvirt picks up the dist.tar.gz files from the corresponding build-$ARCH, unpacks them and asks libvirt to build against that tree.
Moving the dist directory over should work, although I have never tested this configuration.
Would you be willing to support this as a requirement going forward?
I assume that it is not also necessary to reclone all the trees for the preexisting components, just the new ones?
Ian.
Quoted 5 lines · Ian Campbell
Quoted 4 lines · Stefano Stabellini
Quoted 4 lines
Would a separate clone of the same raisin version with some sort of "dist" directory transported over be sufficient and supportable? Or are raisin's outputs not in one place and easily transportable?
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
i.e. today build-$ARCH-libvirt picks up the dist.tar.gz files from the corresponding build-$ARCH, unpacks them and asks libvirt to build against that tree.
Moving the dist directory over should work, although I have never tested this configuration.
Would you be willing to support this as a requirement going forward?
Yeah, I think it is OK
Quoted 2 lines
I assume that it is not also necessary to reclone all the trees for the preexisting components, just the new ones?
Only if the user asks for a components to be built, the corresponding tree is cloned.
Quoted 15 lines · Stefano Stabellini
Quoted 5 lines · Ian Campbell
Quoted 4 lines · Stefano Stabellini
Quoted 4 lines
Would a separate clone of the same raisin version with some sort of "dist" directory transported over be sufficient and supportable? Or are raisin's outputs not in one place and easily transportable?
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
i.e. today build-$ARCH-libvirt picks up the dist.tar.gz files from the corresponding build-$ARCH, unpacks them and asks libvirt to build against that tree.
Moving the dist directory over should work, although I have never tested this configuration.
Would you be willing to support this as a requirement going forward?
Quoted 7 lines
Yeah, I think it is OK
Quoted 2 lines
I assume that it is not also necessary to reclone all the trees for the preexisting components, just the new ones?
Only if the user asks for a components to be built, the corresponding tree is cloned.
OK, so the general pattern would be
ts-xen-build:
Clones raisin
Calls raisin with COMPONENTS="xen seabios qemu qemu-trad" # Essentially the current set from xen.git:Config.mk
Builds xendist.tar and dist.tar from raisin's outputdir
ts-foo-build
Clones raisin
Unpacks result of ts-xen-build into $WHERE (and any other required components, of which I expect there will be few)
Calls raisin with COMPONENTS="foo"
Builds dist.tar of that
Where the obvious foo right now is libvirt, but eventually would include grub2 etc. We might also eventually consider moving things out of ts-xen-build.
I didn't say it, but in both cases there is an implicit "if $r{use_raisin} else to the old thing fi" there.
The only problem I foresee is that if $WHERE above == raisin's outputdir then foo's dist.tar would include all of the Xen stuff. How hard would it be to have those split?
Ian.
Quoted 15 lines · Stefano Stabellini
Quoted 5 lines · Ian Campbell
Quoted 4 lines · Stefano Stabellini
Quoted 4 lines
Would a separate clone of the same raisin version with some sort of "dist" directory transported over be sufficient and supportable? Or are raisin's outputs not in one place and easily transportable?
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
i.e. today build-$ARCH-libvirt picks up the dist.tar.gz files from the corresponding build-$ARCH, unpacks them and asks libvirt to build against that tree.
Moving the dist directory over should work, although I have never tested this configuration.
Would you be willing to support this as a requirement going forward?
Quoted 7 lines
Yeah, I think it is OK
Quoted 2 lines
I assume that it is not also necessary to reclone all the trees for the preexisting components, just the new ones?
Only if the user asks for a components to be built, the corresponding tree is cloned.
Won't the problem here be disentangling the stuff installed in dist/ (or whatever it's called) from the things we want to rebuild vs the things we want to change?
I.e., ideally if you want to build just xen.git, you want dist/ to contain the output of the previous build of seabios, qemut, qemuu, &c, but *not* the output of previous xen.git builds (or, ideally, the output of previous libvirt, pvgrub, or stubdom builds). Just tar and untarr'ing dist/ after a full build won't accomplish that.
Would it make sense to do some sort of "save snapshot" functionality that would tar up the dist/ before building a particular component, such that it could be used later? Sort of a "stage 2*" for raisin. :-)
-George
* Referring to Gentoo. Not sure the comparison is 100% accurate.
Quoted 22 lines · George Dunlap
Quoted 20 lines · Stefano Stabellini
Quoted 5 lines · Ian Campbell
Quoted 4 lines · Stefano Stabellini
Quoted 4 lines
Would a separate clone of the same raisin version with some sort of "dist" directory transported over be sufficient and supportable? Or are raisin's outputs not in one place and easily transportable?
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
i.e. today build-$ARCH-libvirt picks up the dist.tar.gz files from the corresponding build-$ARCH, unpacks them and asks libvirt to build against that tree.
Moving the dist directory over should work, although I have never tested this configuration.
Would you be willing to support this as a requirement going forward?
Yeah, I think it is OK
Quoted 2 lines
I assume that it is not also necessary to reclone all the trees for the preexisting components, just the new ones?
Quoted 8 lines
Quoted 2 lines
Only if the user asks for a components to be built, the corresponding tree is cloned.
Won't the problem here be disentangling the stuff installed in dist/ (or whatever it's called) from the things we want to rebuild vs the things we want to change?
From the osstest PoV at least the proposal here only involves building
additional things, not rebuilding anything which came from a previous build.
e.g. given a build of xen.git now do a build of libvirt.git using those previously built Xen libs.
But there is still the issue of separating stuff built in Pass-A from the stuff in Pass-B.
Raisin could presumably have a concept of two dist dirs, dist.base and dist with the former being r/o. But that sounds to me like the sort of thing you wouldn't want in Raisin.
Per component dist dirs is similarly surely possible but perhaps not something raisin wants.
Quoted 14 lines
I.e., ideally if you want to build just xen.git, you want dist/ to contain the output of the previous build of seabios, qemut, qemuu, &c, but *not* the output of previous xen.git builds (or, ideally, the output of previous libvirt, pvgrub, or stubdom builds). Just tar and untarr'ing dist/ after a full build won't accomplish that.
Would it make sense to do some sort of "save snapshot" functionality that would tar up the dist/ before building a particular component, such that it could be used later? Sort of a "stage 2*" for raisin. :-)
-George
* Referring to Gentoo. Not sure the comparison is 100% accurate.
Quoted 30 lines · Ian Campbell
Quoted 22 lines · George Dunlap
Quoted 20 lines · Stefano Stabellini
Quoted 5 lines · Ian Campbell
Quoted 4 lines · Stefano Stabellini
Quoted 4 lines
Would a separate clone of the same raisin version with some sort of "dist" directory transported over be sufficient and supportable? Or are raisin's outputs not in one place and easily transportable?
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
i.e. today build-$ARCH-libvirt picks up the dist.tar.gz files from the corresponding build-$ARCH, unpacks them and asks libvirt to build against that tree.
Moving the dist directory over should work, although I have never tested this configuration.
Would you be willing to support this as a requirement going forward?
Yeah, I think it is OK
Quoted 2 lines
I assume that it is not also necessary to reclone all the trees for the preexisting components, just the new ones?
Quoted 6 lines
Quoted 2 lines
Only if the user asks for a components to be built, the corresponding tree is cloned.
Won't the problem here be disentangling the stuff installed in dist/ (or whatever it's called) from the things we want to rebuild vs the things we want to change?
Quoted 6 lines
From the osstest PoV at least the proposal here only involves building additional things, not rebuilding anything which came from a previous build.
e.g. given a build of xen.git now do a build of libvirt.git using those previously built Xen libs.
Sure; but what I'm saying is if you do xen-full-build, you'll have a dist/ which contains:
* qemut
* qemuu
* seabios
* xen
* libvirt
* (&c)
But when you re-build just libvirt, what you want is a dist/ that contains:
* qemut
* qemuu
* seabios
* xen
Specifically, you want it *not* to contain anything from the previous libvirt builds. That's what I'm talking about.
Quoted 2 lines
Per component dist dirs is similarly surely possible but perhaps not something raisin wants.
You could in theory have per-component "output" directories, and then a global "input" directory which was blown away at the beginning of every raisin build and re-constructed as needed. That would be the sort of equivalent of the mock-style RPM build (where the chroot represents the global "input").
Not sure how well that would work, though.
-George
Quoted 47 lines · George Dunlap
Quoted 30 lines · Ian Campbell
Quoted 22 lines · George Dunlap
Quoted 20 lines · Stefano Stabellini
Quoted 5 lines · Ian Campbell
Quoted 4 lines · Stefano Stabellini
Quoted 4 lines
Would a separate clone of the same raisin version with some sort of "dist" directory transported over be sufficient and supportable? Or are raisin's outputs not in one place and easily transportable?
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
i.e. today build-$ARCH-libvirt picks up the dist.tar.gz files from the corresponding build-$ARCH, unpacks them and asks libvirt to build against that tree.
Moving the dist directory over should work, although I have never tested this configuration.
Would you be willing to support this as a requirement going forward?
Yeah, I think it is OK
Quoted 2 lines
I assume that it is not also necessary to reclone all the trees for the preexisting components, just the new ones?
Quoted 6 lines
Quoted 2 lines
Only if the user asks for a components to be built, the corresponding tree is cloned.
Won't the problem here be disentangling the stuff installed in dist/ (or whatever it's called) from the things we want to rebuild vs the things we want to change?
Quoted 6 lines
From the osstest PoV at least the proposal here only involves building additional things, not rebuilding anything which came from a previous build.
e.g. given a build of xen.git now do a build of libvirt.git using those previously built Xen libs.
Sure; but what I'm saying is if you do xen-full-build, you'll have a dist/ which contains:
* qemut
* qemuu
* seabios
* xen
* libvirt
* (&c)
Quoted 8 lines
But when you re-build just libvirt, what you want is a dist/ that contains:
* qemut
* qemuu
* seabios
* xenSpecifically, you want it *not* to contain anything from the previous libvirt builds. That's what I'm talking about.
That's not what I was talking about ;-).
WRT the osstest usage the first build wouldn't be a full build, and in particular it would exclude the libvirt.
I appreciate there may be reasons to care about the scenario you presented, but right now I'm trying to figure out how we can best integrate raisin into osstest and whether it can some how be made suitable for building actual build artefacts for osstest to use for further testing, as opposed to just existing as a test case for the sole purpose of testing that raisin works.
If in solving that we also address your scenario, then great.
Quoted 10 lines
Quoted 2 lines
Per component dist dirs is similarly surely possible but perhaps not something raisin wants.
You could in theory have per-component "output" directories, and then a global "input" directory which was blown away at the beginning of every raisin build and re-constructed as needed. That would be the sort of equivalent of the mock-style RPM build (where the chroot represents the global "input").
Not sure how well that would work, though.
In essence everything builds into dist.$component and then at the end of each component raisin automatically takes that and overlays whatever it contains over some central dist.all which subsequent components actually build against? Perhaps with a mode to seed dist.all from dist.* iff dist.all doesn't exist.
I can see how that might work in general and I think it would solve at least osstest's desired use case but I don't know enough about raisin internals to know if it will actually fit in. Lets see what Stefano says.
Ian.
Quoted 62 lines · Ian Campbell
Quoted 47 lines · George Dunlap
Quoted 30 lines · Ian Campbell
Quoted 22 lines · George Dunlap
Quoted 20 lines · Stefano Stabellini
Quoted 5 lines · Ian Campbell
Quoted 4 lines · Stefano Stabellini
Quoted 4 lines
Would a separate clone of the same raisin version with some sort of "dist" directory transported over be sufficient and supportable? Or are raisin's outputs not in one place and easily transportable?
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
i.e. today build-$ARCH-libvirt picks up the dist.tar.gz files from the corresponding build-$ARCH, unpacks them and asks libvirt to build against that tree.
Moving the dist directory over should work, although I have never tested this configuration.
Would you be willing to support this as a requirement going forward?
Yeah, I think it is OK
Quoted 2 lines
I assume that it is not also necessary to reclone all the trees for the preexisting components, just the new ones?
Quoted 6 lines
Quoted 2 lines
Only if the user asks for a components to be built, the corresponding tree is cloned.
Won't the problem here be disentangling the stuff installed in dist/ (or whatever it's called) from the things we want to rebuild vs the things we want to change?
Quoted 6 lines
From the osstest PoV at least the proposal here only involves building additional things, not rebuilding anything which came from a previous build.
e.g. given a build of xen.git now do a build of libvirt.git using those previously built Xen libs.
Sure; but what I'm saying is if you do xen-full-build, you'll have a dist/ which contains:
* qemut
* qemuu
* seabios
* xen
* libvirt
* (&c)Quoted 8 lines
But when you re-build just libvirt, what you want is a dist/ that contains:
* qemut
* qemuu
* seabios
* xenSpecifically, you want it *not* to contain anything from the previous libvirt builds. That's what I'm talking about.
That's not what I was talking about ;-).
WRT the osstest usage the first build wouldn't be a full build, and in particular it would exclude the libvirt.
Quoted 6 lines
I appreciate there may be reasons to care about the scenario you presented, but right now I'm trying to figure out how we can best integrate raisin into osstest and whether it can some how be made suitable for building actual build artefacts for osstest to use for further testing, as opposed to just existing as a test case for the sole purpose of testing that raisin works.
That's what I'm trying to solve too. :-)
So it sounds like we have different ideas about what osstest needs. I had assumed that since osstest separately tests the various qemu trees, seabios, &c, that what we had envisioned for raisin was something
similar: that the "xen.git" raisin test would use pre-built qemuu, qemut, and seabios components and only build what was in xen.git.
It sounds like you're saying just to have a "base Xen" build that would build what currently comes out of xen.git, and then base our other components on top of that. In which case what you described would probably work just fine.
Quoted 9 lines
Quoted 9 lines
Quoted 2 lines
Per component dist dirs is similarly surely possible but perhaps not something raisin wants.
You could in theory have per-component "output" directories, and then a global "input" directory which was blown away at the beginning of every raisin build and re-constructed as needed. That would be the sort of equivalent of the mock-style RPM build (where the chroot represents the global "input").
Quoted 7 lines
Quoted 1 line
Not sure how well that would work, though.
In essence everything builds into dist.$component and then at the end of each component raisin automatically takes that and overlays whatever it contains over some central dist.all which subsequent components actually build against? Perhaps with a mode to seed dist.all from dist.* iff dist.all doesn't exist.
Yeah, the basic idea would be when you run build, you rm -rf dist.all. Then if $dependency is in $COMPONENTS, then you clone (if necessary) & build; if not, you copy from dist.$dependency into dist.all. If $dependency is neither in $COMPONENTS nor in dist.$dependency, you throw an error.
That solves the most general case; but it sounds like you care mostly about the very specific case of dealing with components that depend on the current output of xen.git. Starting simple may be fine.
-George
Quoted 3 lines · George Dunlap
It sounds like you're saying just to have a "base Xen" build that would build what currently comes out of xen.git, and then base our other components on top of that.
Correct, otherwise you get one big job which can fail due to any component, which makes reporting harder. It is nice to spot ts-libvirt-build vs ts-xen-build failing in the reports rather than just ts-raisin-build for everything.
More critically one big job makes the bisector less effective since it has to rebuild things which haven't changed just because something which shares the monolothic build job has changed. e.g. today a libvirt bisect won't rebuild Xen if it doesn't have to.
Quoted 25 lines
In which case what you described would probably work just fine.
Quoted 9 lines
Quoted 9 lines
Quoted 2 lines
Per component dist dirs is similarly surely possible but perhaps not something raisin wants.
You could in theory have per-component "output" directories, and then a global "input" directory which was blown away at the beginning of every raisin build and re-constructed as needed. That would be the sort of equivalent of the mock-style RPM build (where the chroot represents the global "input").
Quoted 7 lines
Quoted 1 line
Not sure how well that would work, though.
In essence everything builds into dist.$component and then at the end of each component raisin automatically takes that and overlays whatever it contains over some central dist.all which subsequent components actually build against? Perhaps with a mode to seed dist.all from dist.* iff dist.all doesn't exist.
Yeah, the basic idea would be when you run build, you rm -rf dist.all. Then if $dependency is in $COMPONENTS, then you clone (if necessary) & build; if not, you copy from dist.$dependency into dist.all. If $dependency is neither in $COMPONENTS nor in dist.$dependency, you throw an error.
Quoted 3 lines
That solves the most general case; but it sounds like you care mostly about the very specific case of dealing with components that depend on the current output of xen.git. Starting simple may be fine.
Currently we only have ts-*-build things which depend on the output of ts-xen-build (in fact, we only have ts-libvirt-build).
I'm not sure if there will be others in the future, I suppose ts-rump{qemu,xenstore,foo}-build -> ts-rumpkernel-build -> ts-xen-build might eventually be a possibility...
Ian.
Quoted 10 lines · Ian Campbell
Quoted 3 lines
That solves the most general case; but it sounds like you care mostly about the very specific case of dealing with components that depend on the current output of xen.git. Starting simple may be fine.
Currently we only have ts-*-build things which depend on the output of ts-xen-build (in fact, we only have ts-libvirt-build).
I'm not sure if there will be others in the future, I suppose ts-rump{qemu,xenstore,foo}-build -> ts-rumpkernel-build -> ts-xen-build might eventually be a possibility...
I guess I was assuming that at some point you might have the following builds and dependencies (not sure these are all correct):
ts-seabios-build: [none]
ts-qemut-build: [none]
ts-qemuu-build: ts-seabios-build
ts-xen-build: ts-qemut-build ts-qemuu-build
ts-libvirt-build: ts-xen-build
&c
I'm not arguing for this, I'm just trying to explain the problem I was initially trying to solve. :-)
But as we don't have any tests for seabios and qemu* in isolation, I guess it doesn't really make sense to treat them separately.
-George
Quoted 12 lines · George Dunlap
Quoted 10 lines · Ian Campbell
Quoted 3 lines
That solves the most general case; but it sounds like you care mostly about the very specific case of dealing with components that depend on the current output of xen.git. Starting simple may be fine.
Currently we only have ts-*-build things which depend on the output of ts-xen-build (in fact, we only have ts-libvirt-build).
I'm not sure if there will be others in the future, I suppose ts-rump{qemu,xenstore,foo}-build -> ts-rumpkernel-build -> ts-xen-build might eventually be a possibility...
Quoted 8 lines
I guess I was assuming that at some point you might have the following builds and dependencies (not sure these are all correct):
ts-seabios-build: [none]
ts-qemut-build: [none]
ts-qemuu-build: ts-seabios-build
ts-xen-build: ts-qemut-build ts-qemuu-build
ts-libvirt-build: ts-xen-build
&c
NB: ts-xen-build depends on ts-seabios-build directly, not via ts-qemu?-build since the BIOS becomes part of hvmloader not qemu.
I think ts-xen-build <-> ts-qemu?-build is a little circular today in xen.git (qemu uses libxenctrl), but building ts-xen-build first (i.e. reversing the deps you have there) is how I would solve that (and I expect raisin did so).
Quoted 5 lines
I'm not arguing for this, I'm just trying to explain the problem I was initially trying to solve. :-)
But as we don't have any tests for seabios and qemu* in isolation, I guess it doesn't really make sense to treat them separately.
It could very well eventually make sense to split up things which used to be part of the monolithic xen.git build into separate builds. qemuu would be an ideal candidate, for example.
Ian.
Ian Campbell writes ("Re: [Xen-devel] [PATCH v4] OSSTEST: introduce a raisin build test"):
Quoted 7 lines · George Dunlap
Quoted 3 lines
That solves the most general case; but it sounds like you care mostly about the very specific case of dealing with components that depend on the current output of xen.git. Starting simple may be fine.
Currently we only have ts-*-build things which depend on the output of ts-xen-build (in fact, we only have ts-libvirt-build).
That's not true. We have:
job step script
build-amd64 xen-build ts-xen-build build-amd64-rumpuserxen rumpuserxen-build ts-rumpuserxen-build build-amd64-rumpuserxen xen-build ts-xen-build
where each of the lines in my table, above, uses output from the previous line.
Ian.
Quoted 11 lines · Ian Jackson
Ian Campbell writes ("Re: [Xen-devel] [PATCH v4] OSSTEST: introduce a raisin build test"):
Quoted 7 lines · George Dunlap
Quoted 3 lines
That solves the most general case; but it sounds like you care mostly about the very specific case of dealing with components that depend on the current output of xen.git. Starting simple may be fine.
Currently we only have ts-*-build things which depend on the output of ts-xen-build (in fact, we only have ts-libvirt-build).
That's not true. We have:
Quoted 8 lines
job step script
build-amd64 xen-build ts-xen-build build-amd64-rumpuserxen rumpuserxen-build ts-rumpuserxen-build build-amd64-rumpuserxen xen-build ts-xen-buildwhere each of the lines in my table, above, uses output from the previous line.
Indeed, I even seem to have partially remembered that in the next para (partially because I had it as in the future...)
Ian.
Quoted 106 lines · George Dunlap
Quoted 62 lines · Ian Campbell
Quoted 47 lines · George Dunlap
Quoted 30 lines · Ian Campbell
Quoted 22 lines · George Dunlap
Quoted 20 lines · Stefano Stabellini
Quoted 5 lines · Ian Campbell
Quoted 4 lines · Stefano Stabellini
Quoted 4 lines
Would a separate clone of the same raisin version with some sort of "dist" directory transported over be sufficient and supportable? Or are raisin's outputs not in one place and easily transportable?
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
i.e. today build-$ARCH-libvirt picks up the dist.tar.gz files from the corresponding build-$ARCH, unpacks them and asks libvirt to build against that tree.
Moving the dist directory over should work, although I have never tested this configuration.
Would you be willing to support this as a requirement going forward?
Yeah, I think it is OK
Quoted 2 lines
I assume that it is not also necessary to reclone all the trees for the preexisting components, just the new ones?
Quoted 6 lines
Quoted 2 lines
Only if the user asks for a components to be built, the corresponding tree is cloned.
Won't the problem here be disentangling the stuff installed in dist/ (or whatever it's called) from the things we want to rebuild vs the things we want to change?
Quoted 6 lines
From the osstest PoV at least the proposal here only involves building additional things, not rebuilding anything which came from a previous build.
e.g. given a build of xen.git now do a build of libvirt.git using those previously built Xen libs.
Sure; but what I'm saying is if you do xen-full-build, you'll have a dist/ which contains:
* qemut
* qemuu
* seabios
* xen
* libvirt
* (&c)Quoted 8 lines
But when you re-build just libvirt, what you want is a dist/ that contains:
* qemut
* qemuu
* seabios
* xenSpecifically, you want it *not* to contain anything from the previous libvirt builds. That's what I'm talking about.
That's not what I was talking about ;-).
WRT the osstest usage the first build wouldn't be a full build, and in particular it would exclude the libvirt.
Quoted 6 lines
I appreciate there may be reasons to care about the scenario you presented, but right now I'm trying to figure out how we can best integrate raisin into osstest and whether it can some how be made suitable for building actual build artefacts for osstest to use for further testing, as opposed to just existing as a test case for the sole purpose of testing that raisin works.
That's what I'm trying to solve too. :-)
So it sounds like we have different ideas about what osstest needs. I had assumed that since osstest separately tests the various qemu trees, seabios, &c, that what we had envisioned for raisin was something
similar: that the "xen.git" raisin test would use pre-built qemuu, qemut, and seabios components and only build what was in xen.git.It sounds like you're saying just to have a "base Xen" build that would build what currently comes out of xen.git, and then base our other components on top of that. In which case what you described would probably work just fine.
Quoted 9 lines
Quoted 9 lines
Quoted 2 lines
Per component dist dirs is similarly surely possible but perhaps not something raisin wants.
You could in theory have per-component "output" directories, and then a global "input" directory which was blown away at the beginning of every raisin build and re-constructed as needed. That would be the sort of equivalent of the mock-style RPM build (where the chroot represents the global "input").
Quoted 7 lines
Quoted 1 line
Not sure how well that would work, though.
In essence everything builds into dist.$component and then at the end of each component raisin automatically takes that and overlays whatever it contains over some central dist.all which subsequent components actually build against? Perhaps with a mode to seed dist.all from dist.* iff dist.all doesn't exist.
Yeah, the basic idea would be when you run build, you rm -rf dist.all. Then if $dependency is in $COMPONENTS, then you clone (if necessary) & build; if not, you copy from dist.$dependency into dist.all. If $dependency is neither in $COMPONENTS nor in dist.$dependency, you throw an error.
Quoted 3 lines
That solves the most general case; but it sounds like you care mostly about the very specific case of dealing with components that depend on the current output of xen.git. Starting simple may be fine.
Yeah, I would keep things simple and let OSSTest do its tar & scp thing with the dist directory. Of course raisin would have to consider it a valid usage scenario. Each new feature comes with a cost in complexity, I don't think the net benefit would be worthwhile in this case.