-
Notifications
You must be signed in to change notification settings - Fork 80
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
Allow to listen on and advertise multiple SocketAddr
#187
Allow to listen on and advertise multiple SocketAddr
#187
Conversation
5d352ce
to
6790a86
Compare
4c401fc
to
fd3e74a
Compare
b26d129
to
598b161
Compare
dec253a
to
758e614
Compare
7d52e50
to
6d40944
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty much looks good to me, only 1-2 comments and some nits.
Also, could you rebase the branch on current main to see if CI passes?
c3549f9
to
18f567c
Compare
Rebased and adapted python tests to set a list of Running the tests in the CI, we get:
Running the test locally, returns a similar error, but on a different line. Will continue to look into this, but if you have an idea, let me know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebased and adapted python tests to set multiple
listening_addresses
.Running the tests in the CI, we get:
TMP DIR 1: /tmp/tmpj9y442xu_ldk_node_1 Node ID 1: 034edc368e2707c09293c2035cd7b197edfe5736bb55e55493374592797b376c2e TMP DIR 2: /tmp/tmpn11v_7gj_ldk_node_2 E/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/tempfile.py:860: ResourceWarning: Implicitly cleaning up <TemporaryDirectory '/tmp/tmpj9y442xu_ldk_node_1'> _warnings.warn(warn_message, ResourceWarning) thread '<unnamed>' panicked at src/logger.rs:70:14: Failed to open log file: Os { code: 2, kind: NotFound, message: "No such file or directory" } note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace /home/runner/work/_temp/a1a4800b-6608-4c01-8400-1a6843ab90bd.sh: line 2: 6461 Aborted (core dumped) python3 -m unittest discover -s src/ldk_node
Running the test locally, returns a similar error, but on a different line.
Will continue looking into this, but if you have an idea, let me know!
Yes, this is what the Python tests put out when they panic (essentially we panic, shutdown, write some logs, while the Python test env already tries to cleanup the temporary folder). See the comment on why it fails.
18f567c
to
fe1ccab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Resolves #92
SocketAddr
.random_config
in testing to set two listening addresses.Also fixes a small typo in an error message