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

Trying to install cypress without a TTY produces thousands of lines of output during 'Unzipping Cypress' #1243

Open
jwalton opened this Issue Feb 1, 2018 · 13 comments

Comments

@jwalton
Copy link

jwalton commented Feb 1, 2018

  • Operating System: N/A
  • Cypress Version: 1.1.3
  • Browser Version: N/A

Is this a Feature or Bug?

Bug

Current behavior:

cypress

Desired behavior:

Installing cypress should print, like, five lines tops. Certainly less than a screen full.

How to reproduce:

The easiest way:

docker run --rm node:8.9.4-alpine npm install cypress

Current workaround

Set environment variable CI=1 to avoid a lot of output during install

@HugoGiraudel

This comment has been minimized.

Copy link
Contributor

HugoGiraudel commented Feb 5, 2018

Maybe related: #817?

@ondrejbartas

This comment has been minimized.

Copy link

ondrejbartas commented Feb 14, 2018

@jwalton I was able to suppress output by CI=true npm install cypress which will produce only:

Installing Cypress (version: 1.4.2)

[10:27:23]  Downloading Cypress     [started]
[10:27:52]  Downloading Cypress     [completed]
[10:27:52]  Unzipping Cypress       [started]
...
@bahmutov

This comment has been minimized.

Copy link
Collaborator

bahmutov commented Jun 26, 2018

Same problem for Netlify installs

screen shot 2018-06-25 at 11 40 20 pm

@kayvanbree

This comment has been minimized.

Copy link

kayvanbree commented Jun 28, 2018

This is pretty annoying. It fills up the complete log with kinda useless information.

@martpie

This comment has been minimized.

Copy link

martpie commented Aug 8, 2018

@ondrejbartas This is unfortunately not a (optimal) solution as it may affect other part of your code/build by setting this CI environment variable to true.

@Christilut

This comment has been minimized.

Copy link

Christilut commented Aug 30, 2018

Same problem here on Netlify. Also the unzipping stage takes about 10 minutes on Netlify but that's probably something on their end.

@bahmutov

This comment has been minimized.

Copy link
Collaborator

bahmutov commented Aug 30, 2018

@Christilut you can find my Cypress + Netlify demo described at https://glebbahmutov.com/blog/gatsby-netlify-circle-and-cypress/

I did have to use CI=1 environment variable to get around lots of output during install, but I felt the deploy was quite snappy.

@shanecav

This comment has been minimized.

Copy link

shanecav commented Nov 14, 2018

I'm running into the same issue on Netlify. Every build is failing because of their 15 minute limit, most of which is taken up by "Unzipping Cypress".

@martpie

This comment has been minimized.

Copy link

martpie commented Nov 14, 2018

I use Docker to build my app, but I don’t want to run my tests there: what I did is to move Cypress to optionalDependencies and npm install --no-optional.

Downloading and Unzipping just takes too much time...

@cymen

This comment has been minimized.

Copy link

cymen commented Dec 21, 2018

This is making our npm install take 2.5 minutes instead of 1 minute. I used the CI=true to fix it for now but it would be great to default to not logging this information.

@jennifer-shehane jennifer-shehane changed the title Trying to install cypress without a TTY produces thousands of lines of output Trying to install cypress without a TTY produces thousands of lines of output during 'Unzipping Cypress' Dec 26, 2018

@bussyjd

This comment has been minimized.

Copy link

bussyjd commented Feb 6, 2019

This fills up my cloudbuild log buffer on GCP CloudBuilder and I cannot see what happens afterwards.
This behavior is buggy and an environment variable CI=true to fix it is not okay, that's one layer everyone's Docker image for a single poor design choice

@Songyu-Wang

This comment has been minimized.

Copy link
Contributor

Songyu-Wang commented Feb 23, 2019

@jennifer-shehane I dont think we should close this issue, The PR I created only reduce the number of prints, but it does not completely solve the problem

@jennifer-shehane

This comment has been minimized.

Copy link
Member

jennifer-shehane commented Feb 25, 2019

@Songyu-Wang Thanks for clarifying!

camille-hdl pushed a commit to camille-hdl/cuisine-ead that referenced this issue Mar 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.