Repository navigation
[dspace-8_x] Upgrade to Cypress 15.21.2, test on Node 20 and 22, remove Node 18 testing - #6560
Open
bram-atmire wants to merge 2 commits into
Open
bram-atmire wants to merge 2 commits into
bram-atmire wants to merge 2 commits into
Conversation
…ve Node 18 testing Cypress 14 cannot run e2e tests on Chrome 158 (cypress-io/cypress#35195), and the fix is only in Cypress 15.21.2, which requires Node 20 or later. Test on Node 20.x and 22.x like dspace-9_x, and upload code coverage from the 20.x job. systeminformation is locked at 5.33.19, the same version as on main. Fixes DSpace#6559 Assisted-by: Claude Code [claude-opus-5-5]
(cherry picked from commit 149feee)
Contributor
|
Thanks @bram-atmire. I am in favor of this, but we need @tdonohue or @lgeggleston to help with the repository admin parts. As a followup, I wonder if we should also remove Node.js 20 from the testing matrix because it reached end of life on 2026-03-24 and there are increasing warnings about it in CI as well. The README and Wiki should be updated to say DSpace 8.x supports Node.js 18, 20, and 22 though. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
References
Description
Upgrades
dspace-8_xto Cypress 15.21.2, which fixes the e2e crash on Chrome 158, and moves the CI test matrix from Node 18/20 to Node 20/22 because Cypress 15 requires Node 20 or later.Instructions for Reviewers
As described in #6559, e2e tests on
dspace-8_xfail on Chrome 158 withError: * is not a valid URL. The fix is only in Cypress 15.21.2, which requires Node^20.1.0 || ^22.0.0 || >=24.0.0. When main moved to Cypress 15 in #5444, 8.x stayed on Cypress 14 because of Node 18. Node 18 reached end of life in April 2025, and the 8.x Docker images already usenode:22-alpine.List of changes in this PR:
package.json/yarn.lock:cypressfrom^14.5.4to^15.21.2. The other lockfile changes are Cypress 15's own dependencies.systeminformationis locked at 5.33.19, the same version as on main..github/workflows/build.yml: test matrix from[18.x, 20.x]to[20.x, 22.x], same asdspace-9_x. The code coverage upload moves from the 18.x job to the 20.x job, otherwise no coverage report would be uploaded.cypress/e2e/homepage.cy.ts: wait for loading components before the accessibility check (cherry-pick of 149feee from Show restricted thumbnails to users with access rights #4249), which fixes a timing-dependentlink-namefailure.Branch protection must change before merging: the required checks for
dspace-8_xincludetests (18.x), which this PR no longer produces. A repository admin needs to replacetests (18.x)withtests (22.x)in the branch protection rule just before merging.How to test
tests (20.x)andtests (22.x)should run all 57 specs instead of stopping at the second one.yarn install --frozen-lockfileandnpx cypress verify, thenyarn e2eagainst a backend with the e2e test data.Checklist
yarn lintyarn check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.AI Disclosure
Claude Code (claude-opus-5-5) prepared the package, lockfile and workflow changes and checked the new lockfile entries (release age, provenance, install scripts). Verified locally with
yarn install --frozen-lockfileandnpx cypress verify; e2e tests run in CIMy human review didn't spot any particular logical mistakes or problems.