Skip to content

fix(ci): handle Node 25 incompatibility with c8 11.0.0 / yargs 17.x#2783

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

fix(ci): handle Node 25 incompatibility with c8 11.0.0 / yargs 17.x#2783
Copilot wants to merge 2 commits intodependabot/npm_and_yarn/main/c8-11.0.0from
copilot/sub-pr-2779

Conversation

Copy link
Contributor

Copilot AI commented Feb 28, 2026

c8 11.0.0 (bumped to fix CVE-2026-26996 in minimatch) fails on Node 25 with ReferenceError: require is not defined in ES module scope. Node 25 changed how extension-less files in "type": "module" packages are loaded—they're now treated as ESM. c8 11.0.0's updated test-exclude (v7→v8) switched glob v10→v13, which eliminated the node_modules/yargs/node_modules/ nested directory. Without it, yargs/yargs (extension-less, in a "type": "module" package) is now loaded as ESM by Node 25, where require() is not defined.

Changes

  • .github/workflows/test.yml
    • Add continue-on-error: ${{ matrix.node == '25' }} — Node 25 is odd/non-LTS; allow it to fail pending an upstream fix in c8/yargs
    • Add fail-fast: false — prevent a single matrix job failure from cancelling all other in-progress jobs
    • Add comment documenting why Node 25 is exempted and when it can be removed

🔒 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 Feb 28, 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 Feb 28, 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] Update c8 dependency from 10.1.3 to 11.0.0 fix(ci): handle Node 25 incompatibility with c8 11.0.0 / yargs 17.x Feb 28, 2026
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