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

dcrdtest: Use dcrd IPC to obtain subsys addrs #7

Merged
merged 2 commits into from
Nov 25, 2022

Conversation

matheusd
Copy link
Member

@matheusd matheusd commented Nov 22, 2022

Built on top of #6 (merged)
Requires decred/dcrd#3020 (merged)
Closes #4

This modifies the harness code to bind dcrd's subsystems (P2P and
RPC) to random ports, while using the IPC subsystem and the recently
introduced --boundaddrevents argument to obtain the OS-assigned ports.

This improves the reliability of the package by ensuring the harnesses
don't attempt to bind to a port that may already be in use, causing
flaky test failures that are hard to diagnose and reproduce.

@matheusd matheusd force-pushed the dcrd-ipc branch 6 times, most recently from 9ce3e22 to d3e3216 Compare November 24, 2022 12:39
@matheusd matheusd marked this pull request as ready for review November 24, 2022 12:42
@matheusd matheusd force-pushed the dcrd-ipc branch 2 times, most recently from d7dfe84 to b0545a5 Compare November 24, 2022 12:53
This modifies the harness code to bind dcrd's subsystems (P2P and
RPC) to random ports, while using the IPC subsystem and the recently
introduced --boundaddrevents argument to obtain the OS-assigned ports.

This improves the reliability of the package by ensuring the harnesses
don't attempt to bind to a port that may already be in use, causing
flaky test failures that are hard to diagnose and reproduce.
This provides a cleaner shutdown procedure in windows, where the
interrupt signal is not available.
@matheusd matheusd merged commit 5c2e83f into decred:master Nov 25, 2022
@matheusd matheusd deleted the dcrd-ipc branch November 25, 2022 13:44
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.

Improve way to determine listening ports
1 participant