deploy: wait for the miner to connect before judging its metrics #13
Reference in New Issue
Block a user
Delete Branch "deploy/validate-readiness"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fix for the first deploy-mode run (actions/runs/15). The deploy itself was correct: both hosts reported
miner-cli 4.0.2 (95b6420...)after the restart. Validate then sampled/metricsone second later, before the miner had connected to the node.miner_gpu_devicesis exported only on connection andminer_hashes_totalonly after the first hash, so both were absent, validate failed, and the rollback step restored the previous binary. The rollback path therefore got exercised for real on its first outing.Validate now:
miner_gpu_devicesto appear (the miner has connected), then compares it to the matrix row;miner_hashes_totalas the baseline and requires a larger sample within 120 s.Merging this redeploys (the binary carries the new commit) and is the second real deploy.
🤖 Generated with Claude Code
https://claude.ai/code/session_01CBgs2nSi4H2mdh8kD8vMX5