[Core] Replace unsafe pickle deserialization with JSON in MSAL HTTP cache #33405
Build #20260520.34 had test failures
Details
- Failed: 26 (0.25%, 0 new, 26 recurring)
- Passed: 8,784 (84.79%)
- Other: 1,550 (14.96%)
- Total: 10,360
Annotations
Check failure on line 5381 in Build log
azure-pipelines / Azure.azure-cli Full Test
Build log #L5381
Bash exited with code '1'.
Check failure on line 5381 in Build log
azure-pipelines / Azure.azure-cli Full Test
Build log #L5381
Bash exited with code '1'.
Check failure on line 1 in test_linux_webapp_quick_create_cd
azure-pipelines / Azure.azure-cli Full Test
test_linux_webapp_quick_create_cd
self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f993a476fd0>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f993b2b8410>
command = 'webapp create -g clitest.rg000001 -n webapp-linux-cd000002 --plan plan-quick-linux-cd -u https://github.com/yugangw-msft/azure-site-test.git -r "NODE|20-lts"'
expect_failure = False
def _in_process_execute(self, cli_ctx, command, expect_failure=False):
from io import StringIO
from vcr.errors import CannotOverwriteExistingCassetteException
if command.startswith('az '):
command = command[3:]
stdout_buf = StringIO()
logging_buf = StringIO()
try:
# issue: stderr cannot be redirect in this form, as a result some failure information
# is lost when command fails.
> self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-testsdk/azure/cli/testsdk/base.py:303:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
env/lib/python3.13/site-packages/knack/cli.py:245: in invoke
exit_code = self.exception_handler(ex)
^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/__init__.py:157: in exception_handler
return handle_exception(ex)
^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ex = ValidationError("Linux Runtime 'NODE|20-lts' is not supported.Run 'az webapp list-runtimes --os-type linux' to cross check")
args = (), kwargs = {}
def _handle_main_exception(ex, *args, **kwargs): # pylint: disable=unused-argument
if isinstance(ex, CannotOverwriteExistingCassetteException):
# This exception usually caused by a no match HTTP request. This is a product error
# that is caused by change of SDK invocation.
raise ex
> raise CliExecutionError(ex)
E azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception ValidationError during execution and fails the command.
src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError
During handling of the above exception, another exception occurred:
self = <azure.cli.command_modules.appservice.tests.latest.test_webapp_commands.WebappQuickCreateTest testMethod=test_linux_webapp_quick_create_cd>
resource_group = 'clitest.rg000001'
@AllowLargeResponse()
@ResourceGroupPreparer(location=LINUX_ASP_LOCATION_WEBAPP)
def test_linux_webapp_quick_create_cd(self, resource_group):
webapp_name = self.create_random_name(
prefix='webapp-linux-cd', length=24)
plan = 'plan-quick-linux-cd'
self.cmd(
'appservice plan create -g {} -n {} --is-linux'.format(resource_group, plan))
> self.cmd('webapp create -g {} -n {} --plan {} -u {} -r "NODE|20-lts"'.format(resource_group, webapp_name,
plan, TEST_REPO_URL))
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:234:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: in cmd
return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-testsdk/azure/cli/testsdk/base.py:252: in __init__
self._in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in _in_process_execute
raise ex.exception
env/lib/python3.13/site-packages/knack/cli.py:233: in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/__init__.py:677: in execute
raise ex
src/azure-c
Raw output
self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f993a476fd0>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f993b2b8410>
command = 'webapp create -g clitest.rg000001 -n webapp-linux-cd000002 --plan plan-quick-linux-cd -u https://github.com/yugangw-msft/azure-site-test.git -r "NODE|20-lts"'
expect_failure = False
def _in_process_execute(self, cli_ctx, command, expect_failure=False):
from io import StringIO
from vcr.errors import CannotOverwriteExistingCassetteException
if command.startswith('az '):
command = command[3:]
stdout_buf = StringIO()
logging_buf = StringIO()
try:
# issue: stderr cannot be redirect in this form, as a result some failure information
# is lost when command fails.
> self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-testsdk/azure/cli/testsdk/base.py:303:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
env/lib/python3.13/site-packages/knack/cli.py:245: in invoke
exit_code = self.exception_handler(ex)
^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/__init__.py:157: in exception_handler
return handle_exception(ex)
^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ex = ValidationError("Linux Runtime 'NODE|20-lts' is not supported.Run 'az webapp list-runtimes --os-type linux' to cross check")
args = (), kwargs = {}
def _handle_main_exception(ex, *args, **kwargs): # pylint: disable=unused-argument
if isinstance(ex, CannotOverwriteExistingCassetteException):
# This exception usually caused by a no match HTTP request. This is a product error
# that is caused by change of SDK invocation.
raise ex
> raise CliExecutionError(ex)
E azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception ValidationError during execution and fails the command.
src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError
During handling of the above exception, another exception occurred:
self = <azure.cli.command_modules.appservice.tests.latest.test_webapp_commands.WebappQuickCreateTest testMethod=test_linux_webapp_quick_create_cd>
resource_group = 'clitest.rg000001'
@AllowLargeResponse()
@ResourceGroupPreparer(location=LINUX_ASP_LOCATION_WEBAPP)
def test_linux_webapp_quick_create_cd(self, resource_group):
webapp_name = self.create_random_name(
prefix='webapp-linux-cd', length=24)
plan = 'plan-quick-linux-cd'
self.cmd(
'appservice plan create -g {} -n {} --is-linux'.format(resource_group, plan))
> self.cmd('webapp create -g {} -n {} --plan {} -u {} -r "NODE|20-lts"'.format(resource_group, webapp_name,
plan, TEST_REPO_URL))
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:234:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: in cmd
return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-testsdk/azure/cli/testsdk/base.py:252: in __init__
self._in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in _in_process_execute
raise ex.exception
env/lib/python3.13/site-packages/knack/cli.py:233: in invoke
cmd_result = s
... [The stack trace has been truncated as it exceeded the maximum allowed size. Please refer to the complete log available in the Test Run attachments for full details.]
Check failure on line 1 in test_win_webapp_quick_create_cd
azure-pipelines / Azure.azure-cli Full Test
test_win_webapp_quick_create_cd
self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f993a477110>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f993b2b9090>
command = 'webapp create -g clitest.rg000001 -n webapp-quick-cd000002 --plan plan-quick000003 --deployment-source-url https://github.com/yugangw-msft/azure-site-test.git -r "node|20LTS"'
expect_failure = False
def _in_process_execute(self, cli_ctx, command, expect_failure=False):
from io import StringIO
from vcr.errors import CannotOverwriteExistingCassetteException
if command.startswith('az '):
command = command[3:]
stdout_buf = StringIO()
logging_buf = StringIO()
try:
# issue: stderr cannot be redirect in this form, as a result some failure information
# is lost when command fails.
> self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-testsdk/azure/cli/testsdk/base.py:303:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
env/lib/python3.13/site-packages/knack/cli.py:245: in invoke
exit_code = self.exception_handler(ex)
^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/__init__.py:157: in exception_handler
return handle_exception(ex)
^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ex = ValidationError("Windows runtime 'node|20LTS' is not supported.Run 'az webapp list-runtimes --os-type windows' to cross check")
args = (), kwargs = {}
def _handle_main_exception(ex, *args, **kwargs): # pylint: disable=unused-argument
if isinstance(ex, CannotOverwriteExistingCassetteException):
# This exception usually caused by a no match HTTP request. This is a product error
# that is caused by change of SDK invocation.
raise ex
> raise CliExecutionError(ex)
E azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception ValidationError during execution and fails the command.
src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError
During handling of the above exception, another exception occurred:
self = <azure.cli.command_modules.appservice.tests.latest.test_webapp_commands.WebappQuickCreateTest testMethod=test_win_webapp_quick_create_cd>
resource_group = 'clitest.rg000001'
@AllowLargeResponse()
@ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_WEBAPP)
def test_win_webapp_quick_create_cd(self, resource_group):
webapp_name = self.create_random_name(prefix='webapp-quick-cd', length=24)
plan = self.create_random_name(prefix='plan-quick', length=24)
self.cmd('appservice plan create -g {} -n {}'.format(resource_group, plan))
> self.cmd('webapp create -g {} -n {} --plan {} --deployment-source-url {} -r "node|20LTS"'.format(
resource_group, webapp_name, plan, TEST_REPO_URL))
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:181:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: in cmd
return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-testsdk/azure/cli/testsdk/base.py:252: in __init__
self._in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in _in_process_execute
raise ex.exception
env/lib/python3.13/site-packages/knack/cli.py:233: in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/__init__.py:677: in execute
raise ex
src/azure-cli-core/azure/cli/core/commands/__in
Raw output
self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f993a477110>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f993b2b9090>
command = 'webapp create -g clitest.rg000001 -n webapp-quick-cd000002 --plan plan-quick000003 --deployment-source-url https://github.com/yugangw-msft/azure-site-test.git -r "node|20LTS"'
expect_failure = False
def _in_process_execute(self, cli_ctx, command, expect_failure=False):
from io import StringIO
from vcr.errors import CannotOverwriteExistingCassetteException
if command.startswith('az '):
command = command[3:]
stdout_buf = StringIO()
logging_buf = StringIO()
try:
# issue: stderr cannot be redirect in this form, as a result some failure information
# is lost when command fails.
> self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-testsdk/azure/cli/testsdk/base.py:303:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
env/lib/python3.13/site-packages/knack/cli.py:245: in invoke
exit_code = self.exception_handler(ex)
^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/__init__.py:157: in exception_handler
return handle_exception(ex)
^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ex = ValidationError("Windows runtime 'node|20LTS' is not supported.Run 'az webapp list-runtimes --os-type windows' to cross check")
args = (), kwargs = {}
def _handle_main_exception(ex, *args, **kwargs): # pylint: disable=unused-argument
if isinstance(ex, CannotOverwriteExistingCassetteException):
# This exception usually caused by a no match HTTP request. This is a product error
# that is caused by change of SDK invocation.
raise ex
> raise CliExecutionError(ex)
E azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception ValidationError during execution and fails the command.
src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError
During handling of the above exception, another exception occurred:
self = <azure.cli.command_modules.appservice.tests.latest.test_webapp_commands.WebappQuickCreateTest testMethod=test_win_webapp_quick_create_cd>
resource_group = 'clitest.rg000001'
@AllowLargeResponse()
@ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_WEBAPP)
def test_win_webapp_quick_create_cd(self, resource_group):
webapp_name = self.create_random_name(prefix='webapp-quick-cd', length=24)
plan = self.create_random_name(prefix='plan-quick', length=24)
self.cmd('appservice plan create -g {} -n {}'.format(resource_group, plan))
> self.cmd('webapp create -g {} -n {} --plan {} --deployment-source-url {} -r "node|20LTS"'.format(
resource_group, webapp_name, plan, TEST_REPO_URL))
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:181:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: in cmd
return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-testsdk/azure/cli/testsdk/base.py:252: in __init__
self._in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in _in_process_execute
raise ex.exception
env/lib/python3.13/site-packages/knack/cli.py:233: in invoke
cmd_result = self.invocation.execute(args)
... [The stack trace has been truncated as it exceeded the maximum allowed size. Please refer to the complete log available in the Test Run attachments for full details.]
Check failure on line 1 in test_download_win_web_log
azure-pipelines / Azure.azure-cli Full Test
test_download_win_web_log
self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f993a4d3390>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f993b102490>
command = 'webapp create -g clitest.rg000001 -n webapp-win-log000002 --plan win-log000003 --deployment-source-url https://github.com/yugangw-msft/azure-site-test.git -r "node|20LTS"'
expect_failure = False
def _in_process_execute(self, cli_ctx, command, expect_failure=False):
from io import StringIO
from vcr.errors import CannotOverwriteExistingCassetteException
if command.startswith('az '):
command = command[3:]
stdout_buf = StringIO()
logging_buf = StringIO()
try:
# issue: stderr cannot be redirect in this form, as a result some failure information
# is lost when command fails.
> self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-testsdk/azure/cli/testsdk/base.py:303:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
env/lib/python3.13/site-packages/knack/cli.py:245: in invoke
exit_code = self.exception_handler(ex)
^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/__init__.py:157: in exception_handler
return handle_exception(ex)
^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ex = ValidationError("Windows runtime 'node|20LTS' is not supported.Run 'az webapp list-runtimes --os-type windows' to cross check")
args = (), kwargs = {}
def _handle_main_exception(ex, *args, **kwargs): # pylint: disable=unused-argument
if isinstance(ex, CannotOverwriteExistingCassetteException):
# This exception usually caused by a no match HTTP request. This is a product error
# that is caused by change of SDK invocation.
raise ex
> raise CliExecutionError(ex)
E azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception ValidationError during execution and fails the command.
src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError
During handling of the above exception, another exception occurred:
self = <azure.cli.command_modules.appservice.tests.latest.test_webapp_commands.AppServiceLogTest testMethod=test_download_win_web_log>
resource_group = 'clitest.rg000001'
@AllowLargeResponse()
@ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_WEBAPP)
def test_download_win_web_log(self, resource_group):
import zipfile
webapp_name = self.create_random_name(
prefix='webapp-win-log', length=24)
plan = self.create_random_name(prefix='win-log', length=24)
self.cmd(f'appservice plan create -g {resource_group} -n {plan} -l eastus')
> self.cmd('webapp create -g {} -n {} --plan {} --deployment-source-url {} -r "node|20LTS"'.format(
resource_group, webapp_name, plan, TEST_REPO_URL))
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:489:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: in cmd
return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-testsdk/azure/cli/testsdk/base.py:252: in __init__
self._in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in _in_process_execute
raise ex.exception
env/lib/python3.13/site-packages/knack/cli.py:233: in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/__init__.py:677: in execute
raise ex
src/azure-cli-core/azure/cli/core/c
Raw output
self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f993a4d3390>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f993b102490>
command = 'webapp create -g clitest.rg000001 -n webapp-win-log000002 --plan win-log000003 --deployment-source-url https://github.com/yugangw-msft/azure-site-test.git -r "node|20LTS"'
expect_failure = False
def _in_process_execute(self, cli_ctx, command, expect_failure=False):
from io import StringIO
from vcr.errors import CannotOverwriteExistingCassetteException
if command.startswith('az '):
command = command[3:]
stdout_buf = StringIO()
logging_buf = StringIO()
try:
# issue: stderr cannot be redirect in this form, as a result some failure information
# is lost when command fails.
> self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-testsdk/azure/cli/testsdk/base.py:303:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
env/lib/python3.13/site-packages/knack/cli.py:245: in invoke
exit_code = self.exception_handler(ex)
^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/__init__.py:157: in exception_handler
return handle_exception(ex)
^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ex = ValidationError("Windows runtime 'node|20LTS' is not supported.Run 'az webapp list-runtimes --os-type windows' to cross check")
args = (), kwargs = {}
def _handle_main_exception(ex, *args, **kwargs): # pylint: disable=unused-argument
if isinstance(ex, CannotOverwriteExistingCassetteException):
# This exception usually caused by a no match HTTP request. This is a product error
# that is caused by change of SDK invocation.
raise ex
> raise CliExecutionError(ex)
E azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception ValidationError during execution and fails the command.
src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError
During handling of the above exception, another exception occurred:
self = <azure.cli.command_modules.appservice.tests.latest.test_webapp_commands.AppServiceLogTest testMethod=test_download_win_web_log>
resource_group = 'clitest.rg000001'
@AllowLargeResponse()
@ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_WEBAPP)
def test_download_win_web_log(self, resource_group):
import zipfile
webapp_name = self.create_random_name(
prefix='webapp-win-log', length=24)
plan = self.create_random_name(prefix='win-log', length=24)
self.cmd(f'appservice plan create -g {resource_group} -n {plan} -l eastus')
> self.cmd('webapp create -g {} -n {} --plan {} --deployment-source-url {} -r "node|20LTS"'.format(
resource_group, webapp_name, plan, TEST_REPO_URL))
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:489:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: in cmd
return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-testsdk/azure/cli/testsdk/base.py:252: in __init__
self._in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in _in_process_execute
raise ex.exception
env/lib/python3.13/site-packages/knack/cli.py:233: in invoke
cmd_result = self.invocation.execute(a
... [The stack trace has been truncated as it exceeded the maximum allowed size. Please refer to the complete log available in the Test Run attachments for full details.]
Check failure on line 1 in test_win_webapp_quick_create_runtime
azure-pipelines / Azure.azure-cli Full Test
test_win_webapp_quick_create_runtime
self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f993a476fd0>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f993b2b9d10>
command = 'webapp create -g clitest000001 -n webapp-quick000002 --plan plan-quick000004 --deployment-local-git -r "node|20LTS"'
expect_failure = False
def _in_process_execute(self, cli_ctx, command, expect_failure=False):
from io import StringIO
from vcr.errors import CannotOverwriteExistingCassetteException
if command.startswith('az '):
command = command[3:]
stdout_buf = StringIO()
logging_buf = StringIO()
try:
# issue: stderr cannot be redirect in this form, as a result some failure information
# is lost when command fails.
> self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-testsdk/azure/cli/testsdk/base.py:303:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
env/lib/python3.13/site-packages/knack/cli.py:245: in invoke
exit_code = self.exception_handler(ex)
^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/__init__.py:157: in exception_handler
return handle_exception(ex)
^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ex = ValidationError("Windows runtime 'node|20LTS' is not supported.Run 'az webapp list-runtimes --os-type windows' to cross check")
args = (), kwargs = {}
def _handle_main_exception(ex, *args, **kwargs): # pylint: disable=unused-argument
if isinstance(ex, CannotOverwriteExistingCassetteException):
# This exception usually caused by a no match HTTP request. This is a product error
# that is caused by change of SDK invocation.
raise ex
> raise CliExecutionError(ex)
E azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception ValidationError during execution and fails the command.
src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError
During handling of the above exception, another exception occurred:
self = <azure.cli.command_modules.appservice.tests.latest.test_webapp_commands.WebappQuickCreateTest testMethod=test_win_webapp_quick_create_runtime>
resource_group = 'clitest000001'
@AllowLargeResponse()
@ResourceGroupPreparer(name_prefix="clitest", random_name_length=24, location=WINDOWS_ASP_LOCATION_WEBAPP)
def test_win_webapp_quick_create_runtime(self, resource_group):
webapp_name = self.create_random_name(prefix='webapp-quick', length=24)
webapp_name_2 = self.create_random_name(prefix='webapp-quick', length=24)
plan = self.create_random_name(prefix='plan-quick', length=24)
self.cmd('appservice plan create -g {} -n {}'.format(resource_group, plan))
> r = self.cmd('webapp create -g {} -n {} --plan {} --deployment-local-git -r "node|20LTS"'.format(
resource_group, webapp_name, plan)).get_output_in_json()
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:164:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: in cmd
return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-testsdk/azure/cli/testsdk/base.py:252: in __init__
self._in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in _in_process_execute
raise ex.exception
env/lib/python3.13/site-packages/knack/cli.py:233: in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/__init__.
Raw output
self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f993a476fd0>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f993b2b9d10>
command = 'webapp create -g clitest000001 -n webapp-quick000002 --plan plan-quick000004 --deployment-local-git -r "node|20LTS"'
expect_failure = False
def _in_process_execute(self, cli_ctx, command, expect_failure=False):
from io import StringIO
from vcr.errors import CannotOverwriteExistingCassetteException
if command.startswith('az '):
command = command[3:]
stdout_buf = StringIO()
logging_buf = StringIO()
try:
# issue: stderr cannot be redirect in this form, as a result some failure information
# is lost when command fails.
> self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-testsdk/azure/cli/testsdk/base.py:303:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
env/lib/python3.13/site-packages/knack/cli.py:245: in invoke
exit_code = self.exception_handler(ex)
^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/__init__.py:157: in exception_handler
return handle_exception(ex)
^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ex = ValidationError("Windows runtime 'node|20LTS' is not supported.Run 'az webapp list-runtimes --os-type windows' to cross check")
args = (), kwargs = {}
def _handle_main_exception(ex, *args, **kwargs): # pylint: disable=unused-argument
if isinstance(ex, CannotOverwriteExistingCassetteException):
# This exception usually caused by a no match HTTP request. This is a product error
# that is caused by change of SDK invocation.
raise ex
> raise CliExecutionError(ex)
E azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception ValidationError during execution and fails the command.
src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError
During handling of the above exception, another exception occurred:
self = <azure.cli.command_modules.appservice.tests.latest.test_webapp_commands.WebappQuickCreateTest testMethod=test_win_webapp_quick_create_runtime>
resource_group = 'clitest000001'
@AllowLargeResponse()
@ResourceGroupPreparer(name_prefix="clitest", random_name_length=24, location=WINDOWS_ASP_LOCATION_WEBAPP)
def test_win_webapp_quick_create_runtime(self, resource_group):
webapp_name = self.create_random_name(prefix='webapp-quick', length=24)
webapp_name_2 = self.create_random_name(prefix='webapp-quick', length=24)
plan = self.create_random_name(prefix='plan-quick', length=24)
self.cmd('appservice plan create -g {} -n {}'.format(resource_group, plan))
> r = self.cmd('webapp create -g {} -n {} --plan {} --deployment-local-git -r "node|20LTS"'.format(
resource_group, webapp_name, plan)).get_output_in_json()
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:164:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: in cmd
return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-testsdk/azure/cli/testsdk/base.py:252: in __init__
self._in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in _in_process_execute
raise ex.exception
env/lib/python3.13/site-packages/kna
... [The stack trace has been truncated as it exceeded the maximum allowed size. Please refer to the complete log available in the Test Run attachments for full details.]