Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
0ff9f926b09f7fd041cfc783105b77690afFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| resources: | ||
| containers: | ||
| - container: centos7 | ||
| image: microsoft/dotnet-buildtools-prereqs:centos-7-b46d863-20180719033416 | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
does this docker image contains libgdiplus? MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://ci2.dot.net/job/Private/job/dotnet_machinelearning/job/master/job/linux_release_prtest/1240/testReport/junit/(root)/(empty)/Microsoft_ML_Tests_ImageTests_TestBackAndForthConversion/ In reply to: 204483166 [](ancestors = 204483166)
| ||
| phases: | ||
| - template: /build/ci/phase-template.yml | ||
| parameters: | ||
| name: Linux | ||
| buildScript: ./build.sh | ||
| queue: | ||
| container: centos7 | ||
| - template: /build/ci/phase-template.yml | ||
| parameters: | ||
| name: Windows_NT | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
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. MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Got it, thank you for clarification. | ||
| buildScript: build.cmd | ||
| queue: | ||
| name: Hosted VS2017 | ||
| demands: | ||
| - agent.os -equals Windows_NT | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| parameters: | ||
| name: '' | ||
| buildScript: '' | ||
| queue: {} | ||
| phases: | ||
| - phase: ${{ parameters.name }} | ||
| variables: | ||
| _buildScript: ${{ parameters.buildScript }} | ||
| _phaseName: ${{ parameters.name }} | ||
| queue: | ||
| parallel: 2 | ||
| matrix: | ||
| Build_Debug: | ||
| _configuration: Debug | ||
| Build_Release: | ||
| _configuration: Release | ||
| ${{ insert }}: ${{ parameters.queue }} | ||
| steps: | ||
| - script: $(_buildScript) -$(_configuration) -runtests | ||
| displayName: Build and Test | ||
| - task: PublishTestResults@2 | ||
| displayName: Publish Test Results | ||
| condition: succeededOrFailed() | ||
| inputs: | ||
| testRunner: 'vSTest' | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
don't we use xUnit tests, or they interchangeable? MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe 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: | ||
| searchFolder: '$(System.DefaultWorkingDirectory)/bin' | ||
| testResultsFiles: '**/*.trx' | ||
| testRunTitle: Machinelearning_Tests_$(_phaseName)_$(_configuration)_$(Build.BuildNumber) | ||
| configuration: $(_configuration) | ||
| mergeTestResults: true | ||
| - script: $(_buildScript) -buildPackages | ||
| displayName: Build Packages | ||

There was a problem hiding this comment.
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
buildfolder?There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is unfortunate.