Skip to content

test: remove example-install-only - #1838

Open
MikeMcC399 wants to merge 2 commits into
cypress-io:masterfrom
MikeMcC399:remove/example-install-only
Open

test: remove example-install-only#1838
MikeMcC399 wants to merge 2 commits into
cypress-io:masterfrom
MikeMcC399:remove/example-install-only

Conversation

@MikeMcC399

@MikeMcC399 MikeMcC399 commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

Situation

The workflow example-install-only.yml pins a version of Cypress separately from the version defined in examples/install-only.

  • Renovate is unable to maintain the separate version in the workflow, resulting in manual instructions being written for

  • Code scanning typically flags pinning npm versions in workflows like this, since current updating utilities such as Renovate and Dependabot can't maintain them.

  • The workflow currently runs on ubuntu-24.04 using the default Node.js 22.23.1 version.

  • If it is upgraded to Node.js 24.x, it warns. And if it is upgraded to npm 12, it fails.

  • Attempting to make it compatible with npm 12, exposes other errors in the workflow, such as the npm install running in the wrong directory.

Assessment

  • Given heightened awareness of supply-chain vulnerabilities, it can no longer be considered as a good example and it is not fixable. npm does not allow picking only one dependency defined in package.json, although it can choose between dev and prod. Renovate can't keep it synced either.

  • The higher frequency of reported vulnerabilities in the npm ecosystem, compared to earlier, means that it is no longer viable to be manually updating dependencies. The main part of the work needs to be automated, and in this repo that means relying on Renovate.

Change

Remove the following, and all references to this example set:

Verification

Under Ubuntu 24.04.4 LTS, Node.js 24.18.0 LTS execute:

npm run update:cypress

Confirm that the script runs without error and no longer prompts to manually update example-install-only.yml.


Note

Low Risk
Documentation and example-only removals with no changes to the published GitHub Action runtime behavior.

Overview
Removes the install Cypress only CI pattern from the repo because it pinned Cypress separately from package.json, could not be kept in sync by Renovate, and was fragile on newer Node/npm.

The PR deletes .github/workflows/example-install-only.yml and the whole examples/install-only project (config, spec, lockfile, README). README drops the TOC link and the "Install Cypress only" section with its sample workflow. docs/MAINTENANCE.md no longer mentions hand-editing the workflow when bumping Cypress. scripts/update-cypress-latest-npm.sh stops updating that example, and scripts/update-cypress-latest.sh no longer prints instructions to manually edit the workflow or open it in VS Code.

Reviewed by Cursor Bugbot for commit 668819e. Bugbot is set up for automated code reviews on this repo. Configure here.

@cypress-app-bot

Copy link
Copy Markdown
Collaborator

@MikeMcC399 MikeMcC399 self-assigned this Jul 26, 2026
@MikeMcC399 MikeMcC399 added bug Something isn't working tests labels Jul 26, 2026
@MikeMcC399
MikeMcC399 marked this pull request as ready for review July 26, 2026 11:07
@MikeMcC399
MikeMcC399 requested a review from mschile July 27, 2026 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants