-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use TriggerGroups for CI Jobs 🥳 #956
Conversation
6089518
to
9f6336e
Compare
/cc @jmcshane @tektoncd/triggers-maintainers @vdemeester |
@afrittoli: GitHub didn't allow me to request PR reviews from the following users: jmcshane. Note that only tektoncd members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
9f6336e
to
48b0496
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nikhil-thomas The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
TriggerGroups are a new alpha feature in Triggers that allow define a set of interceptors that will be processed before Trigger resources for a filtered group of Triggers. All triggers in CI jobs deal with GitHub event so they share a large surface of the interceptors. Using TriggerGroups makes it easier to maintain the triggers for all projects. The change is not only cosmetic though: interceptors like github, cel, add-pr-body will be processed only once. The hash in the GitHub event is going to be validated once. The PR definition will be pulled from the GitHub API once (per trigger group) instead of once per trigger. This paves the way for further changes: - add the add-team-member custom interceptor and logic so we only run tests for authorised users - add a trigger group to add comments that enahnce the user experience Signed-off-by: Andrea Frittoli <andrea.frittoli@uk.ibm.com>
48b0496
to
a35742a
Compare
/lgtm |
All trigger resources are still v1alpha1. Migrating the CI event listener for now since it's required by for trigger groups: tektoncd#956 Signed-off-by: Andrea Frittoli <andrea.frittoli@uk.ibm.com>
All trigger resources are still v1alpha1. Migrating the CI event listener for now since it's required by for trigger groups: #956 Signed-off-by: Andrea Frittoli <andrea.frittoli@uk.ibm.com>
Changes
TriggerGroups are a new alpha feature in Triggers that allow define
a set of interceptors that will be processed before Trigger resources
for a filtered group of Triggers.
All triggers in CI jobs deal with GitHub event so they share a large
surface of the interceptors. Using TriggerGroups makes it easier to
maintain the triggers for all projects.
The change is not only cosmetic though: interceptors like github,
cel, add-pr-body will be processed only once. The hash in the GitHub
event is going to be validated once. The PR definition will be pulled
from the GitHub API once (per trigger group) instead of once per
trigger.
This paves the way for further changes:
run tests for authorised users
Signed-off-by: Andrea Frittoli andrea.frittoli@uk.ibm.com
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide
for more details.
/kind feature