Source: azure-cli
Version: 2.42.0-1
Severity: serious
Tags: sid bookworm
User: debian...@lists.debian.org
Usertags: needs-update
User: debian-pyt...@lists.debian.org
Usertags: python3.11
Control: affects -1 src:python3-defaults

Dear maintainer(s),

We are in the transition of adding python3.11 as a supported Python version [0]. With a recent upload of python3-defaults the autopkgtest of azure-cli fails in testing when that autopkgtest is run with the binary packages of python3-defaults from unstable. It passes when run with only packages from testing. In tabular form:

                       pass            fail
python3-defaults       from testing    3.10.6-3
azure-cli              from testing    2.42.0-1
all others             from testing    from testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration of python3-defaults to testing [1]. https://docs.python.org/3/whatsnew/3.11.html lists what's new in Python3.11, it may help to identify what needs to be updated.

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[0] https://bugs.debian.org/1021984
[1] https://qa.debian.org/excuses.php?package=python3-defaults

https://ci.debian.net/data/autopkgtest/testing/amd64/a/azure-cli/28706375/log.gz

_ ERROR at teardown of ConfigureGlobalDefaultsTest.test_configure_global_defaults _

self = <tests_core.test_configure.ConfigureGlobalDefaultsTest testMethod=test_configure_global_defaults>

    def tearDown(self):
      self.cmd('configure --defaults global="" global2=""')

tests_core/test_configure.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/azure/cli/testsdk/base.py:170: in cmd return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <azure.cli.testsdk.base.ExecutionResult object at 0x7fd1d63e7110>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7fd1d6b53790>
command = 'configure --defaults global="" global2=""', expect_failure = False

    def __init__(self, cli_ctx, command, expect_failure=False):
        self.output = ''
        self.applog = ''
        self.command_coverage = {}
        cli_ctx.data['_cache'] = None
            if os.environ.get(ENV_COMMAND_COVERAGE, None):
            with open(COVERAGE_FILE, 'a') as coverage_file:
                if command.startswith('az '):
                    command = command[3:]
                coverage_file.write(command + '\n')
self._in_process_execute(cli_ctx, command, expect_failure=expect_failure)
            log_val = ('Logging ' + self.applog) if self.applog else ''
        if expect_failure and self.exit_code == 0:
logger.error('Command "%s" => %d. (It did not fail as expected). %s\n', command,
                         self.exit_code, log_val)
raise AssertionError('The command did not fail as it was expected.')
        if not expect_failure and self.exit_code != 0:
logger.error('Command "%s" => %d. %s\n', command, self.exit_code, log_val)
          raise AssertionError('The command failed. Exit code: 
{}'.format(self.exit_code))
E           AssertionError: The command failed. Exit code: 1

/usr/lib/python3/dist-packages/azure/cli/testsdk/base.py:253: AssertionError
----------------------------- Captured stderr call ----------------------------- To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
To open a new issue, please run `az feedback`
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
To open a new issue, please run `az feedback`
------------------------------ Captured log call ------------------------------- INFO az_command_data_logger:azlogging.py:128 command args: configure --defaults {} ERROR cli.azure.cli.core.azclierror:azlogging.py:212 The command failed with an unexpected error. Here is the traceback: ERROR az_command_data_logger:azlogging.py:213 The command failed with an unexpected error. Here is the traceback: ERROR cli.azure.cli.core.azclierror:azlogging.py:212 argument _command_package: conflicting subparser: configure
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 565, in execute
    self.parser.load_command_table(self.commands_loader)
File "/usr/lib/python3/dist-packages/azure/cli/core/parser.py", line 100, in load_command_table
    command_parser = subparser.add_parser(command_verb,
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/argparse.py", line 1197, in add_parser
    raise ArgumentError(self, _('conflicting subparser: %s') % name)
argparse.ArgumentError: argument _command_package: conflicting subparser: configure ERROR az_command_data_logger:azlogging.py:213 argument _command_package: conflicting subparser: configure
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 565, in execute
    self.parser.load_command_table(self.commands_loader)
File "/usr/lib/python3/dist-packages/azure/cli/core/parser.py", line 100, in load_command_table
    command_parser = subparser.add_parser(command_verb,
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/argparse.py", line 1197, in add_parser
    raise ArgumentError(self, _('conflicting subparser: %s') % name)
argparse.ArgumentError: argument _command_package: conflicting subparser: configure
INFO     az_command_data_logger:azlogging.py:192 exit code: 1
ERROR azure.cli.testsdk:base.py:252 Command "configure --defaults global=global1" => 1. INFO az_command_data_logger:azlogging.py:128 command args: configure --defaults {} {} ERROR cli.azure.cli.core.azclierror:azlogging.py:212 The command failed with an unexpected error. Here is the traceback: ERROR az_command_data_logger:azlogging.py:213 The command failed with an unexpected error. Here is the traceback: ERROR cli.azure.cli.core.azclierror:azlogging.py:212 argument _command_package: conflicting subparser: configure
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 565, in execute
    self.parser.load_command_table(self.commands_loader)
File "/usr/lib/python3/dist-packages/azure/cli/core/parser.py", line 100, in load_command_table
    command_parser = subparser.add_parser(command_verb,
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/argparse.py", line 1197, in add_parser
    raise ArgumentError(self, _('conflicting subparser: %s') % name)
argparse.ArgumentError: argument _command_package: conflicting subparser: configure ERROR az_command_data_logger:azlogging.py:213 argument _command_package: conflicting subparser: configure
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 565, in execute
    self.parser.load_command_table(self.commands_loader)
File "/usr/lib/python3/dist-packages/azure/cli/core/parser.py", line 100, in load_command_table
    command_parser = subparser.add_parser(command_verb,
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/argparse.py", line 1197, in add_parser
    raise ArgumentError(self, _('conflicting subparser: %s') % name)
argparse.ArgumentError: argument _command_package: conflicting subparser: configure
INFO     az_command_data_logger:azlogging.py:192 exit code: 1
ERROR azure.cli.testsdk:base.py:252 Command "configure --defaults global="" global2=""" => 1.

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to