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
Updates k8sTest pkg to use netip.Addr #25325
Conversation
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.
Thanks for the PR! Please see review comments, also there are more ParseIP
uses in this file, please take a look at them too. After you push your changes, please re-request review from me.
755aa1b
to
dcb708b
Compare
@nebril thanks for the review and guidance. I've updated the PR so PTAL. |
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.
That looks much better, thank you for taking the time to fix it! I have one last request, can you change all other instances of ParseIP
in this file? I don't think it makes sense to make a separate PRs per helper.
I see instances in curlClusteRIPFromExternalHost
and testCurlFromPodWithSourceIPCheck
.
dcb708b
to
26068ee
Compare
@nebril I have updated the PR based on your feedback, PTAL. |
26068ee
to
6c0617e
Compare
/test |
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.
Awesome! LGTM
The CI failure unfortunately looks legit: https://jenkins.cilium.io/job/Cilium-PR-K8s-1.26-kernel-net-next/2310/
It seems like source IP was IPv4, but for some reason |
6c0617e
to
3d8e21d
Compare
@nebril thanks for looking into the CI failure. It appears that an IPv4-mapped IPv6 address was being used instead of an IPv6 address. I updated the PR to ensure the address is IPv6 and not an IPv4-mapped IPv6 address. |
3d8e21d
to
cd25b72
Compare
/test |
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.
Thanks for trying to fix that!
I would suggest writing a small local test that would test this block of code with IPv4in6 addresses, so that you don't have to wait for a whole CI run with your next solution.
cd25b72
to
f11523c
Compare
f11523c
to
40b8a8e
Compare
/test Edit:
|
/test |
1 similar comment
/test |
/test-vagrant |
/test-1.16-4.19 |
/test-1.26-net-next |
test-1.26-net-next |
/test-1.26-net-next |
3 similar comments
/test-1.26-net-next |
/test-1.26-net-next |
/test-1.26-net-next |
/test |
5613ba2
to
df707c8
Compare
I see the same failing test as #25304 (comment). Commit df707c8 |
/test Job 'Cilium-PR-K8s-1.26-kernel-net-next' failed: Edit: #25524 |
@danehans Just a heads up, each time there's a push, the previous CI results are wiped away and we can't see the results. Pushing to resolve CI failures caused by code is fine, but there's no need to constantly rebase the PR. |
Signed-off-by: Daneyon Hansen <daneyon.hansen@solo.io>
df707c8
to
e33b951
Compare
/test |
@christarazi the build error appears to be unrelated to this PR. |
I'm not sure why tests like |
I think that |
Marking ready to merge as we have approving reviews and relevant CI has passed.
|
@christarazi thanks for helping to move this PR forward. Do you or someone else need to /approve for this PR to merge? |
/ci-eks |
Updates the k8sTest pkg to use
netip.Addr()
instead ofnet.IP
.Related: #24246