Skip to content

fix: skip the coverage type check when its script is missing - #440

Merged
Shinrai merged 1 commit into
nextfrom
fix/coverage-type-check-missing-script
Nov 7, 2026
Merged

Shinrai merged 1 commit into
nextfrom
fix/coverage-type-check-missing-script

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

No new features

🐛 Bug Fixes

  • fix: skip the coverage type check when its script is missing (e5d1d1c)

📦 Dependencies

No dependency updates

🔧 Other Changes

No other changes

👥 Contributors

The coverage legs ran type_check_command unconditionally, so a repo without the named script failed on next and the release PR while the feature-PR Type Check job skipped it with a notice. Both coverage reusables now use the same guard.
@cldmv-bot cldmv-bot Bot added ! fix → next v4 flow: fix contributor PR targeting the next integration branch type: ci Changes to CI workflows, actions, or build pipelines labels Nov 6, 2026
@Shinrai
Shinrai merged commit 7deb2e4 into next Nov 7, 2026
16 checks passed
@cldmv-bot
cldmv-bot Bot deleted the fix/coverage-type-check-missing-script branch November 7, 2026 03:45
cldmv-bot Bot added a commit that referenced this pull request Nov 7, 2026
# v4.35.4 — 2026-11-06

Patch release with two CI fixes. pnpm and yarn repos work again on Node 26, and `types:check` is now the one type-check script name across the fleet.

## Bug Fixes

- **corepack on Node 25+.** Node stopped bundling corepack in 25, and `lts/*` now resolves to Node 26, so `corepack enable` failed and pnpm/yarn repos died with `pnpm: not found`. A shared `enableCorepack()` helper installs corepack from npm when the binary is missing, then enables it. If either step fails it logs a warning and carries on, in case pnpm/yarn is already on `PATH`. `build-project`, `run-tests`, `create-package`, `install-dependencies`, `update-package-version` and the `setup-node` composite all call it, and the separate "Enable corepack" steps in the coverage, lint-format and type-check jobs are gone. npm repos skip it. Fixes [#437](#437). ([#438](#438))
- **`types:check` is the type-check script.** The fleet used `typecheck`, `test:types` and `types:check` for the same job, and the reusables defaulted to `test:types`. `workflow-ci.yml`, `reusable-coverage-badge.yml` and `reusable-coverage-pr-comment.yml` now default `type_check_command` to `npm run types:check`, and the `ci.yml` template, the setup guide and the lint/format convention follow suit. The type-check step in both coverage reusables now skips with a notice when the named script doesn't exist, the same way the `🔎 Type Check` job already did; before, a missing script failed the coverage job on `next` and on the release PR. [package-layout.md](../conventions/package-layout.md) fixes three names: `types:check` runs `tsc --noEmit` on the source and is what CI runs, `types:build` emits declarations, and `test:types` is kept for consumer-side tests of the published types. ([#436](#436), [#440](#440))

## Upgrade notes

- No caller changes needed for the corepack fix; it rides the `@v4` tag.
- A repo that relied on the old `test:types` default and has no `types:check` script now skips the type check with a notice, on feature PRs and in the coverage jobs. Add a `types:check` script (or set `type_check_command` in `ci.yml`) to keep it running.



<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

! fix → next v4 flow: fix contributor PR targeting the next integration branch type: ci Changes to CI workflows, actions, or build pipelines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant