Skip to content

Commit

Permalink
gitlab-ci: Fix AuthN Python Tests Not Triggering Automatically
Browse files Browse the repository at this point in the history
- Add `when: always` to the rules for `authn` label and directory changes to ensure automatic job triggering.
- Reorder rules to avoid every job defaulting to manual triggers.

Signed-off-by: Ryan Koo <[email protected]>
  • Loading branch information
rkoo19 committed Sep 3, 2024
1 parent 4d459b8 commit d686c59
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -467,17 +467,19 @@ test:short:python-authn:
- cd python/
- make python_authn_tests
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" || $CI_COMMIT_BRANCH == "main"'
when: manual
allow_failure: true
- if: '$CI_MERGE_REQUEST_LABELS =~ /.*authn.*/'
changes:
- python/aistore/sdk/authn/**/*
- python/aistore/tests/integration/sdk/authn/**/*
when: always
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" || $CI_COMMIT_BRANCH == "main"'
changes:
- python/aistore/sdk/authn/**/*
- python/aistore/tests/integration/sdk/authn/**/*
when: always
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" || $CI_COMMIT_BRANCH == "main"'
when: manual
allow_failure: true

test:short:python-etl:
extends: .test_k8s_short_template
Expand Down

0 comments on commit d686c59

Please sign in to comment.