Skip to content

ci: disable c8 coverage for Node 25 to work around yargs breakage#2785

Closed
Copilot wants to merge 2 commits intodependabot/npm_and_yarn/main/c8-11.0.0from
copilot/sub-pr-2779-again
Closed

ci: disable c8 coverage for Node 25 to work around yargs breakage#2785
Copilot wants to merge 2 commits intodependabot/npm_and_yarn/main/c8-11.0.0from
copilot/sub-pr-2779-again

Conversation

Copy link
Contributor

Copilot AI commented Mar 3, 2026

c8 depends on yargs, which is currently broken under Node.js 25 (nodejs/node#61971), causing CI to fail with ReferenceError: require is not defined in ES module scope.

Changes

  • .github/workflows/test.yml: For the Node 25 matrix entry, replace npm test (which runs c8 node --test ...) with a direct node --test --test-reporter=spec --import tsx src/*_test.ts invocation, skipping coverage collection. All other Node versions continue running with coverage via c8 unchanged.

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 3, 2026
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Mar 3, 2026
Co-authored-by: brendandburns <5751682+brendandburns@users.noreply.github.com>
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Copilot
Once this PR has been reviewed and has the lgtm label, please ask for approval from brendandburns. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copilot AI changed the title [WIP] Bump c8 from version 10.1.3 to 11.0.0 ci: disable c8 coverage for Node 25 to work around yargs breakage Mar 3, 2026
@brendandburns
Copy link
Contributor

Closing since this was handled via #2783

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants