Skip to content

Commit cd228bb

Browse files
committed
Switch to 6 agents.
1 parent da5ca3a commit cd228bb

15 files changed

+21
-20
lines changed

build-tools/automation/yaml-templates/setup-test-environment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ parameters:
77
updateVS: false
88
jdkTestFolder: $(JAVA_HOME_11_X64)
99
remove_dotnet: false
10+
installTestSlicer: false
1011

1112
steps:
1213
- checkout: self
@@ -102,4 +103,5 @@ steps:
102103

103104
- template: install-apkdiff.yaml
104105

105-
- template: install-dotnet-test-slicer.yaml
106+
- ${{ if eq(parameters.installTestSlicer, true) }}:
107+
- template: install-dotnet-test-slicer.yaml

build-tools/automation/yaml-templates/stage-msbuild-emulator-tests.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
parameters:
44
job_name: 'mac_dotnetdevice_tests'
5+
agent_count: 6
56
nunit_categories: $(DotNetNUnitCategories)
67
target_framework: $(DotNetStableTargetFramework)
78
provisionatorChannel: latest
@@ -16,8 +17,8 @@ stages:
1617
jobs:
1718
- job: ${{ parameters.job_name }}
1819
strategy:
19-
parallel: 4
20-
displayName: "macOS > Tests > MSBuild+Emulator $(System.JobPositionInPhase)"
20+
parallel: ${{ parameters.agent_count }}
21+
displayName: "macOS > Tests > MSBuild+Emulator"
2122
condition: ${{ parameters.jobCondition }}
2223
pool:
2324
vmImage: $(HostedMacImage)
@@ -30,6 +31,7 @@ stages:
3031
parameters:
3132
provisionClassic: false
3233
provisionatorChannel: ${{ parameters.provisionatorChannel }}
34+
installTestSlicer: true
3335

3436
- template: run-xaprepare.yaml
3537
parameters:

tests/MSBuildDeviceIntegration/Tests/AotProfileTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace Xamarin.Android.Build.Tests
88
{
9-
[Category ("UsesDevice"), Category ("AOT"), Category ("ProfiledAOT"), Category ("Node-3")]
9+
[Category ("UsesDevice"), Category ("AOT"), Category ("ProfiledAOT")]
1010
public class AotProfileTests : DeviceTest
1111
{
1212

tests/MSBuildDeviceIntegration/Tests/BundleToolTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace Xamarin.Android.Build.Tests
1111
{
1212
[TestFixture]
1313
[TestFixtureSource(nameof(FixtureArgs))]
14-
[Category ("Node-1"), Category ("XamarinBuildDownload")]
14+
[Category ("XamarinBuildDownload")]
1515
public class BundleToolTests : DeviceTest
1616
{
1717
static readonly object[] FixtureArgs = {

tests/MSBuildDeviceIntegration/Tests/DebuggingTest.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ int FindTextInFile (string file, string text)
4646
}
4747

4848
[Test]
49-
[Category ("Node-3")]
5049
public void ApplicationRunsWithoutDebugger ([Values (false, true)] bool isRelease, [Values (false, true)] bool extractNativeLibs, [Values (false, true)] bool useEmbeddedDex)
5150
{
5251
AssertHasDevices ();
@@ -84,7 +83,6 @@ public void ApplicationRunsWithoutDebugger ([Values (false, true)] bool isReleas
8483
}
8584

8685
[Test]
87-
[Category ("Node-3")]
8886
public void ClassLibraryMainLauncherRuns ([Values (true, false)] bool preloadAssemblies)
8987
{
9088
AssertHasDevices ();
@@ -169,7 +167,7 @@ public void ClassLibraryMainLauncherRuns ([Values (true, false)] bool preloadAss
169167
};
170168
#pragma warning restore 414
171169

172-
[Test, Category ("Debugger"), Category ("Node-4")]
170+
[Test, Category ("Debugger")]
173171
[TestCaseSource (nameof (DebuggerCustomAppTestCases))]
174172
[Retry(5)]
175173
public void CustomApplicationRunsWithDebuggerAndBreaks (bool embedAssemblies, string fastDevType, bool activityStarts)
@@ -347,7 +345,7 @@ public override void OnCreate ()
347345
};
348346
#pragma warning restore 414
349347

350-
[Test, Category ("SmokeTests"), Category ("Debugger"), Category ("Node-4")]
348+
[Test, Category ("SmokeTests"), Category ("Debugger")]
351349
[TestCaseSource (nameof(DebuggerTestCases))]
352350
[Retry (5)]
353351
public void ApplicationRunsWithDebuggerAndBreaks (bool embedAssemblies, string fastDevType, bool allowDeltaInstall, string username, string debugType)

tests/MSBuildDeviceIntegration/Tests/DeleteBinObjTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace Xamarin.Android.Build.Tests
77
{
88
[TestFixture]
9-
[Category ("DotNetIgnore"), Category ("Node-1")] // .csproj files are legacy projects that won't build under dotnet
9+
[Category ("DotNetIgnore")] // .csproj files are legacy projects that won't build under dotnet
1010
public class DeleteBinObjTest : DeviceTest
1111
{
1212
const string BaseUrl = "https://github.com/dellis1972/xamarin-android-unittest-files/blob/main/";

tests/MSBuildDeviceIntegration/Tests/DeploymentTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
namespace Xamarin.Android.Build.Tests
2121
{
2222
[TestFixture]
23-
[Category ("UsesDevice"), Category ("Node-2")]
23+
[Category ("UsesDevice")]
2424
[NonParallelizable]
2525
public class DeploymentTest : DeviceTest {
2626

tests/MSBuildDeviceIntegration/Tests/InstallAndRunTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace Xamarin.Android.Build.Tests
99
{
1010
[TestFixture]
11-
[Category ("UsesDevice"), Category ("Node-2")]
11+
[Category ("UsesDevice")]
1212
public class InstallAndRunTests : DeviceTest
1313
{
1414
static ProjectBuilder builder;

tests/MSBuildDeviceIntegration/Tests/InstallTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Xamarin.Android.Build.Tests
1313
{
1414
[TestFixture]
15-
[Category ("Commercial"), Category ("UsesDevice"), Category ("Node-1")]
15+
[Category ("Commercial"), Category ("UsesDevice")]
1616
public class InstallTests : DeviceTest
1717
{
1818
string GetContentFromAllOverrideDirectories (string packageName, bool useRunAsCommand = true)

tests/MSBuildDeviceIntegration/Tests/InstantRunTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace Xamarin.Android.Build.Tests
88
{
99
[TestFixture]
10-
[Category ("Commercial"), Category ("UsesDevice"), Category ("Node-3")]
10+
[Category ("Commercial"), Category ("UsesDevice")]
1111
public class InstantRunTest : DeviceTest
1212
{
1313
[Test]

0 commit comments

Comments
 (0)