Skip to content

RunnerSystemFailuresRisingPlatformHealthy

Jobs fail with runner_system_failure at a higher rate than usual, and the Rails API and Sidekiq are healthy.

A rise in runner_system_failure can come from the runners or from the platform they talk to. When the Rails API or Sidekiq has more errors than usual at the same time, the platform is the likely cause and this alert stays silent. When both are normal, the cause is likely on the runner side, and this alert fires.

  • ci-runners: the managers that report the failures.
  • Rails API and Sidekiq: the platform check.
  • gitlab_runner_failed_jobs_total{failure_reason="runner_system_failure"} and gitlab_runner_jobs_total: the failure ratio.
  • gitlab_service_errors:ratio_5m{type=~"api|sidekiq"}: the platform error ratio.
  • Fires when the 10-minute failure ratio is above 1% and more than three times its average over the previous day, for 15 minutes.
  • Stays silent while the API or Sidekiq main stage error ratio has been above 0.1% and more than twice its own average over the previous day for the last 10 minutes.
  • A platform incident shorter than 10 minutes does not silence the alert.
  • The failure ratio covers the same runner fleet as the ci_runner_jobs SLI, summed over all shards. One shard with a high failure ratio can stay below the threshold.
  • Posts to #runner_alerts only, through the route in alertmanager/alertmanager.jsonnet. It does not page. Severity is s4 and the team label is runner_core.
  • Stays firing for 1 hour after the condition clears (keep_firing_for), so one incident posts one message an hour at most. While it fires, Alertmanager repeats the message every 8 hours.
  • The rule only runs in gprd.

S4. The alert is a hint to look at the runners. It does not mean jobs are lost.

  1. On the Runner Core dashboard, check Row 2 for the RunnerInfraFailure bucket and Row 0 for the Rails API and Sidekiq lanes.
  2. Check the failure rate by shard to see if one shard or all shards are affected.
  • One shard dominates the failures: look at that shard’s managers and its autoscaling or cloud provider errors.
  • All shards: look for a change in the runner version or the runner configuration.
  • Roll back the runner version or the configuration change.
  • Fix the cloud provider issue for the affected shard.
  • The gitlab_service_errors:ratio_5m recording rules for the api and sidekiq services. If they are missing, the platform check never suppresses the alert.
  • The runner_system_failure series. If it is absent, the alert never fires.

Runner Core owns this alert. Reach them in #g_runner_core.

  • The rule is in libsonnet/alerts/runner-failure-attribution-alerts.libsonnet. Regenerate with ./scripts/generate-jsonnet-rules.sh mimir-rules-jsonnet/runners-platform-alerts.jsonnet.
  • The unit tests are in test/mimir-rules/runner-failure-attribution-alerts_test.yml.