Repository navigation
release: v4.46.0 - add extra_build_os for a build check on other… - #591
Merged
Merged
Conversation
…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
…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.
…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>
Shinrai
approved these changes
Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
workflow-ci.ymlgainsextra_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 Checklike a failed matrix leg. For builds that depend on the host platform (per-platform toolchains, the hostmakeandcc); macOS runners are scarce, so list only what the build needs. (#587)workflow-ci.ymlgainsmax_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
nextandhotfixesare cancelled. Theci.ymltemplate 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'sci.yml— re-run org onboarding or re-copy the block per repo. Fixes #583 (#586)Documentation
docs/conventions/package-layout.mdnow saysdist/mirrorssrc/, one file per module, minified in place withkeepNames: no bundling, nosplitting, nochunk-*files, and no code shipped twice — a CLI builds todist/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 keepinstanceofworking across its four entries. The Build section shows the esbuildbundle: falsescript 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 usesdist/**/*.mjs. Fixes #582 (#584)index.cjs.src/index.cjsis 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 objectimportgives. Hand-written.defaultunwraps and attached aliases drift from the ESM exports and break named exports on any package with more than one; packages whoserequire()result changes adopt the shim in their next major. Fixes #589 (#584)Upgrade notes
ci.ymlafter this release, slothlet first. Until then, superseded runs on a repo'snext/hotfixesstill run to the end.extra_build_osinci.yml; the default[]keeps it off.examples/package-layout/src/index.cjs; existing ones that unwrap.defaultadopt the shim in their next major.👥 Contributors
Co-authored-by: Shinrai [email protected]