You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce a new 'deduplicate-pipelineruns' setting to prevent duplicate
PipelineRuns for the same commit across different event types (e.g.,
push and pull_request).
- Implement fingerprint generation using MD5 hash of commit SHA,
PipelineRun name, head branch, and repository name.
- Store the fingerprint as a label on the PipelineRun resource.
- Check for existing non-completed PipelineRuns with the same
fingerprint before creating a new one.
- Deprecate the 'skip-push-event-for-pr-commits' setting and add a
warning log when it is used.
- Update the default ConfigMap and settings documentation.
- Add comprehensive unit tests for deduplication logic and deprecation
warnings.
Signed-off-by: Zaki Shaikh <zashaikh@redhat.com>
Assisted-by: Gemini (via Cursor)
v.Logger.Infof("Processing tag push event for commit %s despite skip-push-events-for-pr-commits being enabled (tag events are excluded from this setting)", sha)
334
334
}
335
335
336
+
ifv.pacInfo.SkipPushEventForPRCommits {
337
+
v.Logger.Warn("The 'skip-push-event-for-pr-commits' setting is deprecated and will be removed in a future version. Please use 'deduplicate-pipelineruns' instead.")
338
+
}
339
+
336
340
// Only check if the flag is enabled, and there are pull requests associated with this commit, and it's not a tag push event.
0 commit comments