strider icon indicating copy to clipboard operation
strider copied to clipboard

Continuous integration for strider

Open knownasilya opened this issue 10 years ago • 31 comments

Either use strider itself, like it was previously, or travis (and anything else along those lines)

This will help with merging PRs, and in general the overall health of the project.

Note: include https://github.com/Strider-CD/strider-github-status

knownasilya avatar Aug 25 '14 18:08 knownasilya

@niallo I can help with this if you'd like --- I'm happy to spin up and maintain a small digitalocean box w/ Docker & Sinopia just for this purpose. I'd use Docker basically in order to sandbox malicious PR's, keep a clean environment, and Sinopia (npm proxy) to prevent npmjs problems. Let me know :+1:

kfatehi avatar Aug 25 '14 19:08 kfatehi

I also really think it would be great to have (in strider) that deep github integration (where it annotates PR's for you) that Travis has done so well. There's no impetus to implement that until we start using Strider to develop Strider

kfatehi avatar Aug 25 '14 19:08 kfatehi

Or you could use https://github.com/nolanlawson/local-npm (been great for me, haven't tried sinopia).

knownasilya avatar Aug 25 '14 19:08 knownasilya

@knownasilya oh nice! local-npm looks convenient. Definitely a great tool for local use when something like sinopia is too much of a hassle to setup. I tend to use Sinopia for installations as it's a bit more feature rich (you can upload your own custom modules) and it has a nice Docker image.

https://github.com/rlidwka/sinopia

kfatehi avatar Aug 25 '14 19:08 kfatehi

Hum, yeah that would be nice for a testing environment.

knownasilya avatar Aug 25 '14 19:08 knownasilya

Can someone familiar with the acceptance test system in strider please look at these results https://strider.knban.com/strider-cd/strider/ ?

Googling the error takes me to SauceLabs tech support sites. The error is Error: [init({"version":"","browserName":"chrome","platform":"Linux"})] The environment you requested was unavailable

kfatehi avatar Aug 26 '14 02:08 kfatehi

@keyvanfatehi does version need to be set?

Plus you need to have chrome (and chrome webdriver) installed, maybe change to phantomjs?

knownasilya avatar Aug 26 '14 02:08 knownasilya

@knownasilya I'll see if i can use SauceLabs -- but I'm trying to debug this manually from an interactive docker container (As it would be nice to have a pattern for doing our own acceptance tests w/o Sauce)

kfatehi avatar Aug 26 '14 03:08 kfatehi

We do, it's called web driver, and it uses chrome, but you can set it to use phantomjs. No sauce required ;) On Aug 25, 2014 11:02 PM, "Keyvan Fatehi" [email protected] wrote:

@knownasilya https://github.com/knownasilya I'll see if i can use SauceLabs -- but I'm trying to debug this manually from an interactive docker container (As it would be nice to have a pattern for doing our own acceptance tests w/o Sauce)

— Reply to this email directly or view it on GitHub https://github.com/Strider-CD/strider/issues/535#issuecomment-53369909.

knownasilya avatar Aug 26 '14 03:08 knownasilya

Ha yeah, but I've already got Xvfb and Chrome -- I just need to figure out how to get chromedriver to start instances with --no-sandbox as I think ive narrowed it down to that (google-chrome won't launch without it, throw PID namespace errors which I believe has to do with LXC)

kfatehi avatar Aug 26 '14 03:08 kfatehi

Got it working -- one test keeps failing though, you can check it here https://strider.knban.com/strider-cd/strider/

kfatehi avatar Aug 26 '14 04:08 kfatehi

Hmm that test runs through github integration, which requires a public facing IP.

That might be your issue. El ago 25, 2014 10:50 PM, "Keyvan Fatehi" [email protected] escribió:

Got it working -- one test keeps failing though, you can check it here https://strider.knban.com/strider-cd/strider/

— Reply to this email directly or view it on GitHub https://github.com/Strider-CD/strider/issues/535#issuecomment-53375174.

jaredly avatar Aug 26 '14 07:08 jaredly

@jaredly I don't think that's it -- it passes for me on my local machine (no public IP)

kfatehi avatar Aug 26 '14 07:08 kfatehi

Oh wait that's right. Can you have it take a screenshot on failure? I forget exactly how, but I know it's possible El ago 26, 2014 1:11 AM, "Keyvan Fatehi" [email protected] escribió:

@jaredly https://github.com/jaredly I don't think that's it -- it passes for me on my local machine (no public IP)

— Reply to this email directly or view it on GitHub https://github.com/Strider-CD/strider/issues/535#issuecomment-53383384.

jaredly avatar Aug 26 '14 07:08 jaredly

figured it out. will fix tomorrow

kfatehi avatar Aug 26 '14 07:08 kfatehi

I've implemented screenshot on failure which yields the following. Looks like we have hit a webhook limit -- need to send some DELETE's through ? Is this implemented somewhere?

kfatehi avatar Aug 26 '14 10:08 kfatehi

We delete when a repo is removed...

jaredly avatar Aug 30 '14 22:08 jaredly

@keyvanfatehi what's the status on this?

knownasilya avatar Nov 12 '14 14:11 knownasilya

Hi Ilya, i plan to set this up again through upstreamapp/hosted strider when I get back from holiday.

On Wednesday, November 12, 2014, Ilya Radchenko [email protected] wrote:

@keyvanfatehi https://github.com/keyvanfatehi what's the status on this?

— Reply to this email directly or view it on GitHub https://github.com/Strider-CD/strider/issues/535#issuecomment-62722737.

kfatehi avatar Nov 12 '14 15:11 kfatehi

I tried to do this just for kicks on our strider instance and got:

FileError: 'bower_components/bootstrap/docs/assets/css/bootstrap.css' wasn't found in /home/thisisnotmyusername/.strider/data/strider-cd-strider-54801a3d5f388c4f58000213/client/styles/libs.less on line 2, column 1:
1 // Bootstrap
2 @import (less) "bower_components/bootstrap/docs/assets/css/bootstrap.css";
3 @import (less) "bower_components/bootstrap/docs/assets/css/bootstrap-responsive.css";

ProZachJ avatar Dec 04 '14 08:12 ProZachJ

@ProZachJ sounds like a bad install, since the client-side assets are pulled down on postinstall.

knownasilya avatar Dec 04 '14 13:12 knownasilya

Working on getting all tests passing here https://circleci.com/gh/Strider-CD/strider/1

kfatehi avatar Dec 08 '14 21:12 kfatehi

@keyvanfatehi the integration tests are broken (#664).

knownasilya avatar Dec 08 '14 21:12 knownasilya

ok thanks. working with circleci support on at least getting them to run for now.

kfatehi avatar Dec 08 '14 21:12 kfatehi

Just curious, is circleci backed by Strider or some other CI server?

I'd be happy to get this running on our strider instance and host it for you guys (although, I'd probably have to dedicate more resources as we already push ours pretty hard)

ProZachJ avatar Dec 08 '14 23:12 ProZachJ

strider doing ci for strider would be nice alright :)

On Monday, December 8, 2014, Zach Jones [email protected] wrote:

Just curious, is circleci backed by Strider or some other CI server?

I'd be happy to get this running on our strider instance and host it for you guys (although, I'd probably have to dedicate more resources as we already push ours pretty hard)

— Reply to this email directly or view it on GitHub https://github.com/Strider-CD/strider/issues/535#issuecomment-66209925.

Niall O'Higgins W: http://niallohiggins.com E: [email protected] T: @niallohiggins

niallo avatar Dec 08 '14 23:12 niallo

hi Zach. id prefer Strider testing Strider too (plus i know it works). CircleCI isnt affiliated i just figured id try it

On Tuesday, December 9, 2014, Zach Jones [email protected] wrote:

Just curious, is circleci backed by Strider or some other CI server?

I'd be happy to get this running on our strider instance and host it for you guys (although, I'd probably have to dedicate more resources as we already push ours pretty hard)

— Reply to this email directly or view it on GitHub https://github.com/Strider-CD/strider/issues/535#issuecomment-66209925.

kfatehi avatar Dec 08 '14 23:12 kfatehi

Cool, well next time I rebuild our instance, I'll try to get this working.

I know right now our installation is a bit non-standard due to some bugs we found in plugins when the refactor happened that changed what is bundled by default.

If I get it working, I'll talk to my co-founder about setting something up for you guys. We use strider pretty heavily so hopefully we can find a few spare dollars and contribute back.

Perhaps there is a better thread for this question but didn't you guys plan at one point on doing a Strider as a service offering?

ProZachJ avatar Dec 08 '14 23:12 ProZachJ

@ProZachJ

@niallo was originally (long ago) planning to provide a hosted offering. This fell through for various reasons prior to my finding and becoming involved in the Strider project. This original goal still shows up in places like at stridercd.com

A few months ago I built and launched a service that, in a different way, provided Strider (or any other Docker container(s)) as a service. I was going to make this my business and provide the public self testing instance through this as well. I've since given that up (and made it open too, repo name is saasbox-app) for various reasons.

At this time, to my knowledge, there are no core devs trying to offer Strider as a service. We all just work on Strider in our free time and (in my case) hope to be in a fortunate enough position to spare the time and money to put up a reliable, lasting public-facing instance at least for our own stuff and demo purposes.

Hope that helps give sufficient background info to reconcile the previous posts in this thread.

kfatehi avatar Dec 09 '14 00:12 kfatehi

Doing this this week: http://docs.travis-ci.com/user/gui-and-headless-browsers/

knownasilya avatar Jun 03 '15 21:06 knownasilya

@niallo would love some help setting up the integration tests with sauce labs. Currently it fails on travis.

knownasilya avatar Jun 08 '15 01:06 knownasilya