runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Hook up public CI service like Travis/AppVeyor

Open akoeplinger opened this issue 12 years ago • 24 comments

This should come in handy for testing PRs.

akoeplinger avatar Nov 12 '14 22:11 akoeplinger

This would be another great step in the right direction. +1

Victory avatar Nov 13 '14 00:11 Victory

Right now we are internally using Team Foundation Build based CI service. We will be investigating other CI systems too.

Sridhar-MS avatar Nov 13 '14 00:11 Sridhar-MS

@Sridhar-MS I've tried a super simple AppVeyor file, it builds and runs tests fine: https://ci.appveyor.com/project/akoeplinger/corefx

Is this something we could add to the main repo?

akoeplinger avatar Nov 13 '14 00:11 akoeplinger

Right, other systems like Jenkins are being investigated.

mmitche avatar Nov 13 '14 17:11 mmitche

Can't upvote this enough. HUGEly important for giving the community confidence in the integrity of the repository, especially as new platforms become supported.

If you're looking at "traditional" CI tools, I would strongly consider TeamCity from JetBrains. Excellent .NET support, very easy to use and understand (unlike TFS).

If you are interested in thinking ahead, I would suggest Go for creating proper build pipelines.

eatdrinksleepcode avatar Nov 13 '14 18:11 eatdrinksleepcode

If Jenkins is a possible direction, does that mean tools like Gallio test automation and Sonar may be considered as well?

staticvoidmaine avatar Nov 13 '14 18:11 staticvoidmaine

Potentially, I’ll take a look. We have a way to go before the CI system becomes front and center.

Matt

mmitche avatar Nov 13 '14 18:11 mmitche

Honestly, I'm not a fan of going the Jenkins route as it makes the PR testing experience second class. The reason is that you'll need to limit who can run builds on the Jenkins slaves (otherwise the bad guys :tm: could just open a PR that messes with the machine). This means contributors need to wait until someone whitelists their PR for it to get built, which makes the feedback loop longer.

That's why using services like AppVeyor/Travis is much better as every build/PR simply gets a fresh VM and can't break anything (plus you don't need to manage and troubleshoot Jenkins, which can be quite time-consuming as we've seen over at the Mono project).

akoeplinger avatar Nov 13 '14 18:11 akoeplinger

Theoretically we could do the same with Jenkins, Spin up new VM's for jobs legs. Definitely want to make PR testing a high priority, since it helps everyone move faster

mmitche avatar Nov 13 '14 18:11 mmitche

Sure, but why reinvent the wheel when these existing services already have it all figured out and are used by many OSS projects? :smile:

AppVeyor in particular seems to be pretty popular for .NET projects, e.g. here is a blog post from @shanselman about it: http://www.hanselman.com/blog/AppVeyorAGoodContinuousIntegrationSystemIsAJoyToBehold.aspx

akoeplinger avatar Nov 13 '14 18:11 akoeplinger

@akoeplinger Thanks for the feedback! As we are trying to open source cross-platform support it will be nice to have a CI system which can support both Windows and Linux. I believe AppVeyor currently supports only Windows.

Sridhar-MS avatar Nov 13 '14 18:11 Sridhar-MS

I like Jenkins because of the extensibility and generality. We want to avoid CI systems that have specific knowledge of build systems and languages, since there is so much more to CI than just build and test (perf, stress, code coverage, deployement). There also are a number of provisioning plugins for Jenkins already and it enjoys a lot of popularity.

Anyways, as plans form up we'll be sure to keep everyone in the loop.

mmitche avatar Nov 13 '14 18:11 mmitche

I can't agree enough with @mmitche.

staticvoidmaine avatar Nov 13 '14 18:11 staticvoidmaine

@Sridhar-MS yes, AppVeyor is Windows only, but Travis does Linux and Mac and nobody says you can't use both ;-)

@mmitche Yep, Jenkins is better when you have complex requirements or build processes, that's true. Anyway, it's great being able to argue with you guys here in the open!

akoeplinger avatar Nov 13 '14 18:11 akoeplinger

Migrating from Jenkins to TeamCity was one of the best moves we have done at work. As Jenkins, TeamCity provides a great flexibility. But has a lof for features OOB which enables testing/code coverage/depencies in .NET. Jenkins has a greater focus on Java. Also Teamcity has better "Cloud" (AWS and Azure) support. I know that Particular uses Teeamcity for their OOS projects (http://builds.particular.net/) but I think all builds are done on the same machine (cc @SimonCropp).

Maybe @maartenba knows more about TeamCity and OpenSource.

yannisgu avatar Nov 14 '14 16:11 yannisgu

Interesting you should say that. Services like OpenShift offer Jenkins containers https://developers.openshift.com/en/managing-continuous-integration.html. It seems fitting that Azure could do so as well.

On Fri Nov 14 2014 at 2:04:17 PM Adeel Mujahid [email protected] wrote:

Perhaps these are related:

http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/6709144-free-ci-system-for-open-source-projects-travisci

http://feedback.azure.com/forums/34192--general-feedback/suggestions/6709490-binaries-building-and-hosting-for-open-source-proj

Please up-vote if you like the idea. Perhaps Brian Harry and team would make CI system available on Azure, so we would be able to build open-source projects (node, .NET, Java, Python et al.) across multiple platforms. That would be a cherry on the top, if it integrates GitHub and BitBucket authentication system as well. :)

— Reply to this email directly or view it on GitHub https://github.com/dotnet/corefx/issues/48#issuecomment-63112836.

staticvoidmaine avatar Nov 14 '14 19:11 staticvoidmaine

@yannisgu nope. Particular uses several different build agents with different configs that are spun up in the cloud on demand.

SimonCropp avatar Nov 14 '14 19:11 SimonCropp

@yannisgu There is teamcity.codebetter.com for TeamCity OSS projects

maartenba avatar Nov 14 '14 19:11 maartenba

AppVeyor is a great choice for now, let's not bikeshed too much. You can always change it later once requirements become more complex

anaisbetts avatar Nov 15 '14 03:11 anaisbetts

I agree with @paulcbetts, even if we're just using AppVeyor for the next 2 months and then move onto something else it's still better than having no public CI for PR testing (especially as setting up AppVeyor just takes about a minute).

If there's consensus among the MS devs that this is a worthwhile addition, I'll send a PR.

akoeplinger avatar Nov 15 '14 15:11 akoeplinger