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

Need support for CI/CD using bamboo #206

Closed
Brad19 opened this issue Nov 2, 2017 · 11 comments
Closed

Need support for CI/CD using bamboo #206

Brad19 opened this issue Nov 2, 2017 · 11 comments

Comments

@Brad19
Copy link

Brad19 commented Nov 2, 2017

First of all. This tool offers many cool features and breaks the contemporary traditional automation testing limitations. Kudos to the team !!!

I've been going through the features and experimenting it. Currently i'm not sure if we can implement CI/CD using Atlassian Bamboo as there is no concept of grid here. Can you please advise on this as our CI/CD server is with Bamboo. Your response might help us to have a quick win over deciding the Automation tool in our environment.

@bahmutov
Copy link
Contributor

bahmutov commented Nov 2, 2017 via email

@brian-mann
Copy link
Member

brian-mann commented Nov 2, 2017 via email

@Brad19
Copy link
Author

Brad19 commented Nov 2, 2017

I mean can you configure and run multiple instances in Bamboo without issues. For eg., i've more than 1 plan configured in Bamboo.

@Brad19
Copy link
Author

Brad19 commented Nov 15, 2017

@brian-mann / @bahmutov
Could you pls let me know if you have any updates for the above. Thanks!!!

@brian-mann
Copy link
Member

I'm confused. Per your response it sounds like you are asking a question: "Can you configure and run multiple instances in Bamboo without issues?".

The answer is yes - unless there is an issue I'm not aware of. Are you having an issue? What issue?

@samfrach
Copy link

I think he is asking : is there a plugin to integrate Cypress in Atlassian Bamboo ?
I know there are for Jenkins but in Bamboo, it's not obvious to launch test plans with Cypress.

@bahmutov
Copy link
Contributor

I don't understand the problem. Is Cypress NOT working on Bamboo CI? Or is there additional integration that can make the test runner more useful?

@hasansaghir
Copy link

hasansaghir commented Aug 6, 2018

My first run with Cypress on Bamboo spit out following.

`

cypress run
--
07-Aug-2018 08:55:29 |  
07-Aug-2018 08:55:30 | [08:55:30]  Verifying Cypress can run /home/bamboo/.cache/Cypress/3.0.3/Cypress [started]
07-Aug-2018 08:55:34 | [08:55:34]  Verifying Cypress can run /home/bamboo/.cache/Cypress/3.0.3/Cypress [failed]
07-Aug-2018 08:55:34 | Cypress failed to start.
07-Aug-2018 08:55:34 |  
07-Aug-2018 08:55:34 | This is usually caused by a missing library or dependency.
07-Aug-2018 08:55:34 |  
07-Aug-2018 08:55:34 | The error below should indicate which dependency is missing.
07-Aug-2018 08:55:34 |  
07-Aug-2018 08:55:34 | https://on.cypress.io/required-dependencies
07-Aug-2018 08:55:34 |  
07-Aug-2018 08:55:34 | If you are using Docker, we provide containers with all required dependencies installed.
07-Aug-2018 08:55:34 | ----------
07-Aug-2018 08:55:34 |  
07-Aug-2018 08:55:34 | /home/bamboo/.cache/Cypress/3.0.3/Cypress/Cypress: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory
07-Aug-2018 09:16:25 | ----------
-- | --
07-Aug-2018 09:16:25 |  
07-Aug-2018 09:16:25 | Platform: linux (Red Hat Linux - 6.10)
07-Aug-2018 09:16:25 | Cypress Version: 3.0.3
07-Aug-2018 09:16:25 |  
07-Aug-2018 09:16:25 | npm ERR! Linux 2.6.32-754.2.1.el6.x86_64
07-Aug-2018 09:16:25 | npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "cypress:run"
07-Aug-2018 09:16:25 | npm ERR! node v6.9.1
07-Aug-2018 09:16:25 | npm ERR! npm  v3.10.8
07-Aug-2018 09:16:25 | npm ERR! code ELIFECYCLE
07-Aug-2018 09:16:25 | npm ERR! e2e@1.0.0 cypress:run: cypress run
07-Aug-2018 09:16:25 | npm ERR! Exit status 1

`

I'm digging into it. Probably we need docker within Bamboo. Anyone experienced the same?

UPDATE:
There are missing libraries which Cypress mentioned to install in any CI. Problem is now Bamboo is RH using YUM and Cypress mentioned APT-GET libraries so finding an equivalent packages is a challenge now.
Related: cypress-io/cypress#660

UPDATE:
I ended up setting Docker in Bamboo and added following in Docker File. Worked for me!

RUN apt-get install --assume-yes --no-install-recommends \ xvfb libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2

@h0adp0re
Copy link

For anyone with the same problem, there's also a docker image available with all cypress dependencies already installed.

https://hub.docker.com/r/cypress/base

@Elif5757
Copy link

I need also help.
I have deposited in my script :
"cy:run": "cypress run", "cy:test": "start-server-and-test start http://localhost:4300 cy:run"

After that I've added a task in bamboo to run my cypress tests - using the command "run cy:test"
That's working but is there a possibility to say bamboo if a test failed then the build break up and suchlike that ?

What options do I have to act with failed test, generally in bamboo ?

@humayunrana786
Copy link

I need also help.
I have deposited in my script :
"cy:run": "cypress run", "cy:test": "start-server-and-test start http://localhost:4300 cy:run"

After that I've added a task in bamboo to run my cypress tests - using the command "run cy:test"
That's working but is there a possibility to say bamboo if a test failed then the build break up and suchlike that ?

What options do I have to act with failed test, generally in bamboo ?

Hello I need detail steps - hw can I run cypress n bamboo. Can you please guide me?
humayunrana786@gmail.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants