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

chore: bring in github.com/orijtech/chdbg tool #14643

Closed
wants to merge 1 commit into from

Conversation

elias-orijtech
Copy link
Contributor

No description provided.

@elias-orijtech elias-orijtech requested a review from a team as a code owner January 16, 2023 22:05
@github-prbot github-prbot requested review from a team, amaury1093 and facundomedica and removed request for a team January 16, 2023 22:05
@elias-orijtech
Copy link
Contributor Author

CC @odeke-em

Signed-off-by: Elias Naur <elias@orijtech.com>
@elias-orijtech elias-orijtech changed the title tools/chdbg: move from separate repository github.com/orijtech/chdbg chore: move from separate repository github.com/orijtech/chdbg Jan 16, 2023
@elias-orijtech elias-orijtech changed the title chore: move from separate repository github.com/orijtech/chdbg chore: bring in github.com/orijtech/chdbg tool Jan 16, 2023
Copy link
Collaborator

@odeke-em odeke-em left a comment

Choose a reason for hiding this comment

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

Thank you @elias-orijtech, LGTM!

}
}
it1.Close()
it2.Close()

Check warning

Code scanning / gosec

Errors unhandled.

Errors unhandled.
break loop
}
}
it1.Close()

Check warning

Code scanning / gosec

Errors unhandled.

Errors unhandled.
Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

utACK. This still needs to be done: https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#gomod and possibly configuring the docs. We can do that in a follow-up if you prefer.


require (
github.com/cosmos/cosmos-db v0.0.0-20221127110041-4564dc28e22b
github.com/cosmos/iavl v0.19.2-0.20221208111139-992120de42e1
Copy link
Member

Choose a reason for hiding this comment

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

Should this be bumped?

Copy link
Member

Choose a reason for hiding this comment

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

yes

@@ -0,0 +1,28 @@
# chdbg
Copy link
Member

Choose a reason for hiding this comment

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

we should add some more information here on how to use it and read it. the below excerpt isn't very intuivutve since its hard to tell which store is the issue.

In the sdk we have a convention of providing a cli with helper text, should we adopt that here @julienrbrt ?

Copy link
Member

Choose a reason for hiding this comment

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

Maybe all tools should use cobra yes.

}
}

func diff(dbdir1, dbdir2 string) error {
Copy link
Member

Choose a reason for hiding this comment

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

could we add some godocs to this file?

Copy link
Member

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

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

needs a few changes before it can be merged

@facundomedica
Copy link
Member

Let us know if you need a hand pushing this over the finish line 👌

@elias-orijtech
Copy link
Contributor Author

In light of #13404 (comment) and orijtech/chdbg#1 (comment) I'm skeptical of pushing this PR through. Maybe just transfer the chdbg repository to Cosmos for now? Or, leave it as is until chdbg proves valuable for actual debugging use-cases.

Also, according to
#13404 (comment) the python-iavl tool is already a pretty advanced chain state debugger. Should chdbg really compete just because python-iavl is in Python?

Finally, I don't have the intimate knowledge of Cosmos to reproduce useful and typical debugging scenarios. For example, the notes at #13404 (comment) are helpful, but not enough for me.

I suggest setting up a meeting with someone from Cosmos that can provide me with the necessary details for reproducing chain halts and what information would be useful.

@tac0turtle
Copy link
Member

closing this PR as mentioned in the previous comment. We will keep the issue open and reassign it to someone on the team when there is time.

@tac0turtle tac0turtle closed this Feb 5, 2023
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.

5 participants