-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[CI:BUILD] packit: tag @containers/packit-build team on copr build failure #20061
Conversation
Copr build failed for commit bb23f6eeb20ce2e6f610b77411e3be31dabc0e1f. @lsm5 please check. |
Copr build failed for commit 892349d36179ca669c8e8aeea2e796da853a9892. @lsm5 please check. |
Copr build failed for commit bb23f6eeb20ce2e6f610b77411e3be31dabc0e1f. @lsm5 please check. |
Copr build failed for commit 892349d36179ca669c8e8aeea2e796da853a9892. @lsm5 please check. |
Copr build failed for commit bb23f6eeb20ce2e6f610b77411e3be31dabc0e1f. @lsm5 please check. |
Copr build failed for commit 892349d36179ca669c8e8aeea2e796da853a9892. @lsm5 please check. |
Copr build failed for commit bb23f6eeb20ce2e6f610b77411e3be31dabc0e1f. @lsm5 please check. |
This is pretty cool! TIL that this also works on copr builds, not just tests. Makes sense in hindsight 😁 |
bb23f6e
to
a7464f1
Compare
a7464f1
to
9658aa0
Compare
@haircommander @saschagrunert ping, might be worth doing on conmon-rs too. PTAL. |
.packit.yaml
Outdated
@@ -16,8 +16,10 @@ actions: | |||
jobs: | |||
- job: copr_build | |||
trigger: pull_request | |||
notifications: | |||
failure_comment: | |||
message: "Ephemeral COPR build failed. @lsm5 please check." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you create a GitHub Team or Organization and use that instead? Even if that group only has you in it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, don't know if the packit feature works for teams but we can try. We'll also need something similar for the revdep failure tag @martinpitt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not a feature of packit. You can specify whichever text you want in the notification. The @user
is a GitHub feature. But I'm not sure if e.g. tagging the @cockpit-project org actually works (that would be way too big, just for testing -- if it works, sorry everyone for the noise!)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@martinpitt maybe a cockpit team with the three of you would work? I created @containers/packit-build just now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@martinpitt i could even create a containers/cockpit-tests
team if that works for you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, I'm happy to handle the cockpit notifications separately. But I'm still not convinced that tagging a team actually works -- did anyone from the cockpit-project org actually get this notification? Please react with 👍 here if you did. Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@martinpitt I see both team and org mentions in your latest comment. To be clear, I haven't created any cockpit team in the containers org yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lsm5 I just asked my colleagues in @cockpit-project, and they did not get the notification (that also makes sense -- spam protection). So an org won't work. A team might, let me test that in cockpit-project/bots#5288 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Team tagging indeed seems to work 🎉
Ephemeral COPR build failed. @containers/packit-build please check. |
…ilures This change will auto-tag @containers/packit-build in a github comment on every copr build failure. [NO NEW TESTS NEEDED] Signed-off-by: Lokesh Mandvekar <[email protected]>
6594cba
to
6c2493f
Compare
LGTM if that team thing works. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lsm5, Luap99 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 |
/cherrypick v4.7 |
@lsm5: new pull request created: #20106 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. |
Does this PR introduce a user-facing change?