From ae9a52ba2faa0b7faf0b9e0c6d3fd289cdd576ea Mon Sep 17 00:00:00 2001 From: Ernesto Puerta Date: Fri, 13 Nov 2020 20:14:44 +0100 Subject: [PATCH] ceph-pr,api-pr: skip when not needed Skip running make-check and ceph-api tests when the PR only contains changes in certain dirs (doc/, .github/) or certain extensions (.rst, .md, .txt). In any case, a Jenkins job can still be manually triggered (`jenkins test...`). Signed-off-by: Ernesto Puerta --- .../config/definitions/ceph-pr-api.yml | 19 ++++++++++++++++++ .../config/definitions/ceph-pull-requests.yml | 20 +++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/ceph-pr-api/config/definitions/ceph-pr-api.yml b/ceph-pr-api/config/definitions/ceph-pr-api.yml index 5712479f..da64e54b 100644 --- a/ceph-pr-api/config/definitions/ceph-pr-api.yml +++ b/ceph-pr-api/config/definitions/ceph-pr-api.yml @@ -48,6 +48,25 @@ started-status: "running API tests" success-status: "ceph API tests succeeded" failure-status: "ceph API tests failed" + exclude-region: + ^.github/ + ^admin/ + ^ceph-menv + ^doc/ + ^etc/ + ^examples/ + ^fusetrace/ + ^keys/ + ^man/ + ^mirroring/ + ^selinux/ + ^share/ + ^sudoers.d/ + ^systemd/ + ^udev/ + \.rst$ + \.txt$ + \.md$ scm: - git: diff --git a/ceph-pull-requests/config/definitions/ceph-pull-requests.yml b/ceph-pull-requests/config/definitions/ceph-pull-requests.yml index 1ef21979..17398705 100644 --- a/ceph-pull-requests/config/definitions/ceph-pull-requests.yml +++ b/ceph-pull-requests/config/definitions/ceph-pull-requests.yml @@ -45,6 +45,26 @@ started-status: "running make check" success-status: "make check succeeded" failure-status: "make check failed" + exclude-region: + ^.github/ + ^admin/ + ^ceph-menv + ^doc/ + ^etc/ + ^examples/ + ^fusetrace/ + ^keys/ + ^man/ + ^mirroring/ + ^qa/ + ^selinux/ + ^share/ + ^sudoers.d/ + ^systemd/ + ^udev/ + \.rst$ + \.txt$ + \.md$ scm: - git: -- 2.47.3