Azure / azure-devops-cli-extension

Azure DevOps Extension for Azure CLI
https://docs.microsoft.com/en-us/cli/azure/ext/azure-devops/?view=azure-cli-latest
MIT License
623 stars 241 forks source link

[Bug] Version 0.19.0 not available through 'az --upgrade' flag #1139

Open MrLuje opened 3 years ago

MrLuje commented 3 years ago

Describe the bug "az extension add --name azure-devops --upgrade" doesn't update to latest 0.19.0 version

To Reproduce Azure Cli Version: azure-cli 2.24.2 Azure-Devops extension version: azure-devops 0.18.0

Steps to reproduce the behavior:

  1. az extension add --name azure-devops --upgrade
  2. Extension 'azure-devops' 0.18.0 is already installed.
    It will be updated if available.
    No updates available for 'azure-devops'. Use --debug for more information.

Expected behavior I expect the 0.19.0 version to be found and installed

Debug logs

cli.knack.cli: Command arguments: ['extension', 'add', '--name', 'azure-devops', '--upgrade', '--debug']
cli.knack.cli: __init__ debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7f1cd6e64430>, <function OutputProducer.on_global_arguments at 0x7f1cd5029670>, <function CLIQuery.on_global_arguments at 0x7f1cd5047ca0>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'extension': ['azure.cli.command_modules.extension']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name                  Load Time    Groups  Commands
cli.azure.cli.core: extension                 0.001         1         7
cli.azure.cli.core: Total (1)                 0.001         1         7
cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name                  Load Time    Groups  Commands  Directory
cli.azure.cli.core: Total (0)                 0.000         0         0
cli.azure.cli.core: Loaded 1 groups, 7 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command  : extension add
cli.azure.cli.core: Command table: extension add
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7f1cd2e04550>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/home/.azure/commands/2021-06-16.14-23-48.extension_add.138297.log'.
az_command_data_logger: command args: extension add --name {} --upgrade --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x7f1cd2e26790>, <function register_global_query_examples_argument.<locals>.register_query_examples at 0x7f1cd2d7f9d0>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x7f1cd2d7fa60>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x7f1cd2d7fb80>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x7f1cd5029700>, <function CLIQuery.handle_query_parameter at 0x7f1cd5047d30>, <function register_global_query_examples_argument.<locals>.handle_example_parameter at 0x7f1cd2d7f940>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x7f1cd2d7faf0>]
cli.azure.cli.core.extension.operations: Extension 'azure-devops' 0.18.0 is already installed.
cli.azure.cli.core.extension.operations: It will be updated if available.
urllib3.connectionpool: Starting new HTTPS connection (1): aka.ms:443
urllib3.connectionpool: https://aka.ms:443 "GET /azure-cli-extension-index-v1 HTTP/1.1" 301 0
urllib3.connectionpool: Starting new HTTPS connection (1): azcliextensionsync.blob.core.windows.net:443
urllib3.connectionpool: https://azcliextensionsync.blob.core.windows.net:443 "GET /index1/index.json HTTP/1.1" 200 1008584
cli.azure.cli.core.extension._resolve: Candidates ['azure_devops-0.12.0-py2.py3-none-any.whl', 'azure_devops-0.17.0-py2.py3-none-any.whl', 'azure_devops-0.18.0-py2.py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['azure_devops-0.12.0-py2.py3-none-any.whl', 'azure_devops-0.17.0-py2.py3-none-any.whl', 'azure_devops-0.18.0-py2.py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['azure_devops-0.12.0-py2.py3-none-any.whl', 'azure_devops-0.17.0-py2.py3-none-any.whl', 'azure_devops-0.18.0-py2.py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Skipping 'azure_devops-0.12.0-py2.py3-none-any.whl' as 0.12.0 not greater than current version 0.18.0
cli.azure.cli.core.extension._resolve: Skipping 'azure_devops-0.17.0-py2.py3-none-any.whl' as 0.17.0 not greater than current version 0.18.0
cli.azure.cli.core.extension._resolve: Skipping 'azure_devops-0.18.0-py2.py3-none-any.whl' as 0.18.0 not greater than current version 0.18.0
cli.azure.cli.core.extension.operations: No suitable extensions found.
cli.azure.cli.core.extension.operations: No updates available for 'azure-devops'. Use --debug for more information.
cli.knack.cli: Event: CommandInvoker.OnTransformResult [<function _resource_group_transform at 0x7f1cd2dd6d30>, <function _x509_from_base64_to_hex_transform at 0x7f1cd2dd6dc0>]
cli.knack.cli: Event: CommandInvoker.OnFilterResult []
cli.knack.cli: Event: Cli.SuccessfulExecute []
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7f1cd2e04790>]
az_command_data_logger: exit code: 0
cli.__main__: Command ran in 1.830 seconds (init: 0.071, invoke: 1.759)
telemetry.save: Save telemetry record of length 3071 in cache
telemetry.check: Negative: The /home/.azure/telemetry.txt was modified at 2021-06-16 14:19:57.147717, which in less than 600.000000 s

Additional context Running in WSL2

fidou commented 3 years ago

Yeah, I had to download the whl file manually and install it with pip. This is because it is missing from the https://azcliextensionsync.blob.core.windows.net/index1/index.json. Although I did not look further how this file is updated.

gauravsaralMs commented 3 years ago

not working because 0.19 was never released completely

https://github.com/Azure/azure-cli-extensions/pull/2856 needs to be merged for the release to go through.

MrLuje commented 3 years ago

Ah, I didn't see there was a pending PR Thanks :)