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] Enhance Kagami UI regarding the validator building failures #3601

Closed
0x009922 opened this issue Jun 13, 2023 · 1 comment · Fixed by #3841
Closed

[chore] Enhance Kagami UI regarding the validator building failures #3601

0x009922 opened this issue Jun 13, 2023 · 1 comment · Fixed by #3841
Assignees
Labels
Enhancement New feature or request iroha2-dev The re-implementation of a BFT hyperledger in RUST QA-confirmed This bug is reproduced and needs a fix

Comments

@0x009922
Copy link
Contributor

Feature request

First of all, it turned out that #3473 is not very accurate ATM. It says that validator building fails when Kagami is run outside of the repo dir, but it turns out that the issue is even more specific: validator building works only when Kagami is run through Cargo!

# ok
cargo run --bin kagami -- validator

# not ok
cargo build --bin kagami
./target/debug/kagami validator

So, the description in Kagami help messages might be improved.

Also, we can actually handle the result of validator building and attach a suggestion to the error (like it is done with --force prompt error). The suggestion might mention the issue again.

Moreover, currently kagami::swarm::ui's spinners might impl Drop and stop their "spinning" gracefully. It might improve UI a little bit too.

Motivation

No response

Who can help?

@0x009922

@0x009922 0x009922 added Enhancement New feature or request iroha2-dev The re-implementation of a BFT hyperledger in RUST labels Jun 13, 2023
@0x009922 0x009922 self-assigned this Jun 13, 2023
@0x009922
Copy link
Contributor Author

0x009922 commented Jun 13, 2023

I would prefer to implement it after

@0x009922 0x009922 linked a pull request Sep 1, 2023 that will close this issue
3 tasks
0x009922 added a commit that referenced this issue Sep 4, 2023
* [refactor]: remove Swarm from Kagami; introduce refactored `iroha_swarm`

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [refactor]: remove validator from Kagami; cleanup

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [misc]: fix workspace info, introduce `wasm_builder_cli`

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [ci]: update Genesis and Swarm cmds in scripts

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [feat]: produce workable `iroha_wasm_builder_cli`

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [feat]: enhance CLI UI with spinners

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [build]: remove `iroha_wasm_builder` dep from Kagami

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [build]: tree-shake unused spinners

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [test]: fix swarm tests

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [docs]: add README for `iroha_swarm`

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [refactor]: remove `UserInterface` struct

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [feat]: add `--outfile` arg for wasm cli

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [docs]: document how to build the default validator

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [chore]: unused imports

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [docs]: link the directory to the cli

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [docs]: enhance warning about an inlined validator

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [chore]: use stdout

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [refactor]: move `wasm_builder_cli` to `./tools/`

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

---------

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>
@timofeevmd timofeevmd self-assigned this Sep 6, 2023
@timofeevmd timofeevmd added the QA-confirmed This bug is reproduced and needs a fix label Sep 6, 2023
mversic pushed a commit that referenced this issue Oct 17, 2023
* [refactor]: remove Swarm from Kagami; introduce refactored `iroha_swarm`

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [refactor]: remove validator from Kagami; cleanup

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [misc]: fix workspace info, introduce `wasm_builder_cli`

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [ci]: update Genesis and Swarm cmds in scripts

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [feat]: produce workable `iroha_wasm_builder_cli`

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [feat]: enhance CLI UI with spinners

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [build]: remove `iroha_wasm_builder` dep from Kagami

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [build]: tree-shake unused spinners

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [test]: fix swarm tests

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [docs]: add README for `iroha_swarm`

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [refactor]: remove `UserInterface` struct

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [feat]: add `--outfile` arg for wasm cli

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [docs]: document how to build the default validator

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [chore]: unused imports

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [docs]: link the directory to the cli

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [docs]: enhance warning about an inlined validator

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [chore]: use stdout

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

* [refactor]: move `wasm_builder_cli` to `./tools/`

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>

---------

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request iroha2-dev The re-implementation of a BFT hyperledger in RUST QA-confirmed This bug is reproduced and needs a fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants