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
Replace almost all uses of 'syscall' with 'unix' pkg. #10158
Replace almost all uses of 'syscall' with 'unix' pkg. #10158
Conversation
Release note label not set, please set the appropriate release note. |
test-me-please |
Alright, I've been able to verify the test failure locally. Also checked the prior commit to make sure that there wasn't some upstream instability which sneaked through. Very curious what has actually been uncovered here. I'll start investigating |
@Ropes As far as I can tell, there's only one failure which looks like the known CI flake #9869 : So if the rest of the build (including the full testsuite with the k8s-1.11+net-next+kubeproxy-free) passes then this should be good enough from a testing perspective. Just need reviews from the codeowners. |
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!
There will be a potential conflict once #10117 gets merged.
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. And there might be yet another conflict with #10058 once it's merged.
0b79807
to
a26f8b4
Compare
Just force pushed a fix for a code conflict with master. |
21568df
to
2a1406d
Compare
2a1406d
to
cfb06cd
Compare
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.
Just a few remaining unexpected changes, otherwise LGTM.
'golang.org/x/sys/unix' package is replacement for 'syscall' which has been deprecated since Go 1.4. While the changes do touch a lot of files, all of the modifications are simply replacing imports of the `syscall` package, with `x/sys/unix` implementations. The only functionality which technically changed is in bpf_linux.go; where unix.BytePtrFromString() now returns an error value. It is a minor logic change, syscall.StringBytePtr() does not return error, just bad data value which would have errored later in function. Swagger API server.gotmpl was updated, and udpated API code committed. There is one case of `syscall` remaining in the cilium dnsproxy. There is currently [no good replacement](cilium#10116 (comment)) listening for UDP traffic. So left as is. Fixes: cilium#10116 Signed-off-by: Joshua Roppo <joshroppo@gmail.com>
cfb06cd
to
8477c78
Compare
test-me-please |
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.
Commit fc0aedf2642238dc1a6cbfc44d335c3ba6d0a33f does not contain "Signed-off-by". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
fc0aedf
to
8477c78
Compare
golang.org/x/sys/unix
package is replacement forsyscall
which hasbeen deprecated since Go 1.4.
While the changes do touch a lot of files, all of the modifications are
simply replacing imports of the
syscall
package, withx/sys/unix
implementations. No functionality changes, so no new tests added.
There is one case of
syscall
remaining in the cilium dnsproxy. Thereis currently no good replacement listening for UDP traffic.
Fixes: #10116
Signed-off-by: Joshua Roppo joshroppo@gmail.com
This change is