Skip to content

release: v4.46.0 - add extra_build_os for a build check on other… - #591

Merged
cldmv-bot[bot] merged 16 commits into
masterfrom
next
Nov 27, 2026
Merged

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

Conversation

@cldmv-bot

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

Copy link
Copy Markdown
Contributor

v4.46.0 — 2026-11-26

Minor release: CI stops wasting the org's hosted runners, the package convention stops bundling, and an optional build check lands for other runner OSes.

Features

  • Extra-OS build check. workflow-ci.yml gains extra_build_os, a JSON list of runner labels (default []). Each label gets one 🍎 Build & Test (<os>) job on the latest LTS Node that runs the same build-and-test step as the Linux matrix legs — install, build_command, test_command — with no coverage, lint or Node matrix. It skips docs-only runs, cancels with its run, and a failure blocks ✅ Required PR Check like a failed matrix leg. For builds that depend on the host platform (per-platform toolchains, the host make and cc); macOS runners are scarce, so list only what the build needs. (#587)
  • A cap on the Node matrix. workflow-ci.yml gains max_parallel (default 2, 0 = no cap), applied to the build-and-test matrix, so one heavy repo can't take every hosted job slot the org has within a single run. (#586)

Bug Fixes

  • Superseded CI runs on next and hotfixes are cancelled. The ci.yml template gave every run on next, hotfixes and the release PRs a unique concurrency group, so superseded runs never stopped: on 2026-11-26 slothlet held 60 in-progress runs at once and took every hosted job slot in the org for about an hour. Only the release base branch (each push there is a release) keeps a unique group now; everything else cancels the older run. Release PRs only wait on their head's run since CI status ownership (v4.43.0), and the Commit Subjects check on next/hotfixes now compares the default branch with the pushed tip, so a cancelled push's commits are still checked by the next run. The concurrency block lives in each repo's ci.yml — re-run org onboarding or re-copy the block per repo. Fixes #583 (#586)
  • A docs-only last merge no longer greens the release PR. The release PR takes its required check from the push run on next, and that push was judged docs-only from its own range — so when the changelog PR was the last merge, the ruleset showed the release PR mergeable while its own full-matrix run was still going. A push to next or hotfixes is now judged by everything unreleased (the default branch compared to the pushed tip); if that compare fails, the push's own range decides. Fixes #588 (#590)

Documentation

  • No more bundling. docs/conventions/package-layout.md now says dist/ mirrors src/, one file per module, minified in place with keepNames: no bundling, no splitting, no chunk-* files, and no code shipped twice — a CLI builds to dist/bin/ and imports the library by relative path. Bundling duplicates code as soon as a package has more than one entry: vitest-runner's CLI bundle re-shipped the library, and lib-sqlite-wasm needed hashed chunks to keep instanceof working across its four entries. The Build section shows the esbuild bundle: false script and cites the released references: vitest-runner 1.11.1 (scripts/build.mjs), fix-headers 2.5.1, and lib-sqlite-wasm 0.2.1 (scripts/build-js.mjs) for TypeScript sources. The bundle-size example uses dist/**/*.mjs. Fixes #582 (#584)
  • One generic index.cjs. src/index.cjs is the same file in every library (examples/package-layout/src/index.cjs): after the version guard it returns the single exported value when the ESM entry has one distinct value (aliases count once), otherwise the module object import gives. Hand-written .default unwraps and attached aliases drift from the ESM exports and break named exports on any package with more than one; packages whose require() result changes adopt the shim in their next major. Fixes #589 (#584)

Upgrade notes

  • The concurrency change ships in the caller template: re-run org onboarding (or re-copy the block) for every repo's ci.yml after this release, slothlet first. Until then, superseded runs on a repo's next/hotfixes still run to the end.
  • Repos whose builds depend on the host platform set extra_build_os in ci.yml; the default [] keeps it off.
  • Repos still on a tsup bundle migrate per the new convention; per-repo migration issues follow.
  • New libraries copy examples/package-layout/src/index.cjs; existing ones that unwrap .default adopt the shim in their next major.
👥 Contributors

Co-authored-by: Shinrai [email protected]

Shinrai and others added 7 commits November 25, 2026 20:18
…trix

The ci.yml template (and local-ci.yml) gave every run on next, hotfixes
and the release PRs its own concurrency group, so superseded runs there
never stopped. Only the release base branch keeps a unique group now;
everything else cancels the older run. Release PRs only wait on their
head's run since CI status ownership, so a cancelled run doesn't show.

Commit Subjects on next/hotfixes now compares the default branch with
the pushed tip, so the commits of a push whose run was cancelled are
still checked by the next one.

workflow-ci.yml gets a max_parallel input (default 2, 0 = no cap) that
reusable-build-and-test.yml applies to the Node matrix, so one heavy
repo can't take every hosted job slot in the org.

Resolves #583
workflow-ci.yml gets an extra_build_os input, a JSON list of runner
labels (default [], off). Each label gets one 🍎 Build & Test (<os>)
job on the latest LTS Node that runs the same build-and-test step as
the Linux matrix legs: install, build_command, test_command. No
coverage, lint or Node matrix. It is gated like the matrix (docs-only,
no-Node, master-sync and bump runs skip it), cancels with the run, and
a failure fails the reusable, so Required PR Check blocks the merge.
The ci.yml template and the setup guide show it.

Resolves #585
The release PR takes its required check from the push run on next. When
the last merge was docs-only (the changelog PR, the usual last step),
that run took the docs-only path and reported green without testing, so
the ruleset showed the release PR mergeable while its own full run was
still going. A push to next or hotfixes is now judged by the default
branch compared to the pushed tip, so any unreleased code runs the full
CI. If that compare fails, the push's own range decides as before.

Resolves #588
…trix (#586)

CI on next, hotfixes and the release PRs now cancels superseded runs;
only the release base branch keeps a group per run. Commit Subjects on
next/hotfixes checks every unreleased commit (default branch vs. the
pushed tip), so a cancelled push's commits still get checked.
`workflow-ci.yml` gets `max_parallel` (default 2, 0 = no cap) for the
Node matrix.

The concurrency part lives in each repo's `ci.yml`, so it needs a fleet
re-sync after release, slothlet first. Note that tonight's backlog was
mostly ~22 slothlet feature branches re-merged at once, which already
cancel per branch; the cap is what limits that case.

Resolves [#583](#583)
…590)

A push to next or hotfixes is now judged docs-only by the default branch
compared to the pushed tip, not by that push alone. The release PR takes
its required check from that push run, so a docs-only last merge (the
changelog PR) no longer reports green without testing the unreleased
code. If the compare fails, the push's own range decides as before.

Resolves [#588](#588)
# Conflicts:
#	examples/individual-repo-workflows/core-cicd/ci.yml
@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 area: tests Touches test files, fixtures, or test infrastructure type: ci Changes to CI workflows, actions, or build pipelines type: config Changes to repository or project configuration files labels Nov 26, 2026
Shinrai and others added 5 commits November 25, 2026 21:22
…587)

New `extra_build_os` input on `workflow-ci.yml` (JSON list of runner
labels, default `[]`). Each label gets one `🍎 Build & Test (<os>)` job
on the latest LTS Node, using the same build-and-test step as the Linux
matrix legs. Gated like the matrix, cancels with the run, and a failure
blocks Required PR Check. Not yet run on macOS; lib-sqlite-wasm's first
run is the real test.

Resolves [#585](#585)
The convention prescribed a tsup bundle, which duplicates code as soon
as a package has more than one entry: vitest-runner's CLI bundle
re-ships the library, and lib-sqlite-wasm needed splitting and hashed
chunk-* files to keep instanceof working. dist/ now mirrors src/, each
file minified in place with keepNames, a CLI builds to dist/bin/ and
imports the library by relative path, and the index.cjs shim is copied
as before. The Build section shows the esbuild bundle: false script and
points at lib-sqlite-wasm for TypeScript sources; the migration table
gets a row for tsup bundles.

The bundle-size dist_paths example uses dist/**/*.mjs, and two new
tests pin that both it and dist/**.mjs match files at every depth.

Resolves #582
src/index.cjs is the version guard plus module.exports =
require("./index.mjs") and nothing else, so require() returns the same
module object as import. Unwrapping .default only worked for
single-function packages and hand-attached names drift from the ESM
exports. A package that unwraps today changes it in its next major. A
plugin whose host require()s it and needs the plugin object may keep an
unwrap once that's checked and commented. The migration table gets a
row for it.

Resolves #589
Replaces the plain re-export rule with the drop-in shim from #589: after
the version guard it returns the single exported value when the ESM
entry has one distinct value (aliases count once), and the module object
otherwise. The file ships as examples/package-layout/src/index.cjs, and
the doc shows both cases, drops hand-written unwraps and aliases, and
keeps the plugin exception to be checked per host.

Resolves #589
vitest-runner 1.11.1 (scripts/build.mjs) is the plain .mjs reference and
fix-headers 2.5.1 builds the same way; lib-sqlite-wasm 0.2.1
(scripts/build-js.mjs) is the TypeScript one.
@cldmv-bot cldmv-bot Bot added the type: documentation Relates to docs, README updates, guides, or inline code comments label Nov 26, 2026
@cldmv-bot cldmv-bot Bot changed the title release: v4.45.7 - cancel superseded runs on next and hotfixes, cap… release: v4.46.0 - add extra_build_os for a build check on other… Nov 26, 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 26, 2026
Shinrai and others added 3 commits November 26, 2026 13:13
…eneric index.cjs shim (#584)

`docs/conventions/package-layout.md` no longer prescribes a tsup bundle:
`dist/` mirrors `src/`, one file per module, minified in place with
`keepNames`, no bundling, splitting or `chunk-*` files, and a CLI builds
to `dist/bin/` importing the library by relative path. The Build section
shows the esbuild `bundle: false` script and cites the released
references — vitest-runner 1.11.1 (`scripts/build.mjs`, plain `.mjs`),
fix-headers 2.5.1 and lib-sqlite-wasm 0.2.1 (`scripts/build-js.mjs`,
TypeScript). The bundle-size example uses `dist/**/*.mjs`; the matcher
already treated `dist/**.mjs` the same and new tests pin both.

`src/index.cjs` is now one generic shim for every library, shipped as
`examples/package-layout/src/index.cjs`: one distinct export comes back
as that value (aliases count once), anything else as the module object
`import` gives. No hand-written `.default` unwraps or attached aliases;
the possible plugin-host exception stays to be checked.

Resolves [#582](#582), resolves
[#589](#589)
## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
_No bug fixes_

### 📦 Dependencies
_No dependency updates_

### 🔧 Other Changes
- docs: add v4.46.0 changelog and README What's New (70aef43)



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

- @Shinrai

</details>
@cldmv-bot
cldmv-bot Bot merged commit d909b5a into master Nov 27, 2026
22 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 area: tests Touches test files, fixtures, or test infrastructure ! 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