Skip to contentSkip to conversation

automation: git clean between builds

PATCH In review Wei Liu 2 participants 4 messages Nov 21, 2018

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 automation: git 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.

---
 automation/scripts/build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
automation/scripts/build +1 -1
index e3672a3626..9d82e1d612 100755
@@ -42,7 +42,7 @@ esac
 cfg_dir="automation/configs/${arch}"
 for cfg in `ls ${cfg_dir}`; do
     echo "Building $cfg"
-    rm -f xen/.config
+    git clean -fdxq
     make -C xen KBUILD_DEFCONFIG=../../../../${cfg_dir}/${cfg} XEN_CONFIG_EXPERT=y defconfig
     make -j$(nproc) -C xen XEN_CONFIG_EXPERT=y
 done
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Wei Liu

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.

Quoted 5 lines

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.

Sounds good as a fix for now to get us going.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

author
#2 lore raw
Quoted 12 lines · Doug Goldstein
Quoted 12 lines · Wei Liu

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.

Quoted 6 lines
Quoted 2 lines

Sounds good as a fix for now to get us going.

I think I will need to switch from git clean to make clean to avoid wiping out all the artifacts. Does your ack still stand?

Wei.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#3 lore raw
Quoted 19 lines · Wei Liu
Quoted 17 lines · Doug Goldstein
Quoted 14 lines · Wei Liu

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.

Quoted 8 lines
Quoted 3 lines

Sounds good as a fix for now to get us going.

I think I will need to switch from git clean to make clean to avoid wiping out all the artifacts. Does your ack still stand?

Wei.

Yes.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel