Skip to content

feat(roadmap): name each repository's resources from one RepoRef - #4612

Merged
dan-petty merged 2 commits into
mainfrom
feat/4533-repo-ref
Nov 11, 2026
Merged

dan-petty merged 2 commits into
mainfrom
feat/4533-repo-ref

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Each part of the roadmap Service made the names of a repository in its own way, and service.repos had no check. The move of the Service work to Jobs, Workflows and Valkey (#4517) adds many names and keys for each repository, so one rule comes first.

  • RepoRef (src/devops_cli/github/repo_ref.py) parses owner/name one time and builds the label values, unit and ad hoc names, lock names, valkey-roadmap keys and their two SCAN MATCH patterns, the metric repo value, the VCS span attributes and the clone path parts.
  • service.repos refuses an entry that is not owner/name and two spellings of one repository.
  • is_name_segment and is_repository_name move into the module.
  • ADR 0022 owns the naming rules. The move record (docs(roadmap): record the roadmap Service move to jobs and Valkey #4527) takes 0021.

Closes #4533

Change: openspec/changes/archive/2026-11-11-4533-name-each-repository-s-resources-from/

Add RepoRef in src/devops_cli/github/repo_ref.py. It parses owner/name one
time and builds the label values, unit and ad hoc names, lock names,
valkey-roadmap keys and their two SCAN MATCH patterns, the metric repo
value, the OpenTelemetry VCS span attributes and the clone path parts of
a repository. service.repos refuses an entry that is not owner/name and
two spellings of one repository. ADR 0022 records the rules.

Closes #4533
@dan-petty dan-petty added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 11, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Results of the local checks (branch at e8b2cf5 on main 5f75d25):

  • uv run devops ci test tests/github/test_repo_ref.py tests/config/test_settings.py tests/roadmap/test_roadmap_inbox_command.py tests/roadmap/test_roadmap_alternatives.py tests/roadmap/stores/test_roadmap_github_store_repository.py: 272 passed.
  • The test modules that set service.repos (RAG ingest, rag command, service limits, ConfigMap, server, run service and lanes, onboard, inbox requests, counter series, roadmap stores): 559 passed.
  • uv run devops ci --skip test --check --no-cache: every row passes after one fix (pytest.raises with match=).
  • uv run devops openspec check and uv run devops openspec archive: pass.

Live check (read only, counts only): ConfigMap devops-cli-config holds 7 service.repos entries. All 7 parse as RepoRef, the 7 keys are distinct, all 7 have the plain casefolded name as label values (no hash), and the longest unit name over all rows with a 6-digit item has 63 characters.

Live steps for a person: none. The live ConfigMap passes the new check of service.repos, so the Service loads its settings after the roll. No manifest, ConfigMap or Secret changes.

ADR number: the record of the move (#4527) is in work at the same time and takes 0021, the next free number. This record takes 0022 so the two do not collide. The pull request that merges second adds the link between the two records.

Out of scope, filed: #4610. A value that a settings validator refuses in the config file ends the command with a traceback. The same value in an environment variable gives one clean line.

@dan-petty
dan-petty marked this pull request as ready for review November 11, 2026 12:11
@dan-petty
dan-petty enabled auto-merge (squash) November 11, 2026 12:11
@dan-petty
dan-petty merged commit 75dd9c8 into main Nov 11, 2026
32 checks passed
@dan-petty
dan-petty deleted the feat/4533-repo-ref branch November 11, 2026 12:31
@dan-petty

Copy link
Copy Markdown
Owner Author

Review findings after merge

This pull request merged at 2026-11-11T12:31:09Z, before the findings were fixed. Thus no change goes into this branch. Each finding goes to an issue.

# Severity Finding Verdict Action
1 major ADR 0022 does not link to the move record ADR 0021. Line 31 of ADR 0021 on main still says that the pull request that merges second adds the link. Confirmed Filed #4617

Evidence for finding 1:

  • docs(roadmap): record the roadmap Service move to jobs and Valkey #4609 (ADR 0021) merged at 12:11:04Z. This pull request merged at 12:31:09Z from head e8b2cf51 on merge base 5f75d256, so its branch did not have ADR 0021.
  • git show origin/main:docs/adr/0022-one-repository-reference-names-the-objects-labels-and-keys-of-each-repository.md | grep -n 0021 prints nothing. The Status section names only "(docs(roadmap): record the roadmap Service move to jobs and Valkey #4527)".
  • Line 31 of docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md says: "The pull request that merges second adds the link between the two records."
  • No open issue or pull request mentions ADR 0022, and no open pull request changes either ADR file.

#4617 holds the fix: a link to the ADR 0021 file in the Status section of ADR 0022, and a link to the ADR 0022 file in place of the "Until that record merges" sentences of ADR 0021.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): name each repository's resources from one RepoRef

1 participant