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

[CI:BUILD] packit: tag @containers/packit-build team on copr build failure #20061

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

lsm5
Copy link
Member

@lsm5 lsm5 commented Sep 20, 2023

Does this PR introduce a user-facing change?

None

@openshift-ci openshift-ci bot added release-note-none approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Sep 20, 2023
@lsm5 lsm5 marked this pull request as draft September 20, 2023 13:16
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 20, 2023
@packit-as-a-service
Copy link

Copr build failed for commit bb23f6eeb20ce2e6f610b77411e3be31dabc0e1f. @lsm5 please check.

@packit-as-a-service
Copy link

Copr build failed for commit 892349d36179ca669c8e8aeea2e796da853a9892. @lsm5 please check.

@packit-as-a-service
Copy link

Copr build failed for commit bb23f6eeb20ce2e6f610b77411e3be31dabc0e1f. @lsm5 please check.

@packit-as-a-service
Copy link

Copr build failed for commit 892349d36179ca669c8e8aeea2e796da853a9892. @lsm5 please check.

@packit-as-a-service
Copy link

Copr build failed for commit bb23f6eeb20ce2e6f610b77411e3be31dabc0e1f. @lsm5 please check.

@packit-as-a-service
Copy link

Copr build failed for commit 892349d36179ca669c8e8aeea2e796da853a9892. @lsm5 please check.

@packit-as-a-service
Copy link

Copr build failed for commit bb23f6eeb20ce2e6f610b77411e3be31dabc0e1f. @lsm5 please check.

@martinpitt
Copy link
Contributor

This is pretty cool! TIL that this also works on copr builds, not just tests. Makes sense in hindsight 😁

@lsm5 lsm5 marked this pull request as ready for review September 21, 2023 17:36
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 21, 2023
@lsm5
Copy link
Member Author

lsm5 commented Sep 21, 2023

@lsm5
Copy link
Member Author

lsm5 commented Sep 21, 2023

@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."
Copy link
Member

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.

Copy link
Member Author

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

Copy link
Contributor

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!)

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Copy link
Member Author

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.

Copy link
Member Author

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.

Copy link
Contributor

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

Copy link
Member Author

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.

Copy link
Contributor

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)

Copy link
Contributor

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 🎉

@lsm5 lsm5 marked this pull request as draft September 21, 2023 18:41
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 21, 2023
@packit-as-a-service
Copy link

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]>
@lsm5 lsm5 changed the title [CI:BUILD] packit: tag @lsm5 on copr build failure [CI:BUILD] packit: tag @containers/packit-build team on copr build failure Sep 21, 2023
@lsm5 lsm5 marked this pull request as ready for review September 21, 2023 18:52
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 21, 2023
@TomSweeneyRedHat
Copy link
Member

LGTM if that team thing works.

Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 22, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 22, 2023

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 08d05b9 into containers:main Sep 22, 2023
43 checks passed
@lsm5 lsm5 deleted the packit-fail-tag branch September 22, 2023 12:16
@lsm5
Copy link
Member Author

lsm5 commented Sep 22, 2023

/cherrypick v4.7

@openshift-cherrypick-robot
Copy link
Collaborator

@lsm5: new pull request created: #20106

In response to this:

/cherrypick v4.7

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.

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Dec 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants