Skip to content

Conversation

@tomrittervg
Copy link
Contributor

@tomrittervg tomrittervg commented Jun 7, 2022

For several purposes, it would be good to be able to have a bot come back and place a reminder on a bug. This can be used for sec-approval to land a test or to come back and remove a preference after letting it ride the trains.

Checklist

  • Type annotations added to new functions - No. I'm not sure these are needed?
  • Docs added to functions touched in main classes - n/a
  • Dry-run produced the expected results.

@tomrittervg tomrittervg force-pushed the reminders branch 2 times, most recently from a282493 to da7ab4d Compare June 7, 2022 20:26
@marco-c
Copy link
Contributor

marco-c commented Jun 7, 2022

Quick comment, haven't had time to look at the code yet.

For several purposes, it would be good to be able to have a bot come back and place a reminder on a bug. This can be used for sec-approval to land a test

We have #978 for that which we plan to implement soon. Were you thinking of this "reminder" functionality as a replacement or in addition to that?

or to come back and remove a preference after letting it ride the trains.

We are thinking of defining a process for expiring test variants (https://docs.google.com/document/d/1U17fEx9D1lRjJMfjNrGPjjbQCOy1qQjjuj9gufsXW9c/edit), which we will likely enforce with autonag. We were thinking of doing something similar in the future about preferences. Might be worth formalizing this instead of relying on a generic reminder functionality to ensure people don't forget to add reminders :)

That said, this generic reminder functionality is a neat idea!

@mozfreddyb
Copy link
Contributor

I believe this patch would be useful and I'm OK if this supersede the work in #978. Tom tells me that the in-testsuite? flag is used inconsistently and there are bugs with this flag that do not even have a test attached.

Our main requirement is that we can get people to remember to check in tests, this here would support that use case.

@marco-c
Copy link
Contributor

marco-c commented Jun 8, 2022

I believe this patch would be useful and I'm OK if this supersede the work in #978. Tom tells me that the in-testsuite? flag is used inconsistently and there are bugs with this flag that do not even have a test attached.

Our main requirement is that we can get people to remember to check in tests, this here would support that use case.

The main drawback is that it becomes very hard to perform statistical analyses if it gets used for multiple things (stupid example: if you want to know how many sec bugs had tests to land). IDK if we will ever need it, but you never know what you might need in the future so it could be good to make it potentially possible.

What if we define a sub-whiteboard to specify what the reminder is about? E.g. "[reminder-test DATE]" or "[reminder-pref DATE]".

@tomrittervg
Copy link
Contributor Author

What if we define a sub-whiteboard to specify what the reminder is about? E.g. "[reminder-test DATE]" or "[reminder-pref DATE]".

Updated it, so you can now put [reminder-foo if you want. :)

Copy link
Member

@suhaibmujahid suhaibmujahid 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 for working on this, @tomrittervg! Please let me know if you need clarification or help.

@marco-c
Copy link
Contributor

marco-c commented Jun 10, 2022

I believe this patch would be useful and I'm OK if this supersede the work in #978. Tom tells me that the in-testsuite? flag is used inconsistently and there are bugs with this flag that do not even have a test attached.

Our main requirement is that we can get people to remember to check in tests, this here would support that use case.

Maybe stupid idea, but what if we detect sec bugs that have tests attached but not landed and nag on them? This way we totally circumvent the problem and people don't have to remember to add reminders or keywords or flags.

@mozfreddyb
Copy link
Contributor

I believe this patch would be useful and I'm OK if this supersede the work in #978. Tom tells me that the in-testsuite? flag is used inconsistently and there are bugs with this flag that do not even have a test attached.
Our main requirement is that we can get people to remember to check in tests, this here would support that use case.

Maybe stupid idea, but what if we detect sec bugs that have tests attached but not landed and nag on them? This way we totally circumvent the problem and people don't have to remember to add reminders or keywords or flags.

Yes. if that would take care of the backlog. Don't mind doing that at all, if we want that functionality on top.

@marco-c
Copy link
Contributor

marco-c commented Jun 13, 2022

Yes. if that would take care of the backlog. Don't mind doing that at all, if we want that functionality on top.

We could apply the same solution for both the backlog and future bugs. We also have a feature in the bot to set a maximum number of needinfos per person, so we don't risk overwhelming people with needinfos because of a potentially large backlog.

@tomrittervg
Copy link
Contributor Author

@suhaibmujahid - I've made a bunch of edits, and I tested it locally to ensure it runs. The output indicates that this is working now.

Copy link
Member

@suhaibmujahid suhaibmujahid 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 for the nice work, @tomrittervg! Please see my comments.

@tomrittervg
Copy link
Contributor Author

@suhaibmujahid okay, think I've addressed all those.

suhaibmujahid
suhaibmujahid previously approved these changes Jun 22, 2022
Copy link
Member

@suhaibmujahid suhaibmujahid left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you, just minor comments.

@suhaibmujahid suhaibmujahid requested a review from marco-c June 22, 2022 22:26
suhaibmujahid
suhaibmujahid previously approved these changes Jun 24, 2022
suhaibmujahid
suhaibmujahid previously approved these changes Jun 27, 2022
@marco-c
Copy link
Contributor

marco-c commented Jun 28, 2022

Looks good to me, we should just add a check so only people with editbugs (or canconfirm) privileges can set reminders up. You can add groups to the include_fields when you retrieve users, and then for each user check if there is a group which is "editbugs" (or "canconfirm").

@tomrittervg
Copy link
Contributor Author

Looks good to me, we should just add a check so only people with editbugs (or canconfirm) privileges can set reminders up. You can add groups to the include_fields when you retrieve users, and then for each user check if there is a group which is "editbugs" (or "canconfirm").

This is done.

Copy link
Member

@suhaibmujahid suhaibmujahid left a comment

Choose a reason for hiding this comment

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

LGTM

@suhaibmujahid suhaibmujahid merged commit c819cab into mozilla:master Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants