Skip to content

Move Windows and Linux CI to VSTS #566

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

Merged
merged 5 commits into from
Jul 23, 2018
Merged

Conversation

safern
Copy link
Member

@safern safern commented Jul 20, 2018

cc: @eerhardt

@safern
Copy link
Member Author

safern commented Jul 20, 2018

@dotnet-bot test ci please

@safern
Copy link
Member Author

safern commented Jul 20, 2018

@safern safern requested review from Ivanidzo4ka and eerhardt July 20, 2018 21:33
@@ -0,0 +1,21 @@
resources:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move this file from the root of the repo and instead put it in the build folder?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left it in the root because if it is in the root we get Resource Authorization automatically:
https://github.com/Microsoft/vsts-agent/blob/master/docs/preview/yamlgettingstarted-authz.md

They do have plans on supporting directory structure for this though:
microsoft/azure-pipelines-agent#1430

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is unfortunate.

phases:
- template: /build/ci/phase-template.yml
parameters:
name: RHEL7
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's name this leg the "Linux" leg. RHEL7 is sort of a lie because we are using CentOS.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, sounds good.

@eerhardt
Copy link
Member

We will need to update these build badges:

https://github.com/dotnet/machinelearning/blob/master/README.md#building

displayName: Publish Test Results
condition: succeededOrFailed()
inputs:
testRunner: 'vSTest'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vSTest [](start = 21, length = 6)

don't we use xUnit tests, or they interchangeable?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use xunit as a framework, but we use VSTest as our test runner:
https://github.com/dotnet/machinelearning/blob/master/test/run-tests.proj#L10

@safern
Copy link
Member Author

safern commented Jul 20, 2018

We will need to update these build badges

Yup, you're right. Will update them.


- template: /build/ci/phase-template.yml
parameters:
name: Windows_NT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows_NT [](start = 10, length = 10)

I obviously don't have knowleage regarding build system, but from what I see we have 4 nodes in VSTS where Windows_NT is not running, and also Windows builds on jenkins.
Is it intended?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the jenkins Windows builds will stop showing up after I merge this PR. They keep showing because it takes the checked-in netci.groovy file instead of taking the one in this PR.

About the VSTS nodes, you can see here: https://dotnet.visualstudio.com/public/_build/results?buildId=7047&view=logs that the new Build Def, will run Linux and Windows in both Release and Debug mode simultaneously.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thank you for clarification.

@safern
Copy link
Member Author

safern commented Jul 21, 2018

Build definition seems to be correct now. Test results are displayed correctly now and builds are passing.

Badges are pointing to master branch, however there hasn't been a master branch yet, so once this is merged the badges should point to the right build definition.

Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Copy link
Contributor

@Ivanidzo4ka Ivanidzo4ka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@Ivanidzo4ka Ivanidzo4ka merged commit a862ccc into dotnet:master Jul 23, 2018
@safern safern deleted the AddCIVsts branch July 23, 2018 16:40
resources:
containers:
- container: centos7
image: microsoft/dotnet-buildtools-prereqs:centos-7-b46d863-20180719033416
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dotnet-buildtools-prereqs:centos-7-b46d863-20180719033416 [](start = 21, length = 57)

does this docker image contains libgdiplus?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

@safern safern Jul 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m trying to build and run the tests locally in my computer with the same container. I’ll update you. Using your branch of course

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests that you added passed in my machine when using that docker image. I just need to dig why they are failing in VSTS, maybe not picking the right docker image. I'll update you.

@safern safern restored the AddCIVsts branch July 23, 2018 20:32
@safern safern deleted the AddCIVsts branch July 23, 2018 20:34
eerhardt pushed a commit to eerhardt/machinelearning that referenced this pull request Jul 27, 2018
* Remove Windows and Linux configurations from netci.groovy

* Add end of line to yml files

* Add badges and change leg name to Linux

* Not merge test results

* Add searchFolder to publish test results task
codemzs pushed a commit to codemzs/machinelearning that referenced this pull request Aug 1, 2018
* Remove Windows and Linux configurations from netci.groovy

* Add end of line to yml files

* Add badges and change leg name to Linux

* Not merge test results

* Add searchFolder to publish test results task
@ghost ghost locked as resolved and limited conversation to collaborators Mar 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants