celo-blockchain
celo-blockchain copied to clipboard
Work on a health-check script/library for the tests
As part of the nightly tests, one of the harder parts is checking the on-going status of the test, validating that everything is working as expected, detect if anything does not work and expected, and report the results with valuable information to debug the issue in case that it fails.
For implementing this functionality @mcortesi suggested implementing some script/code that connects to a node (rpc/ipc interface), tracks the status, log the relevant data in case if fails, and eventually report the results to Victorops and any other place with the relevant information. This tool can run as a sidecontainer (or a independent process inside the same container) for the tests, and be the responsible of identifying the status of the tests and reporting to victorops the restult and information. The initial implementation of this I'm wokirng on is using Golang.
Definition of Done:
- [ ] Have a library able to check the state of a node using geth rpc api
- [ ] Use that library to check that each pod/execution of the paralel tests runs correctly
Current implementation in https://github.com/celo-org/kliento/tree/jcortejoso/health_checker/examples/check_node_health
Pending to move to a new and independent git repository.
Closed as we did not implement the library due to out of scope.