Skip to content

Wznoinsk main modify pull request pipeline#46

Open
wznoinsk wants to merge 3 commits into
rhoai-3.4from
wznoinsk_main_modify_pull_request_pipeline
Open

Wznoinsk main modify pull request pipeline#46
wznoinsk wants to merge 3 commits into
rhoai-3.4from
wznoinsk_main_modify_pull_request_pipeline

Conversation

@wznoinsk

Copy link
Copy Markdown
Collaborator

No description provided.

@mchamsed-rh mchamsed-rh self-requested a review April 10, 2026 14:53
build.appstudio.redhat.com/pull_request_number: "{{pull_request_number}}"
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-comment: "^/build-konflux odh-ai-gateway-payload-processing"
pipelinesascode.tekton.dev/on-target-branch: "[{{target_branch}}]"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we removing these annotations?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, i see the commit message. @wznoinsk can you restore/set the annotations to somthing like this -

    pipelinesascode.tekton.dev/on-comment: "^/build-konflux odh-ai-gateway-payload-processing"
    pipelinesascode.tekton.dev/on-label: "[kfbuild-all, kfbuild-ai-gateway-payload-processing]"
    pipelinesascode.tekton.dev/on-target-branch: "[{{target_branch}}]"
    pipelinesascode.tekton.dev/on-event: "[pull_request]"

this would allow devs to set a label on certain PRs that they want to have pr runs on any new commits to that PR

build.appstudio.redhat.com/pull_request_number: "{{pull_request_number}}"
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-comment: "^/build-konflux odh-ai-gateway-payload-processing"
pipelinesascode.tekton.dev/on-target-branch: "[{{target_branch}}]"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, i see the commit message. @wznoinsk can you restore/set the annotations to somthing like this -

    pipelinesascode.tekton.dev/on-comment: "^/build-konflux odh-ai-gateway-payload-processing"
    pipelinesascode.tekton.dev/on-label: "[kfbuild-all, kfbuild-ai-gateway-payload-processing]"
    pipelinesascode.tekton.dev/on-target-branch: "[{{target_branch}}]"
    pipelinesascode.tekton.dev/on-event: "[pull_request]"

this would allow devs to set a label on certain PRs that they want to have pr runs on any new commits to that PR

@wznoinsk

Copy link
Copy Markdown
Collaborator Author

@ckhordiasma Konflux-User-Advisor notebooklm says:
Yes, if you want the pipeline to trigger only when a user adds your specific custom comment (e.g., /build-konflux) and you do not want it to run automatically when the pull request is opened, updated, or labeled, you should remove the on-event, on-target-branch, and on-label annotations.

I'm removing these labels becuase we have konflux pull request pipeline triggered for each of the PRs https://github.com/red-hat-data-services/ai-gateway-payload-processing/pulls which is a lot of workload.

@ckhordiasma

ckhordiasma commented Apr 10, 2026

Copy link
Copy Markdown
    pipelinesascode.tekton.dev/on-comment: "^/build-konflux odh-ai-gateway-payload-processing"
    pipelinesascode.tekton.dev/on-label: "[kfbuild-all, kfbuild-ai-gateway-payload-processing]"
    pipelinesascode.tekton.dev/on-target-branch: "[{{target_branch}}]"
    pipelinesascode.tekton.dev/on-event: "[pull_request]"

if you add on-label, it will not trigger on every pull request. only the ones that have the matching labels. https://pipelinesascode.com/docs/guides/event-matching/comment-and-label/#matching-on-pull-request-labels

as a test, you can add it to this PR, and you should not get a pull request pipeline on this PR because we don't have that label attached to the PR

@ckhordiasma

Copy link
Copy Markdown

also - refer to red-hat-data-services/konflux-central#1733

@wznoinsk

Copy link
Copy Markdown
Collaborator Author

ever single pull request https://github.com/red-hat-data-services/ai-gateway-payload-processing/pulls (I did check the chore ones quick) had konflux internal running pull-request pipeline - definitively that's something we don't want to do, if on-event has to be set along with on-label and if on-event itself is triggering pull request pipelines already then that (on-label thing) is something we probably don't wnat to enable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants