Skip to content
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

Cypress not installing binary in gitlab pipeline CI #30440

Closed
isabellaslv opened this issue Oct 22, 2024 · 1 comment
Closed

Cypress not installing binary in gitlab pipeline CI #30440

isabellaslv opened this issue Oct 22, 2024 · 1 comment
Labels
topic: installation Issue during installation or downloading Cypress

Comments

@isabellaslv
Copy link

isabellaslv commented Oct 22, 2024

Current behavior

I'm getting crazy trying to install cypress in my gitlab pipeline. It works fine on my local (windows).
Even after running npm install cypress, the cache folder is not created
my gitlab yml file:

CYPRESS_CACHE_FOLDER: $PROJECT_DIR/.cache/Cypress

cache:
  paths:
    - ~/.cache/Cypress
    - .cache/Cypress
    - $PROJECT_DIR/.cache/Cypress


e2e-test:
  image: $CYPRESS_IMG
  script:
    - export HTTP_PROXY=[my proxy]
    - export HTTPS_PROXY=[my proxy]
    - npm config set registry [my registry]
    - npm set strict-ssl false
    - export CYPRESS_CACHE_FOLDER=$PROJECT_DIR/.cache/Cypress
    - export CYPRESS_CRASH_REPORTS=1
    - npm ci
    - npm install cypress
    - ./node_modules/.bin/cypress install --force
    - npx cypress run

The output:
image

Debug logs

No response

Cypress Version

13.15.0

Node version

20

Package Manager

npm

Package Manager Version

idk but between 17 and 20

Operating system

Linux

Operating System Version

linux-x64 (Debian - 11)

Other

I've already tried to cache everything, but even after running npm install cypress, the cache folder is not created. Other things I tried:

@isabellaslv isabellaslv added the topic: installation Issue during installation or downloading Cypress label Oct 22, 2024
@MikeMcC399
Copy link
Contributor

Duplicate of conversation in https://discord.com/channels/755913899261296641/1298725753973637190/1298725753973637190

The image in use is not a Cypress Docker image.

Feedback in Discord was:

It looks like $PROJECT_DIR is not set in the workflow.
To troubleshoot Cypress installation see https://docs.cypress.io/app/references/advanced-installation#Troubleshoot-installation
export DEBUG=cypress:cli* run installation and check the logs.
It may be a problem with ownership and access rights.

@jennifer-shehane jennifer-shehane closed this as not planned Won't fix, can't repro, duplicate, stale Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: installation Issue during installation or downloading Cypress
Projects
None yet
Development

No branches or pull requests

3 participants