-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
util/iptables: fix cross-build failures due to syscall.Flock() #45601
util/iptables: fix cross-build failures due to syscall.Flock() #45601
Conversation
3524eb8
to
62d42ce
Compare
62d42ce
to
7d0b518
Compare
@dcbw can you run |
@dcbw this is blocking other PRs, can we get this through today? |
@vishh yeah, working on this; it's repushed with a bazel fix 30m ago. hack/update-bazel.sh doesn't work because it doesn't correctly handle GOPATH like all the rest of the hack/ stuff does (eg, as a subpath of build/). IIRC I tried to make it do that a couple months ago, but we can't because it does really odd things with looking at package imports. So anyway, I'm stuck making the Jenkins stuff do the bazel verification. |
Test Failures seems to be a flake? |
@deads2k known flake? ^ (issue has been pending for a long time) |
@dcbw I've always updated bazel like this:
has worked well for me for a long time |
@luxas thanks, that works! I'll use that from now on. |
@k8s-bot pull-kubernetes-cross test this |
@dcbw , |
@k82cn yeah, I thought that by the "use golang.org/x/syscall" the suggestion was to just use that. I'd originally done a split out with build +linux, and I'll just do both things. |
7d0b518
to
f8e1d28
Compare
@k8s-bot pull-kubernetes-cross test this |
@@ -0,0 +1,93 @@ | |||
// +build linux |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the build tags necessary even with explicit naming?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dcbw a minor nit. Otherwise this PR is ready to be merged |
@dcbw , the platform part is OK to me; delegate lock/iptables part to other reviewers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for fixing!
There are some nits but they are easily fixable.
And you found the right cross-build command already, perfect!
pkg/util/iptables/iptables_linux.go
Outdated
// +build linux | ||
|
||
/* | ||
Copyright 2014 The Kubernetes Authors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now 2017 ;)
f8e1d28
to
a4624a0
Compare
@luxas fixed the dates, PTAL thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, no harm done although there are both _linux.go
and build linux
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dcbw, luxas
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
@dcbw: The following test(s) failed:
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Automatic merge from submit-queue |
Fixes: #45554
Related: #44895
@luxas @k82cn @danwinship