Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating azure devops extension to 0.3.0 #535

Merged
merged 9 commits into from
Feb 25, 2019
Merged

updating azure devops extension to 0.3.0 #535

merged 9 commits into from
Feb 25, 2019

Conversation

gauravsaralMs
Copy link
Contributor

@gauravsaralMs gauravsaralMs commented Feb 22, 2019


This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • Have you run ./scripts/ci/test_static.sh locally? (pip install pylint flake8 required)
  • Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

@gauravsaralMs
Copy link
Contributor Author

gauravsaralMs commented Feb 22, 2019

The failure is happening because latest network management client is not published yet and this test is expecting that
I assume someone made changes in network management client code and took dependency in azure cli on latest changes but did not published the client due to which failure is happening
I ran
pip install -e "git+https://github.com/Azure/azure-sdk-for-python.git@master#egg=azure-mgmt-network&subdirectory=azure-mgmt-network" -q locally and then this scenario was passing for me.

My experimental thing is here:
https://gsaralprivate.visualstudio.com/Azure%20CLI%20Bug/_build/results?buildId=187&_a=summary

cc: @tjprescott @williexu

This is now resolved

@gauravsaralMs
Copy link
Contributor Author

mentioning so that this PR remains in radar
cc: @williexu @tjprescott

Copy link
Member

@tjprescott tjprescott left a comment

Choose a reason for hiding this comment

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

LGTM.

@tjprescott tjprescott merged commit ae39e8e into Azure:master Feb 25, 2019
@gauravsaralMs
Copy link
Contributor Author

LGTM.

Thanks @tjprescott

@gauravsaralMs gauravsaralMs deleted the users/gsaral/updateForDevOps branch February 26, 2019 03:46
@dazdaz
Copy link

dazdaz commented Mar 10, 2019

What is the timeline to get this resolved ?

$ az extension add --name azure-devops
An error occurred. Pip failed with status code 1. Use --debug for more information.

@gauravsaralMs
Copy link
Contributor Author

What is the timeline to get this resolved ?

$ az extension add --name azure-devops
An error occurred. Pip failed with status code 1. Use --debug for more information.

can you please share the --debug output?

@dazdaz
Copy link

dazdaz commented Mar 17, 2019

Here's the debug output, I hope that i've removed all secrets.

$ az extension add --name azure-devops --debug
DEBUG: Command arguments: ['extension', 'add', '--name', 'azure-devops', '--debug']
DEBUG: Event: Cli.PreExecute []
DEBUG: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7f0ebb62c9d8>, <function OutputProducer.on_global_arguments at 0x7f0ebb3d60d0>, <function CLIQuery.on_global_arguments at 0x7f0ebb16eae8>]
DEBUG: Event: CommandInvoker.OnPreCommandTableCreate []
DEBUG: Installed command modules ['acr', 'acs', 'advisor', 'ams', 'appservice', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'configure', 'consumption', 'container', 'cosmosdb', 'dla', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'interactive', 'iot', 'iotcentral', 'keyvault', 'kusto', 'lab', 'maps', 'monitor', 'network', 'policyinsights', 'profile', 'rdbms', 'redis', 'relay', 'reservations', 'resource', 'role', 'search', 'security', 'servicebus', 'servicefabric', 'signalr', 'sql', 'sqlvm', 'storage', 'vm']
DEBUG: Loaded module 'acr' in 0.004 seconds.
DEBUG: Loaded module 'acs' in 0.003 seconds.
DEBUG: Loaded module 'advisor' in 0.001 seconds.
DEBUG: Event: CommandLoader.OnLoadCommandTable []
DEBUG: Loaded module 'ams' in 0.015 seconds.
DEBUG: Loaded module 'appservice' in 0.006 seconds.
DEBUG: Loaded module 'backup' in 0.003 seconds.
DEBUG: Event: CommandLoader.OnLoadCommandTable []
DEBUG: Loaded module 'batch' in 0.008 seconds.
DEBUG: Loaded module 'batchai' in 0.003 seconds.
DEBUG: Loaded module 'billing' in 0.001 seconds.
DEBUG: Loaded module 'botservice' in 0.003 seconds.
DEBUG: Event: CommandLoader.OnLoadCommandTable []
DEBUG: Loaded module 'cdn' in 0.002 seconds.
DEBUG: Loaded module 'cloud' in 0.001 seconds.
DEBUG: Loaded module 'cognitiveservices' in 0.001 seconds.
DEBUG: Loaded module 'configure' in 0.001 seconds.
DEBUG: Loaded module 'consumption' in 0.002 seconds.
DEBUG: Loaded module 'container' in 0.001 seconds.
DEBUG: Loaded module 'cosmosdb' in 0.003 seconds.
DEBUG: Loaded module 'dla' in 0.004 seconds.
DEBUG: Loaded module 'dls' in 0.003 seconds.
DEBUG: Loaded module 'dms' in 0.002 seconds.
DEBUG: Loaded module 'eventgrid' in 0.002 seconds.
DEBUG: Loaded module 'eventhubs' in 0.003 seconds.
DEBUG: Loaded module 'extension' in 0.001 seconds.
DEBUG: Loaded module 'feedback' in 0.001 seconds.
DEBUG: Loaded module 'find' in 0.001 seconds.
DEBUG: Loaded module 'hdinsight' in 0.002 seconds.
DEBUG: Loaded module 'interactive' in 0.001 seconds.
DEBUG: Loaded module 'iot' in 0.004 seconds.
DEBUG: Loaded module 'iotcentral' in 0.001 seconds.
DEBUG: Loaded module 'keyvault' in 0.005 seconds.
DEBUG: Loaded module 'kusto' in 0.002 seconds.
DEBUG: Loaded module 'lab' in 0.003 seconds.
DEBUG: Loaded module 'maps' in 0.001 seconds.
DEBUG: Loaded module 'monitor' in 0.005 seconds.
DEBUG: Loaded module 'network' in 0.027 seconds.
DEBUG: Loaded module 'policyinsights' in 0.001 seconds.
DEBUG: Loaded module 'profile' in 0.001 seconds.
DEBUG: Loaded module 'rdbms' in 0.006 seconds.
DEBUG: Loaded module 'redis' in 0.002 seconds.
DEBUG: Loaded module 'relay' in 0.003 seconds.
DEBUG: Loaded module 'reservations' in 0.001 seconds.
DEBUG: Loaded module 'resource' in 0.007 seconds.
DEBUG: Loaded module 'role' in 0.004 seconds.
DEBUG: Loaded module 'search' in 0.002 seconds.
DEBUG: Loaded module 'security' in 0.002 seconds.
DEBUG: Loaded module 'servicebus' in 0.004 seconds.
DEBUG: Loaded module 'servicefabric' in 0.001 seconds.
DEBUG: Loaded module 'signalr' in 0.001 seconds.
DEBUG: Loaded module 'sql' in 0.006 seconds.
DEBUG: Loaded module 'sqlvm' in 0.002 seconds.
DEBUG: Event: CommandLoader.OnLoadCommandTable []
DEBUG: Loaded module 'storage' in 0.032 seconds.
DEBUG: Loaded module 'vm' in 0.013 seconds.
DEBUG: Loaded all modules in 0.214 seconds. (note: there's always an overhead with the first module loaded)
DEBUG: Extensions directory: '/home/myuser.g/.azure/cliextensions'
DEBUG: Event: CommandInvoker.OnPreCommandTableTruncate []
DEBUG: Event: CommandInvoker.OnPostCommandTableCreate [<function register_global_subscription_argument..add_subscription_parameter at 0x7f0ebb10abf8>, <function register_ids_argument..add_ids_arguments at 0x7f0ebb0bb6a8>]
DEBUG: Event: CommandInvoker.OnCommandTableLoaded []
DEBUG: Event: CommandInvoker.OnPreParseArgs [<function _documentdb_deprecate at 0x7f0eb8f8f6a8>]
DEBUG: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x7f0ebb3d6158>, <function CLIQuery.handle_query_parameter at 0x7f0ebb16eb70>, <function register_ids_argument..parse_ids_arguments at 0x7f0ebb0bb620>, <function handler at 0x7f0eb8ef2840>]
DEBUG: Extensions directory: '/home/myuser.g/.azure/cliextensions'
DEBUG: urllib3.connectionpool : Starting new HTTPS connection (1): aka.ms:443
DEBUG: urllib3.connectionpool : https://aka.ms:443 "GET /azure-cli-extension-index-v1 HTTP/1.1" 301 0
DEBUG: urllib3.connectionpool : Starting new HTTPS connection (1): azurecliextensionsync.blob.core.windows.net:443
DEBUG: urllib3.connectionpool : https://azurecliextensionsync.blob.core.windows.net:443 "GET /index1/index.json HTTP/1.1" 200 94430
DEBUG: Candidates ['azure_devops-0.3.0-py2.py3-none-any.whl']
DEBUG: Candidates ['azure_devops-0.3.0-py2.py3-none-any.whl']
DEBUG: Candidates ['azure_devops-0.3.0-py2.py3-none-any.whl']
DEBUG: Candidates ['azure_devops-0.3.0-py2.py3-none-any.whl']
DEBUG: Choosing the latest of the remaining candidates.
DEBUG: Chosen {'downloadUrl': 'https://github.com/Microsoft/azure-devops-cli-extension/releases/download/20190222.7/azure_devops-0.3.0-py2.py3-none-any.whl', 'filename': 'azure_devops-0.3.0-py2.py3-none-any.whl', 'metadata': {'azext.isPreview': True, 'azext.minCliCoreVersion': '2.0.49', 'classifiers': ['Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'License :: OSI Approved :: MIT License'], 'extensions': {'python.details': {'contacts': [{'email': '[email protected]', 'name': 'Microsoft', 'role': 'author'}], 'document_names': {'description': 'DESCRIPTION.rst'}, 'project_urls': {'Home': 'https://github.com/Microsoft/azure-devops-cli-extension'}}}, 'extras': [], 'generator': 'bdist_wheel (0.30.0)', 'license': 'MIT', 'metadata_version': '2.0', 'name': 'azure-devops', 'run_requires': [{'requires': ['msrest (<0.7.0,>=0.6.0)', 'python-dateutil (==2.7.3)']}], 'summary': 'Tools for managing Azure DevOps.', 'version': '0.3.0'}, 'sha256Digest': '76f5f0c651dbaf740658d4d8f4f6ca642a36cd43e66930706a2cb7e4939a4c1b'}
DEBUG: Extension source is url? True
DEBUG: Extensions directory: '/home/myuser.g/.azure/cliextensions'
DEBUG: Downloading https://github.com/Microsoft/azure-devops-cli-extension/releases/download/20190222.7/azure_devops-0.3.0-py2.py3-none-any.whl to /tmp/tmpgkw2bux2/azure_devops-0.3.0-py2.py3-none-any.whl
DEBUG: urllib3.connectionpool : Starting new HTTPS connection (1): github.com:443
DEBUG: urllib3.connectionpool : https://github.com:443 "GET /Microsoft/azure-devops-cli-extension/releases/download/20190222.7/azure_devops-0.3.0-py2.py3-none-any.whl HTTP/1.1" 302 None
DEBUG: urllib3.connectionpool : Starting new HTTPS connection (1): github-production-release-asset-2e65be.s3.amazonaws.com:443
DEBUG: urllib3.connectionpool : https://github-production-release-asset-2e65be.s3.amazonaws.com:443 "GET /107708057/a4974880-36b1-11e9-93b0-5a379ba6ac4d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190317%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190317T045422Z&X-Amz-Expires=300&X-Amz-Signature=620b556b7991f74996ea5d5bb05ebdc5c2d71193c24f147482a50da0311e98bf&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dazure_devops-0.3.0-py2.py3-none-any.whl&response-content-type=application%2Foctet-stream HTTP/1.1" 200 929928
DEBUG: Downloaded to /tmp/tmpgkw2bux2/azure_devops-0.3.0-py2.py3-none-any.whl
DEBUG: Validating the extension /tmp/tmpgkw2bux2/azure_devops-0.3.0-py2.py3-none-any.whl
DEBUG: Checksum of /tmp/tmpgkw2bux2/azure_devops-0.3.0-py2.py3-none-any.whl is OK
DEBUG: Extension compatibility result: is_compatible=True cli_core_version=2.0.60 min_required=2.0.49 max_required=None
DEBUG: Validation successful on /tmp/tmpgkw2bux2/azure_devops-0.3.0-py2.py3-none-any.whl
DEBUG: Linux distro check: Reading from: /etc/apt/sources.list.d/azure-cli.list
DEBUG: Linux distro check: Found in list file: wheezy
DEBUG: Linux distro check: Reported by API: bionic
DEBUG: Linux distro check: Mismatch distribution name in /etc/apt/sources.list.d/azure-cli.list file
DEBUG: Linux distro check: If command fails, install the appropriate package for your distribution or change the above file accordingly.
DEBUG: Linux distro check: /etc/apt/sources.list.d/azure-cli.list has 'wheezy', current distro is 'bionic'
DEBUG: Executing pip with args: ['install', '--target', '/home/myuser.g/.azure/cliextensions/azure-devops', '/tmp/tmpgkw2bux2/azure_devops-0.3.0-py2.py3-none-any.whl']
DEBUG: Running: ['/opt/az/bin/python3', '-m', 'pip', 'install', '--target', '/home/myuser.g/.azure/cliextensions/azure-devops', '/tmp/tmpgkw2bux2/azure_devops-0.3.0-py2.py3-none-any.whl', '-vv', '--disable-pip-version-check', '--no-cache-dir']
DEBUG: Traceback (most recent call last):
File "/opt/az/lib/python3.6/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/opt/az/lib/python3.6/runpy.py", line 142, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/opt/az/lib/python3.6/runpy.py", line 109, in _get_module_details
import(pkg_name)
File "/opt/az/lib/python3.6/site-packages/pip/init.py", line 45, in
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/opt/az/lib/python3.6/site-packages/pip/vcs/mercurial.py", line 9, in
from pip.download import path_to_url
File "/opt/az/lib/python3.6/site-packages/pip/download.py", line 36, in
from pip.utils.glibc import libc_ver
File "/opt/az/lib/python3.6/site-packages/pip/utils/glibc.py", line 4, in
import ctypes
File "/opt/az/lib/python3.6/ctypes/init.py", line 7, in
from _ctypes import Union, Structure, Array
ImportError: libffi.so.5: cannot open shared object file: No such file or directory

DEBUG: Command '['/opt/az/bin/python3', '-m', 'pip', 'install', '--target', '/home/myuser.g/.azure/cliextensions/azure-devops', '/tmp/tmpgkw2bux2/azure_devops-0.3.0-py2.py3-none-any.whl', '-vv', '--disable-pip-version-check', '--no-cache-dir']' returned non-zero exit status 1.
DEBUG: Pip failed so deleting anything we might have installed at /home/myuser.g/.azure/cliextensions/azure-devops
ERROR: An error occurred. Pip failed with status code 1. Use --debug for more information.
INFO: telemetry.save : Save telemetry record of length 2479 in cache
WARNING: telemetry.check : Negative: The /home/myuser.g/.azure/telemetry.txt was modified at 2019-03-17 12:52:52.959935, which in less than 600.000000 s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants