Skip to content

release: v4.44.0 - allow creating dev and wip/* branches - #542

Merged
cldmv-bot[bot] merged 12 commits into
masterfrom
next
Nov 25, 2026
Merged

cldmv-bot[bot] merged 12 commits into
masterfrom
next

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

v4.44.0 — 2026-11-25

Minor release: the coverage-badge job also publishes a repo's coverage index, the org ruleset lets dev-trunk repos create dev and wip/* branches, a next-release run that a newer merge overtakes exits cleanly instead of failing, and package-layout.md describes publishing declarations as a separate @cldmv/<pkg>-types package.

Features

  • Coverage index on the badges branch. The coverage-badge job now commits the repo's coverage index next to the badge JSON, named per branch like the badge: coverage-index.json on the default branch, coverage-index-next.json and coverage-index-hotfixes.json. It goes out in the same bot-signed commit and on the same push events, never on PRs. On a public repo the file can then be fetched from raw.githubusercontent.com without auth, so a repo can run only the tests that reach one source file. A repo that doesn't write coverage/coverage-index.json is skipped silently; coverage_index_path on workflow-ci.yml changes the path or turns it off. The root .gitignore's coverage/ rule is now anchored to /coverage/, since it also hid new files under .github/actions/coverage/. Fixes #540 (#541)
  • dev and wip/* branches allowed by the org ruleset. Dev-trunk repos keep in-progress work on dev and wip/<who>-<issue> side branches, but the branch-naming ruleset didn't list either, so every push went through the OrganizationAdmin bypass. scripts/setup-org-rulesets.mjs and docs/conventions/branch-naming.md now include both. Neither is in feature-pr.yml's auto-PR list, so they still open no PR. The live ruleset changes when the script is re-run with an org-admin token. Fixes #455 (#538)

Bug Fixes

  • A superseded next-release run exits cleanly. When two PRs merged into next a few seconds apart, the earlier next-release run built its version-bump commit on the old tip and the ref update failed with 422 "Update is not a fast forward", leaving a red run. github/api/commit now re-reads the branch on that refusal: if it moved ahead of the commit the run started from, the newer run queued behind it owns the release, so the action sets superseded=true and exits 0, and create-release-pr / update-release-pr skip their remaining PR steps. A branch that was rewritten rather than advanced still fails. Fixes #467 (#537)

Documentation

  • Declarations in a separate types package. docs/conventions/package-layout.md now describes the layout slothlet uses: the runtime ships only types/stub/ re-export stubs, and the declarations are published as @cldmv/<pkg>-types, carved from the same build and released in lockstep as a satellite (build_subpackages_command + extra_packages). It covers the exports, files and optional-peer wiring, test:types, the first-publish bootstrap and migration steps for repos that ship or commit types/ today. The fleet Node.gitignore now ignores dist-packages/. Fixes #448 (#539)

Upgrade notes

  • No caller changes. The coverage index, the superseded-run handling and the ruleset patterns all ship in the @v4 reusables and scripts; repos that want the index only need their coverage run to write coverage/coverage-index.json.
  • Re-run scripts/setup-org-rulesets.mjs with an org-admin token to apply the new branch patterns.
👥 Contributors

Co-authored-by: Shinrai [email protected]

Shinrai and others added 5 commits November 25, 2026 01:18
…s this one

When two PRs merged into next a few seconds apart, the earlier next-release
run built its version-bump commit on the old tip and the ref update failed
with 422 "Update is not a fast forward", leaving a red run.

github/api/commit now re-reads the branch on that refusal. If the branch
moved ahead of the commit the run started from, the newer run queued behind
it owns the release: the action sets superseded=true and exits 0, and
create-release-pr / update-release-pr skip their remaining PR steps. Any other
refusal, including a branch that was rewritten rather than advanced, still
fails.

Resolves #467
Dev-trunk repos keep in-progress work on dev and wip/<who>-<issue> side
branches, but the org branch-naming ruleset didn't list either, so every
push went through the OrganizationAdmin bypass and any other identity was
refused. Neither name is in feature-pr.yml's auto-PR list, so they still open
no PR and don't feed the release flow.

Resolves #455
package-layout.md had packages ship their generated types/ folder. It now
describes the layout slothlet uses: the runtime ships only types/stub/
re-export stubs, and the declarations go in @cldmv/<pkg>-types, carved from
the same build into dist-packages/ and published in lockstep as a satellite
(build_subpackages_command + extra_packages). Covers package.json exports,
files and the optional peer, test:types against the stub and the carved
package, the first-publish bootstrap, and migration steps for repos that ship
or commit types/ today. The fleet Node.gitignore now ignores dist-packages/.

Resolves #448
…s this one (#537)

When two PRs merge into next a few seconds apart, the earlier
next-release run builds its bump commit on the old tip, and its ref
update fails with 422 "Update is not a fast forward".
`github/api/commit` now re-reads the branch when that happens. If next
moved ahead of the commit the run started from, the newer queued run
owns the release: the action sets `superseded=true` and exits 0, and
create-release-pr / update-release-pr skip their remaining PR steps. Any
other refusal still fails, including a branch that was rewritten rather
than advanced.

Resolves [#467](#467)
@cldmv-bot cldmv-bot Bot added ! release → master v4 flow: persistent next → master release PR (carries the next feature release) release Marks a pull request as a pending release — merge to publish a new version semver: patch This release contains only backwards-compatible bug fixes type: bug Something is broken or not behaving as expected area: core Touches core library / runtime source code type: config Changes to repository or project configuration files labels Nov 25, 2026
Shinrai and others added 3 commits November 25, 2026 02:32
Adds `dev` and `wip/*` to the org branch-naming ruleset's allowed
patterns, and adds them to branch-naming.md. Neither is in
feature-pr.yml's auto-PR list. The live ruleset changes when
`scripts/setup-org-rulesets.mjs` is re-run with an org-admin token.

Resolves [#455](#455)
#539)

package-layout.md now describes publishing declarations the way slothlet
does. The runtime ships only `types/stub/` re-export stubs, and the
declarations go in `@cldmv/<pkg>-types`, carved from the same build and
published in lockstep as a satellite. The doc covers the exports, files
and optional-peer wiring, `test:types`, the first-publish bootstrap, and
migration steps for repos that ship or commit `types/`. The fleet
Node.gitignore now ignores `dist-packages/`.

Resolves [#448](#448)
The coverage-badge job now also commits the repo's coverage index next to the
badge JSON, per branch like the badge (coverage-index.json on the default
branch, coverage-index-next.json, coverage-index-hotfixes.json), in the same
bot-signed commit and on the same push events. On a public repo the file can
then be fetched from raw.githubusercontent.com without auth, so a repo can run
only the tests that reach one source file. A repo that doesn't write
coverage/coverage-index.json is skipped silently; coverage_index_path on
workflow-ci.yml overrides the path or disables it.

push-badge gets an end-to-end test against a local bare repo. The root
.gitignore's coverage/ rule is anchored to /coverage/, since it also hid new
files under .github/actions/coverage/.

Resolves #540
@cldmv-bot cldmv-bot Bot added the type: documentation Relates to docs, README updates, guides, or inline code comments label Nov 25, 2026
@cldmv-bot cldmv-bot Bot changed the title release: v4.43.1 - exit cleanly when a newer next-release run… release: v4.44.0 - allow creating dev and wip/* branches Nov 25, 2026
@cldmv-bot cldmv-bot Bot added semver: minor This release adds new functionality in a backwards-compatible way type: feature Implements new functionality — a PR or issue that adds a feature and removed semver: patch This release contains only backwards-compatible bug fixes labels Nov 25, 2026
Shinrai and others added 2 commits November 25, 2026 02:46
The coverage-badge job now also publishes the repo's coverage index to
the `badges` branch, named per branch the same way as the badge:
`coverage-index.json`, `coverage-index-next.json` and
`coverage-index-hotfixes.json`. It goes in the same bot-signed commit
and only runs on push events. A repo that doesn't produce
`coverage/coverage-index.json` is skipped silently.
`coverage_index_path` on workflow-ci.yml overrides the path or turns it
off. push-badge gets an end-to-end test, and the root `.gitignore`'s
`coverage/` rule is anchored to `/coverage/` because it was also hiding
new files under `.github/actions/coverage/`.

Resolves [#540](#540)
@cldmv-bot cldmv-bot Bot added the type: ci Changes to CI workflows, actions, or build pipelines label Nov 25, 2026
## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
_No bug fixes_

### 📦 Dependencies
_No dependency updates_

### 🔧 Other Changes
- docs: v4.44.0 changelog (3cbe5db)



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>
@cldmv-bot
cldmv-bot Bot merged commit ffe1e85 into master Nov 25, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Touches core library / runtime source code ! release → master v4 flow: persistent next → master release PR (carries the next feature release) release Marks a pull request as a pending release — merge to publish a new version semver: minor This release adds new functionality in a backwards-compatible way type: bug Something is broken or not behaving as expected type: ci Changes to CI workflows, actions, or build pipelines type: config Changes to repository or project configuration files type: documentation Relates to docs, README updates, guides, or inline code comments type: feature Implements new functionality — a PR or issue that adds a feature

Projects

None yet

1 participant