-
Notifications
You must be signed in to change notification settings - Fork 20
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
[DEPR]: Make OSPR bot unaware of which repositories CCs can merge to #227
Comments
The "core committer" label is also a signal to other reviewers that the author has a certain status in the community. Can we get that some other way? |
BTW, the core committer information is currently the only useful information in the people.yaml file, so if we move ahead with this I think we can completely remove people.yaml code from the bot, and simply abandon the people.yaml file. |
Oh, good to know @nedbat . Where does the CLA info come from? |
From the salesforce export, https://github.com/openedx/openedx-webhooks-data/blob/main/salesforce-export.csv (private link). |
Good to know, thanks. I updated the issue description. |
To clarify, would that mean we'd completely retire the |
@itsjeyd There's no technical reason why the @mphilbrick211 , how do you feel about the |
Now that Feanil has done his repo conformance work, anyone can type |
label: core committer |
I've asked the CCs to weigh in on Slack: https://openedx.slack.com/archives/C015KC8CN76/p1678117838078079 |
label: xyzzy |
This is now Accepted. In the coming weeks I will communicate the change to core contributors and to 2U and then remove this functionality from the OSPR bot. |
Sorry, I forgot about this for a bit! I'm going to push through openedx-unsupported/terraform-github#61 first, which will add the |
That sounds great @kdmccormick, thanks for the update! |
I talked with @mphilbrick211 and @itsjeyd about the new Obviously, these semantics would be easier to automate than the current So, the question on my mind on now is: should we
@nedbat , let me know if you have an opinion in either direction. |
@nedbat @feanil After further consideration, I'm coming to the conclusion that this DEPR as I wrote it is overzealous. At least in its current form, the OSPR bot needs to remain aware of who is a CC on what repo, even if we switch to the new Why? Putting aside the
Now, this flow is partially broken currently because we are reading the CC data from the no-longer-updated In order to fully fix this flow we would need to do a few things:
Of course, this is assuming that 2U and the Open edX project managers want to continue using the Jira OSPR flow, which is something I don't feel equipped to make decisions about. In the meantime, I can still carry out the part of this DEPR that is "stop using the |
Stopped the bot from adding the `core committer` GitHub label to pull requests to repos on which the bot believes the author to have write access. The bot's data source for repository access, `people.yaml`, is outdated, we do not yet have a strategy for keeping it updated. Until further notice, coding Core Contributors are asked to add the `core contributor` label to their pull requests manually. Another implication of `people.yaml` being oudated is that the bot is not correctly choosing when to create Jira tickets, which welcome/help message to post, etc. We are not addressing that issue currently. Part of: openedx#227
Stopped the bot from adding the `core committer` GitHub label to pull requests to repos on which the bot believes the author to have write access. The bot's data source for repository access, `people.yaml`, is outdated, we do not yet have a strategy for keeping it updated. Until further notice, coding Core Contributors are asked to add the `core contributor` label to their pull requests manually. Another implication of `people.yaml` being oudated is that the bot is not correctly choosing when to create Jira tickets, which welcome/help message to post, etc. We are not addressing that issue currently. Part of: #227
Stopped the bot from adding the `core committer` GitHub label to pull requests to repos on which the bot believes the author to have write access. The bot's data source for repository access, `people.yaml`, is outdated, we do not yet have a strategy for keeping it updated. Until further notice, coding Core Contributors are asked to add the `core contributor` label to their pull requests manually. Another implication of `people.yaml` being oudated is that the bot is not correctly choosing when to create Jira tickets, which welcome/help message to post, etc. We are not addressing that issue currently. Part of: #227
As of be68232, the bot has no information about who is a core contributor, and does nothing special for them. Do we want to keep this issue for the future work of bringing this back when the information is in the Salesforce export? |
Thanks Ned. Let's close this since the deprecated feature has been removed, and use #207 for the future work. |
Proposal Date
2023-02-03
Target Ticket Acceptance Date
2023-03-13
Earliest Open edX Named Release Without This Functionality
March/April 2023 (not tied to a release)
Rationale
Background
This application looks at a people.yml file for community data. Here's a sample people.yml. If you have access, here's the real people.yml. The only use people.yml currently is the list of repos that Coding Core Contributors (aka Core Committers) have access to. When a CC opens a PR, it uses this data to decide:
core committer
label or not?Problem
Since it is no longer the source of truth for CLA data (that's salesforce-export.csv, now), people.yml is liable to falling very out of date. At time of writing this ticket, its last sync with reality was 3+ months ago, via manual update.
There are already two other places where CC repos need to updated: GitHub permissions and the CC wiki page. We (tCRIL) are not keen on keeping the repos in people.yml up-to-date unless there is compelling reason for us to do so.
Removal
#246
(this section needs updating)
Delete people.yml: https://github.com/openedx/openedx-webhooks-data/blob/main/people.yaml.
Remove the data structures, utility functions, and tests for people.yml from https://github.com/openedx/openedx-webhooks.
Remove all logic from https://github.com/openedx/openedx-webhooks that pertains to Core Committer access. The only thing the bot should care about is whether a CLA has been signed.
Remove the
core committer
label from labels.ymlOptional: Reword the generic PR message:
to something that makes sense for core contributors. For example, it might say:
Replacement
Core Contributors can manually add the
core contributor
label to their PRs withlabel: core contributor
.There is no other planned replacement.
However, here are some alternatives if we wanted to keep the bot aware of core committer repo access:Have the OSPR bot use the GitHub permissions API rather than people.yml to determine whether someone has write access to a repository.Automatically sync CC repository access information into people.yml. For example, maybe we could store CC access information in Salesforce, and then percolate down to both GitHub and this application. I don't really know how this would be done.Have tCRIL on-call manually keep people.yml in sync with GitHub and the wiki.Deprecation
No response
Migration
Before accepting this deprecation
Get consensus from @feanil , @sarina , @nedbat , and @mphilbrick211, and @e0d that this change makes sense. I am aware that this change might not make sense, but I felt like a DEPR ticket was the best way to discuss it.
After accepting the deprecation
Inform CCs in Slack and on the forums about the workflow changes. Ned could send an email to 2U folks to inform them that PRs from CCs and non-CCs will now look identical.
Additional Info
No response
The text was updated successfully, but these errors were encountered: