[xen staging] automation: make clean between builds

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[xen staging] automation: make clean between builds

commit 568653e01b84be5ac15fbf949bbcffcd91d6e829
Author:     Wei Liu <[hidden email]>
AuthorDate: Wed Nov 21 16:28:10 2018 +0000
Commit:     Wei Liu <[hidden email]>
CommitDate: Wed Nov 21 18:34:27 2018 +0000

    automation: make clean between builds
    Currently randconfig tests are more likely to fail than to succeed
    because of a bug in xen's build system: symbols-dummy.o's dependency
    is wrong, which causes it to not get rebuild between runs, which
    eventually causes linking to fail. There may also be other corner
    cases we haven't discovered.
    The fix is not straightforward. For now, make sure the tree is cleaned
    properly between builds so we don't see random failures in Gitlab CI.
    Signed-off-by: Wei Liu <[hidden email]>
    Acked-by: Doug Goldstein <[hidden email]>
 automation/scripts/build | 1 +
 1 file changed, 1 insertion(+)

diff --git a/automation/scripts/build b/automation/scripts/build
index e3672a3626..797ff6d1b2 100755
--- a/automation/scripts/build
+++ b/automation/scripts/build
@@ -42,6 +42,7 @@ esac
 for cfg in `ls ${cfg_dir}`; do
     echo "Building $cfg"
+    make -j$(nproc) -C xen clean
     rm -f xen/.config
     make -C xen KBUILD_DEFCONFIG=../../../../${cfg_dir}/${cfg} XEN_CONFIG_EXPERT=y defconfig
     make -j$(nproc) -C xen XEN_CONFIG_EXPERT=y
generated by git-patchbot for /home/xen/git/xen.git#staging

Xen-changelog mailing list
[hidden email]