Commit 6dc65b1 1 parent 2f2d1e6 commit 6dc65b1 Copy full SHA for 6dc65b1
File tree 10 files changed +62
-20
lines changed
Azure/AzureAD/test/FunctionalTests
Identity/test/Identity.FunctionalTests
Security/test/AuthSamples.FunctionalTests
10 files changed +62
-20
lines changed Original file line number Diff line number Diff line change 10
10
jobs :
11
11
- template : jobs/default-build.yml
12
12
parameters :
13
- jobName : Helix
14
- jobDisplayName : ' Tests: Helix'
13
+ jobName : Helix_x64
14
+ jobDisplayName : ' Tests: Helix x64 '
15
15
agentOs : Windows
16
16
timeoutInMinutes : 240
17
17
steps :
25
25
- name : Helix_logs
26
26
path : artifacts/log/
27
27
publishOnError : true
28
+
29
+ # Build Helix ARM64
30
+ - template : jobs/default-build.yml
31
+ parameters :
32
+ jobName : Helix_arm64
33
+ jobDisplayName : " Tests: Helix ARM64"
34
+ agentOs : Linux
35
+ timeoutInMinutes : 240
36
+ steps :
37
+ - script : ./restore.sh -ci
38
+ displayName : Restore
39
+ - script : ./build.sh -ci --arch arm64 -test --no-build-nodejs -projects $(Build.SourcesDirectory)/eng/helix/helix.proj /p:IsHelixJob=true /p:BuildAllProjects=true /p:BuildNative=true -bl
40
+ displayName : Run build.sh helix arm64 target
41
+ env :
42
+ SYSTEM_ACCESSTOKEN : $(System.AccessToken) # We need to set this env var to publish helix results to Azure Dev Ops
43
+ installNodeJs : false
44
+ artifacts :
45
+ - name : Helix_arm64_logs
46
+ path : artifacts/logs/
47
+ publishOnError : true
Original file line number Diff line number Diff line change @@ -9,16 +9,18 @@ if type -P "node" &>/dev/null; then
9
9
fi
10
10
11
11
node_version=$1
12
+ arch=$2
12
13
osname=` uname -s`
13
- echo $osname
14
14
if [ " $osname " = " Darwin" ]; then
15
- platformarch=' darwin-x64 '
15
+ platformarch=" darwin-$arch "
16
16
else
17
- platformarch=' linux-x64 '
17
+ platformarch=" linux-$arch "
18
18
fi
19
+ echo " PlatformArch: $platformarch "
19
20
DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
20
21
output_dir=" $DIR /node"
21
22
url=" http://nodejs.org/dist/v$node_version /node-v$node_version -$platformarch .tar.gz"
23
+ echo " Downloading from: $url "
22
24
tmp=" $( mktemp -d -t install-node.XXXXXX) "
23
25
trap " rm -rf $tmp " EXIT
24
26
cd " $tmp "
Original file line number Diff line number Diff line change @@ -7,17 +7,18 @@ set targetFrameworkIdentifier=%2
7
7
set sdkVersion = %3
8
8
set runtimeVersion = %4
9
9
set helixQueue = %5
10
+ set arch = %6
10
11
11
12
set DOTNET_HOME = %HELIX_CORRELATION_PAYLOAD% \sdk
12
- set DOTNET_ROOT = %DOTNET_HOME% \x64
13
+ set DOTNET_ROOT = %DOTNET_HOME% \%arch%
13
14
set DOTNET_SKIP_FIRST_TIME_EXPERIENCE = 1
14
15
set DOTNET_MULTILEVEL_LOOKUP = 0
15
16
set DOTNET_CLI_HOME = %HELIX_CORRELATION_PAYLOAD% \home
16
17
17
18
set PATH = %DOTNET_ROOT% ;%PATH% ;%HELIX_CORRELATION_PAYLOAD% \node\bin
18
19
19
- powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command " [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -useb 'https://dot.net/v1/dotnet-install.ps1'))) -Architecture x64 -Version %sdkVersion% -InstallDir %DOTNET_ROOT% "
20
- powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command " [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -useb 'https://dot.net/v1/dotnet-install.ps1'))) -Architecture x64 -Runtime dotnet -Version %runtimeVersion% -InstallDir %DOTNET_ROOT% "
20
+ powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command " [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -useb 'https://dot.net/v1/dotnet-install.ps1'))) -Architecture %arch% -Version %sdkVersion% -InstallDir %DOTNET_ROOT% "
21
+ powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command " [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -useb 'https://dot.net/v1/dotnet-install.ps1'))) -Architecture %arch% -Runtime dotnet -Version %runtimeVersion% -InstallDir %DOTNET_ROOT% "
21
22
22
23
set HELIX = %helixQueue%
23
24
Original file line number Diff line number Diff line change 27
27
<PropertyGroup Condition =" '$(ContinuousIntegrationBuild)' == 'true' " >
28
28
<HelixType >ci</HelixType >
29
29
<Creator >aspnetcore</Creator >
30
- <HelixBuild >$(BUILD_BUILDNUMBER).$(SYSTEM_JOBATTEMPT)</HelixBuild >
30
+ <HelixBuild >$(BUILD_BUILDNUMBER).$(TargetArchitecture).$( SYSTEM_JOBATTEMPT)</HelixBuild >
31
31
<WaitForWorkItemCompletion >true</WaitForWorkItemCompletion >
32
32
<EnableAzurePipelinesReporter >true</EnableAzurePipelinesReporter >
33
33
<FailOnMissionControlTestFailure >true</FailOnMissionControlTestFailure >
Original file line number Diff line number Diff line change 10
10
<HelixAvailablePlatform Include =" Windows" />
11
11
<HelixAvailablePlatform Include =" OSX" />
12
12
<HelixAvailablePlatform Include =" Linux" />
13
-
13
+ </ItemGroup >
14
+
15
+ <!-- x64 queues -->
16
+ <ItemGroup Condition =" '$(IsWindowsOnlyTest)' != 'true' AND '$(TargetArchitecture)' == 'x64'" >
14
17
<HelixAvailableTargetQueue Include =" Windows.10.Amd64.ClientRS4.VS2017.Open" Platform =" Windows" />
15
18
<HelixAvailableTargetQueue Include =" Windows.81.Amd64.Open" Platform =" Windows" />
16
19
<HelixAvailableTargetQueue Include =" Windows.7.Amd64.Open" Platform =" Windows" />
23
26
<HelixAvailableTargetQueue Include =" Debian.9.Amd64.Open" Platform =" Linux" />
24
27
<HelixAvailableTargetQueue Include =" Redhat.7.Amd64.Open" Platform =" Linux" />
25
28
<HelixAvailableTargetQueue Include =" (Fedora.28.Amd64.Open)Ubuntu.1604.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:fedora-28-helix-09ca40b-20190508143249" Platform =" Linux" />
26
-
27
- <!-- TODO: re-enable Debian.9.Arm64.Open and Ubuntu.1804.Arm64.Open -->
29
+ </ItemGroup >
30
+
31
+ <ItemGroup Condition =" '$(IsWindowsOnlyTest)' != 'true' AND '$(TargetArchitecture)' == 'arm64'" >
32
+ <!-- arm64 queues -->
33
+ <HelixAvailableTargetQueue Include =" (Debian.9.Arm64.Open)Ubuntu.1604.Arm64.Docker.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-9-helix-arm64v8-0a0ebdd-20190312215438" Platform =" Linux" />
34
+
35
+ <!-- Need to resolve permission issues on this docker queue
36
+ <HelixAvailableTargetQueue Include="(Alpine.38.Arm64)Ubuntu.1604.Arm64.Docker@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.8-helix-arm64v8-46e69dd-20190327215724" Platform="Linux" />
37
+ <HelixAvailableTargetQueue Include="(Ubuntu-1804.Arm64.Open)Ubuntu.1604.Arm64.Docker.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm64v8-6f28fa9-20190606004102" Platform="Linux" />
38
+ -->
28
39
</ItemGroup >
29
40
30
41
<ItemGroup Condition =" '$(IsWindowsOnlyTest)' == 'true'" >
Original file line number Diff line number Diff line change 37
37
</ItemGroup >
38
38
39
39
<ItemGroup Condition =" '$(TestDependsOnNode)' == 'true' AND '$(IsWindowsHelixQueue)' == 'false'" >
40
- <HelixPreCommand Include =" ./installnode.sh $(NodeVersion)" />
40
+ <HelixPreCommand Include =" ./installnode.sh $(NodeVersion) $(TargetArchitecture) " />
41
41
</ItemGroup >
42
42
43
43
<ItemGroup Condition =" '$(TestDependsOnNode)' == 'true' AND '$(IsWindowsHelixQueue)' == 'true'" >
Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ Usage: dotnet msbuild /t:Helix src/MyTestProject.csproj
49
49
50
50
<PropertyGroup >
51
51
<BuildHelixPayload Condition =" '@(_HelixApplicableTargetQueue->Count())' == '0'" >false</BuildHelixPayload >
52
+ <BuildHelixPayload Condition =" '$(TargetArchitecture)' == 'arm64' AND '$(SkipHelixArm)' == 'true'" >false</BuildHelixPayload >
52
53
</PropertyGroup >
53
-
54
54
</Target >
55
55
56
56
<Target Name =" _PublishHelixArchive" DependsOnTargets =" Publish" >
@@ -78,8 +78,8 @@ Usage: dotnet msbuild /t:Helix src/MyTestProject.csproj
78
78
<TestAssembly >$(TargetFileName)</TestAssembly >
79
79
<PreCommands >@(HelixPreCommand)</PreCommands >
80
80
<PostCommands >@(HelixPostCommand)</PostCommands >
81
- <Command Condition =" $(IsWindowsHelixQueue)" >call runtests.cmd $(TargetFileName) $(TargetFrameworkIdentifier) $(NETCoreSdkVersion) $(MicrosoftNETCoreAppRuntimeVersion) $(_HelixFriendlyNameTargetQueue)</Command >
82
- <Command Condition =" !$(IsWindowsHelixQueue)" >./runtests.sh $(TargetFileName) $(NETCoreSdkVersion) $(MicrosoftNETCoreAppRuntimeVersion) $(_HelixFriendlyNameTargetQueue)</Command >
81
+ <Command Condition =" $(IsWindowsHelixQueue)" >call runtests.cmd $(TargetFileName) $(TargetFrameworkIdentifier) $(NETCoreSdkVersion) $(MicrosoftNETCoreAppRuntimeVersion) $(_HelixFriendlyNameTargetQueue) $(TargetArchitecture) </Command >
82
+ <Command Condition =" !$(IsWindowsHelixQueue)" >./runtests.sh $(TargetFileName) $(NETCoreSdkVersion) $(MicrosoftNETCoreAppRuntimeVersion) $(_HelixFriendlyNameTargetQueue) $(TargetArchitecture) </Command >
83
83
<Timeout >$(HelixTimeout)</Timeout >
84
84
</HelixWorkItem >
85
85
</ItemGroup >
Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<TargetFramework >netcoreapp3.0</TargetFramework >
5
+ <!-- Test asset publishing not working on arm64 https://github.com/aspnet/AspNetCore/issues/11205 -->
6
+ <SkipHelixArm >true</SkipHelixArm >
5
7
</PropertyGroup >
6
8
7
9
<ItemGroup >
Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<TargetFramework >netcoreapp3.0</TargetFramework >
5
- </PropertyGroup >
5
+ <!-- Test asset publishing not working on arm64 https://github.com/aspnet/AspNetCore/issues/11205 -->
6
+ <SkipHelixArm >true</SkipHelixArm >
7
+ </PropertyGroup >
6
8
7
9
<ItemGroup >
10
+
8
11
<Compile Include =" ..\..\Extensions.Core\src\Base32.cs" Link =" Infrastructure\Base32.cs" />
9
12
<Compile Include =" ..\..\Extensions.Core\src\Rfc6238AuthenticationService.cs" Link =" Infrastructure\Rfc6238AuthenticationService.cs" />
10
13
</ItemGroup >
46
49
File =" $(PublishDir)\contentroot.sln"
47
50
Lines =" Ignored"
48
51
Overwrite =" true"
49
- Encoding =" Unicode" />
52
+ Encoding =" Unicode" />
50
53
</Target >
51
54
52
55
</Project >
Original file line number Diff line number Diff line change 4
4
<TargetFramework >netcoreapp3.0</TargetFramework >
5
5
<IsSampleProject >false</IsSampleProject >
6
6
<PlatformTarget >AnyCPU</PlatformTarget >
7
+ <!-- Test asset publishing not working on arm64 https://github.com/aspnet/AspNetCore/issues/11205 -->
8
+ <SkipHelixArm >true</SkipHelixArm >
7
9
</PropertyGroup >
8
10
9
11
<Import Project =" $(MvcTestingTargets)" Condition =" '$(MvcTestingTargets)' != ''" />
52
54
DestinationFolder =" $(PublishDir)\ClaimsTransformation\wwwroot" />
53
55
<Copy
54
56
SourceFiles =" @(_cookiesWwwrootFiles)"
55
- DestinationFolder =" $(PublishDir)\Cookies\wwwroot" />
57
+ DestinationFolder =" $(PublishDir)\Cookies\wwwroot" />
56
58
<Copy
57
59
SourceFiles =" @(_customProviderFiles)"
58
60
DestinationFolder =" $(PublishDir)\CustomPolicyProvider\\%(RecursiveDir)" />
68
70
<Copy
69
71
SourceFiles =" @(_staticFiles)"
70
72
DestinationFolder =" $(PublishDir)\StaticFilesAuth\\%(RecursiveDir)" />
73
+
71
74
<!-- Drop a dummy sln to specify content root location -->
72
75
<WriteLinesToFile
73
76
File =" $(PublishDir)\contentroot.sln"
74
77
Lines =" Ignored"
75
78
Overwrite =" true"
76
- Encoding =" Unicode" />
79
+ Encoding =" Unicode" />
77
80
</Target >
78
81
79
82
</Project >
You can’t perform that action at this time.
0 commit comments