question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Couldn't get heroku CI working

See original GitHub issue

Overview: I’ve created a very simple test spec that I wanted to get running in a CI-enabled Heroku pipeline. However, it seems to fail due to some xvfb configuration issues.

I tried different flavors of buildpacks and chrome and electron both.

When missing a dependency I would get an error message on the heroku dyno about the missing dependency (e.g. xvfb, etc). However, once all the dependencies were installed, I then got this message;

~ $ ./node_modules/.bin/cypress run
It looks like this is your first time using Cypress: 1.1.0

[04:28:22]  Verifying Cypress can run /app/node_modules/cypress/dist/Cypress [started]
[04:28:22]  Verifying Cypress can run /app/node_modules/cypress/dist/Cypress [failed]
Cypress failed to start.

This is usually caused by a missing library or dependency.

The error below should indicate which dependency is missing.

https://on.cypress.io/required-dependencies

If you using Docker, we provide containers with all required dependencies installed.
----------
----------

Platform: linux (Ubuntu Linux - 14.04)
Cypress Version: 1.1.0

on the advice of @brian-mann via your Gitter chat, I tried this command: ./node_modules/cypress/dist/Cypress/Cypress

However that produced no console output whatsoever.

Here’s the heroku configuration I wound up with (after trying various buildpacks):

stack: cedar-14 (per heroku xvfb doesn’t work with the new stack) buildpack: https://github.com/heroku/heroku-buildpack-apt Then I configured the Aptfile with these dependencies

xvfb
libgtk2.0-0
libnotify-dev
libgconf-2-4
libnss3
libxss1
libasound2

(copied out of your instructions).

I’m giving up on getting this running on heroku, but if you’re having trouble recreating the situation, I could probably get something set up for you pretty quickly (the code part is trivial-- basically a hello world test.)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:7
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
bahmutovcommented, Jan 18, 2018

We are extensively using Circle, cannot recommend it high enough.

Sent from my iPhone

On Jan 17, 2018, at 20:35, Jon Abrams notifications@github.com wrote:

Resurrecting this because I just ran into this issue.

Here’s my failed output:

-----> Running Node.js buildpack tests…

trusted-web@1.0.0 test /app cypress run --record --key [SNARF!] It looks like this is your first time using Cypress: 1.4.1 �[?25l[01:33:08] Verifying Cypress can run /app/node_modules/cypress/dist/Cypress [started] [01:33:08] Verifying Cypress can run /app/node_modules/cypress/dist/Cypress [failed] �[?25hYour system is missing the dependency: XVFB Install XVFB and run Cypress again. Read our documentation on dependencies for more information: https://on.cypress.io/required-dependencies If you using Docker, we provide containers with all required dependencies installed.


Caught error trying to run XVFB: "Your system is missing the dependency: XVFB Install XVFB and run Cypress again. Read our documentation on dependencies for more information: https://on.cypress.io/required-dependencies If you using Docker, we provide containers with all required dependencies installed.

Error: spawn Xvfb ENOENT

Platform: linux (Ubuntu Linux - 16.04) Cypress Version: 1.4.1"

Platform: linux (Ubuntu Linux - 16.04) Cypress Version: 1.4.1 �[?25hnpm ERR! Test failed. See above for more details. -----> Node.js buildpack tests failed with exit status 1 @bahumtov I think Heroku supports Docker, not sure how to set it up though.

I’m not wed to Heroku though, is there a CI that Cypress recommends?

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub, or mute the thread.

0reactions
bahmutovcommented, Mar 11, 2019

@arshdeeptinna I have looked around in https://github.com/cypress-io/cypress-example-kitchensink/issues/213 and could not find any modern Heroku buildpack with heroku-18 XVFB install. I don’t want to write one, and suggest using “real” CI instead - something that can use our cypress-docker-images Docker image to have all OS dependencies.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Heroku and GitHub: "Items could not be retrieved, Internal ...
When I do it, I get this error message as a small red pop up on the upper right side of the page:...
Read more >
Heroku CI
Heroku CI automatically runs your app's test suite with every push to your app's ... Heroku CI works seamlessly with any Heroku Pipeline....
Read more >
GitHub Integration (Heroku GitHub Deploys)
Heroku integrates with GitHub to make it easy to deploy code living on GitHub to apps running on Heroku.
Read more >
Heroku CLI Commands
display CI config vars Example: $ heroku ci:config --app ... EXAMPLES $ heroku keys:add Could not find an existing public key.
Read more >
Account Verification - Heroku Dev Center
Navigate to your team account in the Heroku Dashboard. · Click on the Billing tab. · Click Add Credit Card .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found