Skip to content
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

Rename master branch to main #24717

Merged
merged 4 commits into from Apr 18, 2023
Merged

Rename master branch to main #24717

merged 4 commits into from Apr 18, 2023

Conversation

joestringer
Copy link
Member

@joestringer joestringer commented Apr 3, 2023

  • .github: Rename master -> main
  • Update release scripting for main branch rename
  • test: Update scripts for main branch rename
  • docs: Update references to the main branch

In order to merge this PR, we would need to rename the default branch in the GitHub UI first.

Currently blocked on allocating a cutover date.

Fixes: #23110

@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Apr 3, 2023
@joestringer joestringer added the release-note/misc This PR makes changes that have no direct user impact. label Apr 3, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Apr 3, 2023
@christarazi
Copy link
Member

There's also the Jenkins configuration that will need to be updated.

cc @nbusseneau

@sayboras
Copy link
Member

sayboras commented Apr 4, 2023

we might also need to partially backport this to older releases, at least for documentation changes.

@joestringer
Copy link
Member Author

/test

@joestringer joestringer marked this pull request as ready for review April 4, 2023 22:50
@joestringer joestringer requested review from a team as code owners April 4, 2023 22:50
@joestringer joestringer added the dont-merge/waiting-for-user-feedback Waiting for feedback from user before the PR should be merged. label Apr 4, 2023
Copy link
Contributor

@zacharysarah zacharysarah left a comment

Choose a reason for hiding this comment

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

So glad to see this work happening. 🌟 I have one question about whether renaming the file linked in .github/ISSUE_TEMPLATE/failing_test_jenkins_template.yaml needs to happen in this PR, or whether it will happen separately. Otherwise, no explicit changes required, LGTM from a docs perspective.

@@ -28,7 +28,7 @@ Cilium Committer Grant/Revocation Policy
========================================

A Cilium committer is a participant in the project with the ability to
commit code directly to the master repository. Commit access grants a
commit code directly to the main branch. Commit access grants a
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment on lines +101 to +103
If a bug is present on main and other branches, fix it on main first,
then backport the fix to other branches. Straightforward backports
do not require additional review (beyond that for the fix on main).
Copy link
Contributor

Choose a reason for hiding this comment

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

Just want to call this out as a great example of straightforward, clear writing. ✨

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll pass those kudos back to the community :-) In this PR, I'm just a fancy version of sed.

Signed-off-by: Joe Stringer <joe@cilium.io>
Signed-off-by: Joe Stringer <joe@cilium.io>
Signed-off-by: Joe Stringer <joe@cilium.io>
Signed-off-by: Joe Stringer <joe@cilium.io>
@joestringer
Copy link
Member Author

Tests previously passed, I just had to rebase due to a minor conflict in install/kubernetes/cilium/Chart.yaml.

@pchaigno pchaigno removed the request for review from NikAleksandrov April 18, 2023 10:24
@joestringer joestringer removed the dont-merge/waiting-for-user-feedback Waiting for feedback from user before the PR should be merged. label Apr 18, 2023
@joestringer joestringer merged commit fa7a7e0 into main Apr 18, 2023
41 checks passed
@joestringer joestringer deleted the pr/joe/main-rename branch April 18, 2023 16:46
@@ -7,7 +7,7 @@ require_linux

ORG=${ORG:-"cilium"}
REPO=${REPO:-"cilium"}
BRANCH=${BRANCH:-"master"}
BRANCH=${BRANCH:-"main"}
Copy link
Member

Choose a reason for hiding this comment

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

We probably also want this change in the stable branches. And I bet there's a whole bunch of similar changes across the PR ...

Copy link
Member

Choose a reason for hiding this comment

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

I think we should already be fine as we already handle this as part of the stable branching process (e.g. workflow files get the main/master references replaced with the stable branch name), and I don't think there's anything outside of that that requires additional changes following the rename of master to main.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think Julian is highlighting that his workflow is to use the cherry-pick script from an older branch which doesn't yet have these changes. Personally I always use the contrib/ scripts from main branch (using git worktree to share the git repo with multiple copies per branch), but I appreciate that others have other workflows.

This will work with master for the next three months or so unless we either address this in all older branches or extend the master mirror longer. Bumping the cherry-pick script is simple enough, I can submit a PR for that. If you find any other broken workflows in future, feel free to send the PRs to fix those in the target branches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename git primary branch to "main"
10 participants