Skip to content

fix(bundle-size): treat bundle-size.yml as standard v4 and warn on empty dist_paths - #326

Merged
Shinrai merged 2 commits into
nextfrom
ci/bundle-size-standard
Sep 28, 2026
Merged

Shinrai merged 2 commits into
nextfrom
ci/bundle-size-standard

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

No new features

🐛 Bug Fixes

📦 Dependencies

No dependency updates

🔧 Other Changes

👥 Contributors

…pty dist_paths

bundle-size.yml is part of the standard set every v4 repo carries, but its
template said to skip it outside runtime libraries, so consumer syncs left it
out and then pruned "📊 Bundle Size" from release-merge.yml's workflows list.

- Move the template from packaging-docs/ to core-cicd/ so its folder matches
  its status, and replace the "runtime libs only" comment with guidance for
  the two per-repo inputs: build_command (the real build) and dist_paths (the
  published files, from `npm pack --dry-run` or package.json `files`, e.g.
  `index.mjs,src/**` or `bin/**,lib/**`; only `*` and `**` globs).
- List bundle-size.yml in the standard set in AGENT-SCAFFOLDING.md,
  WORKFLOW-SETUP-GUIDE.md, examples/README.md, README.md and the v3-to-v4
  cutover checklist; update the path in v2-to-v3.md.
- release-merge.yml template: keep the workflows: list verbatim; don't prune
  entries for workflows the repo lacks.
- bundle-size measure mode: emit a ::warning:: (and a step-summary line) when
  dist_paths matches zero files; the step still passes. A wildcard-free
  entry such as `index.mjs` is now measured as a file instead of being
  skipped because the walk only accepted directories.

Fixes #325
@cldmv-bot cldmv-bot Bot added ! ci → next v4 flow: ci contributor PR targeting the next integration branch area: core Touches core library / runtime source code type: documentation Relates to docs, README updates, guides, or inline code comments labels Sep 28, 2026
Add action.test.mjs for measure mode: runs action.mjs as a subprocess
against a fixture tree and checks that exact file paths (`index.mjs`,
`lib/util.mjs`), top-level globs (`*.mjs`), `**` trees, the older
`*index.mjs` workaround, and zero-match inputs (::warning::, step summary,
exit 0) behave as documented. Fails against the previous action, which
walked directories only and so dropped every plain file path.

Add an `npm test` script that runs this and the existing bot-detection
test. The template now notes that no leading-`*` workaround is needed.

Refs #325
@cldmv-bot cldmv-bot Bot added area: tests Touches test files, fixtures, or test infrastructure type: config Changes to repository or project configuration files labels Sep 28, 2026
@Shinrai

Shinrai commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Resolves #325 — closed when this ships to the default branch.

@Shinrai
Shinrai merged commit c359e3a into next Sep 28, 2026
15 checks passed
@cldmv-bot
cldmv-bot Bot deleted the ci/bundle-size-standard branch September 28, 2026 13:05
cldmv-bot Bot added a commit that referenced this pull request Sep 28, 2026
…mpty…

## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
- #331
  - fix(paths-gate): fall back to full CI when the diff can't be computed (63d87e6)

- #328
  - fix(bundle-size): normalize ./ dist_paths and prune the measure walk (5e6e1c1)

- #326
  - fix(bundle-size): treat bundle-size.yml as standard v4 and warn on empty dist_paths (085f941)

### 📦 Dependencies
_No dependency updates_

### 🔧 Other Changes
- #326
  - test(bundle-size): cover exact-path, glob and zero-match dist_paths (4db8fec)



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

- @Shinrai

</details>

<!-- co-authors -->

Co-authored-by: Shinrai <[email protected]>
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 ! ci → next v4 flow: ci contributor PR targeting the next integration branch type: config Changes to repository or project configuration files type: documentation Relates to docs, README updates, guides, or inline code comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant