Skip to content

fix(site): wait until port is available in e2e #15537

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

Merged
merged 5 commits into from
Nov 18, 2024

Conversation

mtojek
Copy link
Member

@mtojek mtojek commented Nov 15, 2024

Related: coder/internal#212

This PR modifies the logic responsible for creating a server in E2E tests to check if the port is free. Alternatively, we could refactor the framework to dynamically create server instances, but this solution might be a cheaper quick win.

Note:

I'll leave it as is now, it might be worth asking somebody with a frontend skillset to double-check this contribution.

@mtojek mtojek self-assigned this Nov 15, 2024
@mtojek mtojek changed the title fix(site): e2e: wait until port is available) fix(site): wait until port is available in e2e Nov 15, 2024
@mtojek mtojek requested a review from dannykopping November 15, 2024 16:47
@mtojek mtojek marked this pull request as ready for review November 15, 2024 16:47
Signed-off-by: Danny Kopping <danny@coder.com>
Copy link
Contributor

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

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

Thanks for the assist on this one @mtojek!

Tested this locally and it works, let's try it out in CI.

Signed-off-by: Danny Kopping <danny@coder.com>
@dannykopping dannykopping enabled auto-merge (squash) November 18, 2024 10:20
@dannykopping dannykopping merged commit 8ca8e01 into main Nov 18, 2024
27 checks passed
@dannykopping dannykopping deleted the fix-e2e-212-wait-for-server branch November 18, 2024 10:28
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