Skip to content

Actually let T-all start FCPs - #360

Open
clarfonthey wants to merge 2 commits into
rust-lang:masterfrom
clarfonthey:rfcbot-all
Open

Actually let T-all start FCPs#360
clarfonthey wants to merge 2 commits into
rust-lang:masterfrom
clarfonthey:rfcbot-all

Conversation

@clarfonthey

@clarfonthey clarfonthey commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Note: to be paired with rust-lang/team#2642 (now merged)

Note that the first two commits are running cargo fmt and cargo clippy --fix, so, you only want to inspect the last one to see the actual changes.

@clarfonthey clarfonthey changed the title Rfcbot all Actually let T-all start FCPs Jul 30, 2026
@clarfonthey
clarfonthey marked this pull request as draft July 30, 2026 03:56
@clarfonthey
clarfonthey marked this pull request as ready for review July 30, 2026 16:21
Comment thread src/teams.rs Outdated
type TeamsMap = BTreeMap<TeamLabel, Team>;
#[derive(Debug, Deserialize, Default)]
struct TeamsMap {
#[serde(default, rename = "T-all")]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't actually know what other repos explicitly use the local config, but to avoid breaking it, I decided to just make it so that T-all is hard-configured to be equivalent to all_members in this case, assuming that nobody has done this.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think there are any repos that have configuration, if I'm interpreting this search right. I would just hardcode that we allow T-all in all cases for permissions purposes. Not sure if the team labels have influence beyond that.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

To clarify: do you think it's okay that T-all is configured differently? Or would you rather it still work as a regular team?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Since the alternative is just using the all_members naming, but I figured going with T-all for the toml configuration made a bit more sense. It's arbitrary either way.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think there is toml configuration anymore? At least I don't see any in most of our repositories. I don't think we need to support per-repository configuration of rfcbot, it should behave the same everywhere.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

In that case, I would be more than happy to just yeet that option from the code entirely if you're okay with the change being a bit larger.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah, seems easier to simplify.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Was astonishingly easy, although testing is confusing.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Okay, tests were confusing but now work.

@Mark-Simulacrum Mark-Simulacrum left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you split out the clippy/rustfmt changes to a separate PR? That'll make this easier to review.

Comment thread src/github/command.rs Outdated
Comment thread src/teams.rs Outdated
type TeamsMap = BTreeMap<TeamLabel, Team>;
#[derive(Debug, Deserialize, Default)]
struct TeamsMap {
#[serde(default, rename = "T-all")]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think there are any repos that have configuration, if I'm interpreting this search right. I would just hardcode that we allow T-all in all cases for permissions purposes. Not sure if the team labels have influence beyond that.

@clarfonthey clarfonthey mentioned this pull request Aug 3, 2026
@clarfonthey

Copy link
Copy Markdown
Contributor Author

Split out first two commits into #361. (Will rebase this after that is merged.)

@clarfonthey

Copy link
Copy Markdown
Contributor Author

(Rebased.)

Comment thread src/teams.rs Outdated
Comment thread src/github/nag.rs
fn subteam_members(issue: &Issue) -> DashResult<Vec<GitHubUser>> {
// retrieve all of the teams tagged on this issue
specific_subteam_members(|label| issue.labels.contains(label))
specific_subteam_members(|label| issue.labels.iter().any(|l| l == label))

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Note: <[T]>::contains only accepts &T, not anything that implements PartialEq.

@clarfonthey

Copy link
Copy Markdown
Contributor Author

Soft nudge @Mark-Simulacrum to review when you have time. No rush and I figure you just have been busy lately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants