Exit non-zero when a node CLI command fails (#5233) * Report every failing node CLI command in its error code vacuum, snapshot and the LMDB to RocksDB migration printed their failures without setting the returned error, and so did final_vote_clear without --root or --all, generate_config with an unknown type and wallet_decrypt_unsafe for a key it could not read. Set it on each. A missing OpenCL library no longer counts as a diagnostics failure: OpenCL is optional and most nodes run without it. * Exit non-zero when a node CLI command fails nano_node and nano_wallet checked the error from handle_node_options only for an unknown command, so a command that failed still exited with 0 and scripts could not tell. Exit with 1 instead. The Docker entrypoint runs --vacuum under set -e before it starts the daemon. It now logs a failed vacuum and starts the node, as it did before, unless the vacuum left data.ldb missing. Then it stops and points to backup.vacuum.ldb instead of starting on an empty ledger. The cli_exit_codes systest checks that commands that succeed exit with 0 and that commands that fail exit with 1.
__________
Type: commit
Hash: 4aecc40b82a6eff408fc5c3d0f4a0726619494ea
Created: 21 day(s) ago
__________
gr0v1ty/nano-node:4aecc40b82a6eff408fc5c3d0f4a0726619494ea
| Test Case | Status | Duration | Median Deviation | Log | Graph |
|---|---|---|---|---|---|
| 5n4pr_conf_10k_bintree | FAIL | N/A | N/A | GitHub job logs | - |
| 5n4pr_conf_10k_change | FAIL | N/A | N/A | GitHub job logs | - |
| 5n4pr_conf_change_dependant | FAIL | N/A | N/A | GitHub job logs | - |
| 5n4pr_conf_change_independant | FAIL | N/A | N/A | GitHub job logs | - |
| 5n4pr_conf_send_dependant | FAIL | N/A | N/A | GitHub job logs | - |
| 5n4pr_conf_send_independant | FAIL | N/A | N/A | GitHub job logs | - |
| 5n4pr_rocks_10k_bintree | FAIL | N/A | N/A | GitHub job logs | - |
| 5n4pr_rocks_10k_change | FAIL | N/A | N/A | GitHub job logs | - |