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

test: randomized non-overlapping networks on 10.A.B.0/20 #1023

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

jchappelow
Copy link
Member

@jchappelow jchappelow commented Sep 25, 2024

Since we cannot set Docker's default-address-pools in daemon.json on Github Actions like we did our our old self-hosted running, this PR attempts to pick random /20 networks in 10.A.B.0/20 (there are 4096 subnets each with 4096 addresses) rather than use "10.9.0.0/16", which can cause trouble if the network isn't taken down fast enough or if a test fails and decides not to clean up the network, which can break subsequent tests without different networks.

@jchappelow jchappelow changed the title [TEST] andomized non-overlapping networks on 10.A.B.0/20 [TEST] randomized non-overlapping networks on 10.A.B.0/20 Sep 25, 2024
@jchappelow

This comment was marked as outdated.

@jchappelow jchappelow changed the title [TEST] randomized non-overlapping networks on 10.A.B.0/20 randomized non-overlapping networks on 10.A.B.0/20 Sep 30, 2024
@jchappelow jchappelow changed the title randomized non-overlapping networks on 10.A.B.0/20 test: randomized non-overlapping networks on 10.A.B.0/20 Sep 30, 2024
@jchappelow
Copy link
Member Author

Closing but not deleting branch in case we want to resurrect this.

@jchappelow jchappelow closed this Oct 1, 2024
@jchappelow
Copy link
Member Author

I think we should at least try this before entirely reverting the ipam section of docker network config. I'm seeing frequent docker errors in CI related to overlapping networks. Usually it's just following a failed test that is not cleaned up, but it is misleading when trying to diagnose CI failure.

@jchappelow jchappelow reopened this Oct 4, 2024
Copy link
Contributor

@Yaiba Yaiba left a comment

Choose a reason for hiding this comment

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

LGTM

@jchappelow jchappelow merged commit 86688e2 into kwilteam:main Oct 4, 2024
5 checks passed
@jchappelow jchappelow deleted the docker-network-rand branch October 4, 2024 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants