gitlab: some minor CI tweaks
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
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
@@ -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
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.
Signed-off-by Daniel P. Berrangé<[email protected]>--- .gitlab-ci.d/static_checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
r~
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.
Signed-off-by Daniel P. Berrangé <[email protected]>--- .gitlab-ci.d/static_checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-).gitlab-ci.d/static_checks.yml +0
-0
.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
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.
Signed-off-by Daniel P. Berrangé <[email protected]>--- .gitlab-ci.d/static_checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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
@@ -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
@@ -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
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.
Signed-off-by Daniel P. Berrangé<[email protected]>--- .gitlab-ci.d/cirrus.yml | 2 +- .gitlab-ci.d/cirrus/build.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
r~
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.
Signed-off-by Daniel P. Berrangé <[email protected]>--- .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
.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 :-/
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.
Signed-off-by Daniel P. Berrangé <[email protected]>--- .gitlab-ci.d/cirrus.yml | 2 +- .gitlab-ci.d/cirrus/build.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
Quoted 1 line · Daniel P. Berrangé
Addressing a few issues raised by Peter on IRC yesterday
Queued to testing/next, thanks.
Signature · 1 line
Alex Bennée