Skip to content

fix(infra): the apply gate leaves out alerts of offline nodes - #5478

Merged
dan-petty merged 2 commits into
mainfrom
fix/5455-the-apply-gate-leaves-out-alerts
Nov 13, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/5455-the-apply-gate-leaves-out-alerts

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The health gate of devops infra apply left out the nodes of the hosts out of service, but each firing critical alert still stopped it. So the NodeNotReady alert of a parked node in the offline group stopped each apply in the cluster.

The gate before the apply and the alert wait after each host now leave out a critical alert whose label node, else instance, names a node out of service. An alert with no such label, or for a node in service, still stops the apply. The report field left_out_alerts names each alert that the gate left out, once. The text report prints it under the result line, and the audit record infra.apply holds it.

The live proof needs no release: after the merge, devops runs from a worktree at origin/main, and the gVisor apply on its node passes the gate while the parked node stays in the offline group.

Closes #5455

Change: openspec/changes/archive/2026-11-13-5455-the-apply-gate-leaves-out-alerts/

The health gate of devops infra apply left out the nodes of the hosts out
of service when it read the nodes, but every firing critical alert stopped
the apply. So the NodeNotReady alert of a parked node in the offline group
stopped each apply in the cluster.

critical_alerts now takes the nodes out of service. It leaves out an alert
whose label node, else whose label instance, names one of them, and gives
one line for it. Every other alert still stops the apply. The gate before
the apply and the alert wait after each host use this filter. The apply
report and the audit record hold the new field left_out_alerts, and the
text report prints each line once.

Closes #5455
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/infra Docker container images, DevContainers, and infrastructure tooling labels Nov 13, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results (head e04e122 and 5d8eca9, rebased on origin/main 94a1999)

  • uv run devops ci fail-to-pass --base origin/main (builder run, before the rebase): 11 tests failed on the base and 45 passed in tests/commands/test_infra_apply.py and tests/infra/test_nodes.py, 0 errored. All of them pass on the head. The base failure of test_the_alert_of_a_node_out_of_service_does_not_stop_the_apply has the same text as the live stop: "The cluster is not healthy, so the apply starts no host: the critical alert NodeNotReady fires".
  • After the rebase: uv run pytest tests/infra/ tests/commands/test_infra_apply.py tests/commands/test_infra_onboard.py tests/commands/test_infra_plan.py tests/commands/test_infra_status.py: 169 passed, 5 snapshots passed.
  • uv run devops ci --check --only lint,format,domain: pass.
  • uv run mypy --python-version 3.14 --strict on the changed src files: no issues.
  • uv run devops ci docs: all documentation files are up to date.
  • uv run devops openspec check: passed.
  • The pre-push hook: passed.

Live premise

A read of ALERTS{alertstate="firing",severity="critical"} through the Grafana Prometheus data source on 2026-11-13 gave one series: NodeNotReady with node set to the parked node and instance set to the kube-state-metrics Service address. A read of node_uname_info shows that node-exporter sets instance to the node name in this cluster, so the instance fallback matches the node rules in k8s/monitoring/prometheus-values.yaml.

Render diff

The branch changes no k8s/ path, so there is no kustomize or Helm render diff and no restart.

Scope notes

  • devops infra plan has no health gate and reads no alert, so only the apply names the alerts that it left out. The proposal ## Feasibility section records this.
  • On a refusal, the command shows only the error line. The audit record infra.apply still holds the left-out lines.
  • Live proof after the merge: the gVisor apply on its node from a worktree at origin/main, while the parked node stays in the offline group. No release is necessary.

@dan-petty
dan-petty marked this pull request as ready for review November 13, 2026 17:19
@dan-petty
dan-petty merged commit 3f0d0f0 into main Nov 13, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/5455-the-apply-gate-leaves-out-alerts branch November 13, 2026 17:21
dan-petty pushed a commit that referenced this pull request Nov 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.130.0](v0.129.1...v0.130.0)
(2026-11-13)


### Features

* **k8s:** add RuntimeClass gvisor for the runsc nodes
([#5436](#5436))
([0d9ffa1](0d9ffa1))
* **roadmap:** make the attempt limits of the failing jobs settings
([#5490](#5490))
([a13e520](a13e520)),
closes [#5440](#5440)


### Bug Fixes

* **infra:** a plan shows a skip by a check-mode when as unchecked
([#5442](#5442))
([499b42c](499b42c))
* **infra:** the apply gate leaves out alerts of offline nodes
([#5478](#5478))
([3f0d0f0](3f0d0f0))
* **roadmap:** a named fix-plan run can skip the 6-hour wait
([#5459](#5459))
([94a1999](94a1999)),
closes [#5413](#5413)
* **roadmap:** a review finding must name a part of the plan
([#5418](#5418))
([34cdf12](34cdf12))
* **roadmap:** the stage gate log names each refused finding
([#5441](#5441))
([47b1ec5](47b1ec5))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/infra Docker container images, DevContainers, and infrastructure tooling type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(infra): the apply gate leaves out alerts of offline nodes

1 participant