Not all Chains use the gov module, making the /cosmos/gov/v1beta1/proposals?proposal_status=2 endpoint a bad check (see Noble and NobleTestnet for examples)
We either need to:
Fix the health checks to use a more reliable endpoint
Eliminate health checks entirely and just go straight into the worfklow
Some considerations:
Picking a reliable endpoint will require an endpoint available on ALL chain servers. Module specific endpoints may not be useful here
The health checks are useful in getting a list of healthy servers from the Chain Registry. Sometimes the servers in the Chain Registry API map are not working and unavailable and pre-checking for health lets us pick out proper endpoints to use
We fail early in the update info workflow by hitting RPC and REST servers to check for health.
We use the following function:
https://github.com/DefiantLabs/cosmos-upgrades/blob/619fed10f32388844c628aa5c58035516528aa88/app.py#L133-L147
The problem is:
We either need to:
Some considerations: