Skip to content

Commit 871b804

Browse files
Daily build and smoke test improvements (Azure#15577)
* Retry Az.Maintenance in smoke test * Update daily-build.yml * Update .azure-pipelines/daily-build.yml Co-authored-by: Beisi Zhou <[email protected]> * Update RmCoreSmokeTests.ps1 * Update daily-build.yml Co-authored-by: Beisi Zhou <[email protected]>
1 parent db2c910 commit 871b804

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.azure-pipelines/daily-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Please don't use ADO UI defined scheduled triggers because it takes precedence over YAML scheduled triggers.
22
# https://docs.microsoft.com/en-us/azure/devops/pipelines/process/scheduled-triggers
33
schedules:
4-
- cron: "0 0 * * *"
5-
displayName: Daily Midnight Build
4+
- cron: "0 18 * * *"
5+
displayName: 2:00 AM (UTC + 8:00) China Daily Build
66
branches:
77
include:
88
- main
@@ -153,4 +153,4 @@ jobs:
153153
inputs:
154154
artifactName: artifacts
155155
targetPath: artifacts
156-
condition: succeededOrFailed()
156+
condition: succeededOrFailed()

tools/Test/SmokeTest/RmCoreSmokeTests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ $resourceTestCommands = @(
121121
@{Name = "Az.Kusto"; Command = {Get-AzKustoCluster -ErrorAction Stop}},
122122
@{Name = "Az.LogicApp"; Command = {Get-AzIntegrationAccount -ErrorAction Stop}},
123123
@{Name = "Az.MachineLearning"; Command = {Get-AzMlWebService -ErrorAction Stop}},
124-
@{Name = "Az.Maintenance"; Command = {Get-AzMaintenanceConfiguration -ErrorAction Stop}},
124+
@{Name = "Az.Maintenance"; Command = {Retry-AzCommand -Command "Get-AzMaintenanceConfiguration -ErrorAction Stop" -RetryCount 30 -Sleep 30}},
125125
@{Name = "Az.ManagedServices"; Command = {Get-AzManagedServicesAssignment -ErrorAction Stop}},
126126
# Machine learning compute cmdlets are removed. The following line are to be commented until they are brought back
127127
# @{Name = "Az.MachineLearning [Compute]"; Command = {Get-AzMlOpCluster -ErrorAction Stop}},
@@ -131,7 +131,7 @@ $resourceTestCommands = @(
131131
@{Name = "Az.Network"; Command = {Get-AzNetworkInterface -ErrorAction Stop}},
132132
@{Name = "Az.NotificationHubs"; Command = {Get-AzNotificationHubsNamespace -ErrorAction Stop}},
133133
@{Name = "Az.OperationalInsights"; Command = {Get-AzOperationalInsightsWorkspace -ErrorAction Stop}},
134-
@{Name = "Az.PolicyInsights"; Command = {Get-AzPolicyEvent -ErrorAction Stop}},
134+
@{Name = "Az.PolicyInsights"; Command = {Get-AzPolicyEvent -Top 10 -ErrorAction Stop}}, # without -Top service may return 400: ResponseTooLarge
135135
@{Name = "Az.PowerBIEmbedded"; Command = {Get-AzPowerBIEmbeddedCapacity -ErrorAction Stop}},
136136
@{Name = "Az.PowerBIUEmbedded"; Command = {Get-AzPowerBIWorkspaceCollection -ErrorAction Stop}},
137137
@{Name = "Az.PrivateDns"; Command = {Get-AzPrivateDnsZone -ErrorAction Stop}},
@@ -210,4 +210,4 @@ if ($testInfo.FailedTests.Count -gt 0)
210210

211211
# Resolve-AzError
212212
# $DebugPreference = $oldDebug
213-
# $VerbosePreference = $oldVerbose
213+
# $VerbosePreference = $oldVerbose

0 commit comments

Comments
 (0)