|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XEN PATCH v1] automation: edit rules for analyze jobs
rewrite analyze jobs rules to simplify the conditions under which the jobs appear and run after these changes: - to appear, all jobs must be selected (SELECTED_JOBS_ONLY), have token (WTOKEN), and be in an allowed path (CI_PROJECT_PATH), this is specified in .eclair-analysis - the subcategories have their own exceptions, keeping current behavior: - ECLAIR_SAFETY/ECLAIR_TESTING can force enable some - eclair-testing jobs will not appear outside xen-project/people This assumes we don't use pipeline sources other than push/api/schedule. Signed-off-by: Victor Lira <victorm.lira@xxxxxxx> --- this preseves the current behavior of the -testing jobs running anywhere on xen-project/people but maybe we want to limit it to whoever is doing the testing, or in some other way tested on my own repo xen-project/people/victormlira/xen push https://gitlab.com/xen-project/people/victormlira/xen/-/pipelines/2541858231 push /eclair-x86_64-amd$|alpine-3.18-gcc$/ https://gitlab.com/xen-project/people/victormlira/xen/-/pipelines/2541859057 push /alpine-3.18-gcc$/ https://gitlab.com/xen-project/people/victormlira/xen/-/pipelines/2541859605 schedule https://gitlab.com/xen-project/people/victormlira/xen/-/pipelines/2541871689 schedule /eclair-x86_64-amd$|alpine-3.18-gcc$/ https://gitlab.com/xen-project/people/victormlira/xen/-/pipelines/2541875599 schudule /alpine-3.18-gcc$/ https://gitlab.com/xen-project/people/victormlira/xen/-/pipelines/2541876512 --- automation/gitlab-ci/analyze.yaml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/automation/gitlab-ci/analyze.yaml b/automation/gitlab-ci/analyze.yaml index b3f99f472d..687af4d452 100644 --- a/automation/gitlab-ci/analyze.yaml +++ b/automation/gitlab-ci/analyze.yaml @@ -19,25 +19,25 @@ - '*.log' - '*.json' reports: codequality: gl-code-quality-report.json rules: - - if: $WTOKEN == null - when: never - - when: always + - if: $CI_JOB_NAME =~ $SELECTED_JOBS_ONLY && $WTOKEN + && $CI_PROJECT_PATH =~ /^xen-project\/hardware\/.*$/ + when: on_success + - if: $CI_JOB_NAME =~ $SELECTED_JOBS_ONLY && $WTOKEN + && $CI_PROJECT_PATH =~ /^xen-project\/people\/.*$/ + when: manual + allow_failure: true + needs: [] .eclair-analysis:triggered: extends: .eclair-analysis rules: - - if: $CI_PIPELINE_SOURCE == "schedule" + - if: $CI_PIPELINE_SOURCE != "push" && $CI_PIPELINE_SOURCE != "api" when: never - - if: $CI_JOB_NAME !~ $SELECTED_JOBS_ONLY - when: never - - if: $WTOKEN && $CI_PROJECT_PATH =~ /^xen-project\/people\/.*$/ - when: manual - allow_failure: true - !reference [.eclair-analysis, rules] eclair-x86_64-allcode: extends: .eclair-analysis:triggered variables: @@ -218,12 +218,10 @@ eclair-ARM64-amd: .eclair-analysis:on-schedule: extends: .eclair-analysis rules: - if: $CI_PIPELINE_SOURCE != "schedule" when: never - - if: $CI_JOB_NAME !~ $SELECTED_JOBS_ONLY - when: never - !reference [.eclair-analysis, rules] eclair-x86_64-allrules:on-schedule: extends: .eclair-analysis:on-schedule variables: -- 2.54.0
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |