Skip to content

Cypress binary randomly missing with pnpm #1138

@enjikaka

Description

@enjikaka

Branching out my case from #1054

I added the cypess GH action a few days ago in this repo and it has run fine, until I open a PR with a version bump to a package in the monorepo and it suddenly decided to fail on the cypress binary being missing.

I've tried the following solutions after looking through old issues here:

  • Add PNPM cache
  • Add Cypress binary cache
  • Switch cypress gh action to install: true
  • Tried working-dir: with pnpm command instead of pnpm --dir workdir command

Neither yield any different result. Still:

> @tidal-music/[email protected] internal:cypress:run /home/runner/work/tidal-sdk-web/tidal-sdk-web/packages/player
> pnpm cypress run

The cypress npm package is installed, but the Cypress binary is missing.

We expected the binary to be installed here: /home/runner/.cache/Cypress/13.6.6/Cypress/Cypress

Reasons it may be missing:

- You're caching 'node_modules' but are not caching this path: /home/runner/.cache/Cypress
- You ran 'npm install' at an earlier build step but did not persist: /home/runner/.cache/Cypress

Properly caching the binary will fix this error and avoid downloading and unzipping Cypress.

Alternatively, you can run 'cypress install' to download the binary again.

https://on.cypress.io/not-installed-ci-error

Mr PR with alot of different commits where I've tried different combos: tidal-music/tidal-sdk-web#80

I hope someone is able to help finding out the issue :)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions