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

Update v0.47 migration to v2 compatible #267

Conversation

dzmitryhil
Copy link
Contributor

@dzmitryhil dzmitryhil commented Aug 10, 2023

Description

The PR contains changes required for the crust to run tests for the coreum v0.47-migration-v2 branch.

Reviewers checklist:

  • Try to write more meaningful comments with clear actions to be taken.
  • Nit-picking should be unblocking. Focus on core issues.

Authors checklist

  • Provide a concise and meaningful description
  • Review the code yourself first, before making the PR.
  • Annotate your PR in places that require explanation.
  • Think and try to split the PR to smaller PR if it is big.

This change is Reviewable

@dzmitryhil dzmitryhil requested a review from a team as a code owner August 10, 2023 08:01
@dzmitryhil dzmitryhil requested review from vertex451, miladz68, ysv and wojtek-coreum and removed request for a team August 10, 2023 08:01
Copy link
Collaborator

@wojtek-coreum wojtek-coreum left a comment

Choose a reason for hiding this comment

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

Reviewed 13 of 13 files at r1, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @dzmitryhil, @miladz68, @vertex451, and @ysv)


infra/apps/cored/cored.go line 222 at r1 (raw file):

		WithChainID(string(c.config.NetworkConfig.ChainID())).
		WithRPCClient(rpcClient).
		WithGRPCClient(grpcClient).

Why GRPC is removed? It is required for the health check. Otherwise RPC might be up but GRPC not (yet) and integration tests might fail


infra/apps/cored/cored.go line 223 at r1 (raw file):

		WithRPCClient(rpcClient).
		WithGRPCClient(grpcClient).
		WithKeyring(keyring.NewInMemory()).

why removed?


infra/apps/cored/cored.go line 285 at r1 (raw file):

				"--inv-check-period", "1",
				"--chain-id", string(c.config.NetworkConfig.ChainID()),
				"--minimum-gas-prices", fmt.Sprintf("0.000000000000000001%s", c.config.NetworkConfig.Denom()),

Ive seen in the cored PR that you set it there internally, so why is it needed to do it here?

@ysv ysv requested a review from wojtek-coreum August 10, 2023 10:18
Copy link
Contributor

@ysv ysv left a comment

Choose a reason for hiding this comment

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

Reviewed 13 of 13 files at r1, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @dzmitryhil, @miladz68, @vertex451, and @wojtek-coreum)


infra/apps/cored/cored.go line 222 at r1 (raw file):

Previously, wojtek-coreum (Wojtek) wrote…

Why GRPC is removed? It is required for the health check. Otherwise RPC might be up but GRPC not (yet) and integration tests might fail

I think Dima explain this during the call
But I though that temporary fix is different there (not to use GRPC in integration tests).

As for removing it in healthchecks I'm not sure


infra/apps/cored/cored.go line 285 at r1 (raw file):

Previously, wojtek-coreum (Wojtek) wrote…

Ive seen in the cored PR that you set it there internally, so why is it needed to do it here?

Same question

Copy link
Contributor Author

@dzmitryhil dzmitryhil left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @miladz68, @vertex451, @wojtek-coreum, and @ysv)


infra/apps/cored/cored.go line 222 at r1 (raw file):

Previously, ysv (Yaroslav Savchuk) wrote…

I think Dima explain this during the call
But I though that temporary fix is different there (not to use GRPC in integration tests).

As for removing it in healthchecks I'm not sure

Right. And also we don't need to init both GRPC and RPC because only one works.


infra/apps/cored/cored.go line 223 at r1 (raw file):

Previously, wojtek-coreum (Wojtek) wrote…

why removed?

See prev comment.


infra/apps/cored/cored.go line 285 at r1 (raw file):

Previously, ysv (Yaroslav Savchuk) wrote…

Same question

We ignore in the crust the standard init, and form the config ourselves

Copy link
Contributor

@ysv ysv left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @miladz68, @vertex451, and @wojtek-coreum)


infra/apps/cored/cored.go line 222 at r1 (raw file):

Previously, dzmitryhil (Dzmitry Hil) wrote…

Right. And also we don't need to init both GRPC and RPC because only one works.

yes we don't need both
But in znet we want to make sure both are up in healthchecks, no ?

Copy link
Collaborator

@wojtek-coreum wojtek-coreum left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @dzmitryhil, @miladz68, and @vertex451)


infra/apps/cored/cored.go line 223 at r1 (raw file):

Previously, dzmitryhil (Dzmitry Hil) wrote…

See prev comment.

but this question is about keyring

Copy link
Contributor Author

@dzmitryhil dzmitryhil left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @miladz68, @vertex451, @wojtek-coreum, and @ysv)


infra/apps/cored/cored.go line 222 at r1 (raw file):

Previously, ysv (Yaroslav Savchuk) wrote…

yes we don't need both
But in znet we want to make sure both are up in healthchecks, no ?

No, we need to check that znet is running. Also you you set both, only GRPC is used.


infra/apps/cored/cored.go line 223 at r1 (raw file):

Previously, wojtek-coreum (Wojtek) wrote…

but this question is about keyring

I didn't get it. The keyring is removed since it isn't used for the client.

Copy link
Collaborator

@wojtek-coreum wojtek-coreum left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @miladz68, @vertex451, and @ysv)


infra/apps/cored/cored.go line 222 at r1 (raw file):

Previously, dzmitryhil (Dzmitry Hil) wrote…

No, we need to check that znet is running. Also you you set both, only GRPC is used.

so our integration tests don't use grpc again?

Copy link
Contributor Author

@dzmitryhil dzmitryhil left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @miladz68, @vertex451, @wojtek-coreum, and @ysv)


infra/apps/cored/cored.go line 222 at r1 (raw file):

Previously, wojtek-coreum (Wojtek) wrote…

so our integration tests don't use grpc again?

Yes and we have a task to recover it, I explained it today.

Copy link
Contributor

@miladz68 miladz68 left a comment

Choose a reason for hiding this comment

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

Reviewed 13 of 13 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @vertex451, @wojtek-coreum, and @ysv)

Copy link
Contributor

@miladz68 miladz68 left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @vertex451, @wojtek-coreum, and @ysv)

Copy link
Contributor Author

@dzmitryhil dzmitryhil left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @vertex451, @wojtek-coreum, and @ysv)


infra/apps/cored/cored.go line 222 at r1 (raw file):

Previously, dzmitryhil (Dzmitry Hil) wrote…

Yes and we have a task to recover it, I explained it today.

Fixed.

Copy link
Collaborator

@wojtek-coreum wojtek-coreum left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 3 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @vertex451 and @ysv)

Copy link
Contributor

@ysv ysv left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 3 files at r2, 2 of 2 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @vertex451)

@dzmitryhil dzmitryhil merged commit 073c2ea into v0.47-migration-v2 Aug 11, 2023
4 checks passed
@dzmitryhil dzmitryhil deleted the dzmitryhil/update-v0.47-migration-to-v2-compatible branch August 11, 2023 08:42
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.

4 participants