Repository navigation
Description
Problem Description
The apply health gate of devops infra apply leaves out the nodes of the inventory's offline group when it checks the node state (node_health in src/devops_cli/infra/nodes.py), but it does not leave them out when it checks the critical alerts (critical_alerts, query ALERTS{alertstate="firing",severity="critical"}). So a parked node still stops every apply in the cluster through its own alert.
Case of 2026-11-13: hawk is parked (cordoned, NotReady) and is in the offline group since homelab#43. The gVisor apply on another node (plan 592b81ee, 6 changes) then stopped with: "The cluster is not healthy, so the apply starts no host: the critical alert NodeNotReady fires". The alert is the one for hawk.
Expected vs Actual Behavior
Expected: the gate leaves out a critical alert whose node label (node, or the node of instance) names a node of the offline group, as it leaves out the node itself. An alert with no node label, or for another node, still stops the apply. The plan and the apply say which alerts they left out and why.
Actual: every firing critical alert stops the apply.
Proposed Fix
- In
critical_alerts(orCluster.healthandCluster.alert_health), drop each alert whosenodelabel is inoffline_nodes, and keep the rest. Also apply this inwait_alerts_clear, so the wait after an apply does not hang on the parked node. - Print one line for each alert left out.
Acceptance Criteria
- A test proves that a firing
NodeNotReadywithnode=<offline node>does not stop the gate, and that the same alert for another node, or an alert with no node label, still stops it. -
uv run devops ci fail-to-pass --base origin/mainshows the first test fails on the base. - Live proof: the gVisor apply of homelab playbook
14_gvisor.yamlon its node passes the gate while hawk stays parked.
Existing Tool Considered
The Prometheus query result labels that the gate already reads. No new tool. Cost to build (estimate): 0.15 M tokens and 1 hour.
Activity
dan-petty commentedon Nov 13, 2026
Both concern the devops infra apply command, but #5125 built the apply flow while this candidate fixes a defect in its alert gate.devops-cli-service commentedon Nov 13, 2026
Released in v0.130.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.130.0
devops-cli-service commentedon Nov 13, 2026
Live since 2026-11-13 18:17 UTC