Skip to content

Commit a4d18f4

Browse files
authored
Merge pull request #1693 from AzureAD/fadi/ci-repair
Work to get 2 MSAL Automation pipelines to green
2 parents 11b3049 + c4decdd commit a4d18f4

File tree

16 files changed

+48
-19
lines changed

16 files changed

+48
-19
lines changed

azure-pipelines/ui-automation/msal-broker-BrokerHost-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ parameters:
4545
- name: testTargetPackages
4646
displayName: Packages as Test Targets
4747
type: string
48-
default: package com.microsoft.identity.client.msal.automationapp.testpass.broker
48+
default: package com.microsoft.identity.client.msal.automationapp.testpass.broker, notAnnotation org.junit.Ignore
4949
- name: oldBrokerHostVersion
5050
displayName: Old Broker host Version
5151
type: string

azure-pipelines/ui-automation/msal-broker-ProdBroker-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ parameters:
4545
- name: testTargetPackages
4646
displayName: Packages as Test Targets
4747
type: string
48-
default: package com.microsoft.identity.client.msal.automationapp.testpass.broker
48+
default: package com.microsoft.identity.client.msal.automationapp.testpass.broker, notAnnotation org.junit.Ignore
4949
- name: oldBrokerHostVersion
5050
displayName: Old Broker host Version
5151
type: string

azure-pipelines/ui-automation/msal-local-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ parameters:
4545
- name: testTargetPackages
4646
displayName: Packages as Test Targets
4747
type: string
48-
default: package com.microsoft.identity.client.msal.automationapp.testpass.msalonly, package com.microsoft.identity.client.msal.automationapp.testpass.b2c
48+
default: package com.microsoft.identity.client.msal.automationapp.testpass.msalonly, package com.microsoft.identity.client.msal.automationapp.testpass.b2c, notAnnotation org.junit.Ignore
4949

5050
variables:
5151
engineeringProjectId: 'fac9d424-53d2-45c0-91b5-ef6ba7a6bf26'
Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
11
flank:
2-
## Max Test Shards
3-
# test shards - the amount of groups to split the test suite into
4-
# set to -1 to use one shard per test. default: 1
2+
## Max Test Shards
3+
# test shards - the amount of groups to split the test suite into
4+
# set to -1 to use one shard per test. default: 1
55
max-test-shards: 5
66

7-
## Number of Test Runs
8-
# test runs - the amount of times to run the tests.
9-
# 1 runs the tests once. 10 runs all the tests 10x
7+
## Number of Test Runs
8+
# test runs - the amount of times to run the tests.
9+
# 1 runs the tests once. 10 runs all the tests 10x
1010
num-test-runs: 1
1111

12-
## Use Average Test Time for New Tests flag
13-
# Enable using average time from previous tests duration when using SmartShard and tests did not run before.
14-
# Default: false
12+
## Use Average Test Time for New Tests flag
13+
# Enable using average time from previous tests duration when using SmartShard and tests did not run before.
14+
# Default: false
1515
use-average-test-time-for-new-tests: true
1616

17-
## Local Results Directory
18-
# Local folder to store the test result. Folder is DELETED before each run to ensure only artifacts from the new run are saved.
19-
local-result-dir: flank
17+
## Local Results Directory
18+
# Local folder to store the test result. Folder is DELETED before each run to ensure only artifacts from the new run are saved.
19+
local-result-dir: flank
20+
21+
## Output Style flag
22+
# Output style of execution status. May be one of [verbose, multi, single, compact].
23+
# For runs with only one test execution the default value is 'verbose', in other cases
24+
# 'multi' is used as the default. The output style 'multi' is not displayed correctly on consoles
25+
# which don't support ansi codes, to avoid corrupted output use single or verbose.
26+
# The output style `compact` is used to produce less detailed output, it prints just Args, test and matrix count, weblinks, cost, and result reports.
27+
output-style: single

msalautomationapp/src/androidTest/java/com/microsoft/identity/client/msal/automationapp/testpass/broker/brokerapi/TestCase1561137.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import com.microsoft.identity.client.msal.automationapp.sdk.MsalSdk;
3030
import com.microsoft.identity.client.msal.automationapp.testpass.broker.AbstractMsalBrokerTest;
3131
import com.microsoft.identity.client.ui.automation.TokenRequestTimeout;
32+
import com.microsoft.identity.client.ui.automation.annotations.RetryOnFailure;
3233
import com.microsoft.identity.client.ui.automation.annotations.SupportedBrokers;
3334
import com.microsoft.identity.client.ui.automation.broker.BrokerHost;
3435
import com.microsoft.identity.client.ui.automation.interaction.OnInteractionRequired;
@@ -44,6 +45,7 @@
4445
// Remove Broker Account
4546
// https://identitydivision.visualstudio.com/Engineering/_workitems/edit/1561137
4647
@SupportedBrokers(brokers = BrokerHost.class)
48+
@RetryOnFailure(retryCount = 2)
4749
public class TestCase1561137 extends AbstractMsalBrokerTest {
4850
@Test
4951
public void test_1561137() throws Throwable {

msalautomationapp/src/androidTest/java/com/microsoft/identity/client/msal/automationapp/testpass/broker/crosscloud/TestCase1420494.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import com.microsoft.identity.client.msal.automationapp.testpass.broker.AbstractGuestAccountMsalBrokerUiTest;
3434
import com.microsoft.identity.client.ui.automation.TestContext;
3535
import com.microsoft.identity.client.ui.automation.TokenRequestTimeout;
36+
import com.microsoft.identity.client.ui.automation.annotations.RetryOnFailure;
3637
import com.microsoft.identity.client.ui.automation.constants.GlobalConstants;
3738
import com.microsoft.identity.client.ui.automation.interaction.OnInteractionRequired;
3839
import com.microsoft.identity.client.ui.automation.interaction.PromptHandlerParameters;
@@ -55,6 +56,7 @@
5556

5657
// Acquire token for cross cloud guest account (with broker)
5758
// https://identitydivision.visualstudio.com/DefaultCollection/IDDP/_workitems/edit/1420494
59+
@RetryOnFailure(retryCount = 2)
5860
@RunWith(Parameterized.class)
5961
public class TestCase1420494 extends AbstractGuestAccountMsalBrokerUiTest {
6062

msalautomationapp/src/androidTest/java/com/microsoft/identity/client/msal/automationapp/testpass/broker/crosscloud/TestCase1592468.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import com.microsoft.identity.client.msal.automationapp.sdk.MsalSdk;
3333
import com.microsoft.identity.client.msal.automationapp.testpass.broker.AbstractGuestAccountMsalBrokerUiTest;
3434
import com.microsoft.identity.client.ui.automation.TokenRequestTimeout;
35+
import com.microsoft.identity.client.ui.automation.annotations.RetryOnFailure;
3536
import com.microsoft.identity.client.ui.automation.constants.GlobalConstants;
3637
import com.microsoft.identity.client.ui.automation.interaction.OnInteractionRequired;
3738
import com.microsoft.identity.client.ui.automation.interaction.PromptHandlerParameters;
@@ -57,6 +58,7 @@
5758

5859
// Acquire token from cross cloud when Device CA is required (via PKeyAuth)
5960
// https://identitydivision.visualstudio.com/DefaultCollection/IDDP/_workitems/edit/1592468
61+
@RetryOnFailure(retryCount = 2)
6062
@RunWith(Parameterized.class)
6163
public class TestCase1592468 extends AbstractGuestAccountMsalBrokerUiTest {
6264

msalautomationapp/src/androidTest/java/com/microsoft/identity/client/msal/automationapp/testpass/broker/flw/TestCase833513.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import com.microsoft.identity.client.exception.MsalException;
3232
import com.microsoft.identity.client.msal.automationapp.R;
3333
import com.microsoft.identity.client.msal.automationapp.testpass.broker.AbstractMsalBrokerTest;
34+
import com.microsoft.identity.client.ui.automation.annotations.RetryOnFailure;
3435
import com.microsoft.identity.client.ui.automation.annotations.SupportedBrokers;
3536
import com.microsoft.identity.client.ui.automation.broker.BrokerHost;
3637
import com.microsoft.identity.client.ui.automation.broker.BrokerMicrosoftAuthenticator;
@@ -50,10 +51,12 @@
5051
import org.junit.Test;
5152

5253
import java.util.Arrays;
54+
import java.util.concurrent.TimeUnit;
5355

5456
// End My Shift - In Shared device mode, only account from the same tenant should be able to acquire token.
5557
// https://identitydivision.visualstudio.com/DevEx/_workitems/edit/833513
5658
@SupportedBrokers(brokers = {BrokerMicrosoftAuthenticator.class, BrokerHost.class})
59+
@RetryOnFailure(retryCount = 2)
5760
public class TestCase833513 extends AbstractMsalBrokerTest {
5861

5962
@Test
@@ -119,7 +122,7 @@ public void test_833513() throws MsalException, InterruptedException, LabApiExce
119122

120123
// expecting error in WebView now
121124
final UiObject errMsg = UiAutomatorUtils.obtainUiObjectWithText("AADSTS50020");
122-
Assert.assertTrue(errMsg.exists());
125+
Assert.assertTrue(errMsg.waitForExists(TimeUnit.MINUTES.toMillis(1)));
123126
}
124127

125128
@Override

msalautomationapp/src/androidTest/java/com/microsoft/identity/client/msal/automationapp/testpass/broker/flw/TestCase833514.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import com.microsoft.identity.client.msal.automationapp.testpass.broker.AbstractMsalBrokerTest;
3737
import com.microsoft.identity.client.ui.automation.TokenRequestLatch;
3838
import com.microsoft.identity.client.ui.automation.TokenRequestTimeout;
39+
import com.microsoft.identity.client.ui.automation.annotations.RetryOnFailure;
3940
import com.microsoft.identity.client.ui.automation.annotations.SupportedBrokers;
4041
import com.microsoft.identity.client.ui.automation.app.AzureSampleApp;
4142
import com.microsoft.identity.client.ui.automation.broker.BrokerHost;
@@ -58,6 +59,7 @@
5859
// End My Shift - In Shared device mode, an account signed in through App A can be used by App B.
5960
// https://identitydivision.visualstudio.com/DevEx/_workitems/edit/833514
6061
@SupportedBrokers(brokers = {BrokerMicrosoftAuthenticator.class, BrokerHost.class})
62+
@RetryOnFailure(retryCount = 2)
6163
public class TestCase833514 extends AbstractMsalBrokerTest {
6264

6365
@Test

0 commit comments

Comments
 (0)