Add support for CDEvents notifications#18853
Conversation
|
/label release-note/new-feature |
Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
|
@afrittoli Hi, thanks for your work! Please update to resolve the conflict. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #18853 +/- ##
=======================================
Coverage 44.71% 44.71%
=======================================
Files 235 235
Lines 13083 13083
Branches 2671 2671
=======================================
Hits 5850 5850
- Misses 6938 6939 +1
+ Partials 295 294 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
| // Only TopicPullArtifact is supported for now. | ||
| // Other event types are not striclty a failure (they are missing by design), | ||
| // but we still report them upstream as unknown types | ||
| if he.EventType != event.TopicPushArtifact { |
There was a problem hiding this comment.
Yep, I agreed that other event types are not a failure case, user can subscribe other event types from UI but can only receive PUSH events, IMO the better solution is that extend the capability to support limit the event types.
|
This PR is being marked stale due to a period of inactivty. If this PR is still relevant, please comment or remove the stale label. Otherwise, this PR will close in 30 days. |
|
This PR was closed because it has been stalled for 30 days with no activity. If this PR is still relevant, please re-open a new PR against main. |
|
I would like to continue working on this - is it an option to re-open? If not I will open a new PR. |
|
@afrittoli reopen :) please excuse the automation :D |
Comprehensive Summary of your change
Introduce a new notifier format "CDEvents", as described in the CDEvents proposal.
The CDEvents formatter, for now, supports only
PUSH_ARTIFACTevents.If other events are selected in the UI, they raise an error in the logs and no event is sent.
The PR is made of two commits:
Issue being fixed
Fixes #community/225
Please indicate you've done the following: