Skip to content

ava fails on Node.js >=24 #1169

Open

Description

@MikeMcC399

Situation

Running citgm ava passes only on Node.js 22 with macos & ubuntu and fails everything else.

Item Status
npm package https://www.npmjs.com/package/ava
npm status active
last published 8.1.0 Oct 18, 2026
weekly downloads 550,332
repo location https://github.com/avajs/ava
repo last update to default branch Oct 18, 2026
repo status active
repo CI status runs in current Node.js versions
lookup - skip "ppc", "win32", "x86", "rhel", "aix", "ia32"
lookup maintainer 1 sindresorhus
lookup maintainer 2 novemberborn

Cloning the repo and running local tests using Ubuntu 26.04.1 LTS and running under Node.js 22, 24 & 26 confirm the compatibility issues for Node.js 24 & 26.

Steps to reproduce

Run https://github.com/nodejs/citgm/actions/workflows/test-module.yml

Module to test: ava
CITGM repository to checkout: nodejs/citgm
CITGM GitHub ref to checkout: main

Result

Fails most current variants:

Node.js npm macos ubuntu windows
22.23.3 10.9.9 PASS PASS FAIL
24.21.0 11.19.0 FAIL FAIL FAIL
26.10.0 11.19.1 FAIL FAIL FAIL

References

citgm/lib/lookup.json

Lines 51 to 56 in 4d3d256

"ava": {
"prefix": "v",
"skip": ["ppc", "win32", "x86", "rhel", "aix", "ia32"],
"maintainers": ["sindresorhus", "novemberborn"],
"timeout": 600000
},

cc: @sindresorhus @novemberborn

Activity

  1. MikeMcC399 commented on Oct 5, 2026

    @MikeMcC399
    ContributorAuthor

    Suggestion

    • Fix the Node.js 24 & 26 compatibility issues in https://github.com/avajs/ava OR
    • Add a skip >=24 to citgm lookup to block testing on incompatible Node.js release lines (retain current skips)
  2. MikeMcC399 commented on Oct 8, 2026

    @MikeMcC399
    ContributorAuthor

    CI workflow is https://github.com/avajs/ava/blob/main/.github/workflows/ci.yml

    https://github.com/avajs/ava/actions/runs/26000541390 last tested on May 17, 2026.
    Logs are no longer available.
    Current Node.js 26.x at that time was Node.js 26.1.0

    Node.js citgm ava result
    26.1.0 pass
    26.4.0 pass
    26.5.0 fail
    26.11.1 fail

    A test regression appears with Node.js 26.5.0, released 2026-07-08.

    nodejs/node#64329 (comment) noted multiple regressions in CITGM with the Node.js 26.5.0 release, including ava-v8.0.0.

  3. MikeMcC399 commented on Oct 8, 2026

    @MikeMcC399
    ContributorAuthor

    This appears to be an issue with the snapshots saved in the test-tap/reporters/tap.edgecases.v*.log of https://github.com/avajs/ava which refer to line numbers that have changed within the Node.js release line updates, for instance between Node.js 26.4.0 and Node.js 26.5.0.

    This could be fixed by just re-recording the snapshots so they correspond to the latest Node.js releases for each supported release line. That would however make the test fail on earlier releases of the same release line.

    cc: @sindresorhus @novemberborn

  4. novemberborn commented on Oct 8, 2026

    @novemberborn
    Contributor

    That's now fixed in main but there's an unrelated CI failure which stops me from releasing.

  5. novemberborn commented on Oct 15, 2026

    @novemberborn
    Contributor

    8.0.2 is now out.

  6. MikeMcC399 commented on Oct 15, 2026

    @MikeMcC399
    ContributorAuthor

    @novemberborn

    The repo change in 8.0.2 is causing issues:

    $ npm view ava@8.0.1 repository
    { url: 'git+https://github.com/avajs/ava.git', type: 'git' }
    
    $ npm view ava@8.0.2 repository
    { url: 'github:avajs/ava', type: 'git' }
    $ citgm ava
    info: starting            | ava
    info: lookup              | ava
    info: lookup-found        | ava
    info: ava lookup-replace  | github:avajs/ava/archive/v8.0.2.tar.gz
    info: ava npm:            | Downloading project: github:avajs/ava/archive/v8.0.2.tar.gz
    error: failure             | Failure getting project from npm
    error:                     | npm error code 128
    error:                     | npm error An unknown git error occurred
    error:                     | npm error command git --no-replace-objects ls-remote ssh://git@github.com/avajs/ava/archive/v8.0.2.tar.gz.git
    error:                     | npm error Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
    error:                     | npm error git@github.com: Permission denied (publickey).
    error:                     | npm error fatal: Could not read from remote repository.
    error:                     | npm error
    error:                     | npm error Please make sure you have the correct access rights
    error:                     | npm error and the repository exists.
    error:                     | npm error A complete log of this run can be found in: C:\Users\mikem\AppData\Local\npm-cache\_logs\2026-10-15T19_19_40_730Z-debug-0.log
    error: failing module(s)   |
    error: module name:        | ava
    error: version:            | 8.0.2
    error: error:              | Failure getting project from npm
    error:                     | npm error code 128
    error:                     | npm error An unknown git error occurred
    error:                     | npm error command git --no-replace-objects ls-remote ssh://git@github.com/avajs/ava/archive/v8.0.2.tar.gz.git
    error:                     | npm error Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
    error:                     | npm error git@github.com: Permission denied (publickey).
    error:                     | npm error fatal: Could not read from remote repository.
    error:                     | npm error
    error:                     | npm error Please make sure you have the correct access rights
    error:                     | npm error and the repository exists.
    error:                     | npm error A complete log of this run can be found in: C:\Users\mikem\AppData\Local\npm-cache\_logs\2026-10-15T19_19_40_730Z-debug-0.log
    error: error:              | undefined
    error: done                | The smoke test has failed.
    info: duration            | test duration: 3416ms
  7. MikeMcC399 commented on Oct 15, 2026

    @MikeMcC399
    ContributorAuthor

    It looks like you've switched from npm to pnpm as package manager. I didn't notice that at first, since it's not specifically listed in https://github.com/avajs/ava/releases/tag/v8.0.2 unless you drill down into avajs/ava#3496

  8. novemberborn commented on Oct 16, 2026

    @novemberborn
    Contributor

    Correct. It's not listed since it doesn't affect end users but makes sense that CITGM has to clone the repo.

  9. MikeMcC399 commented on Oct 17, 2026

    @MikeMcC399
    ContributorAuthor

    #1195 covers the download failure due to the use of a short-cut repository definition.

  10. novemberborn commented on Oct 22, 2026

    @novemberborn
    Contributor

    I've published 8.1.1 with pnpm@12.15.

  11. MikeMcC399 commented on Oct 23, 2026

    @MikeMcC399
    ContributorAuthor

    ava@8.1.2 has fixed the download issue by normalizing the repository key in package.json

    The remaining issue is for citgm to migrate ava testing to pnpm, for which I will shortly submit a PR.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions