Repository navigation
Description
Problem
This item covers two defects in the roadmap Service (devops serve --service, namespace devops, image service:v0.2.28):
- Defect 1 is live. It was observed on 2026-10-08.
- Defect 2 is latent. It was found by reading the code at 910b823 and has not fired in the Service yet.
The Service manages eight repositories through service.repos: this one and seven others.
1. The metrics job runs git tag in the pod's working directory instead of in a checkout of the repository
- The warning. Every metrics run logs this from
devops_cli.github.metrics:Failed to inspect git tags: Command '['git', 'tag', '-l', 'v*', ...]' returned non-zero exit status 128.- Loki counted 150 of these in the 24 hours up to 2026-10-08 00:27 UTC. That is one per repository per metrics run.
- Each repository gets a run every 15 to 20 minutes, which is three to four warnings per repository per hour.
DEFAULT_ROADMAP_METRICS_INTERVAL_MINUTES = 15is atsrc/devops_cli/config/defaults.py:801, and the Service checks it on each 300 s poll. - Until 2026-10-07 23:51 UTC only two repositories reached the job. Six more reached it at about 00:17 UTC, when their
.github/roadmap.tomllanded, and each logged the warning within its first minute. - Seven repositories produce the warning now, about 24 an hour. This repository's Service job has been in progress since 23:51:27 UTC (
devops_cli_service_job_start_timestamp_seconds, still running at 00:45 UTC), so its metrics job has not run since then. With all eight running, expect about 27 an hour.
- The call chain.
- The
metricsrow ofDEFAULT_DUE_TABLE(src/devops_cli/roadmap/run.py:532-537) does not setneeds_clone. - The executor passes
clone_pathto every runner (run.py:771-777), but_run_metrics_adapter(run.py:462-501) ignores it. It callscollect_project_metrics_report(repo=target_repo)with noroot(run.py:481). - With no
root, the report usesfind_worktree_root(None)(src/devops_cli/github/metrics.py:502). When no.gitorpyproject.tomllies above the current directory, that returns the current directory (src/devops_cli/core/repo.py:51-62,:156-175). - The image's
WORKDIRis/home/devops(Dockerfile:46), which is not a git repository. In the running pod,git rev-parsethere exits with "not a git repository" (checked 2026-10-08). _get_git_tag_entriesrunsgit tagwithcwd=root(metrics.py:144-170). On failure it logs the warning and returns[](metrics.py:155-157), soget_release_cadence_metricsreturns no releases (metrics.py:222-226).
- The
- Result. Every repository's report says it has zero releases.
devops_cli_project_releases_totalread 0 on both export paths at 2026-10-08 00:28 UTC, and still read 0 at 00:48.- Two of the eight repositories have
v*tags on GitHub: this one has 34 and one other has 4. - After the fix the gauge reads at most 10, because
get_release_cadence_metricsreturnsmetrics[-limit:](metrics.py:245) and the defaultrelease_limitis 10. This repository will read 10, not 34.
- This repository already has a clone.
- It is at
/home/devops/.data/roadmap/<owner>/<name>/cloneand holds 33 of the 34 tags. close(hourly) andrefinefetch it throughensure_checkoutwhen they run (run.py:184-251;needs_clone=Trueat:518and:529). Its last fetch was at 2026-10-07 23:32 UTC, before the v0.2.28 tag.- It sits on the 1 GiB
roadmap-service-homePVC (k8s/devops/roadmap-service/pvc.yaml). The whole roadmap data directory uses 61 MB, and the eight repositories together are about 18 MB on GitHub.
- It is at
- The CLI path makes the same call.
devops gh metrics(src/devops_cli/commands/gh.py:1875-1881) also passes noroot, so it reads the working directory's tags. That is only right when the command runs inside a checkout of the repository it reports. - Consistency with fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974. fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974 (open, backlog) keeps the release walk on a checkout: "the release walk reads that worktree's tags". It leaves scheduled collection to the roadmap Service's due table, and that table now has the
metricsrow. So the Service's job should also read a checkout of its own repository. - Calling
find_worktree_rooton the clone is not enough. In the pod it would return the clone. ButDEFAULT_DATA_DIRis the relative path.data(defaults.py:30), so a localdevops roadmap runclones inside the workspace.find_worktree_rootthen climbs past a clone that sits inside another checkout and returns the outer one. This is the known limit tracked in Checkouts and Worktrees Below Another Repository Resolve to Their Own Repository #617.
2. Intake reads .github/labels.yml only when it decides its first candidate, and a missing file is not reported as a configuration error
-
How the file is read.
_Run.types(src/devops_cli/roadmap/intake.py:511-527) reads.github/labels.ymlthroughstore.repository_file.- Only YAML errors and label-spec errors become a
ConfigurationError(intake.py:517-521). - A missing file raises
GitHubFileNotFoundErrorfromGitHubRoadmapStore.repository_file(src/devops_cli/roadmap/github_store.py:1519-1532), with the message "<owner>/<name>has no .github/labels.yml at the default branch." - A file that declares no
type/*label passes. Every candidate without a type is then skipped, because_choice(intake.py:667-674) rejects every proposed type.
- Only YAML errors and label-spec errors become a
-
When the read happens.
typesis acached_property. It is first evaluated in_Planner._decide(intake.py:1011-1028), while theProposalRequestfor the first candidate is being built.- This happens whether or not the candidate needs a type.
- If any candidate went through the duplicate check,
_embedhas already called the embedding model by then (intake.py:979). - A run with no candidates never reads the file.
-
What the Service would log. A failing intake run produces two ERROR records, each with a traceback:
- the original exception, from
_execute_due_rows(logger.exception,run.py:783); Service job execution failed for <repo>: Roadmap jobs failed: intake, from_execute_batch(src/devops_cli/server/service.py:179-185,exc_info=True). This record carries a newRoadmapRunErrorthat names only the failed job. Its traceback ends atrun.py:787and does not include the original message.
The board-read failures at 00:17-00:18 UTC produced exactly this pair. A failed job is not stamped, because
schedule[row.name]is written only on success (run.py:780-781). So intake stays due and fails again on every 300 s poll until the file is fixed. - the original exception, from
-
Which repositories are affected. Seven of the eight managed repositories have no
.github/labels.yml, and all eight have.github/roadmap.toml(checked through the contents API on 2026-10-08). None of the seven has an open issue.- At 00:17 UTC, intake in six of them stopped earlier, at the board read.
- From the next poll at 00:21 UTC, all seven read their boards and finished intake with no candidate. Loki shows no intake ERROR after 00:18:05 UTC, and
devops_cli_service_jobs_total{result="success"}has risen on every poll since. - So the first issue filed in any of them reaches this path today.
-
There is no other source for the type list. None of the seven repositories has any
type/*label on GitHub (checked 2026-10-08).
Acceptance criteria
-
The
metricsrow ofDEFAULT_DUE_TABLEhasneeds_clone=True, and_run_metrics_adapterpasses theclone_pathit receives tocollect_project_metrics_reportasroot. Checked by a new test intests/test_roadmap_run.py:- it runs
run_due_jobswithtableset to themetricsrow ofDEFAULT_DUE_TABLE; remote_urlpoints at a bare repository intmp_paththat has twov*tags, built as_make_bare_remotedoes (tests/test_roadmap_run.py:78, used at:566-573);ghis faked at the process edge, and the GitHub and Cloudflare status fetches at the HTTP edge;- it expects the registry's
devops_cli_project_releases_totalto read 2, and noFailed to inspect git tagsrecord incaplog.
The test patches no devops-cli name (test(cli): tests double only process edges and mirror the source tree #1307). It replaces the adapter half of
test_metrics_job_registered_in_default_due_table_and_adapter(:850-895). That half patches the collector out and leaves the status fetches unstubbed, so it cannot show this. - it runs
-
collect_project_metrics_report(root=<path>)walks the tags of<path>itself; onlyroot=Nonegoes throughfind_worktree_root. Checked by a new test intests/test_github_metrics.py:- it builds a git repository with two
v*tags intmp_path, nested inside another git repository that has different tags; - it fakes the
ghreads at the process edge; - it expects a report with the inner repository's two tags and no
Failed to inspect git tagsrecord incaplog.
- it builds a git repository with two
-
build_stub_table'smetricsrow follows itsneeds_cloneargument the waycloseandrefinealready do (run.py:566,:580). When the clone cannot be prepared, the metrics job fails the waycloseandrefinedo. Checked by atests/test_roadmap_run.pycase withremote_urlset to a missing path undertmp_path:run_due_jobsraises aRoadmapRunErrorwhosefailed_jobscontainsmetrics, and the stubintakeandreprioritizerunners still ran. -
plan_intakereads.github/labels.ymlonce per run, as soon as the run has at least one candidate and before the closures reads and the embedding call. A run with no candidates does not read it. Checked intests/test_roadmap_intake.pyon the in-memory store with no labels file:- (i) with no open issues, the run returns a plan with no decisions and raises nothing;
- (ii) with one open issue off the board, the run raises
ConfigurationError, andFakeModel.embeddedandFakeModel.requestsstay empty.
-
Two cases raise
ConfigurationErrorwithdetails={"path": ".github/labels.yml"}: a missing.github/labels.yml, and one that declares notype/*label other thantype/epic. The message names the repository and the file, and says the file must declare thetype/*labels intake may assign. Checked intests/test_roadmap_intake.py. -
Any other failed read of the file still raises
GitHubOperationError, notConfigurationError. Checked intests/test_roadmap_intake.pyon aGitHubRoadmapStorewhose fakeghrunner answers the contents read of.github/labels.ymlwith HTTP 502. The fake goes through therunnerseam (github_store.py:1187), or through refactor(github): the github session owns transport, ledger, error classes and link pagination #983's session fake if that lands first. -
The dry run lists the
labelsread where a run now makes it. The step moves from afterembed(src/devops_cli/roadmap/intake_requests.py:150) to the start ofdecisions(), before theclosuressteps.test_dry_run_makes_no_request_and_prints_the_requests_a_run_makes_in_order(tests/test_roadmap_intake.py:769) expects the step before the timeline read.test_a_dry_runs_requests_follow_the_order_a_run_makes_them(:922) passes in both of its cases.
-
No new test reaches the network or runs helm, and each new test's call phase stays under 1 s, as shown by
uv run pytest tests/test_github_metrics.py tests/test_roadmap_run.py tests/test_roadmap_intake.py --durations=0. -
uv run devops cipasses within its 5-minute budget. -
A
changelog.d/<n>.mdfragment exists,CHANGELOG.mdanddocs/ROADMAP.mdare untouched, anduv run devops pr check-readinesspasses. -
Pending a person, after merge, once the Service runs a release image that contains this fix:
- (a) The Loki query
sum(count_over_time({namespace="devops"} |= "Failed to inspect git tags" [1h]))returns nothing for the hour after the rollout. - (b)
kubectl -n devops exec deploy/roadmap-service -- sh -c 'ls -d /home/devops/.data/roadmap/*/*/clone'prints one line for each repository inservice.repos. - (c) Run this against a managed repository that still has no
.github/labels.yml:uv run devops roadmap intake --plan -R <owner>/<name> --title "labels probe" --body-file <a one-line text file>. It exits 1, and its message names.github/labels.ymland says the file must declare thetype/*labels intake may assign. Skip (c) if every managed repository already has the file.
- (a) The Loki query
Key questions
-
Read tags and releases through the GitHub API instead of a checkout? Proposed: no.
- The walk counts commits and pull requests between tags (
git rev-list,git log;metrics.py:183-219). Over REST that means one compare call per reported release on every run. - The cost falls on the repositories that have tags: two today, with 34 and 4. At a cap of 10 releases and three to four runs an hour, that is about 70 REST calls an hour, plus a new reader to write and test.
ensure_checkoutand the per-repository clone already exist, andgit fetchuses git transport rather than the REST or GraphQL API.
- The walk counts commits and pull requests between tags (
-
Does the metrics job inherit the release-branch checkout that
ensure_checkoutdoes when a current release exists (run.py:215-236)? Proposed: yes. Tags don't depend on the branch.- The gap is real for this repository.
current_releasepicks the lowest open milestone (src/devops_cli/roadmap/reprioritize.py:438-441). From the v0.2.28 merge at 2026-10-07 23:43 UTC untilrelease/v0.2.29appeared at about 00:40 UTC, that milestone had no release branch on origin. During that window,git checkout -B release/<v> origin/release/<v>cannot succeed, socloseandrefinefail today, andmetricswould join them. - This repeats between every release merge and the next branch cut. Making
ensure_checkoutcope with a missing release branch fixes all three jobs, so it gets its own item rather than a metrics-only workaround here.
- The gap is real for this repository.
-
A clone failure now fails the whole metrics run, including the GitHub and Cloudflare status probes (
run.py:486-499). Accept that? Proposed: yes.- The status gauges carry no
repolabel (src/devops_cli/telemetry/service_status.py:115-126), and every managed repository's metrics job records them. A failed clone in one repository skips one of eight redundant probe runs. - While the clone fails, the Service logs one ERROR per 300 s poll, as it already does for
closeandrefine. - The clone error itself is never logged:
_execute_due_rowsadds the job tofailed_jobsand moves on (run.py:762-767), so that ERROR says only "Roadmap jobs failed: metrics". Proposed: carry that into the Service-logging item below. Splitting the status probes into their own row is a separate item if wanted.
- The status gauges carry no
-
What about
devops gh metrics --repo <other>run from a checkout of a different repository? It walks the working directory's tags and reports them under the other name (gh.py:1875-1881,metrics.py:502-506). Proposed: fold this into fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974, which already reworks that command and its on-use trigger. The command would fail, naming both repositories, when--repois not the checkout's origin. Not in this item. -
Should a failed tag read raise, instead of warning and reporting zero releases (
metrics.py:155-157)? Proposed: yes, by extending the criterion fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974 absorbed from fix(gh): project metrics read every page and fail closed instead of reporting zero #931 to the git reads: a failed read raises and the emitter records nothing for that run. That criterion names only the REST readers today, so this widens fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974. This item removes the cause in the Service. -
The project gauges have no
repolabel, so all eight repositories' metrics runs write the same series.- At 2026-10-08 00:28 UTC,
devops_cli_project_stars_totalhad one series per export path: the OTLP push and the pod's/metricsscrape. Neither has arepolabel, and each holds whichever repository ran last. - After this fix,
devops_cli_project_releases_total(metrics.py:585) will jump between 10, 4 and 0 from run to run. - fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974 turns the project instruments into gauges and renames five of them: releases, commits, prs, ci_runs and items. The stars, forks and traffic instruments (
src/devops_cli/telemetry/instruments.py:168-215) are not in its list. - Proposed: add a
repolabel to every project instrument, stars, forks and traffic included, as a stated extension of fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974's scope, since fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974 already rewrites the emitter and the dashboard. If fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974 declines it, it becomes its own item.
- At 2026-10-08 00:28 UTC,
-
Land this before or after fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974? Proposed: before.
- Both change
src/devops_cli/github/metrics.pyandtests/test_github_metrics.py. This item is small, and fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974 rebases on it. - The named test paths follow test(cli): every test file sits in the directory mirroring the package it tests or in tests/invariants/, and the root conftest holds only the hermetic floor #1313's mirrored layout, and the fakes follow test(github): github/ is tested through its public interface over the gh process and session fakes, with no internal patches or private imports #1321 and test(infra): infrastructure tests run on edge fakes #1335, whichever of these lands first.
- Both change
-
If labels.yml is missing, should intake fall back to the repository's GitHub labels, or write labels.yml itself? Proposed: neither.
- The seven repositories have no
type/*labels on GitHub, so a fallback would produce an empty set, and an unconfigured fallback breaks the fail-closed rule. - Writing labels.yml belongs to onboarding (see the last question).
- The seven repositories have no
-
Read labels.yml at the start of every intake run, even when there are no candidates? Proposed: no. Read it when the run has its first candidate, before any closures read or model call.
- A failed intake job reruns on every 300 s poll (see Problem). Reading on every run would make each of the seven repositories without labels.yml log two ERROR records per poll, about 168 an hour across the seven, before any issue exists. That is the opposite of this item's aim.
- Reading at the first candidate still fails closed exactly when a type is needed, and spends no embedding call.
- Catching a misconfigured repository early belongs to the onboarding check proposed below.
-
Should the seven repositories get a labels.yml before this lands? Proposed: yes. A person commits it as an onboarding step, and then defect 2 cannot fire there. Live check (c) only runs while some managed repository still lacks the file.
-
A missing
.github/roadmap.tomlstill raises the rawGitHubFileNotFoundError(src/devops_cli/roadmap/config.py:82). Should it change here too? Proposed: no. Its message already names the file, and it belongs with onboarding. -
A repository in
service.reposwithout.github/roadmap.tomllogs an ERROR with a full traceback on every poll. Between 2026-10-07 23:51 and 2026-10-08 00:16 UTC, each of six repositories logged one every 300 s from_execute_batch(service.py:179-185,exc_info=True), six per repository.devops_cli_service_jobs_total{result="error"}reads 7 for each: those six plus the 00:17 intake failure. Proposed: a separate item in which the Service logs aConfigurationErrorwithout the traceback, keeps tracebacks for unexpected exceptions, and logs the clone error that_execute_due_rowsdrops. Theresult="error"counter already counts repeats. -
Onboarding a repository is done by hand. It takes these steps:
- copy a board from the template and link it;
- grant the machine account Write on the board (
docs/adr/0002-roadmap-jobs-act-as-a-machine-account.md, line 3); - commit
roadmap.tomlandlabels.yml.
On 2026-10-08 at 00:17 UTC, intake in six of the seven repositories could not resolve the configured board. From the next poll at 00:21 UTC it read all of them.
No open item covers onboarding.
devops roadmap migrate, and the template loading and provisioning ingithub/projects.pythat refactor(github): board fields are written only through the roadmap store, and projects.py keeps provisioning #999 keeps, are the building blocks. Proposed: a separate feature item for an onboarding command that checks each prerequisite, creates what it can after a dry run, and names what a person must do. Not part of this item. -
One item or two? Proposed: one item.
- The metrics criteria (1-3) and the intake criteria (4-7) share no code path, so they may land as two PRs.
- The first PR references this issue without a closing keyword.
Strategic alignment
- Priority: P2. Neither defect loses data or blocks this repository's own roadmap.
- Defect 1 is about 24 warnings an hour plus a zero-release gauge.
- Defect 2 is one filed issue away in seven repositories. Once it fires, intake there fails on every poll until labels.yml is committed.
- It is above P3 because the Service already manages those repositories and their boards are readable.
- It is not P1 because a person can rule out defect 2 today by committing labels.yml, which onboarding needs anyway.
- Value: M. Effort: S.
- The intake half keeps intake working in seven repositories at their first issue.
- On its own, the metrics half is worth S. It removes the warnings, but the release gauge stays mixed across repositories until a
repolabel exists (see Key questions).
- Library-first: no new dependency and no new helper.
JobRow.needs_cloneandensure_checkoutalready keep a clone per repository, and git authenticates through the image'sgh auth git-credentialhelper (Dockerfile:36-37).- The existing
ConfigurationErrorbranch of_Run.typestakes the missing-file and empty-type-set cases. - Tests use
InMemoryRoadmapStore.seed_file, realgitintmp_path, and fakes only at the process and HTTP edges.
- Related: fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974, Checkouts and Worktrees Below Another Repository Resolve to Their Own Repository #617, refactor(github): the board's priority field is the only priority source, and stray type labels merge into type/bug #880 (changes the label set in labels.yml), refactor(github): board fields are written only through the roadmap store, and projects.py keeps provisioning #999, feat(roadmap): run the roadmap jobs when they are due (
devops roadmap run) #981, feat(cli): service mode fordevops servewith github webhooks, a polling tick and per-repo job queues #752, test(cli): tests double only process edges and mirror the source tree #1307, test(cli): every test file sits in the directory mirroring the package it tests or in tests/invariants/, and the root conftest holds only the hermetic floor #1313, test(github): github/ is tested through its public interface over the gh process and session fakes, with no internal patches or private imports #1321, test(infra): infrastructure tests run on edge fakes #1335, refactor(github): the github session owns transport, ledger, error classes and link pagination #983, ADR 0002.
Update 2026-10-08: delivered scope
- One PR, closing fix(roadmap): the metrics job walks release tags in each repository's own clone, and a missing or type-less labels.yml stops intake as a configuration error before any model call #1358. It carries both the metrics criteria (1-3) and the intake criteria (4-7). The "two PRs, the first without a closing keyword" option is dropped under the one-PR-per-issue readiness rule.
- "Names the repository" is met as written.
plan_intakeandintake_candidatetake a requiredrepokeyword, asplan_migrationdoes. The CLI passes its--repoand the Service's intake adapter passes the repository it runs.- Every labels.yml configuration error names
<owner>/<name>, the file and the ref: missing, type-less, and not label specs. This holds in the Service as on the command line. - The
RoadmapStoreprotocol is unchanged.
- No working-directory fallback. The metrics and refine adapters raise
GitOperationError, naming the job andneeds_clone, when they're run without a clone. Before this, a row withoutneeds_clonewould quietly read the working directory, which is the original defect. - Live check (c) is skipped: all eight managed repositories have
.github/labels.ymlwith ninetype/*labels (contents API, 2026-10-08). - Criterion 3 test:
test_checkouts_git_managementis extended with a metrics stub and expects("close","refine","metrics"). It already sends the milestones webhook that makesreprioritizedue. - Criterion 1 test: it reuses
_make_bare_remoteand tags its commit; with only the metrics row, no current release is looked up, so it holds before and after fix(roadmap): the job clone tracks the current release's branch while origin has it and the default branch otherwise, so close, refine and metrics run between a ship and the next release's start #1366. It asserts no WARNING record at all, which shows the process-edge fake answers every read. A second test drives the adapter's warning branches from the edges: an uncountable milestone fromgh, and 404 status pages. - Fail-closed stays with fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974. A clone that can't be prepared, or a row that gives none, now fails the metrics job. Failed tag, REST, collection and status reads still warn. The fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974 extensions (git reads fail closed, a
repolabel on every project instrument, the release-interval histogram, the tag walk's cost,gh metrics --repofrom another checkout) are recorded in a comment on fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974. - Found while testing:
test_dry_run_makes_no_request_and_prints_the_requests_a_run_makes_in_orderfails when it runs first in its process, at base as well, because the tracer'splatform.platform()startsuname -p. That is fix(telemetry): building the tracer starts uname -p through platform.platform(), so tests fail when they run first in their process #1418.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty-bot commentedon Oct 8, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
Defect 1 is live and has produced ~150 warnings in 24 h across all eight repositories, but it corrupts a monitoring gauge rather than blocking a user workflow.All eight repositories report zero releases when some have up to 34 tags, so release-cadence dashboards and any downstream alerting read wrong data.The fix is to pass the already-available clone_path into _run_metrics_adapter instead of ignoring it, plus a small validation guard for labels.yml.dan-petty commentedon Oct 8, 2026
Two follow-ups proposed in this item's Key questions are filed.
config.py:82unchanged, as proposed here: onlyservice_jobturns a missing.github/roadmap.tomlinto aConfigurationError(keyservice.repos), becausedevops gh issues triagerelies onGitHubFileNotFoundErrorto mean "no board" (commands/gh.py:1000-1007). It carries each job's error intoRoadmapRunErrorthrough a stdlibExceptionGroupcause, including the clone error that_execute_due_rowsdrops today (run.py:762-767). Once both items land, this item's labels.ymlConfigurationErroris logged once per poll, without a traceback.ensure_checkoutand a missing release branch). The clone fetches with--prune, checks outrelease/<v>while origin has it and the named default branch otherwise, and logs an INFO line when it falls back. It also makes the cut's own branch check fail closed whenrelease/<v>is gone. If it lands first, this item's metrics clone test needs no release branch on its bare remote, but the bare remote does need amainthat its HEAD names (git init --bare --initial-branch=main), because the new rule runsgit remote set-head origin --auto. Both items edittests/test_roadmap_run.py, so whichever lands second rebases.Also: #1360 changes the same due table,
build_stub_tableand the start ofplan_intake. Whichever lands second rebases, and its intake cap applies after this item's early labels.yml read.dan-petty commentedon Oct 8, 2026
Placed in v0.2.29 by the owner on 2026-10-08. The owner's instruction was to pull every issue that keeps the roadmap service from working into the current milestone and complete them. This is a person's placement and should stay in the release (#1349). Implementation started the same day, so the board Status is In Progress.
fix(roadmap): the metrics job walks its own clone's release tags, and…
fix(roadmap): the metrics job walks its own clone's release tags, and…
dan-petty-bot commentedon Oct 8, 2026
What changed
#1426, merged into
release/v0.2.29as ee55c49.12 file(s) changed.
How it was verified
Check runs at 7dd50a1:
Acceptance Criteria of
docs/agent/tasks/task-1358-metrics-clone-and-labels-config-error.md:metricsrow ofDEFAULT_DUE_TABLEhasneeds_clone=True, and_run_metrics_adapterpasses its clone tocollect_project_metrics_reportasroot:test_the_metrics_job_walks_the_release_tags_of_its_own_clonerunsrun_due_jobswith that row over the bare remote_make_bare_remotebuilds intmp_path, with twov*tags added to it, withghfaked at the process edge (GitHubFake.processin place ofsubprocess.run,gitpassed through) and the GitHub and Cloudflare status pages throughstub_web. The registry'sdevops_cli_project_releases_totalreads 2 and the job logs no WARNING record at all, so noFailed to inspect git tags, noProject metrics collection failedand noFailed to query. No devops-cli name is patched. It replacestest_metrics_job_registered_in_default_due_table_and_adapter.collect_project_metrics_report(root=<path>)walks the tags of<path>itself; onlyroot=Nonegoes throughfind_worktree_root(test_a_given_root_is_walked_as_it_is_even_inside_another_checkout: a clone with two tags under.data/inside a checkout with two other tags reports the clone's, with no warning).test_collect_project_metrics_reportpatches no reader: its releases are three dated tags intmp_path, its milestones and open issues' labelsGitHubFake's answers.build_stub_table'smetricsrow followsneeds_clone, and a clone that can't be prepared failsmetricsas it failscloseandrefinewhile the stubintakeandreprioritizestill run (test_checkouts_git_managementexpectsfailed_jobs == ("close", "refine", "metrics")).GitOperationErrornaming the job andneeds_clone, and read nothing (test_a_job_that_reads_the_clone_fails_without_one_rather_than_reading_the_cwd, both jobs).JobOutcome(test_a_failed_metrics_collection_or_status_read_is_logged_and_the_job_goes_on).plan_intakereads.github/labels.ymlonce, at the run's first candidate, before the timeline reads and the embedding call; a run with no candidate does not read it (test_a_run_with_no_candidate_needs_no_labels_file;test_a_labels_file_it_cant_use_stops_intake_before_any_read_or_model_callrecords noclosurescall and leavesFakeModel.embeddedandFakeModel.requestsempty).type/epicraiseConfigurationErrorwithdetails={"path": ".github/labels.yml"}, and the message names the repository (example/roadmap), the file and the rule; a file that is no label specs names the repository and the file (same test, three cases). Through the command, the error names the--reporepository (test_intake_names_the_repository_whose_labels_file_declares_no_type).GitHubOperationError, neither aConfigurationErrornor aGitHubFileNotFoundError, before any model call (test_a_labels_read_github_fails_stays_a_github_error, aGitHubRoadmapStoreoverGitHubFakewhosefilesentry answers(1, "gh: Server Error (HTTP 502)")).labelsread before the timeline read (test_dry_run_makes_no_request_and_prints_the_requests_a_run_makes_in_order), with the candidate condition over the open issues and none for a--titlecandidate (test_a_dry_runs_labels_read_waits_for_a_candidate_unless_it_has_a_title), andtest_a_dry_runs_requests_follow_the_order_a_run_makes_thempasses for both of its cases.uv run pytest tests/test_github_metrics.py tests/test_roadmap_run.py tests/test_roadmap_intake.py --durations=0).uv run devops cipasses within its 5-minute budget.changelog.d/1358.mdrecords the change;CHANGELOG.mdanddocs/ROADMAP.mdare untouched.servicetag). Both checks below wait on it.sum(count_over_time({namespace="devops"} |= "Failed to inspect git tags" [1h]))returns nothing (baseline: 71 lines in the 3 hours before 2026-10-08 ~12:35 UTC).kubectl -n devops exec deploy/roadmap-service -- sh -c 'ls -d /home/devops/.data/roadmap/*/*/clone'prints one line for each repository inservice.repos.feat(release): v0.2.29 (#1455)