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

PR-v1.7-backport-2021-02-19 #15040

Merged
merged 4 commits into from Feb 22, 2021
Merged

PR-v1.7-backport-2021-02-19 #15040

merged 4 commits into from Feb 22, 2021

Conversation

nathanjsweet
Copy link
Member

v1.7 backports 2021-02-19

Once this PR is merged, you can update the PR labels via:

$ for pr in 15008; do contrib/backporting/set-labels.py $pr done 1.7; done

gandro and others added 4 commits February 19, 2021 13:52
[ upstream commit c7e2573 ]

Previously, the script assumed `origin` would point to the upstream
branch. For users with forked repositories this is not necessarily true,
therefore this commit auto-detects the remote name based on the git
remote url.

Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
Signed-off-by: Nate Sweet <nathanjsweet@pm.me>
[ upstream commit bbf5b20 ]

This commit adds a optional positional argument to `get_remote` to allow
obtaining the remote of Cilium forks in other organizations than the
default `cilium` one.

Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
Signed-off-by: Nate Sweet <nathanjsweet@pm.me>
[ upstream commit 0195657 ]

This adds support for pushing backport PRs from Cilium forks. Because
the names of remotes in forked repositories are not standardized, the
`submit-backport` script is changed such that it accepts two branch
arguments: The upstream remote and the user (fork) remote.

The upstream remote is detected using the existing `get_remote` helper,
while the user (fork) remote is guessed by checking for a remote
matching `github.com/<user>/cilium`.

Co-authored-by: Quentin Monnet <quentin@isovalent.com>
Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
Signed-off-by: Nate Sweet <nathanjsweet@pm.me>
[ upstream commit 388e7aa ]

Co-authored-by: Quentin Monnet <quentin@isovalent.com>
Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
Signed-off-by: Nate Sweet <nathanjsweet@pm.me>
@nathanjsweet nathanjsweet added kind/backports This PR provides functionality previously merged into master. backport/1.7 labels Feb 19, 2021
@nathanjsweet nathanjsweet requested review from gandro and a team February 19, 2021 19:56
@aanm aanm merged commit 360549d into v1.7 Feb 22, 2021
@aanm aanm deleted the pr/v1.7-backport-2021-02-19 branch February 22, 2021 09:45
@@ -18,6 +18,14 @@ DIR=$(dirname $(readlink -ne $BASH_SOURCE))
source $DIR/../release/lib/common.sh
source $DIR/common.sh

require_linux
Copy link
Member

@gandro gandro Feb 22, 2021

Choose a reason for hiding this comment

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

I believe this line has been pulled in by accident by conflict resolution. It's not available on 1.7, so the script will crash.

We should probably simply backport the underlying commit: 05eabc7 (not the full PR)

Edit: I did so in #15052

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/backports This PR provides functionality previously merged into master.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants