-
Notifications
You must be signed in to change notification settings - Fork 30
docs: update CONTRIBUTING.md with guidelines-bot details and review expectations #331
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
base: main
Are you sure you want to change the base?
docs: update CONTRIBUTING.md with guidelines-bot details and review expectations #331
Conversation
✅ Deploy Preview for scrc-coding-guidelines ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Looks like a handy utility, nice! |
|
Okay, I'm back now so I should be able to review this soon :) |
felix91gr
left a 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.
This is a very shallow preliminary review.
I feel like the bot is well-documented, but I have the hunch that perhaps it could be more clearly presented. I'm going to try a couple of things, will get back to you asap!
|
|
||
| Within 14 days of your submission, a member of the Coding Guidelines Subcommittee should give you a first review. You'll work with them (and other members) to flesh out the concept and ensure the guideline is well prepared for a Pull Request. | ||
|
|
||
| > **Note:** A reviewer is automatically assigned from the pool of Producers using a round-robin system. See [Reviewer Bot Commands](#reviewer-bot-commands) for details. |
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.
We might want to clarify what we mean by a round-robin system.
I think I know what we mean here... something like this, perhaps?
- The unassigned producers are put in a queue,
- When a review is complete, its producer (reviewer) is put back at the end of the queue,
- And all of this results in what is effectively a complete and unbiased rotation of the producer group until any given producer is assigned to review once again.
Did I get it right?
If so, what happens if the queue is empty (because every producer is either on break or reviewing) and a new guideline proposal is opened?
|
|
||
| The reviewer bot (`@guidelines-bot`) automatically assigns reviewers to coding guideline issues and PRs using a round-robin system. Only members marked as "Producer" in the consortium's `subcommittee/coding-guidelines/members.md` are included in the rotation. | ||
|
|
||
| The queue state is stored in [Issue #314](https://github.com/rustfoundation/safety-critical-rust-coding-guidelines/issues/314). |
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.
| The queue state is stored in [Issue #314](https://github.com/rustfoundation/safety-critical-rust-coding-guidelines/issues/314). | |
| The queue's state is stored in [Issue #314](https://github.com/rustfoundation/safety-critical-rust-coding-guidelines/issues/314). |
I'm 98% sure this goes like that.
|
Okay, this is sort of what I had in mind for the Lemme know how it looks to you, @PLeVasseur? PS: for some reason, Note These commands only apply in the context of coding guideline issues. (warning: wall of text!)Reviewer Bot Commands
Before we continue, here's a preamble on how the reviewer bot helps reviewers do their job.
Down below are the available commands. Pass this Review to the next ProducerFormatWhen to use itYou may use this if you were assigned as reviewer for a specific issue / PR. Use it when you cannot review it in particular, but want to remain in the rotation for future assignments. ResultThe next reviewer in the queue will be assigned instead. You will return to the queue for future assignments. ExampleTemporarily Exit the Review QueueFormatWhen to use itYou may use this if you are a producer who's currently in the rotation. Use it if you unable to do reviews until some date in the future. ResultYou will be removed from the review queue until the specified date. If you're currently assigned to an issue / PR, the next reviewer will be assigned in your place. You'll be automatically added back when the date arrives. ExampleClaim Review of this Issue / PRFormatWhen to use itYou may use this if you are a producer who's currently in the rotation. Use it if you want to proactively claim the review duty of an issue / PR. Ask for permission if the existing reviewer has been working on it already. ResultYou will be assigned as the reviewer for this issue / PR. Any existing review assignment to it will be removed. ExampleRelease your Assignment from this Issue / PRFormatWhen to use itYou would like to use Prefer to use ResultThe issue / PR will be left unassigned. You will return to the queue for future assignments. ExampleAssign a Specific ReviewerFormatWhen to use itYou are a producer, and you know someone with specific expertise that may be a good fit for reviewing this guideline. Ask for permission if the existing reviewer has been working on it already. ResultThe same result as if the specified reviewer had used Namely, the existing reviewer will be returned to the queue and the specified reviewer will be assigned to the issue / PR instead. ExampleRequest Next Reviewer from QueueFormatWhen to use itYou're a producer, and one of the following is true:
ResultIf the Issue / PR had a reviewer, this works as if the reviewer had run If it didn't, this picks a new reviewer by triggering the round-robin assignment. ExampleOther CommandsManage LabelsAdding a label: Removing a label: Sync MembersManually trigger a sync of the reviewer queue with Check Queue StatusShows the current queue position, who's next up for review, and who is currently away. Show Available CommandsShows all available bot commands with descriptions. |
|
✅ @AlexCeleste has passed this review. Reason: [reason (optional)] @jmqd is now assigned as the reviewer. @AlexCeleste is next in queue for future issues. |
|
AHHHH the bot reacted to the Sorry about that. That's... a bug, I think. Anywho, it was not my intention. I'll clean this up. Sorry about the ping, @jmqd |
|
@guidelines-bot /r? @AlexCeleste |
|
✅ @AlexCeleste has been assigned as reviewer. |
No description provided.