Repository navigation
fix(roadmap): correct the facts and the stage SLI of the review - #6656
Merged
dan-petty merged 21 commits intoNov 21, 2026
Merged
Conversation
Owner
Author
|
Live check before the merge (read only, from the branch at 592d3fd,
The only disagreement in the two windows is |
dan-petty
force-pushed
the
fix/6612-correct-the-facts-and-the-stage-sli-of-the-review
branch
from
November 21, 2026 17:52
7a4e632 to
901d0f4
Compare
…e SLI Plan #6612 as the change 6612-correct-the-facts-and-the-stage-sli-of-the-review: the base metric rule, the probe of the end of the window, the first time of a series, the path condition at the commits of the window, the reason of a missing series, and the stage SLI by the outcomes of the items.
The tests fail on the base: the loader accepts the base x_calls_total for a query of x_cuts_total, and refuses base_reason as an unknown field.
The loader refuses a fact whose base metric does not occur in its query, unless base_reason says why. prometheus.tool_limit_hits and prometheus.stage_gate_refusals probe the metric that they read, and the stage gate refusals read the repository of the review.
The new test fails on the base: the probe reads the whole window, so a series earlier in the window makes an empty end answer ok with 0.
A fact whose query has no {range} reads only the window end, so its
probe is group(<base>) at the end. A series earlier in the window no
longer makes an empty end answer ok with no rows or 0.
…series The tests fail on the base: the loader refuses not_before as an unknown field.
A fact can give not_before. A window that starts before it skips the fact and sends no read, so the pair runner_jobs is not compared across the Job rename of #5739 (live at 2026-11-14T22:29:00Z). The dry run shows the condition.
The tests fail on the base: the dispatcher reads the working tree, so the replay of review_spec_path has no transcript yet, and the dry run lists no ls-tree command.
A path:<path> condition holds when the base and the head commits hold the path, read with git ls-tree through run_git, not the working tree. A window from before the commit that added openspec/specs now skips the openspec facts. A git failure stops the review. The dry run lists both commands. New transcript review_spec_path; review_window records the checks of its version window.
The tests fail on the base: the loader refuses no_series_reason as an unknown field.
A fact with no base can give no_series_reason, the reason of skipped when its query matches no series. prometheus.oldest_pending_update says that no code emits its gauge before #4911 adds it, so the review does not show it as a gauge that stopped.
The promtool test fails on the base: the shipped query reads the Service rounds, so the stage item series give no value. The fixture facts of a ratio of Service rounds take the id prometheus.service_slo1.
prometheus.stage_sli is the share of the stage items of the repository that ended staged or needs_split, over the items that ended with a result other than skipped, as the owner decided on 2026-11-21 (#4692). A window with only bad outcomes gives 0, and a window with no outcome gives no value.
ROADMAP_WORKFLOW.md says that the base metric is a metric of the query, that the probe reads the window or its end, that a fact can give the first time of its series, that a path condition reads the commits of the window, and how prometheus.stage_sli counts the stage items.
…indow kube-state-metrics keeps the series of a finished Job for 24 h, so prometheus.runner_jobs_started also counted the Jobs that started before the window. Group 8 plans the fix. Tasks 4.1 and 4.2 name tests/core/test_git_contract.py, and task 7.1 lists and checks the two test files whose docstrings it changes.
promtool evaluates the shipped query of prometheus.runner_jobs_started over a Job that started before the window and still has a series in it, a Job that started in the window and a Job of another repository. The base gives 2; the count must be 1.
kube-state-metrics keeps the series of a Job for the 24 h of its
ttlSecondsAfterFinished, so prometheus.runner_jobs_started counted the
Jobs that started up to 1 day before the window. The query now keeps a
start time at or after the window start. Live, the day to
2026-11-17T12:00Z gives 18 Jobs in place of 36, against 17.12 of the
Service. The base kube_job_status_start_time{namespace="devops"} gives
0 for a window with Jobs in the namespace but no implement Job start.
…tage SLI The spec roadmap-project-review takes the requirements of #6612.
The fail-to-pass replay puts the test files and tests/support of the head on the base tree. The base has the module git_read but not holds_path, so the import of the name stopped pytest before it collected a test (#6612).
The first commit of the scenario review_spec_path holds a file named --. The ls-tree of the path check gave --end-of-options and --, so git took -- as a second path and printed the file. The path check then passed for a commit that does not hold openspec/specs.
After --end-of-options, git ls-tree reads -- as a second path, so a commit with a root file named -- held every path. The schema text of requires now says that the base and the head commits of the window hold the path.
dan-petty
force-pushed
the
fix/6612-correct-the-facts-and-the-stage-sli-of-the-review
branch
from
November 21, 2026 18:25
901d0f4 to
aea7a04
Compare
dan-petty
marked this pull request as ready for review
November 21, 2026 18:42
dan-petty
deleted the
fix/6612-correct-the-facts-and-the-stage-sli-of-the-review
branch
November 21, 2026 18:46
Owner
Author
|
Check after the merge: passed (main 04b46ec). The review runs from the local checkout, so the check needs no deployment.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The project review gave
okwith 0 or no rows for values that it did not measure, and false disagreements.base_reasonsays why. A fact with no{range}probes its base at the window end.not_beforeskipsprometheus.runner_jobs_startedfor a window before the Job names of feat(roadmap): label Service Jobs by repository and item #5739. The fact counts only the Jobs that start in the window, because a finished Job keeps its series for 24 h.path:condition reads the base and head commits of the window.no_series_reasonsays that the gauge ofprometheus.oldest_pending_updatecomes with feat(monitoring): export outdated dependencies from Renovate #4911.prometheus.stage_sliis the share of the stage items that endstagedorneeds_split(owner decision on feat(roadmap): read project review facts through a catalog #4692).Check after the release: the windows of points 1 and 2 of #6612 give their facts
skipped.Closes #6612
Change:
openspec/changes/archive/2026-11-21-6612-correct-the-facts-and-the-stage-sli-of-the-review/