Skip to content

refactor(roadmap): the package declares the workflow labels - #4818

Merged
dan-petty merged 3 commits into
mainfrom
refactor/4652-package-workflow-labels
Nov 11, 2026
Merged

dan-petty merged 3 commits into
mainfrom
refactor/4652-package-workflow-labels

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Each repository holds a hand copy of the labels that the roadmap code reads or writes, and the copies drift: another repository lacks status/planned, owner/* and plan/needs-fix, which the Service writes. Onboard checked only a type/* label, so it did not find them. Now the package declares the 31 workflow labels once, with a design token color for each. The reader of .github/labels.yml gives them first, then the labels of the file. Onboard row 4 and devops gh labels sync compare GitHub with both sources, and onboard lists each missing label. The labels file of devops-cli keeps only its scope and release labels.

Closes #4652

Change: openspec/changes/archive/2026-11-11-4652-the-package-declares-the-workflow-labels/

@dan-petty dan-petty added type/refactor Type refactor: a new structure, same behavior 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

Checks on the branch

  • New tests first: tests/roadmap/test_roadmap_labels_file.py and the new row 4 test in tests/roadmap/test_roadmap_onboard.py failed with ModuleNotFoundError: devops_cli.roadmap.workflow_labels before the change, and pass after it.
  • Label readers (intake, inbox, pr create, gh commands, GitHub, the workflow contracts, the MCP listing): 2,379 passed, then the 17 tests that expected the old file rules were updated, and the 85 tests of those files pass.
  • tests/roadmap/stage, tests/roadmap/implement, tests/roadmap/refine and 3 more files: 4,673 passed, 1 skipped.
  • uv run devops ci --check --only constructs,docs,openspec: pass.
  • Acceptance criterion 4, read only (--plan sends only GET requests): uv run devops roadmap onboard --repo dan-petty/homelab --plan gives row 4 missing (7 label(s) missing) and lists status/planned, owner/service, owner/agent, owner/human and plan/needs-fix. The other 2 (status/triage, status/ready-to-merge) come from the old .github/labels.yml of that repository. Its kit pull request (perf(ci): move the four path checks into filtered workflows #4653) replaces that file. 26 labels show as differing, because the package colors are new.

Not in this pull request

Live steps after the merge (a person, or an agent with the owner's go)

  1. uv run devops gh labels sync --repo dan-petty/devops-cli --dry-run, then without --dry-run. It creates each missing label and updates the color and the description of each workflow, scope and release label. It deletes no label, so the 3 review/* labels stay on GitHub until a person deletes them.
  2. For each of the 6 other repositories: uv run devops roadmap onboard --repo <owner>/<name> --plan, then --confirm. It creates each missing workflow label with POST and edits no label.

@dan-petty
dan-petty marked this pull request as ready for review November 11, 2026 21:49
@dan-petty
dan-petty enabled auto-merge (squash) November 11, 2026 21:49
@dan-petty
dan-petty force-pushed the refactor/4652-package-workflow-labels branch from 77b831a to 42a84ce Compare November 11, 2026 22:02
The package declares the 31 labels that the roadmap code reads or
writes, with a design token color and a description for each
(roadmap/workflow_labels.py). The reader of .github/labels.yml gives
these labels first, then the labels of the file. Onboard row 4 and
devops gh labels sync compare GitHub with both sources, and onboard
lists each missing label. The labels file of devops-cli holds only its
scope and release labels.
@dan-petty
dan-petty force-pushed the refactor/4652-package-workflow-labels branch from 42a84ce to 02be8d1 Compare November 11, 2026 22:55
@dan-petty
dan-petty merged commit 89926ff into main Nov 11, 2026
26 checks passed
@dan-petty
dan-petty deleted the refactor/4652-package-workflow-labels branch November 11, 2026 23:03
dan-petty pushed a commit that referenced this pull request Nov 11, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.114.1](v0.114.0...v0.114.1)
(2026-11-11)


### Performance Improvements

* **tests:** parse the source trees once per worker
([#4850](#4850))
([7a163a7](7a163a7))


### Code Refactoring

* **roadmap:** the package declares the workflow labels
([#4818](#4818))
([89926ff](89926ff))

---
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/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/refactor Type refactor: a new structure, same behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(roadmap): the package declares the workflow labels

1 participant