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

Generate different ports for each integration test net. #356

Merged
merged 3 commits into from
Nov 28, 2024

Conversation

LuisPH3
Copy link
Contributor

@LuisPH3 LuisPH3 commented Nov 28, 2024

This change isolates each instance of an integration test by choosing a different (best-effort unused) set of ports, and turning off discovery protocol.

Although tests are currently not segregated, this PR enables the segregation of those into different processes, this change is currently waiting for the memory usage reduction.
This test enables developers to locally run multiple integration tests simultaneously.

@LuisPH3 LuisPH3 self-assigned this Nov 28, 2024
@LuisPH3 LuisPH3 requested review from facuMH and cabrador November 28, 2024 09:10
@LuisPH3 LuisPH3 marked this pull request as draft November 28, 2024 09:20
@LuisPH3 LuisPH3 changed the base branch from main to develop November 28, 2024 09:36
@LuisPH3 LuisPH3 marked this pull request as ready for review November 28, 2024 09:36
HerbertJordan
HerbertJordan previously approved these changes Nov 28, 2024
Copy link
Collaborator

@HerbertJordan HerbertJordan 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 adding this feature!

cabrador
cabrador previously approved these changes Nov 28, 2024
Copy link
Collaborator

@cabrador cabrador left a comment

Choose a reason for hiding this comment

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

Nice!

@LuisPH3 LuisPH3 dismissed stale reviews from cabrador and HerbertJordan via df1ccca November 28, 2024 14:03
@LuisPH3 LuisPH3 force-pushed the luis/integration_tests_own_ports branch from 25ed064 to df1ccca Compare November 28, 2024 14:03
@LuisPH3
Copy link
Contributor Author

LuisPH3 commented Nov 28, 2024

After changing ports, a little issue was identified in network restart test. Test was updated to use a new client connection (using new port)

- client needed to be regenerated
- contract binding object needs to be re-bound using new client.
@LuisPH3 LuisPH3 force-pushed the luis/integration_tests_own_ports branch from df1ccca to 1278d43 Compare November 28, 2024 14:08
Copy link
Collaborator

@HerbertJordan HerbertJordan left a comment

Choose a reason for hiding this comment

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

Great, thanks!

@HerbertJordan HerbertJordan merged commit 74f97ac into develop Nov 28, 2024
2 checks passed
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