Renaming Python "master" branch to "main" (1.4k PRs & 700 repositories) triggered server HTTP error 500

Hi, the default “master” branch of the python/cpython project was renamed to “main”. The dialog announced that 1.4k pull requests and 747 repositories will be impacted. A few minutes later, a “main” branch was created, the default remains “master”, and https://github.com/python/cpython/branches displays an HTTP error 500.

Right now, Pull requests · python/cpython · GitHub PRs still point to “master” (I checked a few of them, there are 1.4k+ open PRs, 25k+ PRs in total).

Should we retry to rename the branch? Is a job still running in the GitHub server side?

17 Likes

Copy of the “rename branch” dialog:

Rename master to:
main

Renaming the branch:

  • Will update 1.4k pull requests targeting this branch accross 747 repositories.
  • Will update 1 branch protection that explicitly targets master.
  • Will not update your members’ local environments. (Learn more).

Screenshot: https://twitter.com/DeejayNof/status/1389328007375036421/photo/1

3 Likes

Looks like it just needed time to process. https://github.com/python/cpython/branches now shows “main” as the default and no sign of a “master” branch. I checked one random PR and it now targets “main”.

1 Like

Not quite: https://twitter.com/willsmythe/status/1389332999720800256

1 Like

Hi, I’m an engineer on GitHub’s coding team. I just manually processed that branch rename. One of the initial steps of the rename was taking long enough that it timed out and so the rename didn’t finish on its own.

Generally you can expect a rename to be finished within a couple minutes of when it starts, but if you do find one that hangs like this feel free to reach out to support and we can take a look.

12 Likes

Thanks! We suspected it was something like that.