Skip to content

fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section (#1450) - #1522

Merged
dan-petty merged 1 commit into
release/v0.2.33from
fix/1450-service-cut-collects-changelog
Oct 9, 2026
Merged

dan-petty merged 1 commit into
release/v0.2.33from
fix/1450-service-cut-collects-changelog

Conversation

@dan-petty

@dan-petty dan-petty commented Oct 9, 2026 •

Copy link
Copy Markdown
Owner

Closes #1450

What changed

This follows the owner's decision of 2026-10-09: the cut commit does it all. In one commit, before it opens the release pull request, it:

  • bumps the version
  • collects changelog.d/ into the version's CHANGELOG.md section and deletes the fragments
  • renders docs/ROADMAP.md

A critical fix after the cut edits the version's section of CHANGELOG.md in its own pull request. It adds no fragment and needs no collate pull request.

  • The cut (commands/release.py, cut_release(is_prepare=True), used by the roadmap Service's close job, devops roadmap close and devops release prepare --create-pr):
    • _plan_fragment_collection reads and checks every fragment before the first write. A bad fragment stops the cut with the clone clean.
    • The cut then bumps the version and writes the section with _write_version_changelog.
    • A re-cut whose tip already holds the section, with no new fragment, keeps CHANGELOG.md unchanged.
    • With no entries for ## [X.Y.Z] (no fragment, or no ## [ heading to place one under), the cut fails before it writes or pushes. The error names the version, the release branch, the section and both causes. It also names the completed items with no fragment, which devops roadmap close and the Service's close job pass in from the plan (missing_fragments), since the Service logs this error and no plan. release prepare --create-pr has no plan, so its error points to devops roadmap close --plan instead.
  • The plan (roadmap/close.py): CUT_FILES now includes CHANGELOG.md. --plan, the confirmed run and the dry-run note say the cut collects and deletes the fragments. A completed item with no fragment is listed with the fix:
    • before the cut, add changelog.d/<issue>.md in a pull request into the release branch
    • after the cut, edit the version's section in a pull request
  • Readiness (commands/pr.py): a pull request into release/vX.Y.Z that edits CHANGELOG.md in place triggers a read of the branch's raw CHANGELOG.md at its tip.
    • If the version's section holds entries, the edit is the critical-fix path and is not blocked.
    • Without the section, the existing blocker stands.
    • A failed read is a blocker of its own.
    • docs/ROADMAP.md stays the cut's. After the cut, its blocker no longer suggests adding a fragment.
    • No other pull request makes the read.
  • Docs: changelog.d/README.md, RELEASE_CYCLE.md, AGENTS.md, CONTEXT.md, docs/agent/tasks/README.md, docs/ROUTINE_TASKS.md, the PR template, HELP.roadmap.close, the pr check-readiness help, and the --changelog/--no-changelog help, which now says --create-pr always collects. The generated command docs are updated to match. The task files of fix(release): one fail-closed release path: cut branch from the remote release tip, uv.lock bump, draft flag, required label and milestone #982, feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743 and fix(roadmap): a critical fix joins the current release while its release pull request is open, so the release branch holds every change before it merges #1294 each get a note that this item supersedes their no-collection rule.

Tests

All run offline: fakes only at the run_gh seam, real git in tmp_path.

  • tests/test_roadmap_close.py:
    • A cut through devops roadmap close --confirm writes ## [0.2.26] - <date>, deletes the fragment, and devops release check --allow-dirty --skip-ci passes on it.
    • A re-cut after an unmerged release PR rebuilds the section, and one with no new fragment keeps it.
    • A cut with no entries fails before it pushes, naming the item. The Service's close job (DEFAULT_DUE_TABLE) raises an error naming both items, with nothing pushed.
    • The date is taken before the cut, so a run across midnight UTC passes.
  • tests/test_release.py:
    • release prepare --create-pr collects.
    • A bad fragment stops the cut with the clone clean.
    • No fragment, or no ## [ heading, stops the cut with the --plan pointer, origin unchanged and gh not called.
  • tests/test_pr_cmd.py: covers the critical-fix exemption, the blocker before the cut, the unread base, docs/ROADMAP.md after the cut (exact text, no fragment advice), and that no read is made for a pull request that does not edit CHANGELOG.md.

Not done (follow-ups)

  • Readiness does not block a changelog.d/ fragment into a release branch that already holds its section. Such a fragment would be collected under the next version. Follow-up issue: to be filed.
  • --plan lists only the completed items' fragments, while the cut collects every fragment in changelog.d/. Listing them all needs a directory read in the roadmap store. Follow-up issue: to be filed.

Overlaps

Whichever of these merges second should rebase.

Pending a person

  • v0.2.33's own cut is made by the v0.2.32 Service, which does not collect. Before the v0.2.33 release pull request merges, open chore/open-v0.2.33-collate into release/v0.2.33. Run uv run devops release changelog --update -v 0.2.33 once, check that uv run devops release check --allow-dirty --skip-ci passes, and merge it first.
  • Edit refactor(docs): no documentation-only pull requests: release artifacts are made as the release merges, and every kept doc changes with its code or is deleted #1103's body: its "cut-time collection is deleted" criterion is reversed by the 2026-10-09 decision.
  • After a Service running v0.2.33 cuts v0.2.34, run git fetch origin && git show --stat origin/release/v0.2.34. It should list CHANGELOG.md and the deleted changelog.d/*.md, and release.yml's devops release check should pass on the merge to main.

Fix for the Changed-Test Independence check (2026-10-09)

  • feat(ci): shuffled repeat runs of a pull request's changed test files #852's check reruns the changed test files shuffled, and tests/test_roadmap_close.py::test_the_dry_run_command_makes_no_request_and_names_the_cut_files, which refuses every process, failed with seed 3551059044. The cause was not this change: creating the CLI's tracer read platform.platform(), which runs uname -p the first time, so the dry run started a process whenever an earlier test had reset the tracer.
  • Folded in: telemetry/tracer.py builds os.description from platform.system() and platform.release(), which start no process. tests/test_telemetry.py::test_a_new_tracer_starts_no_process fails on the old code.
  • devops ci test --repeat 3 over the changed test files: 3 × 293 passed; the failing seed now passes (264).

@dan-petty
dan-petty force-pushed the fix/1450-service-cut-collects-changelog branch from f553700 to cf80a23 Compare October 9, 2026 21:38
@dan-petty
dan-petty merged commit 05399bf into release/v0.2.33 Oct 9, 2026
11 checks passed
@dan-petty
dan-petty deleted the fix/1450-service-cut-collects-changelog branch October 9, 2026 21:43
dan-petty added a commit that referenced this pull request Oct 10, 2026
* docs(agents): feasibility check, stop signals, and devops roadmap return (#1348) (#1518)

* chore(roadmap): release_cap 16 until the Service runs #1514's 4 release slots (#1520)

The running Service trims a starting release, and descopes a started one,
above release_cap (12). v0.2.34 holds 16 items. Setting release_cap to 16
keeps them in place until the Service runs #1514 (fill to 12, 4 slots to 16);
the line is removed then.

* test(cli): swallowed failures may not grow (#1347) (#1521)

* feat(review): publish scanner findings to code scanning (#419) (#1524)

* fix(roadmap): refine writes its section's end marker, so a re-refined item keeps one design section instead of two (#1470) (#1525)

* feat(roadmap): a release keeps 4 slots above its cap of 12, so a start still fills to 12 and nothing is trimmed or descoped until it holds more than 16 (#1514) (#1528)

* fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target (#1130) (#1527)

The Prometheus server keeps two scrape jobs: its self-scrape and
kubernetes-pods, which now keeps only namespace otel, so the collector's
export failures stay visible when Alloy is what fails. Both take the
cluster relabel from one YAML anchor, so the self-scrape carries
cluster. The six other chart-default jobs are off, among them the
API-server scrape that held about 60% of head series and nothing read.

k8s-monitoring takes over every other target with chart features:
annotation autodiscovery (prometheus.io/* keys, otel excluded, no
Service discovery, no ServiceAccount token), clusterMetrics.kubeDNS,
and the Loki and dcgm-exporter integrations. Autodiscovery, kube-dns
and DCGM copy the pod's node to node. Loki loses its scrape
annotations, the DCGM chart's ServiceMonitor is off, and Alertmanager
names its container so the config-reloader sidecar's target does not
scrape it twice. The monitoring perimeter already has exactly one egress
rule per scrape port.

k8s/README.md gains a Scrape Ownership table of the monitoring
components that run outside k8s-monitoring, and why.

* feat(review): ruff and mypy review evidence with project settings (#873) (#1523)

* fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section (#1450) (#1522)

* feat(cli): reachable --dry-run previews for delegated commands (#412) (#1530)

* feat(roadmap): refine runs every hour and readies the new items of every planned release, nearest first, before that release starts (#1515) (#1531)

* refactor(review): the model verifier, the hallucination catalog and the model-claim guards are deleted, and person-recorded verdicts become suppressions (#1150) (#1529)

* fix(roadmap): the service runs close and reprioritize in their own lane, so a slow model-bound intake or refine round never holds up a release (#1532) (#1536)

* feat(release): v0.2.33

* fix(security): bandit covers src and tests at medium severity through one config the gate and the code-scanning upload share, and the test findings are fixed (#1542) (#1546)

* fix(server): devops serve --service leaves the process's logging alone until uvicorn applies its json config, so in-process tests keep their captured logs (#1543) (#1545)

* chore(release): collect the v0.2.33 changelog and fix the service-mode test the last two merges broke (#1547)

* fix(server): the service-mode test expects the ::1 host it passes, so it no longer asserts 0.0.0.0

#1546 moved the test to --host ::1 to clear Bandit B104; #1545, written
before it, set the expected host back to 0.0.0.0. The merge kept both, so
the test failed and its 0.0.0.0 literal was Bandit's one medium finding.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VyrhySxPaWHd2jsLCrfeXm

* chore(release): collect the v0.2.33 changelog fragments into CHANGELOG.md

The Service's cut of v0.2.33 (5c5df79) bumped the version without
collecting changelog.d/, so release/v0.2.33 merging into main would fail
`devops release check` in Release Orchestration, as v0.2.30 did (#1474).
`devops release changelog --update -v 0.2.33` moves the 14 fragments into
the [0.2.33] section and deletes them.

873.md had no category heading, which the collector refuses, and 412.md,
1347.md and 1348.md were not in house style; each is rewritten from its
delivering commit before collection.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VyrhySxPaWHd2jsLCrfeXm

---------

Co-authored-by: Claude <[email protected]>

* chore(security): ignore CVE-2026-78669 in gh v2.102.0 until 2026-10-23, beside its Go 1.27.1 entries under #1492 (#1548)

Trivy now fails the Service image on CVE-2026-78669, an HTTP/2
denial of service in net/http and golang.org/x/net, in the gh v2.102.0
binary (Go 1.27.1, x/net v0.58.0). No gh release carries the fix yet;
cli/cli's trunk builds with Go 1.27.2 and x/net v0.60.0. gh is a client,
and #1492's gh bump drops all three entries.


Claude-Session: https://claude.ai/code/session_01VyrhySxPaWHd2jsLCrfeXm

Co-authored-by: Claude <[email protected]>

---------

Co-authored-by: Daniel Petty <[email protected]>
Co-authored-by: dan-petty-bot <[email protected]>
Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant