Skip to contentSkip to conversation

gitlab-ci: use git clean -ffdx in build each commit test

PATCH In review Wei Liu 3 participants 5 messages Apr 8, 2019

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 gitlab-ci: use git clean -ffdx in build each commit test

The build script invoked is designed to run in a pristine checkout.

---
 automation/gitlab-ci/build-each-commit.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
automation/gitlab-ci/build-each-commit.sh +1 -1
index 275bc71902..879028b5a7 100755
@@ -15,4 +15,4 @@ fi
 echo "Building ${CI_COMMIT_BEFORE_SHA}..${CI_COMMIT_SHA}"
 
 NON_SYMBOLIC_REF=1 ./automation/scripts/build-test.sh ${CI_COMMIT_BEFORE_SHA} ${CI_COMMIT_SHA} \
-    bash -c "make -j4 distclean && ./automation/scripts/build"
+    bash -c "git clean -ffdx && ./automation/scripts/build"
Signature · 7 lines
2.20.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#2 lore raw
In reply to Wei Liu
Quoted 12 lines · Wei Liu

The build script invoked is designed to run in a pristine checkout.

---
 automation/gitlab-ci/build-each-commit.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
automation/gitlab-ci/build-each-commit.sh +0 -0
index 275bc71902..879028b5a7 100755

automation/gitlab-ci/build-each-commit.sh fi · line 18

Quoted 5 lines
automation/gitlab-ci/build-each-commit.sh +1 -1
@@ -15,4 +15,4 @@ fi
 echo "Building ${CI_COMMIT_BEFORE_SHA}..${CI_COMMIT_SHA}"
 
 NON_SYMBOLIC_REF=1 ./automation/scripts/build-test.sh ${CI_COMMIT_BEFORE_SHA} ${CI_COMMIT_SHA} \
-    bash -c "make -j4 distclean && ./automation/scripts/build"
+    bash -c "git clean -ffdx && ./automation/scripts/build"

Is this mean that QEMU, OVMF, SeaBIOS, ... are going to be clonned again and again? But maybe it doesn't matter.

Signature · 6 lines
Anthony PERARD

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
author
#3 lore raw
Quoted 15 lines · Anthony PERARD
Quoted 14 lines · Wei Liu

The build script invoked is designed to run in a pristine checkout.

---
 automation/gitlab-ci/build-each-commit.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
automation/gitlab-ci/build-each-commit.sh +0 -0
index 275bc71902..879028b5a7 100755
@@ -15,4 +15,4 @@ fi
 echo "Building ${CI_COMMIT_BEFORE_SHA}..${CI_COMMIT_SHA}"
 
Quoted 6 lines

automation/gitlab-ci/build-each-commit.sh fi · line 18

Quoted 3 lines
automation/gitlab-ci/build-each-commit.sh +1 -1
 NON_SYMBOLIC_REF=1 ./automation/scripts/build-test.sh ${CI_COMMIT_BEFORE_SHA} ${CI_COMMIT_SHA} \
-    bash -c "make -j4 distclean && ./automation/scripts/build"
+    bash -c "git clean -ffdx && ./automation/scripts/build"

Is this mean that QEMU, OVMF, SeaBIOS, ... are going to be clonned again and again? But maybe it doesn't matter.

Yes. But I don't think that matters much.

Wei.

Quoted 3 lines
Signature · 2 lines
-- 
Anthony PERARD

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

author
#4 lore raw
Quoted 16 lines · Wei Liu
Quoted 15 lines · Anthony PERARD
Quoted 14 lines · Wei Liu

The build script invoked is designed to run in a pristine checkout.

---
 automation/gitlab-ci/build-each-commit.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
automation/gitlab-ci/build-each-commit.sh +0 -0
index 275bc71902..879028b5a7 100755
@@ -15,4 +15,4 @@ fi
 echo "Building ${CI_COMMIT_BEFORE_SHA}..${CI_COMMIT_SHA}"
 
Quoted 8 lines
Quoted 6 lines

automation/gitlab-ci/build-each-commit.sh fi · line 18

Quoted 3 lines
automation/gitlab-ci/build-each-commit.sh +1 -1
 NON_SYMBOLIC_REF=1 ./automation/scripts/build-test.sh ${CI_COMMIT_BEFORE_SHA} ${CI_COMMIT_SHA} \
-    bash -c "make -j4 distclean && ./automation/scripts/build"
+    bash -c "git clean -ffdx && ./automation/scripts/build"

Is this mean that QEMU, OVMF, SeaBIOS, ... are going to be clonned again and again? But maybe it doesn't matter.

Yes. But I don't think that matters much.

BTW, distclean deletes those repositories as well. The nature of this specific test means it is best to start in a pristine environment, because we could potentially move the HEAD of all those repositories.

Wei.

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