Skip to contentSkip to conversation

gitlab: some minor CI tweaks

PATCH In review Daniel P. Berrangé 6 participants 10 messages Sep 15, 2021 – Sep 17, 2021

lore
Share & tools
lore
#0 lore raw

cover gitlab: some minor CI tweaks

Addressing a few issues raised by Peter on IRC yesterday

Daniel P. Berrangé (2):
gitlab: skip the check-patch job on the upstream repo
gitlab: fix passing of TEST_TARGETS env to cirrus

 .gitlab-ci.d/cirrus.yml        | 2 +-
 .gitlab-ci.d/cirrus/build.yml  | 1 +
 .gitlab-ci.d/static_checks.yml | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
Signature · 1 line
2.31.1
#1 lore raw

PATCH 1/2 gitlab: skip the check-patch job on the upstream repo

The check-patch job is intended to be used by contributors or subsystem maintainers to see if there are style mistakes. The false positive rate is too high to be used in a gating scenario so should not run it on the upstream repo ever.

---
 .gitlab-ci.d/static_checks.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.gitlab-ci.d/static_checks.yml +1 -1
index 96dbd9e310..902843f8b3 100644
@@ -8,7 +8,7 @@ check-patch:
   variables:
     GIT_DEPTH: 1000
   rules:
-    - if: '$CI_PROJECT_NAMESPACE == "qemu-project" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
+    - if: '$CI_PROJECT_NAMESPACE == "qemu-project"'
       when: never
     - when: on_success
       allow_failure: true
Signature · 1 line
2.31.1
Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] gitlab: skip the check-patch job on the upstream repo

Quoted 9 lines · Daniel P. Berrangé

The check-patch job is intended to be used by contributors or subsystem maintainers to see if there are style mistakes. The false positive rate is too high to be used in a gating scenario so should not run it on the upstream repo ever.

---
  .gitlab-ci.d/static_checks.yml | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

r~

Acked-by on v1 1/2
#3 lore raw

Re: [PATCH 1/2] gitlab: skip the check-patch job on the upstream repo

In reply to Daniel P. Berrangé
Quoted 16 lines · Daniel P. Berrangé

The check-patch job is intended to be used by contributors or subsystem maintainers to see if there are style mistakes. The false positive rate is too high to be used in a gating scenario so should not run it on the upstream repo ever.

---
  .gitlab-ci.d/static_checks.yml | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
.gitlab-ci.d/static_checks.yml +0 -0
index 96dbd9e310..902843f8b3 100644

.gitlab-ci.d/static_checks.yml check-patch: · line 14

Quoted 8 lines
.gitlab-ci.d/static_checks.yml +1 -1
@@ -8,7 +8,7 @@ check-patch:
    variables:
      GIT_DEPTH: 1000
    rules:
-    - if: '$CI_PROJECT_NAMESPACE == "qemu-project" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
+    - if: '$CI_PROJECT_NAMESPACE == "qemu-project"'
        when: never
      - when: on_success
        allow_failure: true
Reviewed-by on v1 1/2
#4 lore raw

Re: [PATCH 1/2] gitlab: skip the check-patch job on the upstream repo

In reply to Daniel P. Berrangé
Quoted 9 lines · Daniel P. Berrangé

The check-patch job is intended to be used by contributors or subsystem maintainers to see if there are style mistakes. The false positive rate is too high to be used in a gating scenario so should not run it on the upstream repo ever.

---
 .gitlab-ci.d/static_checks.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#5 lore raw

PATCH 2/2 gitlab: fix passing of TEST_TARGETS env to cirrus

In reply to Daniel P. Berrangé

A typo meant the substitution would not work, and the placeholder in the target file didn't even exist.

The result was that tests were never run on the FreeBSD and macOS jobs, only a basic build.

---
 .gitlab-ci.d/cirrus.yml       | 2 +-
 .gitlab-ci.d/cirrus/build.yml | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
.gitlab-ci.d/cirrus.yml +1 -1
index 675db69622..e7b25e7427 100644
@@ -35,7 +35,7 @@
           -e "s|[@]PIP3@|$PIP3|g"
           -e "s|[@]PYPI_PKGS@|$PYPI_PKGS|g"
           -e "s|[@]CONFIGURE_ARGS@|$CONFIGURE_ARGS|g"
-          -e "s|[@]TEST_TARGETSS@|$TEST_TARGETSS|g"
+          -e "s|[@]TEST_TARGETS@|$TEST_TARGETS|g"
       <.gitlab-ci.d/cirrus/build.yml >.gitlab-ci.d/cirrus/$NAME.yml
     - cat .gitlab-ci.d/cirrus/$NAME.yml
     - cirrus-run -v --show-build-log always .gitlab-ci.d/cirrus/$NAME.yml
.gitlab-ci.d/cirrus/build.yml +1 -0
index 857bdc5536..c555f5d36e 100644
@@ -13,6 +13,7 @@ env:
   PYTHON: "@PYTHON@"
   MAKE: "@MAKE@"
   CONFIGURE_ARGS: "@CONFIGURE_ARGS@"
+  TEST_TARGETS: "@TEST_TARGETS@"
 
 build_task:
   install_script:
Signature · 1 line
2.31.1
Reviewed-by on v1 2/2
#6 lore raw

Re: [PATCH 2/2] gitlab: fix passing of TEST_TARGETS env to cirrus

Quoted 11 lines · Daniel P. Berrangé

A typo meant the substitution would not work, and the placeholder in the target file didn't even exist.

The result was that tests were never run on the FreeBSD and macOS jobs, only a basic build.

---
  .gitlab-ci.d/cirrus.yml       | 2 +-
  .gitlab-ci.d/cirrus/build.yml | 1 +
  2 files changed, 2 insertions(+), 1 deletion(-)

r~

Acked-by on v1 2/2
#7 lore raw

Re: [PATCH 2/2] gitlab: fix passing of TEST_TARGETS env to cirrus

In reply to Daniel P. Berrangé
Quoted 17 lines · Daniel P. Berrangé

A typo meant the substitution would not work, and the placeholder in the target file didn't even exist.

The result was that tests were never run on the FreeBSD and macOS jobs, only a basic build.

---
  .gitlab-ci.d/cirrus.yml       | 2 +-
  .gitlab-ci.d/cirrus/build.yml | 1 +
  2 files changed, 2 insertions(+), 1 deletion(-)
.gitlab-ci.d/cirrus.yml +0 -0
index 675db69622..e7b25e7427 100644

.gitlab-ci.d/cirrus.yml line 38

Quoted 5 lines
.gitlab-ci.d/cirrus.yml +1 -1
@@ -35,7 +35,7 @@
            -e "s|[@]PIP3@|$PIP3|g"
            -e "s|[@]PYPI_PKGS@|$PYPI_PKGS|g"
            -e "s|[@]CONFIGURE_ARGS@|$CONFIGURE_ARGS|g"
-          -e "s|[@]TEST_TARGETSS@|$TEST_TARGETSS|g"
+          -e "s|[@]TEST_TARGETS@|$TEST_TARGETS|g"

Ooops, missed that in the review :-/

Reviewed-by on v1 2/2
#8 lore raw

Re: [PATCH 2/2] gitlab: fix passing of TEST_TARGETS env to cirrus

In reply to Daniel P. Berrangé
Quoted 4 lines · Daniel P. Berrangé

A typo meant the substitution would not work, and the placeholder in the target file didn't even exist.

Quoted 9 lines

The result was that tests were never run on the FreeBSD and macOS jobs, only a basic build.

---
 .gitlab-ci.d/cirrus.yml       | 2 +-
 .gitlab-ci.d/cirrus/build.yml | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)