osstest: allow to treat host install errors as failures
PATCH 2/2 osstest: move install of FreeBSD build deps to build-prep
In reply to Roger Pau Monne--- ts-build-prep-freebsd | 6 ++++++ ts-freebsd-build | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-)
ts-build-prep-freebsd +6 -0
@@ -30,6 +30,12 @@ $whhost ||= 'host'; our $ho= selecthost($whhost); exit 0 if $ho->{SharedReady}; +sub install_deps () { + target_install_packages($ho, qw(git)); +} + +install_deps(); + our $path_prefix = $r{"freebsd_distpath"} || get_stashed("path_freebsddist", $r{"freebsdbuildjob"});
ts-freebsd-build +0 -5
@@ -46,10 +46,6 @@ tsreadconfig(); selectbuildhost(\@ARGV); builddirsprops(); -sub install_deps () { - target_install_packages($ho, qw(git)); -} - sub checkout () { prepbuilddirs();
@@ -231,7 +227,6 @@ END store_runvar("path_freebsddist", "build/"); } -install_deps(); checkout(); build(); stash();
Signature · 7 lines
2.17.1 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 1/2 osstest: allow to treat host install errors as failures
And use it for the build-amd64-freebsd-again job, which should test the new FreeBSD build produced by build-amd64-freebsd and a host install error should be treated as a failure in order to trigger the bisection.
--- make-freebsd-flight | 3 ++- sg-run-job | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-)
make-freebsd-flight +2 -1
@@ -89,7 +89,8 @@ for arch in "$arches"; do revision_freebsd=$REVISION_FREEBSD \ host_hostflags=arch-$arch,purpose-build \ all_host_os=freebsd \ - freebsdbuildjob=build-$arch-freebsd + freebsdbuildjob=build-$arch-freebsd \ + recipe_testinstall=true done echo $flight
sg-run-job +4 -2
@@ -79,7 +79,8 @@ proc run-job {job} { if {$ok} { set syslog [spawn-ts broken = | ts-syslog-server] } if {[llength $need_build_host]} { - catching-otherwise broken { + if {[recipe-flag testinstall]} { set broken fail } { set broken broken } + catching-otherwise $broken { prepare-build-host-[string tolower $need_build_host] } }
@@ -757,7 +758,8 @@ proc prepare-build-host-linux {} { proc prepare-build-host-freebsd {} { global jobinfo - run-ts broken host-install(*) ts-freebsd-host-install + if {[recipe-flag testinstall]} { set broken fail } { set broken broken } + run-ts $broken host-install(*) ts-freebsd-host-install run-ts . host-build-prep ts-build-prep-freebsd }
Signature · 7 lines
2.17.1 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Roger Pau Monne writes ("[PATCH 1/2] osstest: allow to treat host install errors as failures"):
Quoted 4 lines
And use it for the build-amd64-freebsd-again job, which should test the new FreeBSD build produced by build-amd64-freebsd and a host install error should be treated as a failure in order to trigger the bisection.
Both acked. Can you provide me a git branch and I'll queue it up, and push it when we're not trying to get Xen 4.11 sorted ?
Thanks,
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 8 lines · Ian Jackson
Roger Pau Monne writes ("[PATCH 1/2] osstest: allow to treat host install errors as failures"):
Quoted 4 lines
And use it for the build-amd64-freebsd-again job, which should test the new FreeBSD build produced by build-amd64-freebsd and a host install error should be treated as a failure in order to trigger the bisection.
Both acked. Can you provide me a git branch and I'll queue it up, and push it when we're not trying to get Xen 4.11 sorted ?
Thanks. you can find both at:
git://xenbits.xen.org/people/royger/osstest.git freebsd_fixes
Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Roger Pau Monné writes ("Re: [PATCH 1/2] osstest: allow to treat host install errors as failures"):
Quoted 2 lines
Thanks. you can find both at:
git://xenbits.xen.org/people/royger/osstest.gitfreebsd_fixes
Thanks. I have these, but they are going to wait for the Xen 4.11 branch to have sorted itself out.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel