From fb4c3ab0c3d6e601149810170dcfab15a1866073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Sala?= <22398818+adrisala@users.noreply.github.com> Date: Tue, 15 Sep 2026 12:38:26 +0200 Subject: [PATCH] Add pull_request event trigger to ATF tests pipeline (#16632) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously the ATF tests pipeline only ran on `/run-atf-tests` comment. Add on-event and on-target-branch annotations so it also triggers automatically on pull_request events targeting devel. Signed-off-by: Adrià€ Sala <22398818+adrisala@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) --- .tekton/run-atf-tests-pull-request.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.tekton/run-atf-tests-pull-request.yaml b/.tekton/run-atf-tests-pull-request.yaml index 40d680a496..7ca83bfd31 100644 --- a/.tekton/run-atf-tests-pull-request.yaml +++ b/.tekton/run-atf-tests-pull-request.yaml @@ -10,7 +10,10 @@ metadata: build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/cancel-in-progress: 'true' pipelinesascode.tekton.dev/max-keep-runs: "3" + pipelinesascode.tekton.dev/on-event: "[pull_request]" + pipelinesascode.tekton.dev/on-target-branch: "[devel]" pipelinesascode.tekton.dev/on-comment: "^/run-atf-tests$" + pipelinesascode.tekton.dev/on-path-change: "[awx/**, requirements/**, .tekton/**]" pipelinesascode.tekton.dev/target-namespace: ansible-ci-tenant labels: appstudio.openshift.io/application: '{{repo_owner}}' @@ -27,7 +30,7 @@ spec: - name: name value: aap-api-tests - name: bundle - value: quay.io/aap-ci/tekton-catalog/pipeline/test/aap-api-tests:0.1@sha256:dd9512fe69efeb4392c99ea311ea84f12d2f01ddd44251fc584d619441e32b49 + value: quay.io/aap-ci/tekton-catalog/pipeline/test/aap-api-tests:0.1@sha256:3e0da91fe167180db139690585c4d3ce0a38d641af77b887d205193f532cd4e9 - name: kind value: pipeline - name: secret @@ -51,8 +54,10 @@ spec: value: "{{pull_request_number}}" - name: aap-dev-component-source-name value: "controller" + - name: pytest-expression + value: "not Gateway" - name: pytest-number-of-parallel-processes - value: "6" + value: "2" workspaces: - name: workspace