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

Include chain in client node name. #2548

Merged
merged 1 commit into from
Sep 30, 2024
Merged

Include chain in client node name. #2548

merged 1 commit into from
Sep 30, 2024

Conversation

afck
Copy link
Contributor

@afck afck commented Sep 28, 2024

Motivation

The Client is always called "Client node". This makes debugging difficult in tests involving multiple clients.

Proposal

Include the chain ID(s) in the name.

Test Plan

No changed logic, but it should make debugging end-to-end tests easier.

Release Plan

  • Nothing to do / These changes follow the usual release cycle.

Links

Copy link
Contributor

@ma2bd ma2bd left a comment

Choose a reason for hiding this comment

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

Why don't we name wallets when we create them? (at random by default and otherwise using a user provided name)

@afck
Copy link
Contributor Author

afck commented Sep 28, 2024

Good idea, maybe that's more useful, and also more readable: In the tests they could simply be "Client 1" and "Client 2".

@@ -161,7 +161,7 @@ async fn test_chain_listener() -> anyhow::Result<()> {
delivery,
false,
[chain_id0],
"Client node",
format!("Client node for {:.8}", chain_id0),
Copy link
Contributor

Choose a reason for hiding this comment

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

It is a minor point, but I find it a little odd that the Client has a name associated with its constructor. Though of course, this is not part of this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, like @ma2bd said above: Let's name the wallets instead. I created #2551 for that.

Copy link
Contributor

@MathieuDutSik MathieuDutSik left a comment

Choose a reason for hiding this comment

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

Better logging is always welcomed.

@afck
Copy link
Contributor Author

afck commented Sep 30, 2024

Merging this, to make it easier to debug issues on main. I created #2551 to name the wallets instead; I'll do that as soon as we're done debugging the failing tests.

@afck afck merged commit bd27e42 into linera-io:main Sep 30, 2024
3 of 4 checks passed
@afck afck deleted the client-name branch September 30, 2024 08:20
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