Skip to content

Conversation

pietroalbini
Copy link
Member

@pietroalbini pietroalbini commented Jun 4, 2025

Re-submitting #1866 again as requested:

This PR finishes the work from rust-lang/sync-team#91 (I used @me-diru's code, adapted it to the modified codebase and marked them as an author).

I guess that it would be good to repost this PR by an infra-admin, so that we could get a dry-run for it.

Fixes: #1731

cc @Kobzol

  • Reach out to people that we are removing to thank them for their work and explain why we are removing them

Discussed in #t-infra > removing inactive members from the org.

Copy link

github-actions bot commented Jun 4, 2025

Dry-run check results

[WARN  sync_team] sync-team is running in dry mode, no changes will be applied.
[INFO  sync_team] synchronizing github
[INFO  sync_team] 💻 Org membership Diffs:
    ❌ Removing the following members from `rust-analyzer`:
      - JoshMcguigan
      - SomeoneToIgnore
      - Veetaha
      - Xanewok
      - dustypomerleau
      - edwin0cheng
      - kiljacken
      - kjeremy
      - lf-
      - lowr
      - matklad
      - pnkfelix
      - wesleywiser
    ❌ Removing the following members from `rust-dev-tools`:
      - QuietMisdreavus
      - Xanewok
      - fitzgen
      - killercup
      - kinnison
      - nrc
      - tromey
    ❌ Removing the following members from `rust-lang`:
      - Aaron1011
      - Aatch
      - AlexEne
      - AngelOnFira
      - Azhng
      - AzureMarker
      - BenLewis-Seequent
      - ChrisPardy
      - CraftSpider
      - CryZe
      - Dajamante
      - Diggsey
      - Gankra
      - GeertVL-zz
      - Haggus
      - Havvy
      - JDuchniewicz
      - JamesPatrickGill
      - JoeyEremondi
      - JuanPotato
      - KiChjang
      - Kimundi
      - Kixiron
      - LeSeulArtichaut
      - Lubits
      - LucasBullen
      - LucioFranco
      - LukasKalbertodt
      - MarkMcCaskey
      - Nashenas88
      - NikVolf
      - PartiallyUntyped
      - PramodBisht
      - QuietMisdreavus
      - SomeoneToIgnore
      - Stupremee
      - TimNN
      - XAMPPRocky
      - Xanewok
      - Xylakant
      - aatxe
      - adamgreig
      - adrq
      - aidanhs
      - alexheretic
      - am-1t
      - amanjeev
      - andre-richter
      - anp
      - aravind-pg
      - arazabishov
      - arielb1
      - arora-aman
      - ashleygwilliams
      - aturon
      - autodidaddict
      - autozimu
      - avadacatavra
      - bIgBV
      - basil-cow
      - bawerd
      - bennyvasquez
      - betamos
      - blitzerr
      - bluss
      - booyaa
      - brendanzab
      - camsteffen
      - carllerche
      - championshuttler
      - chrissimpkins
      - chrisvittal
      - comex
      - csmoe
      - davidlattimore
      - detrumi
      - dhuseby
      - dirtybit
      - djcarpe
      - doc-jones
      - dotdash
      - dwijnand
      - dyxushuai
      - ebroto
      - edunham
      - edwin0cheng
      - ehsanmok
      - eldruin
      - emberian
      - eminence
      - emmanuelantony2000
      - erickt
      - fairingrey
      - flaper87
      - fmckeogh
      - frewsxcv
      - gaurikholkar-zz
      - gavento
      - gereeter
      - giannicic
      - gilescope
      - glandium
      - gnunicorn
      - gsollazzo
      - h1467792822
      - hameerabbasi
      - hargoniX
      - hdhoang
      - hkmatsumoto
      - hrvolapeter
      - hsivonen
      - huonw
      - igaray
      - inquisitivecrystal
      - ishitatsuyuki
      - japaric
      - jasonwilliams
      - jdm
      - jechasteen
      - jenniferwills
      - jkelleyrtp
      - jkordish
      - jonathanpallant
      - jroesch
      - jrozner
      - jseyfried
      - justahero
      - khaledkbadr
      - khionu
      - killercup
      - kinnison
      - korken89
      - koute
      - kupiakos
      - kvark
      - lbernick
      - leoyvens
      - lilyball
      - listochkin
      - lloydmeta
      - locks
      - logmosier
      - lowr
      - luqmana
      - mark-i-m
      - matklad
      - matthieu-m
      - mbrubeck
      - mcarton
      - memoryruins
      - mikhail-m1
      - mstallmo
      - mystor
      - nagashi
      - nasa42
      - nathanwhit
      - nbp
      - nikomatsakis-admin
      - nox
      - null-sleep
      - o0Ignition0o
      - ollie27
      - onur
      - onur-ozkan
      - orenwf
      - orium
      - ouz-a
      - pambihira
      - pcwalton
      - pepyakin
      - peschkaj
      - phansch
      - pichfl
      - pierwill
      - pnkfelix
      - qmx
      - retep998
      - rfcbot
      - rholderfield
      - ritiek
      - roxelo
      - rust-heroku-deploy-access
      - ryankurte
      - sanxiyn
      - sapphire-arches
      - scalexm
      - scampi
      - seanchen1991
      - sgrif
      - smarnach
      - solson
      - soniasingla
      - steveklabnik
      - stokhos
      - strega-nil
      - sunjay
      - tamuhey
      - tgnottingham
      - thejpster
      - therealprof
      - togiberlin
      - tomprince
      - topecongiro
      - totsteps
      - treiff
      - uberjay
      - vadimcn
      - valgrimm
      - varkor
      - vlad20012
      - wain303009
      - whitequark
      - wirelessringo
      - withoutboats
      - wycats
      - xFrednet
      - xmonader
      - zackmdavis
      - zaharidichev
      - zeenix
    ❌ Removing the following members from `rust-lang-nursery`:
      - ALCC01
      - Aaron1011
      - AzureMarker
      - BenLewis-Seequent
      - Byron
      - CraftSpider
      - Diggsey
      - ELD
      - Gankra
      - Haggus
      - JoeyEremondi
      - KiChjang
      - Kimundi
      - Kixiron
      - LeSeulArtichaut
      - LucioFranco
      - LukasKalbertodt
      - MajorBreakfast
      - MarkMcCaskey
      - Michael-F-Bryan
      - Nashenas88
      - PramodBisht
      - QuietMisdreavus
      - TimNN
      - Xanewok
      - Yarn
      - aajtodd
      - aatxe
      - aidanhs
      - alecmocatta
      - alexheretic
      - andrewtj
      - anxiousmodernman
      - aravind-pg
      - ashfordneil
      - ashleygwilliams
      - aturon
      - autodidaddict
      - autozimu
      - avadacatavra
      - azdle
      - bIgBV
      - badboy
      - basil-cow
      - betamos
      - calebcartwright
      - carols10cents
      - cassiersg
      - chrisvittal
      - csmoe
      - davidbarsky
      - deg4uss3r
      - detrumi
      - dibsonmuad
      - doc-jones
      - ecstatic-morse
      - eddyb
      - edunham
      - eminence
      - emmanuelantony2000
      - ereichert
      - erickt
      - fitzgen
      - gaurikholkar-zz
      - gavento
      - giannicic
      - gilescope
      - gnzlbg
      - gruberb
      - hrvolapeter
      - huonw
      - ibabushkin
      - inejge
      - ishitatsuyuki
      - japaric
      - jasonwilliams
      - jbcden
      - jethrogb
      - jkozlowski
      - jonathanpallant
      - jyn514
      - khaledkbadr
      - khionu
      - killercup
      - kinnison
      - kleimkuhler
      - kulshrax
      - lbernick
      - leoyvens
      - levex
      - llogiq
      - lloydmeta
      - marcusklaas
      - matklad
      - matthieu-m
      - mbrubeck
      - michaelwoerister
      - mitsuhiko
      - nathanwhit
      - nellshamrell
      - nikomatsakis-admin
      - ollie27
      - onur
      - orenwf
      - pnkfelix
      - qmx
      - ritiek
      - rolftimmermans
      - rylev
      - sapphire-arches
      - scalexm
      - sfackler
      - sgrif
      - solson
      - steveklabnik
      - strega-nil
      - sunjay
      - technetos
      - tinaun
      - tomaka
      - tomprince
      - topecongiro
      - tromey
      - tynril
      - varkor
      - vlad20012
      - withoutboats
      - xmonader
      - zackmdavis
      - zaharidichev
      - zeenix

@marcoieni
Copy link
Member

It's removing rust-lang-owner and other bots

@marcoieni
Copy link
Member

I tried pushing one commit that also updated master, but failed miserably, so I reverted it 😅

@marcoieni
Copy link
Member

marcoieni commented Jul 15, 2025

Now Kobzol is not in the authors of the commit anymore. Sorry about that but that's the maximum I can get with my git skills 😂
image

@marcoieni marcoieni force-pushed the sync-org-members branch 2 times, most recently from ebdec80 to e05929e Compare July 15, 2025 07:42
@marcoieni marcoieni force-pushed the sync-org-members branch 2 times, most recently from b8a431b to c9d7993 Compare July 15, 2025 08:18
@marcoieni marcoieni force-pushed the sync-org-members branch 2 times, most recently from e76e204 to 6a05230 Compare July 15, 2025 08:57
config.toml Outdated

# GitHub accounts that are allowed to stay in the orgs,
# even if they may not be members of any team.
allowed-org-members = [
Copy link
Member

@Kobzol Kobzol Jul 15, 2025

Choose a reason for hiding this comment

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

nit: allowed makes it sound like only these org members may be a part of an org :D Which of course doesn't make sense, and the comment does clarify it. But I don't have a great alternative. Maybe just special-org-members? But it doesn't really matter.

Copy link
Member

Choose a reason for hiding this comment

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

I like special-org-members

Copy link
Member Author

Choose a reason for hiding this comment

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

Special also doesn't clarify much, maybe call it dont-remove-from-orgs = []?

config.toml Outdated
"rustbot",

# Infra admins.
"jdno",
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, we start having a bunch of places where we hardcode infra-admins. Maybe it would be better if we loaded the actual contents of the infra-admins team (so that we hardcode only the team in code, but not its members) in code and ignored them?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is a good point, but also, I'm not sure if hardcoding the infra-admins team in the code is the best either. As we are not managing org owners with the team repo for now, I'd skip removing any org owner, and do a manual pass removing inactive org owners.

Copy link
Member

Choose a reason for hiding this comment

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

We already hardcode infra-admins for CODEOWNERS, but ignoring org owners is a good point.

use indexmap::IndexMap;
use serde::{Deserialize, Serialize};

pub static BASE_URL: &str = "https://team-api.infra.rust-lang.org/v1";

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Default)]
Copy link
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 we need to expose this to the JSON API? It's an internal implementation detail. Can't you just pass &Config from team to sync-team in run_sync_team?

@marcoieni marcoieni force-pushed the sync-org-members branch 4 times, most recently from 8e30e03 to 651601f Compare July 17, 2025 13:40
@marcoieni marcoieni requested a review from Kobzol July 17, 2025 14:00
@marcoieni
Copy link
Member

addressed the feedback, thanks. Ready for another look 👍

@marcoieni marcoieni force-pushed the sync-org-members branch 2 times, most recently from 8fd1430 to 2492b40 Compare July 17, 2025 15:52
Copy link
Member

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@jieyouxu
Copy link
Member

jieyouxu commented Aug 8, 2025

Triage: waiting on the communication part #t-infra > removing inactive members from the org.

@jieyouxu jieyouxu added needs-infra-admin-review This change requires one of the `infra-admins` to review. S-waiting-on-team Status: waiting on team T-infra Relevant to the infrastructure team. labels Aug 8, 2025
@programmerjake
Copy link
Member

Now Kobzol is not in the authors of the commit anymore. Sorry about that but that's the maximum I can get with my git skills 😂

if you want more than one author to be listed, you can use Co-Authored-By: Their Name <[email protected]>

@marcoieni marcoieni added this pull request to the merge queue Aug 26, 2025
Merged via the queue into master with commit ef09805 Aug 26, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-infra-admin-review This change requires one of the `infra-admins` to review. S-waiting-on-team Status: waiting on team T-infra Relevant to the infrastructure team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove users without a team from GitHub
9 participants