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

bgpv1: Avoid ports from common ip_local_port_range in unit tests #26174

Merged
merged 1 commit into from
Jun 15, 2023

Conversation

rastislavs
Copy link
Contributor

@rastislavs rastislavs commented Jun 13, 2023

Unit tests should not use ports from the common default Linux ip_local_port_range (32768-60999), as those ports may be already used as a source port for an outgoing connection. This can cause intermittent failures in the CI manifesting as bind: address already in use.

E.g. in my Linux system:

$ cat /proc/sys/net/ipv4/ip_local_port_range 
32768	60999

This should avoid the CI issues for now, but the tests should be refactored - filed a follow-up issue in #26209

Fixes: #24691

@rastislavs rastislavs added area/CI Continuous Integration testing issue or flake release-note/ci This PR makes changes to the CI. labels Jun 13, 2023
@rastislavs rastislavs force-pushed the fix-bgp-port-flake branch 3 times, most recently from 3d401b5 to 9558912 Compare June 14, 2023 08:15
@rastislavs rastislavs marked this pull request as ready for review June 14, 2023 08:40
@rastislavs rastislavs requested a review from a team as a code owner June 14, 2023 08:40
@rastislavs
Copy link
Contributor Author

/test

Unit tests should not use ports from the common Linux
ip_local_port_range (32768-60999), as those ports may be
already used as a source port for an outgoing connection.

Signed-off-by: Rastislav Szabo <rastislav.szabo@isovalent.com>
Copy link
Contributor

@harsimran-pabla harsimran-pabla left a comment

Choose a reason for hiding this comment

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

LGTM, thank you.

@rastislavs
Copy link
Contributor Author

rastislavs commented Jun 14, 2023

/test

(rebased to fetch latest CI changes/fixes)

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 14, 2023
@rastislavs rastislavs added the kind/bug/CI This is a bug in the testing code. label Jun 14, 2023
@tklauser tklauser merged commit fd72314 into cilium:main Jun 15, 2023
65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bgp area/CI Continuous Integration testing issue or flake kind/bug/CI This is a bug in the testing code. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: Travis CI - Pull Request (github.com/cilium/cilium/pkg/bgpv1/gobgp)
3 participants