-
Notifications
You must be signed in to change notification settings - Fork 818
[WIP] Use helix on CI #628
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
Closed
Closed
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
91e764c
Add helix CI job
HaoK 7bf8283
Disable failing OSX loc tests
HaoK 9f542e5
Add using
HaoK a6c9912
Skip logging analyzer tests for now
HaoK 858505b
Skip more OSX tests
HaoK 37c279e
Skip last failing test
HaoK 6a0329c
Cleanup and use version variables
HaoK 334ce16
Revert "Skip logging analyzer tests for now"
HaoK e36ba8c
Change friendly name separator
HaoK 2c86fb1
Try not building in parallel
HaoK 3f3635b
see if helix failures fail build now
HaoK a05ecf3
Update helix.proj
HaoK 108f262
Try latest sdk
HaoK ebad1b0
Turn on xunit reporter only for net461
HaoK 27f5be2
Missing "
HaoK bc35956
Revert "Skip last failing test"
HaoK dda24be
Trigger build
HaoK 0276485
Get rid of access token for public helix builds
HaoK 261004f
Try newer helix sdk
HaoK a899fd5
Add properties
HaoK 5d57e04
Cleanup windows queue check
HaoK 0a71002
Cleanup comment
HaoK 3c5e7c3
Fix typo
HaoK 85ea12b
Remove debug flag
natemcmaster 4dc72c8
Remove trim workaround
HaoK 54ab1ab
Fallback to $USER
HaoK 0625fa5
Try targeting all queues
HaoK ebdb8fe
Skip failing loc test on OSX
HaoK 7b07b52
Update to sdk with helix test failing fix
HaoK c2a8e97
Remove timeout property
HaoK 2481f4e
Remove redhat 6 queue
HaoK adb2adc
Add helix doc
HaoK cb32e22
Tweak doc
HaoK b977eda
Add single retry for dotnet-install.sh
HaoK e8ee21a
Reskip test
HaoK fd495e0
Correctly disable test on OSX
HaoK ed91592
Disable flaky cache tests
HaoK 2d4d068
Disable flaky caching tests
HaoK 75ab547
Disable failing test
HaoK c7f5606
Disable more flaky tests
HaoK da490bb
Fix retry test
HaoK 4a57a13
Disable more failing cache tests
HaoK 5886cbf
Hardcode standard timeout for now
HaoK File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<Project DefaultTargets="Test"> | ||
|
||
<!-- Version included until we get global.json generation to support this SDK. --> | ||
<Sdk Name="Microsoft.DotNet.Helix.Sdk" Version="1.0.0-beta.19057.4" /> | ||
|
||
<Target Name="Gather" BeforeTargets="Test"> | ||
<ItemGroup> | ||
<ProjectsToTest Include="$(ProjectsToTest)" /> | ||
</ItemGroup> | ||
<MSBuild Projects="@(ProjectsToTest)" | ||
Targets="CreateTestPayload" | ||
BuildInParallel="true"> | ||
<Output TaskParameter="TargetOutputs" ItemName="TestPayload" /> | ||
</MSBuild> | ||
<ItemGroup> | ||
<HelixWorkItem Include="%(TestPayload.TestName)"> | ||
<Command>%(TestPayload.Command)</Command> | ||
<PayloadDirectory>%(TestPayload.Identity)</PayloadDirectory> | ||
<Timeout>%(TestPayload.TestTimeout)</Timeout> | ||
</HelixWorkItem> | ||
</ItemGroup> | ||
</Target> | ||
|
||
<PropertyGroup> | ||
<!-- TODO: Follow up with helix SDK --> | ||
<SkipInvalidConfigurations>true</SkipInvalidConfigurations> | ||
<HelixSource>pr/aspnet/extensions</HelixSource> | ||
<HelixType>ci</HelixType> | ||
<HelixBuild>private-$(USERNAME)</HelixBuild> | ||
<HelixBuild Condition=" '$(USERNAME)' == '' ">private-$(USER)</HelixBuild> | ||
<HelixBuild Condition=" '$(CI)' == 'true' ">$(BUILD_BUILDNUMBER)</HelixBuild> | ||
<!-- IsExternal is required for .Open helix queues --> | ||
<IsExternal>true</IsExternal> | ||
HaoK marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<Creator>aspnet-extensions</Creator> | ||
<WaitForWorkItemCompletion Condition=" '$(CI)' == 'true' ">true</WaitForWorkItemCompletion> | ||
|
||
<!-- HelixTargetQueues>Windows.10.Amd64.Open;OSX.1012.Amd64.Open;Ubuntu.1604.Amd64.Open</HelixTargetQueues> --> | ||
<HelixTargetQueues>Windows.10.Amd64.Open;OSX.1012.Amd64.Open;Ubuntu.1604.Amd64.Open;Ubuntu.1810.Amd64.Open;Centos.7.Amd64.Open;Debian.8.Amd64.Open;Debian.9.Amd64.Open;Fedora.27.Amd64.Open;Fedora.28.Amd64.Open;Redhat.7.Amd64.Open;</HelixTargetQueues> | ||
|
||
<!-- | ||
xml file found in the work item working directory. | ||
The following file names are accepted: | ||
testResults.xml | ||
test-results.xml | ||
test_results.xml | ||
--> | ||
<EnableXUnitReporter Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">true</EnableXUnitReporter> | ||
|
||
</PropertyGroup> | ||
</Project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
set target=%1 | ||
set sdkVersion=%2 | ||
set runtimeVersion=%3 | ||
powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -useb 'https://dot.net/v1/dotnet-install.ps1'))) -Version %sdkVersion% -InstallDir %HELIX_CORRELATION_PAYLOAD%\sdk" | ||
powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -useb 'https://dot.net/v1/dotnet-install.ps1'))) -Runtime dotnet -Version %runtimeVersion% -InstallDir %HELIX_CORRELATION_PAYLOAD%\sdk" | ||
set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 | ||
set DOTNET_ROOT="$HELIX_CORRELATION_PAYLOAD/sdk" | ||
set PATH="$DOTNET_ROOT:$PATH" | ||
set DOTNET_MULTILEVEL_LOOKUP=0 | ||
set DOTNET_CLI_HOME="$HELIX_CORRELATION_PAYLOAD/home" | ||
%HELIX_CORRELATION_PAYLOAD%\sdk\dotnet vstest %target% --logger:trx | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bash | ||
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --version $2 --install-dir $HELIX_CORRELATION_PAYLOAD/sdk | ||
if [ $? -ne 0 ]; then | ||
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --version $2 --install-dir $HELIX_CORRELATION_PAYLOAD/sdk | ||
fi | ||
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --runtime dotnet --version $3 --install-dir $HELIX_CORRELATION_PAYLOAD/sdk | ||
if [ $? -ne 0 ]; then | ||
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --runtime dotnet --version $3 --install-dir $HELIX_CORRELATION_PAYLOAD/sdk | ||
fi | ||
|
||
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 | ||
|
||
# Ensures every invocation of dotnet apps uses the same dotnet.exe | ||
export DOTNET_ROOT="$HELIX_CORRELATION_PAYLOAD/sdk" | ||
|
||
# Ensure dotnet comes first on PATH | ||
export PATH="$DOTNET_ROOT:$PATH" | ||
|
||
# Prevent fallback to global .NET locations. This ensures our tests use the shared frameworks we specify and don't rollforward to something else that might be installed on the machine | ||
export DOTNET_MULTILEVEL_LOOKUP=0 | ||
|
||
# Avoid contaminating userprofiles | ||
export DOTNET_CLI_HOME="$HELIX_CORRELATION_PAYLOAD/home" | ||
|
||
$HELIX_CORRELATION_PAYLOAD/sdk/dotnet vstest $1 --logger:trx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
set target=%1 | ||
xunit.console.exe %target% -xml testResults.xml |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.