Skip to content

Conversation

@papaj-na-wrotkach
Copy link
Contributor

@papaj-na-wrotkach papaj-na-wrotkach commented Aug 27, 2025

I couldn't follow the steps in tests/README.md because two containers failed to bind to the same port, already used by a locally running database.

Does your PR solve an issue?

No. I didn't create one just for such a simple change.

Is this a breaking change?

No, it doesn't even touch the Rust code.

I couldn't follow the steps in `tests/README.md` because two containers failed to bind to the same port, already used by a local running database.
@papaj-na-wrotkach
Copy link
Contributor Author

The check failed because of a random timeout from rust-lang.org's servers while setting up Rust. Just saying. 👀

Copy link
Collaborator

@abonander abonander left a comment

Choose a reason for hiding this comment

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

I was going to reject this change as unnecessary, since you can override the port in the docker compose run command like we do in CI here: https://github.com/launchbadge/sqlx/blob/c5037f1fca18018fb9605a8e2b49faaddb9fb269/.github/workflows/sqlx.yml#L231C1-L231C144

However, I see that this is actually fixing a consistency issue in this file, as we already don't assign a host port for any of the other services. So it's pretty benign.

@abonander abonander changed the title use random ports for all conatiners fix(compose): use OS-assigned ports for all conatiners Aug 27, 2025
@abonander abonander merged commit e6e8fc7 into launchbadge:main Aug 27, 2025
188 of 193 checks passed
@papaj-na-wrotkach papaj-na-wrotkach deleted the patch-1 branch August 27, 2025 18:16
JosiahParry pushed a commit to JosiahParry/sqlx that referenced this pull request Sep 24, 2025
I couldn't follow the steps in `tests/README.md` because two containers failed to bind to the same port, already used by a local running database.
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.

2 participants