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

fix: Use random ports in rest tests instead of fixed ones #2804

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

NagyZoltanPeter
Copy link
Contributor

Description

Found that some of the random failures in CI comes from old fashioned REST API tests that use fixed ports for test setup.
Now this changed to OS selected random free ports all remaining places.

I expect more stable CI tests from this change. No functionality changed.

Changes

  • All rest test port setup now uses Port(0)

How to test

  1. Just run all tests

Copy link

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2804-rln-v1

Built from 9142d0e

Copy link

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2804-rln-v2

Built from 9142d0e

Copy link
Contributor

@gabrielmer gabrielmer left a comment

Choose a reason for hiding this comment

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

Thanks so much!

Copy link
Contributor

@SionoiS SionoiS left a comment

Choose a reason for hiding this comment

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

Nice. Flaky CI begone!

@NagyZoltanPeter NagyZoltanPeter merged commit f501436 into master Jun 12, 2024
15 of 16 checks passed
@NagyZoltanPeter NagyZoltanPeter deleted the fix-randomize-rest-ports-in-tests branch June 12, 2024 13:07
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