Skip to contentSkip to conversation

osstest: allow to treat host install errors as failures

PATCH In review Roger Pau Monne 2 participants 5 messages Jun 28, 2018 – Jun 29, 2018

lore
Share & tools
lore
#1 lore raw

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
index 1d78a3e1..3999ed79 100755
@@ -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
index 5d82d809..bdf666eb 100755
@@ -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
#0 lore raw

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
index 64dfe9a6..66d4b816 100755
@@ -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
index f366ce5e..d152051f 100755
@@ -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
#2 lore raw

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

#3 lore raw
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

#4 lore raw

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.git freebsd_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