Skip to content

feat(monitoring): Define the four product SLOs in Sloth specs - #7032

Merged
dan-petty merged 3 commits into
mainfrom
feat/4709-define-the-service-slos-in-a
Nov 25, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/4709-define-the-service-slos-in-a

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Issue #4709 asks for the first SLO source of the project. The roadmap Service, its runner Jobs and the LLM gateway have an objective and a 28-day window in k8s/README.md, and no rule records them: k8s/README.md:651:The rows stay here until the Sloth specs of #4709 hold them. The project review, the pipeline dashboard and the design spec need one source for the four SLOs, their error budgets and their burn-rate alerts. The change makes the spec that source, renders it into the rule file that the server already loads, and fails the k8s row when the file is not the render.

Closes #4709

Change: openspec/changes/archive/2026-11-24-4709-define-the-service-slos-in-a/

@devops-cli-service devops-cli-service Bot added scope/monitoring Grafana, Prometheus, Loki, alerts and dashboards type/feature Type feature: a new function labels Nov 24, 2026
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Step Status Attempts Tokens in/out Last failing command
group 1 done 2 16580427/84469 -
group 2 done 1 5112449/27623 -
group 3 done 1 3342576/30566 -
group 4 done 1 3849971/18166 -
group 5 stopped 1 8166946/62198 -
group 5 done 1 5113144/51038 -
group 6 done 1 11171797/35415 -
  • tools: run_command 341, read_file 125, edit_file 72, write_file 45, grep 20, list_files 7, create_directory 3
  • Group 5 amendment (group): Task 5.1's Verification line ends with 'fails on the base', so TaskGroup.is_behavior is true for this Kind: manifest group and the step replays its test file on the start commit. That replay passes, because the group changes only tests and data, which docs/TESTING.md gives no base failure. Task 5.2 also asks for a case in which all four alerts fire, which the runner-jobs SLO cannot show.. Evidence: Replay of tests/prometheus/test_k8s_monitoring_alerting.py on 22d1ea2cb with the head's tests/ overlaid: exit 0, 73 passed. 'uv run devops ci fail-to-pass --base 22d1ea2cb' answers that the fix needs no test that fails on its base. promtool test rules on a runner-jobs case that expects RunnerJobsDurationPage1h: FAILED, no alert, because 13.44 * 0.1 = 1.344 and the error ratio of that SLI is at most 1.. Add a promtool case file for each SLO -> Add a promtool case file for each SLO
  • scoped check pre-push: passed, 5 s
  • scoped check static: passed, 23 s
  • scoped check tests: passed, 32 s
  • scoped check strength: passed, 0 s
  • group 2: skipped, group 2: kind other
  • group 3: skipped, group 3: kind other
  • group 4: skipped, group 4: kind other
  • group 6: skipped, group 6: kind other
  • mutation run and coverage delta: not run, because the change has no Python file under src/
  • fail-to-pass of group 1: fails on the base commit. Tests that fail on the base commit: tests.prometheus.test_k8s_monitoring_alerting::test_render_slo_groups_gives_each_alert_the_event_guard, tests.prometheus.test_k8s_monitoring_alerting::test_a_spec_with_no_grouping_guards_each_alert_on_no_label, tests.prometheus.test_k8s_monitoring_alerting::test_write_slo_groups_replaces_only_the_text_between_the_markers, tests.prometheus.test_k8s_monitoring_alerting::test_load_slo_specs_refuses_two_specs_of_one_service_and_name, tests.prometheus.test_k8s_monitoring_alerting::test_load_slo_specs_names_the_field_that_a_spec_does_not_hold, tests.prometheus.test_k8s_monitoring_alerting::test_load_slo_specs_refuses_a_spec_that_holds_two_slos, tests.prometheus.test_k8s_monitoring_alerting::test_a_spec_with_no_alerting_name_names_its_alerts_after_its_file, tests.prometheus.test_k8s_monitoring_alerting::test_write_slo_groups_refuses_a_values_file_with_no_marker, tests.prometheus.test_k8s_monitoring_alerting::test_main_writes_the_render_of_a_folder_only_when_it_is_asked.
  • verify of group 2: uv run devops ci --check --only k8s exits 0.
\u2139 Quality gate root: /run/roadmap/work/model-clone
\u2139 Executing CI quality gates concurrently...
  \u2713 pass [python_version] python version check (3.14+) (3\xb5s)
k8s: 271 cases, 0 failed
  \u2713 pass [k8s] k8s manifests (kustomize renders of the committed applications) (27s)
            CI Summary            
 Check           Result  Duration 
 python_version  \u2713 pass  3\xb5s      
 k8s             \u2713 pass  27s      
Total Elapsed: 27s (concurrent async execution)
  • verify of group 3: uv run devops ci --check --only k8s exits 0.
\u2139 Quality gate root: /run/roadmap/work/model-clone
\u2139 Executing CI quality gates concurrently...
  \u2713 pass [python_version] python version check (3.14+) (3\xb5s)
k8s: 272 cases, 0 failed
  \u2713 pass [k8s] k8s manifests (kustomize renders of the committed applications) (27s)
            CI Summary            
 Check           Result  Duration 
 python_version  \u2713 pass  3\xb5s      
 k8s             \u2713 pass  27s      
Total Elapsed: 27s (concurrent async execution)
  • verify of group 4: uv run devops ci --check --only k8s exits 0.
\u2139 Quality gate root: /run/roadmap/work/model-clone
\u2139 Executing CI quality gates concurrently...
  \u2713 pass [python_version] python version check (3.14+) (3\xb5s)
k8s: 273 cases, 0 failed
  \u2713 pass [k8s] k8s manifests (kustomize renders of the committed applications) (27s)
            CI Summary            
 Check           Result  Duration 
 python_version  \u2713 pass  3\xb5s      
 k8s             \u2713 pass  27s      
Total Elapsed: 27s (concurrent async execution)
  • verify of group 5: uv run devops ci test tests/prometheus/test_k8s_monitoring_alerting.py exits 0.
\u2139 Quality gate root: /run/roadmap/work/model-clone
No coverage index found. Run `devops ci coverage --build-index` to build one.
  tests/prometheus/test_k8s_monitoring_alerting.py \u2192 tests/prometheus/test_k8s_monitoring_alerting.py
================================================================================================================== test session starts ===================================================================================================================
platform linux -- Python 3.14.10, pytest-9.2.0, pluggy-1.7.0
rootdir: /run/roadmap/work/model-clone
configfile: pyproject.toml
plugins: xdist-3.8.0, cov-7.1.0, platformdirs-4.14.8, time-machine-3.6.0, mock-3.17.0, anyio-4.16.0, asyncio-1.5.0, syrupy-7.0.3, timeout-2.4.0, hypothesis-6.170.17
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function
timeout: 600.0s
timeout method: signal
timeout func_only: False
created: 4/4 workers
4 workers [73 items]

.........................................................................                                                                                                                                                                          [100%]
================================================================================================================== 73 passed in 15.69s ===================================================================================================================
  • verify of group 6: uv run devops ci --check --only k8s exits 0.
\u2139 Quality gate root: /run/roadmap/work/model-clone
\u2139 Executing CI quality gates concurrently...
  \u2713 pass [python_version] python version check (3.14+) (2\xb5s)
k8s: 275 cases, 0 failed
  \u2713 pass [k8s] k8s manifests (kustomize renders of the committed applications) (27s)
            CI Summary            
 Check           Result  Duration 
 python_version  \u2713 pass  2\xb5s      
 k8s             \u2713 pass  27s      
Total Elapsed: 27s (concurrent async execution)
  • verify of group 6: uv run devops ci docs exits 0.
\u2139 Quality gate root: /run/roadmap/work/model-clone
\u2713 All documentation files are up to date.

@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

  • scoped check pre-push: passed, 13 s
  • scoped check static: passed, 102 s
  • scoped check tests: passed, 41 s
  • scoped check strength: passed, 0 s
  • group 2: skipped, group 2: kind other
  • group 3: skipped, group 3: kind other
  • group 4: skipped, group 4: kind other
  • group 6: skipped, group 6: kind other
  • mutation run and coverage delta: not run, because the change has no Python file under src/

@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

  • scoped check pre-push: passed, 11 s
  • scoped check static: passed, 90 s
  • scoped check tests: passed, 41 s
  • scoped check strength: passed, 0 s
  • group 2: skipped, group 2: kind other
  • group 3: skipped, group 3: kind other
  • group 4: skipped, group 4: kind other
  • group 6: skipped, group 6: kind other
  • mutation run and coverage delta: not run, because the change has no Python file under src/

@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

  • scoped check pre-push: passed, 12 s
  • scoped check static: passed, 101 s
  • scoped check tests: passed, 40 s
  • scoped check strength: passed, 0 s
  • group 2: skipped, group 2: kind other
  • group 3: skipped, group 3: kind other
  • group 4: skipped, group 4: kind other
  • group 6: skipped, group 6: kind other
  • mutation run and coverage delta: not run, because the change has no Python file under src/

@devops-cli-service
devops-cli-service Bot force-pushed the feat/4709-define-the-service-slos-in-a branch from 4b6cc47 to ca4a31d Compare November 25, 2026 00:32
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

  • scoped check pre-push: passed, 11 s
  • scoped check static: passed, 83 s
  • scoped check tests: passed, 40 s
  • scoped check strength: passed, 0 s
  • group 2: skipped, group 2: kind other
  • group 3: skipped, group 3: kind other
  • group 4: skipped, group 4: kind other
  • group 6: skipped, group 6: kind other
  • mutation run and coverage delta: not run, because the change has no Python file under src/

@devops-cli-service
devops-cli-service Bot force-pushed the feat/4709-define-the-service-slos-in-a branch from ca4a31d to 869ea93 Compare November 25, 2026 00:57
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

  • scoped check pre-push: passed, 10 s
  • scoped check static: passed, 84 s
  • scoped check tests: passed, 38 s
  • scoped check strength: passed, 0 s
  • group 2: skipped, group 2: kind other
  • group 3: skipped, group 3: kind other
  • group 4: skipped, group 4: kind other
  • group 6: skipped, group 6: kind other
  • mutation run and coverage delta: not run, because the change has no Python file under src/

@dan-petty
dan-petty force-pushed the feat/4709-define-the-service-slos-in-a branch from 869ea93 to f154691 Compare November 25, 2026 02:34
@dan-petty
dan-petty marked this pull request as ready for review November 25, 2026 03:09
@dan-petty
dan-petty self-requested a review as a code owner November 25, 2026 03:09
@dan-petty
dan-petty merged commit a117e6c into main Nov 25, 2026
43 of 45 checks passed
@dan-petty
dan-petty deleted the feat/4709-define-the-service-slos-in-a branch November 25, 2026 03:16
dan-petty-release Bot added a commit that referenced this pull request Nov 25, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.214.0](v0.213.0...v0.214.0)
(2026-11-25)


### Features

* **monitoring:** Define the four product SLOs in Sloth specs
([#7032](#7032))
([a117e6c](a117e6c))
* **pr:** add --body-file option to pr create and pr edit
([#7051](#7051))
([b6688c7](b6688c7)),
closes [#4852](#4852)

---
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/monitoring Grafana, Prometheus, Loki, alerts and dashboards type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(monitoring): define the Service SLOs in a Sloth spec

1 participant