CI: remove ci-not-authorized job (#12225)

This is now handled directly at the failfast-ci level (== integration
Github <-> Gitlab).
The whole pipeline will not be triggered unless:
- The author is a maintainer
- The PR has the /ok-to-test label
This commit is contained in:
Max Gautier
2025-05-16 10:27:13 +00:00
committed by GitHub
parent 5c07c6e6d3
commit bca5a4ce3b
5 changed files with 0 additions and 33 deletions

View File

@@ -55,37 +55,9 @@ before_script:
extends: .job extends: .job
needs: needs:
- pipeline-image - pipeline-image
- ci-not-authorized
- pre-commit # lint - pre-commit # lint
- vagrant-validate # lint - vagrant-validate # lint
# For failfast, at least 1 job must be defined in .gitlab-ci.yml
# Premoderated with manual actions
ci-not-authorized:
stage: build
before_script: []
after_script: []
rules:
# LGTM or ok-to-test labels
- if: $PR_LABELS =~ /.*,(lgtm|approved|ok-to-test).*|^(lgtm|approved|ok-to-test).*/i
variables:
CI_OK_TO_TEST: '0'
when: always
- if: $CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "trigger"
variables:
CI_OK_TO_TEST: '0'
- if: $CI_COMMIT_BRANCH == "master"
variables:
CI_OK_TO_TEST: '0'
- when: always
variables:
CI_OK_TO_TEST: '1'
script:
- exit $CI_OK_TO_TEST
tags:
- ffci
needs: []
include: include:
- .gitlab-ci/build.yml - .gitlab-ci/build.yml
- .gitlab-ci/lint.yml - .gitlab-ci/lint.yml

View File

@@ -12,7 +12,6 @@
- ffci - ffci
needs: needs:
- pipeline-image - pipeline-image
- ci-not-authorized
# TODO: generate testcases matrixes from the files in tests/files/ # TODO: generate testcases matrixes from the files in tests/files/
# this is needed to avoid the need for PR rebasing when a job was added or removed in the target branch # this is needed to avoid the need for PR rebasing when a job was added or removed in the target branch

View File

@@ -12,7 +12,6 @@
image: $PIPELINE_IMAGE image: $PIPELINE_IMAGE
needs: needs:
- pipeline-image - pipeline-image
# - ci-not-authorized
script: script:
- ./tests/scripts/molecule_run.sh - ./tests/scripts/molecule_run.sh
after_script: after_script:

View File

@@ -3,7 +3,6 @@
.terraform_install: .terraform_install:
extends: .job extends: .job
needs: needs:
- ci-not-authorized
- pipeline-image - pipeline-image
variables: variables:
TF_VAR_public_key_path: "${ANSIBLE_PRIVATE_KEY_FILE}.pub" TF_VAR_public_key_path: "${ANSIBLE_PRIVATE_KEY_FILE}.pub"

View File

@@ -1,8 +1,6 @@
--- ---
vagrant: vagrant:
extends: .job-moderated extends: .job-moderated
needs:
- ci-not-authorized
variables: variables:
CI_PLATFORM: "vagrant" CI_PLATFORM: "vagrant"
SSH_USER: "vagrant" SSH_USER: "vagrant"