Skip to content
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

Add crier RocketChat reporter #30135

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

robinschneider
Copy link

Add crier reporter for RocketChat.
Reporter is based on the Slack reporter.
It uses a RocketChat Webhook.

Docs will be contributed to the Documentation repository.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 19, 2023
@k8s-ci-robot
Copy link
Contributor

Welcome @robinschneider!

It looks like this is your first PR to kubernetes/test-infra 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/test-infra has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jul 19, 2023
@k8s-ci-robot
Copy link
Contributor

Hi @robinschneider. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@k8s-ci-robot k8s-ci-robot added area/config Issues or PRs related to code in /config area/prow Issues or PRs related to prow area/prow/bump Updates to the k8s prow cluster area/prow/crier Issues or PRs related to prow's crier component area/prow/hook Issues or PRs related to prow's hook component area/prow/plugins Issues or PRs related to prow's plugins for the hook component sig/testing Categorizes an issue or PR as relevant to SIG Testing. labels Jul 19, 2023
@petr-muller
Copy link
Member

/cc
/test all

@petr-muller
Copy link
Member

Thanks! I'm not sure how much I'll be able to look at this immediately but I'll try to not let it rot ;)

* Fix lint issues

* Fix prow-config-documented.yaml
@robinschneider
Copy link
Author

/retest

@k8s-ci-robot
Copy link
Contributor

@robinschneider: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

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.

@robinschneider
Copy link
Author

@petr-muller Thank you! I fixed the lint issues.

@Priyankasaggu11929
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Jul 21, 2023
@k8s-ci-robot k8s-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jul 21, 2023
Copy link
Member

@petr-muller petr-muller left a comment

Choose a reason for hiding this comment

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

I'm not a great fan of essentially duplicating this much code, but let's defer asking for some kind of WebhookReporter abstraction to anyone who tries to add a third copy ;)

Some comments inline.

prow/plugins/plugins.go Outdated Show resolved Hide resolved
prow/cmd/hook/main.go Outdated Show resolved Hide resolved
prow/cmd/hook/main.go Outdated Show resolved Hide resolved
prow/cmd/hook/main.go Show resolved Hide resolved
prow/cmd/hook/main.go Outdated Show resolved Hide resolved
prow/config/config.go Outdated Show resolved Hide resolved
prow/rocketchat/client.go Outdated Show resolved Hide resolved
prow/rocketchat/client.go Outdated Show resolved Hide resolved
* Improve rocketchat reporter

* Reduce code duplication

* Moved test to clientutil
@robinschneider
Copy link
Author

@petr-muller Thank you again for your feedback.
I went over all the points you addressed.

@robinschneider
Copy link
Author

@petr-muller I wanted to check in and see if you've had a chance to review the recent changes I made. Your insights and feedback would be greatly appreciated. Please let me know if you have any thoughts or suggestions.

@petr-muller
Copy link
Member

Sorry, I switch between "vacation" and "catching up with accumulated backlog" modes in summer :)

I hope to get to k/test-infra reviews this week again.

Copy link
Member

@petr-muller petr-muller left a comment

Choose a reason for hiding this comment

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

Thank you!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 10, 2023
@petr-muller
Copy link
Member

oh right, this changes the CRD
/assign @michelle192837 @listx

Copy link
Contributor

@listx listx left a comment

Choose a reason for hiding this comment

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

I don't have a lot of time to review OSS PRs, unfortunately, so I didn't read the entire PR. However (1) I am not opposed to this (we're just adding a new reporter type), and (2) it seems like Petr already reviewed some things, so I think that's good enough. I just have some minor questions, thanks.


// This is necessary since RocketChat is optional.
if o.rocketChatChannel != "" {
tokens = append(tokens, o.rocketChatChannel)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not super familiar with Crier, but what stops us from adopting o.rocketChat.Channel, similar to o.bugzilla.ApiKeyPath? I.e., we should probably group the rocketChat-related things into o.rocketChat, no?

Copy link
Author

Choose a reason for hiding this comment

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

I am not familiar with the bugzilla reporter, but my implementation is a copy of the slack reporter that does it the same way. Hope this is fine.

prow/config/config.go Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 4, 2023
@k8s-ci-robot
Copy link
Contributor

New changes are detected. LGTM label has been removed.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: petr-muller, robinschneider
Once this PR has been reviewed and has the lgtm label, please ask for approval from listx. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 7, 2023
@k8s-ci-robot
Copy link
Contributor

PR needs rebase.

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.

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 6, 2024
@k8s-ci-robot
Copy link
Contributor

@robinschneider: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-test-infra-unit-test 451007e link true /test pull-test-infra-unit-test
pull-test-infra-unit-test-race-detector-nonblocking 451007e link false /test pull-test-infra-unit-test-race-detector-nonblocking
pull-test-infra-misc-image-build-test 451007e link true /test pull-test-infra-misc-image-build-test

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

@jihoon-seo
Copy link
Member

Hello @robinschneider, the Prow source code has been moved to https://github.com/kubernetes-sigs/prow on April 9, 2024.
Please consider migrate this PR (by opening a new one in there).
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/config Issues or PRs related to code in /config area/prow/bump Updates to the k8s prow cluster area/prow/crier Issues or PRs related to prow's crier component area/prow/hook Issues or PRs related to prow's hook component area/prow/plugins Issues or PRs related to prow's plugins for the hook component area/prow Issues or PRs related to prow cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants