Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ jobs:

- job: TestRpmPackagesAzureLinux
displayName: Test Rpm Package
timeoutInMinutes: 120
timeoutInMinutes: 180
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Rpm Package Azure Linux 3.0 AMD64 fails with
##[error]The job running on agent pool-ubuntu-2004 38 ran longer than the maximum time of 120 minutes. For more information, see https://go.microsoft.com/fwlink/?linkid=2077134

dependsOn:
- BuildRpmPackagesAzureLinux
- ExtractMetadata
Expand Down Expand Up @@ -855,7 +855,7 @@ jobs:

- job: TestRpmPackage
displayName: Test Rpm Package
timeoutInMinutes: 120
timeoutInMinutes: 180
dependsOn:
- BuildRpmPackages
- ExtractMetadata
Expand Down Expand Up @@ -979,7 +979,7 @@ jobs:
ArtifactName: $(deb_system)-$(distro)-$(arch)

- job: TestDebPackages
timeoutInMinutes: 120
timeoutInMinutes: 180
displayName: Test Deb Packages
dependsOn:
- BuildDebPackages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

from azure.cli.testsdk import ScenarioTest, StorageAccountPreparer, ResourceGroupPreparer, record_only
from azure.cli.testsdk import ScenarioTest, StorageAccountPreparer, ResourceGroupPreparer, record_only, live_only


class AcrAgentPoolCommandsTests(ScenarioTest):

@live_only()
@ResourceGroupPreparer()
def test_acr_agentpool(self, resource_group):
# Agentpool prerequisites for agentpool testing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

from azure.cli.testsdk import ScenarioTest, StorageAccountPreparer, ResourceGroupPreparer, record_only
from azure.cli.testsdk import ScenarioTest, StorageAccountPreparer, ResourceGroupPreparer, record_only, live_only


class AcrConnectedRegistryCommandsTests(ScenarioTest):

@live_only()
@ResourceGroupPreparer()
def test_acr_connectedregistry(self, resource_group):
# Agentpool prerequisites for connected registry testing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ def test_aks_api_server_authorized_ip_ranges(self, resource_group, resource_grou
# delete
self.cmd('aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()])

@live_only()
Copy link
Member

@FumingZhang FumingZhang Oct 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's fine to disable the test, but I would like to know how it failed. Are there any examples of failed CI?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2024-10-17T03:54:44.2162672Z _ AzureKubernetesServiceScenarioTest.test_aks_create_and_update_with_http_proxy_config _
2024-10-17T03:54:44.2163274Z [gw7] linux -- Python 3.11.8 /opt/az/bin/python3
2024-10-17T03:54:44.2163629Z self = <azure.cli.testsdk.base.ExecutionResult object at 0xffffadd9fbd0>
2024-10-17T03:54:44.2164298Z cli_ctx = <azure.cli.core.mock.DummyCli object at 0xffffb4fc6050>
2024-10-17T03:54:44.2165070Z command = 'aks create --resource-group=clitest000001 --name=cliakstest000002 --http-proxy-config=/opt/az/lib/python3.11/site-pac...0/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/cliakstest000002/subnets/aks-subnet -o json'
2024-10-17T03:54:44.2165605Z expect_failure = False
2024-10-17T03:54:44.2165721Z 
2024-10-17T03:54:44.2166018Z     def _in_process_execute(self, cli_ctx, command, expect_failure=False):
2024-10-17T03:54:44.2166340Z         from io import StringIO
2024-10-17T03:54:44.2166654Z         from vcr.errors import CannotOverwriteExistingCassetteException
2024-10-17T03:54:44.2166935Z     
2024-10-17T03:54:44.2167255Z         if command.startswith('az '):
2024-10-17T03:54:44.2167540Z             command = command[3:]
2024-10-17T03:54:44.2167778Z     
2024-10-17T03:54:44.2168022Z         stdout_buf = StringIO()
2024-10-17T03:54:44.2168297Z         logging_buf = StringIO()
2024-10-17T03:54:44.2168600Z         try:
2024-10-17T03:54:44.2168913Z             # issue: stderr cannot be redirect in this form, as a result some failure information
2024-10-17T03:54:44.2169260Z             # is lost when command fails.
2024-10-17T03:54:44.2169600Z >           self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
2024-10-17T03:54:44.2169779Z 
2024-10-17T03:54:44.2170172Z /opt/az/lib/python3.11/site-packages/azure/cli/testsdk/base.py:302: 
2024-10-17T03:54:44.2170528Z _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
2024-10-17T03:54:44.2170964Z /opt/az/lib/python3.11/site-packages/knack/cli.py:245: in invoke
2024-10-17T03:54:44.2171300Z     exit_code = self.exception_handler(ex)
2024-10-17T03:54:44.2171767Z /opt/az/lib/python3.11/site-packages/azure/cli/core/__init__.py:129: in exception_handler
2024-10-17T03:54:44.2172125Z     return handle_exception(ex)
2024-10-17T03:54:44.2172431Z _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
2024-10-17T03:54:44.2172579Z 
2024-10-17T03:54:44.2173245Z ex = ResourceNotFoundError("(SubscriptionNotFound) The subscription '00000000-0000-0000-0000-000000000000' could not be found.\nCode: SubscriptionNotFound\nMessage: The subscription '00000000-0000-0000-0000-000000000000' could not be found.")
2024-10-17T03:54:44.2173736Z args = (), kwargs = {}
2024-10-17T03:54:44.2173849Z 
2024-10-17T03:54:44.2174264Z     def _handle_main_exception(ex, *args, **kwargs):  # pylint: disable=unused-argument
2024-10-17T03:54:44.2174642Z         if isinstance(ex, CannotOverwriteExistingCassetteException):
2024-10-17T03:54:44.2175021Z             # This exception usually caused by a no match HTTP request. This is a product error
2024-10-17T03:54:44.2175371Z             # that is caused by change of SDK invocation.
2024-10-17T03:54:44.2175646Z             raise ex
2024-10-17T03:54:44.2175879Z     
2024-10-17T03:54:44.2176132Z >       raise CliExecutionError(ex)
2024-10-17T03:54:44.2176532Z E       azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception ResourceNotFoundError during execution and fails the command.
2024-10-17T03:54:44.2176764Z 
2024-10-17T03:54:44.2177181Z /opt/az/lib/python3.11/site-packages/azure/cli/testsdk/patches.py:35: CliExecutionError
2024-10-17T03:54:44.2177568Z 
2024-10-17T03:54:44.2177869Z During handling of the above exception, another exception occurred:
2024-10-17T03:54:44.2178033Z 
2024-10-17T03:54:44.2178433Z self = <command_modules.acs.tests.latest.test_aks_commands.AzureKubernetesServiceScenarioTest testMethod=test_aks_create_and_update_with_http_proxy_config>
2024-10-17T03:54:44.2178984Z resource_group = 'clitest000001', resource_group_location = 'westus2'
2024-10-17T03:54:44.2179271Z 
2024-10-17T03:54:44.2179522Z     @AllowLargeResponse()
2024-10-17T03:54:44.2180000Z     @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2')
2024-10-17T03:54:44.2180448Z     def test_aks_create_and_update_with_http_proxy_config(self, resource_group, resource_group_location):
2024-10-17T03:54:44.2181041Z         aks_name = self.create_random_name('cliakstest', 16)
2024-10-17T03:54:44.2181355Z         self.kwargs.update({
2024-10-17T03:54:44.2181716Z             'resource_group': resource_group,
2024-10-17T03:54:44.2182060Z             'name': aks_name,
2024-10-17T03:54:44.2182652Z             'http_proxy_path': get_test_data_file_path('httpproxyconfig.json').replace('\\', '\\\\'),
2024-10-17T03:54:44.2183168Z             'custom_data_path': get_test_data_file_path('setup_proxy.sh').replace('\\', '\\\\'),
2024-10-17T03:54:44.2183781Z             'ssh_key_value': self.generate_ssh_keys()
2024-10-17T03:54:44.2184068Z         })
2024-10-17T03:54:44.2184283Z     
2024-10-17T03:54:44.2184618Z         create_vnet_cmd = 'network vnet create \
2024-10-17T03:54:44.2184995Z             --resource-group={resource_group} \
2024-10-17T03:54:44.2185322Z             --name={name} \
2024-10-17T03:54:44.2185674Z             --address-prefixes 10.42.0.0/16 \
2024-10-17T03:54:44.2186029Z             --subnet-name aks-subnet \
2024-10-17T03:54:44.2186377Z             --subnet-prefix 10.42.1.0/24'
2024-10-17T03:54:44.2186625Z     
2024-10-17T03:54:44.2186985Z         create_subnet_cmd = 'network vnet subnet create \
2024-10-17T03:54:44.2187373Z             --resource-group={resource_group} \
2024-10-17T03:54:44.2187713Z             --vnet-name={name} \
2024-10-17T03:54:44.2188052Z             --name proxy-subnet \
2024-10-17T03:54:44.2188406Z             --address-prefix 10.42.3.0/24'
2024-10-17T03:54:44.2188859Z             # --default-outbound false  # disable outbound connection would fail cluster creation
2024-10-17T03:54:44.2189165Z     
2024-10-17T03:54:44.2189503Z         show_subnet_cmd = 'network vnet subnet show \
2024-10-17T03:54:44.2189871Z             --resource-group={resource_group} \
2024-10-17T03:54:44.2190214Z             --vnet-name={name} \
2024-10-17T03:54:44.2190545Z             --name aks-subnet'
2024-10-17T03:54:44.2190784Z     
2024-10-17T03:54:44.2191083Z         # name below MUST match the name used in testcerts for httpproxyconfig.json.
2024-10-17T03:54:44.2191450Z         # otherwise the VM will not present a cert with correct hostname
2024-10-17T03:54:44.2191794Z         # else, change the cert to have the correct hostname (harder)
2024-10-17T03:54:44.2192181Z         create_vm_cmd = 'vm create \
2024-10-17T03:54:44.2192541Z             --resource-group={resource_group} \
2024-10-17T03:54:44.2192893Z             --name=cli-proxy-vm \
2024-10-17T03:54:44.2193345Z             --image Canonical:0001-com-ubuntu-server-focal:20_04-lts:latest \
2024-10-17T03:54:44.2193783Z             --ssh-key-values @{ssh_key_value} \
2024-10-17T03:54:44.2194137Z             --public-ip-address "" \
2024-10-17T03:54:44.2194496Z             --custom-data {custom_data_path} \
2024-10-17T03:54:44.2194845Z             --vnet-name {name} \
2024-10-17T03:54:44.2195172Z             --subnet proxy-subnet'
2024-10-17T03:54:44.2195416Z     
2024-10-17T03:54:44.2195685Z         self.cmd(create_vnet_cmd, checks=[
2024-10-17T03:54:44.2196077Z             self.check('newVNet.provisioningState', 'Succeeded')
2024-10-17T03:54:44.2196353Z         ])
2024-10-17T03:54:44.2196575Z     
2024-10-17T03:54:44.2196832Z         self.cmd(create_subnet_cmd, checks=[
2024-10-17T03:54:44.2197416Z             self.check('provisioningState', 'Succeeded')
2024-10-17T03:54:44.2197700Z         ])
2024-10-17T03:54:44.2197917Z     
2024-10-17T03:54:44.2198199Z         subnet_output = self.cmd(show_subnet_cmd).get_output_in_json()
2024-10-17T03:54:44.2198515Z         subnet_id = subnet_output["id"]
2024-10-17T03:54:44.2198791Z         assert subnet_id is not None
2024-10-17T03:54:44.2199031Z     
2024-10-17T03:54:44.2199271Z         self.cmd(create_vm_cmd)
2024-10-17T03:54:44.2199516Z     
2024-10-17T03:54:44.2199752Z         self.kwargs.update({
2024-10-17T03:54:44.2200088Z             'vnet_subnet_id': subnet_id,
2024-10-17T03:54:44.2200349Z         })
2024-10-17T03:54:44.2200690Z     
2024-10-17T03:54:44.2201001Z         # use custom feature so it does not require subscription to regiter the feature
2024-10-17T03:54:44.2201544Z         create_cmd = 'aks create --resource-group={resource_group} --name={name} --http-proxy-config={http_proxy_path} ' \
2024-10-17T03:54:44.2202129Z                      '--ssh-key-value={ssh_key_value} --enable-managed-identity --yes --vnet-subnet-id {vnet_subnet_id} -o json'
2024-10-17T03:54:44.2202461Z     
2024-10-17T03:54:44.2202720Z >       self.cmd(create_cmd, checks=[
2024-10-17T03:54:44.2203089Z             self.check('httpProxyConfig.httpProxy',
2024-10-17T03:54:44.2205586Z                        'http://cli-proxy-vm:3128/'),
2024-10-17T03:54:44.2206133Z             self.check('httpProxyConfig.httpsProxy',
2024-10-17T03:54:44.2206573Z                        'https://cli-proxy-vm:3129/'),
2024-10-17T03:54:44.2211201Z             self.check('httpProxyConfig.trustedCa', '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zM0pxTEUvVSt4dXhRdHZHOHZHMXlES0hIU1pxUzJoL1dzNGw0Ck5pQXNoSGdlaFFEUEJjWTl3WVl6ZkJnWnBPVU16ZERmNTB4K0ZTbFk0M1dPSkp6U3VRaDR5WjArM2t5Z3VDRjgKcm5NTFNjZXlTNGNpNExtSi9LQ1N1R2RmNlhWWXo4QkU5Z2pqanBDUDZxeTBVbFJlZldzL2lnL3djSysyYkYxVApuL1l2KzZnWGVDVEhKNzVxRElQbHA3RFJVVWswZmJNajRiSWthb2dXV2s0emYydThteFpMYTBsZVBLTktaTi9tCkdDdkZ3cjNlaSt1LzhjenA1RjdUCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K')
2024-10-17T03:54:44.2214308Z         ])
2024-10-17T03:54:44.2214410Z 
2024-10-17T03:54:44.2214880Z /opt/az/lib/python3.11/site-packages/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py:608: 
2024-10-17T03:54:44.2215279Z _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
2024-10-17T03:54:44.2215730Z /opt/az/lib/python3.11/site-packages/azure/cli/testsdk/base.py:176: in cmd
2024-10-17T03:54:44.2216139Z     return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
2024-10-17T03:54:44.2216647Z /opt/az/lib/python3.11/site-packages/azure/cli/testsdk/base.py:251: in __init__
2024-10-17T03:54:44.2217042Z     self._in_process_execute(cli_ctx, command, expect_failure=expect_failure)
2024-10-17T03:54:44.2217657Z /opt/az/lib/python3.11/site-packages/azure/cli/testsdk/base.py:314: in _in_process_execute
2024-10-17T03:54:44.2218002Z     raise ex.exception
2024-10-17T03:54:44.2218395Z /opt/az/lib/python3.11/site-packages/knack/cli.py:233: in invoke
2024-10-17T03:54:44.2218738Z     cmd_result = self.invocation.execute(args)
2024-10-17T03:54:44.2219201Z /opt/az/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py:666: in execute
2024-10-17T03:54:44.2219520Z     raise ex
2024-10-17T03:54:44.2219966Z /opt/az/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py:733: in _run_jobs_serially
2024-10-17T03:54:44.2220355Z     results.append(self._run_job(expanded_arg, cmd_copy))
2024-10-17T03:54:44.2220824Z /opt/az/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py:703: in _run_job
2024-10-17T03:54:44.2221163Z     result = cmd_copy(params)
2024-10-17T03:54:44.2221612Z /opt/az/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py:336: in __call__
2024-10-17T03:54:44.2221967Z     return self.handler(*args, **kwargs)
2024-10-17T03:54:44.2222439Z /opt/az/lib/python3.11/site-packages/azure/cli/core/commands/command_operation.py:121: in handler
2024-10-17T03:54:44.2222800Z     return op(**command_args)
2024-10-17T03:54:44.2223258Z /opt/az/lib/python3.11/site-packages/azure/cli/command_modules/acs/custom.py:679: in aks_create
2024-10-17T03:54:44.2223802Z     return aks_create_decorator.create_mc(mc)
2024-10-17T03:54:44.2224151Z _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
2024-10-17T03:54:44.2224290Z 
2024-10-17T03:54:44.2224643Z self = <azure.cli.command_modules.acs.managed_cluster_decorator.AKSManagedClusterCreateDecorator object at 0xffffad12f190>
2024-10-17T03:54:44.2225121Z mc = <azure.mgmt.containerservice.v2024_08_01.models._models_py3.ManagedCluster object at 0xffffad2d94d0>
2024-10-17T03:54:44.2225315Z 
2024-10-17T03:54:44.2225694Z     def create_mc(self, mc: ManagedCluster) -> ManagedCluster:
2024-10-17T03:54:44.2226041Z         """Send request to create a real managed cluster.
2024-10-17T03:54:44.2226308Z     
2024-10-17T03:54:44.2226575Z         :return: the ManagedCluster object
2024-10-17T03:54:44.2226831Z         """
2024-10-17T03:54:44.2227085Z         self._ensure_mc(mc)
2024-10-17T03:54:44.2227330Z     
2024-10-17T03:54:44.2227611Z         # Due to SPN replication latency, we do a few retries here
2024-10-17T03:54:44.2227901Z         max_retry = 30
2024-10-17T03:54:44.2228155Z         error_msg = ""
2024-10-17T03:54:44.2228419Z         for _ in range(0, max_retry):
2024-10-17T03:54:44.2228673Z             try:
2024-10-17T03:54:44.2228931Z                 cluster = self.put_mc(mc)
2024-10-17T03:54:44.2229206Z                 return cluster
2024-10-17T03:54:44.2229518Z             # CloudError was raised before, but since the adoption of track 2 SDK,
2024-10-17T03:54:44.2229857Z             # HttpResponseError would be raised instead
2024-10-17T03:54:44.2230163Z             except HttpResponseError as ex:
2024-10-17T03:54:44.2230442Z                 error_msg = str(ex)
2024-10-17T03:54:44.2230744Z                 if "not found in Active Directory tenant" in ex.message:
2024-10-17T03:54:44.2231046Z                     time.sleep(3)
2024-10-17T03:54:44.2231480Z                 else:
2024-10-17T03:54:44.2231759Z >                   raise map_azure_error_to_cli_error(ex)
2024-10-17T03:54:44.2232367Z E                   azure.cli.core.azclierror.ResourceNotFoundError: (SubscriptionNotFound) The subscription '00000000-0000-0000-0000-000000000000' could not be found.
2024-10-17T03:54:44.2232780Z E                   Code: SubscriptionNotFound
2024-10-17T03:54:44.2233241Z E                   Message: The subscription '00000000-0000-0000-0000-000000000000' could not be found.

https://dev.azure.com/azclitools/public/_build/results?buildId=197899&view=logs&jobId=53b5e140-cff2-558f-049b-6067e7c3cd03&j=038813f6-b85b-5e37-acf4-30b28352865f&t=48a22e66-ceab-5c7f-d00b-cb2046709dfd

@AllowLargeResponse()
@AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2')
def test_aks_create_and_update_with_http_proxy_config(self, resource_group, resource_group_location):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from unittest import mock
from knack.util import CLIError

from azure.cli.testsdk import ResourceGroupPreparer, ScenarioTest, StorageAccountPreparer
from azure.cli.testsdk import ResourceGroupPreparer, ScenarioTest, StorageAccountPreparer, live_only
from azure.cli.testsdk.scenario_tests import AllowLargeResponse
from azure.mgmt.iothub.models import RoutingSource
from azure.cli.command_modules.iot.shared import IdentityType
Expand Down Expand Up @@ -840,6 +840,7 @@ def test_hub_file_upload(self, resource_group, resource_group_location, storage_
assert storage_cs_pattern in updated_hub['properties']['storageEndpoints']['$default']['connectionString']
assert updated_hub['properties']['storageEndpoints']['$default']['containerName'] == containerName

@live_only()
@AllowLargeResponse()
@ResourceGroupPreparer(location='westus2')
def test_hub_wait(self, resource_group, resource_group_location):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,14 @@ def _get_resource_group(self, **kwargs):

class ServerMgmtScenarioTest(ScenarioTest):

@live_only()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nasc17 Please be aware of this change. For more context, please refer to the PR description

@AllowLargeResponse()
@ResourceGroupPreparer(parameter_name='resource_group_1')
@ResourceGroupPreparer(parameter_name='resource_group_2')
def test_mariadb_server_mgmt(self, resource_group_1, resource_group_2):
self._test_server_mgmt('mariadb', resource_group_1, resource_group_2)

@live_only()
@AllowLargeResponse()
@ResourceGroupPreparer(parameter_name='resource_group_1')
@ResourceGroupPreparer(parameter_name='resource_group_2')
Expand Down Expand Up @@ -342,6 +344,7 @@ def _test_server_mgmt(self, database_engine, resource_group_1, resource_group_2)

class ProxyResourcesMgmtScenarioTest(ScenarioTest):

@live_only()
@AllowLargeResponse()
@ResourceGroupPreparer()
@ServerPreparer(engine_type='mariadb')
Expand All @@ -354,6 +357,7 @@ def test_mariadb_proxy_resources_mgmt(self, resource_group, server, database_eng
self._test_private_link_resource(resource_group, server, database_engine, 'mariadbServer')
self._test_private_endpoint_connection(resource_group, server, database_engine)

@live_only()
@AllowLargeResponse()
@ResourceGroupPreparer()
@ServerPreparer(engine_type='mysql')
Expand Down