Skip to content

ci: update Cypress tests to Node.js 22.15.1 #6229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

MikeMcC399
Copy link
Contributor

Situation

Current CircleCI jobs are now running in two different Node.js environments 18.16.1 and 22.15.1

Job image
build docker.io/cimg/node:22.15.1
Run Algolia scraper ubuntu-2204:2024.11.1 / docker.io/cimg/node:22.15.1
Lint JS/CSS/Markdown docker.io/cimg/node:22.15.1
Install & Persist To Workspace docker.io/cimg/node:18.16.1-browsers
Run Tests in Parallel docker.io/cimg/node:18.16.1-browsers

It doesn't seem like this would have been the intention. Node.js 18.x is end-of-life and deprecated by Cypress. With the release of Cypress 15, this version of Node.js will transition into being unsupported by Cypress and the minimum Node.js will become version 20.

Assessment

The configuration .circleci/config.yml for the jobs:

  • Install & Persist To Workspace
  • Run Tests in Parallel

relies on executor: cypress/default taken from

orbs:
cypress: cypress-io/cypress@3

Change

In the configuration .circleci/config.yml:

  • update the Cypress CircleCI Orb from cypress: cypress-io/cypress@3 to cypress: cypress-io/cypress@4 (current latest)

and in the jobs "Install & Persist To Workspace" and "Run Tests in Parallel"

  • specify the node-version parameter, set to 22.15.1, to use exactly this version that is being used in the other jobs already

Copy link

netlify bot commented Jul 21, 2025

👷 Deploy request for cypress-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit ab4b236

@cypress-app-bot
Copy link
Collaborator

@MikeMcC399
Copy link
Contributor Author

MikeMcC399 commented Jul 21, 2025

Logs shows expected versions:

https://app.circleci.com/pipelines/github/cypress-io/cypress-documentation/26575/workflows/d19f722a-5706-4bc3-9c21-b4c4ad29f550/jobs/67625

downloading docker.io/cimg/node:22.15.1-browsers

https://app.circleci.com/pipelines/github/cypress-io/cypress-documentation/26575/workflows/d19f722a-5706-4bc3-9c21-b4c4ad29f550/jobs/67628

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        13.15.0                                                                        │
  │ Browser:        Electron 118 (headless)                                                        │
  │ Node Version:   v22.15.1 (/usr/local/bin/node)                                                 │
  │ Specs:          6 found (all_accessibility_pages.cy.ts, all_api_pages.cy.ts, all_app_pages.cy. │
  │                 ts, all_cloud_pages.cy.ts, all_ui_cov_pages.cy.ts, basic_tests.cy.ts)          │
  │ Searched:       cypress/e2e/**/*.cy.{js,jsx,ts,tsx}                                            │
  │ Experiments:    experimentalMemoryManagement=true                                              │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

although there is still a strange section referring to audio hardware:

ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default
[1091:0721/163407.685934:ERROR:alsa_util.cc(204)] PcmOpen: default,No such file or directory
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default
[1091:0721/163407.686069:ERROR:alsa_util.cc(204)] PcmOpen: plug:default,No such file or directory

This looks like it would belong to the class of "garbage errors". In any case the pipeline succeeds, despite these errors, which is also a typical experience for a "garbage error".

@MikeMcC399 MikeMcC399 marked this pull request as ready for review July 21, 2025 16:40
@MikeMcC399
Copy link
Contributor Author

@AtofStryker

Please review! I'm guessing that you intended to have everything running in Node.js 22.x and that you overlooked cypress/default because it was used without a specific node-version parameter.

I just happened to notice this all because I submitted a text update to the site and I wondered why the Cypress tests were still being run in Node.js 18.x.

At some stage probably Cypress ought to be updated from its current 13.15.0 version. Docusaurus is also a bit behind the times (Update available 3.1.1 → 3.8.1).

Copy link
Contributor

@AtofStryker AtofStryker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @MikeMcC399. I overlooked the cypress node version being run here. eventually we do need to do some dependency updating here

@AtofStryker AtofStryker merged commit 72fc45e into cypress-io:main Jul 21, 2025
7 checks passed
@MikeMcC399 MikeMcC399 deleted the update/circleci-cypress-node22 branch July 22, 2025 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants