Skip to content

Python conf for Authorization 2018-09-01-preview#4347

Merged
lmazuel merged 2 commits intomasterfrom
authorization201809py
Oct 29, 2018
Merged

Python conf for Authorization 2018-09-01-preview#4347
lmazuel merged 2 commits intomasterfrom
authorization201809py

Conversation

@lmazuel
Copy link
Member

@lmazuel lmazuel commented Oct 29, 2018

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.

PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
  • If applicable, the PR references the bug/issue that it fixes.
  • Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

@lmazuel lmazuel self-assigned this Oct 29, 2018
@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@AutorestCI
Copy link

AutorestCI commented Oct 29, 2018

Automation for azure-sdk-for-python

Encountered an unknown error: (azure-sdk-for-python)

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/SwaggerToSdkNewCLI.py", line 302, in generate_sdk_from_git_object
    commit_for_sha = git_object.commit   # Commit
AttributeError: 'PullRequest' object has no attribute 'commit'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 33, in exception_to_github
    yield context
  File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 170, in rest_handle_action
    return rest_pull_close(body, restapi_repo, sdk_pr_target_repo, sdkbase, sdk_tag)
  File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 185, in rest_pull_close
    rest_pr_management(rest_pr, sdk_pr_target_repo, sdk_tag, sdk_default_base)
  File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github_handler.py", line 151, in rest_pr_management
    sdk_tag=sdk_tag
  File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/SwaggerToSdkNewCLI.py", line 304, in generate_sdk_from_git_object
    commit_for_sha = list(git_object.get_commits())[-1].commit  # PR
  File "/usr/local/lib/python3.6/dist-packages/github/PaginatedList.py", line 58, in __iter__
    newElements = self._grow()
  File "/usr/local/lib/python3.6/dist-packages/github/PaginatedList.py", line 70, in _grow
    newElements = self._fetchNextPage()
  File "/usr/local/lib/python3.6/dist-packages/github/PaginatedList.py", line 172, in _fetchNextPage
    headers=self.__headers
  File "/usr/local/lib/python3.6/dist-packages/github/Requester.py", line 260, in requestJsonAndCheck
    return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url)))
  File "/usr/local/lib/python3.6/dist-packages/github/Requester.py", line 271, in __check
    raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 502 {'message': 'Server Error'}

@AutorestCI
Copy link

AutorestCI commented Oct 29, 2018

Automation for azure-sdk-for-js

A PR has been created for you:
Azure/azure-sdk-for-js#345

@AutorestCI
Copy link

AutorestCI commented Oct 29, 2018

Automation for azure-sdk-for-ruby

Encountered a Subprocess error: (azure-sdk-for-ruby)

Command: bundle install && rake arm:regen_all_profiles['azure_mgmt_authorization']
Finished with return code 1
and output:

Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Using rake 12.3.1
Using multipart-post 2.0.0
Using faraday 0.15.3
Using faraday_middleware 0.12.2
Using mini_portile2 2.3.0
Using nokogiri 1.8.5
Using azure-core 0.1.14
Using azure-storage 0.14.0.preview
Using concurrent-ruby 1.0.5
Using unf_ext 0.0.7.5
Using unf 0.1.4
Using domain_name 0.5.20180417
Using http-cookie 1.0.3
Using faraday-cookie_jar 0.0.6
Using timeliness 0.3.8
Using ms_rest 0.7.3
Using ms_rest_azure 0.11.0
Using azure_cognitiveservices_computervision 0.17.0 from source at `data/azure_cognitiveservices_computervision`
Using azure_cognitiveservices_contentmoderator 0.17.0 from source at `data/azure_cognitiveservices_contentmoderator`
Using azure_cognitiveservices_customsearch 0.17.0 from source at `data/azure_cognitiveservices_customsearch`
Using azure_cognitiveservices_entitysearch 0.17.0 from source at `data/azure_cognitiveservices_entitysearch`
Using azure_cognitiveservices_face 0.17.0 from source at `data/azure_cognitiveservices_face`
Using azure_cognitiveservices_imagesearch 0.17.0 from source at `data/azure_cognitiveservices_imagesearch`
Using azure_cognitiveservices_newssearch 0.17.0 from source at `data/azure_cognitiveservices_newssearch`
Using azure_cognitiveservices_spellcheck 0.17.0 from source at `data/azure_cognitiveservices_spellcheck`
Using azure_cognitiveservices_textanalytics 0.17.0 from source at `data/azure_cognitiveservices_textanalytics`
Using azure_cognitiveservices_videosearch 0.17.0 from source at `data/azure_cognitiveservices_videosearch`
Using azure_cognitiveservices_websearch 0.17.0 from source at `data/azure_cognitiveservices_websearch`
Using azure_event_grid 0.17.0 from source at `data/azure_event_grid`
Using azure_graph_rbac 0.17.0 from source at `data/azure_graph_rbac`
Using azure_key_vault 0.17.1 from source at `data/azure_key_vault`
Using azure_mgmt_analysis_services 0.17.1 from source at `management/azure_mgmt_analysis_services`
Using azure_mgmt_api_management 0.18.1 from source at `management/azure_mgmt_api_management`
Using azure_mgmt_authorization 0.18.1 from source at `management/azure_mgmt_authorization`
Using azure_mgmt_automation 0.17.1 from source at `management/azure_mgmt_automation`
Using azure_mgmt_batch 0.17.1 from source at `management/azure_mgmt_batch`
Using azure_mgmt_billing 0.17.1 from source at `management/azure_mgmt_billing`
Using azure_mgmt_cdn 0.17.1 from source at `management/azure_mgmt_cdn`
Using azure_mgmt_cognitive_services 0.17.0 from source at `management/azure_mgmt_cognitive_services`
Using azure_mgmt_commerce 0.17.0 from source at `management/azure_mgmt_commerce`
Using azure_mgmt_compute 0.18.3 from source at `management/azure_mgmt_compute`
Using azure_mgmt_consumption 0.17.1 from source at `management/azure_mgmt_consumption`
Using azure_mgmt_container_instance 0.17.1 from source at `management/azure_mgmt_container_instance`
Using azure_mgmt_container_registry 0.17.1 from source at `management/azure_mgmt_container_registry`
Using azure_mgmt_container_service 0.18.1 from source at `management/azure_mgmt_container_service`
Using azure_mgmt_customer_insights 0.17.1 from source at `management/azure_mgmt_customer_insights`
Using azure_mgmt_datalake_analytics 0.17.1 from source at `management/azure_mgmt_datalake_analytics`
Using azure_mgmt_datalake_store 0.17.1 from source at `management/azure_mgmt_datalake_store`
Using azure_mgmt_dev_spaces 0.17.1 from source at `management/azure_mgmt_dev_spaces`
Using azure_mgmt_devtestlabs 0.17.1 from source at `management/azure_mgmt_devtestlabs`
Using azure_mgmt_dns 0.17.2 from source at `management/azure_mgmt_dns`
Using azure_mgmt_event_grid 0.17.1 from source at `management/azure_mgmt_event_grid`
Using azure_mgmt_event_hub 0.17.1 from source at `management/azure_mgmt_event_hub`
Using azure_mgmt_features 0.17.1 from source at `management/azure_mgmt_features`
Using azure_mgmt_iot_central 0.17.1 from source at `management/azure_mgmt_iot_central`
Using azure_mgmt_iot_hub 0.17.1 from source at `management/azure_mgmt_iot_hub`
Using azure_mgmt_key_vault 0.17.2 from source at `management/azure_mgmt_key_vault`
Using azure_mgmt_links 0.17.1 from source at `management/azure_mgmt_links`
Using azure_mgmt_locks 0.17.1 from source at `management/azure_mgmt_locks`
Using azure_mgmt_logic 0.17.1 from source at `management/azure_mgmt_logic`
Using azure_mgmt_machine_learning 0.17.1 from source at `management/azure_mgmt_machine_learning`
Using azure_mgmt_managed_applications 0.17.1 from source at `management/azure_mgmt_managed_applications`
Using azure_mgmt_marketplace_ordering 0.17.1 from source at `management/azure_mgmt_marketplace_ordering`
Using azure_mgmt_media_services 0.17.2 from source at `management/azure_mgmt_media_services`
Using azure_mgmt_monitor 0.17.1 from source at `management/azure_mgmt_monitor`
Using azure_mgmt_msi 0.17.0 from source at `management/azure_mgmt_msi`
Using azure_mgmt_network 0.17.4 from source at `management/azure_mgmt_network`
Using azure_mgmt_notification_hubs 0.17.1 from source at `management/azure_mgmt_notification_hubs`
Using azure_mgmt_operational_insights 0.17.1 from source at `management/azure_mgmt_operational_insights`
Using azure_mgmt_policy 0.17.1 from source at `management/azure_mgmt_policy`
Using azure_mgmt_policy_insights 0.17.0 from source at `management/azure_mgmt_policy_insights`
Using azure_mgmt_powerbi_embedded 0.17.0 from source at `management/azure_mgmt_powerbi_embedded`
Using azure_mgmt_recovery_services 0.17.1 from source at `management/azure_mgmt_recovery_services`
Using azure_mgmt_recovery_services_backup 0.17.1 from source at `management/azure_mgmt_recovery_services_backup`
Using azure_mgmt_recovery_services_site_recovery 0.17.1 from source at `management/azure_mgmt_recovery_services_site_recovery`
Using azure_mgmt_redis 0.17.1 from source at `management/azure_mgmt_redis`
Using azure_mgmt_relay 0.17.1 from source at `management/azure_mgmt_relay`
Using azure_mgmt_resources 0.17.2 from source at `management/azure_mgmt_resources`
Using azure_mgmt_resources_management 0.17.0 from source at `management/azure_mgmt_resources_management`
Using azure_mgmt_scheduler 0.17.0 from source at `management/azure_mgmt_scheduler`
Using azure_mgmt_search 0.17.1 from source at `management/azure_mgmt_search`
Using azure_mgmt_security 0.17.1 from source at `management/azure_mgmt_security`
Using azure_mgmt_service_bus 0.17.1 from source at `management/azure_mgmt_service_bus`
Using azure_mgmt_service_fabric 0.17.1 from source at `management/azure_mgmt_service_fabric`
Using azure_mgmt_signalr 0.17.2 from source at `management/azure_mgmt_signalr`
Using azure_mgmt_sql 0.17.1 from source at `management/azure_mgmt_sql`
Using azure_mgmt_stor_simple8000_series 0.17.1 from source at `management/azure_mgmt_stor_simple8000_series`
Using azure_mgmt_storage 0.17.3 from source at `management/azure_mgmt_storage`
Using azure_mgmt_stream_analytics 0.17.1 from source at `management/azure_mgmt_stream_analytics`
Using azure_mgmt_subscriptions 0.17.1 from source at `management/azure_mgmt_subscriptions`
Using azure_mgmt_traffic_manager 0.17.1 from source at `management/azure_mgmt_traffic_manager`
Using azure_mgmt_web 0.17.2 from source at `management/azure_mgmt_web`
Using azure_sdk 0.18.7 from source at `azure_sdk`
Using bundler 1.16.1
Using diff-lcs 1.3
Using dotenv 2.5.0
Using os 1.0.0
Using rspec-support 3.8.0
Using rspec-core 3.8.0
Using rspec-expectations 3.8.2
Using rspec-mocks 3.8.0
Using rspec 3.8.0
Using vcr 4.0.0
Bundle complete! 81 Gemfile dependencies, 103 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Cleaning folder - /tmp/tmp6j2yoocj/sdk/azure_sdk/lib/v2018_03_01
Cleaning folder - /tmp/tmp6j2yoocj/sdk/azure_sdk/lib/latest
Cleaning folder - /tmp/tmp6j2yoocj/sdk/azure_sdk/lib/v2017_03_09
running: bundle exec ruby /tmp/tmp6j2yoocj/sdk/generators/profilegen/src/profile_generator_client.rb --dir_metadata=/tmp/tmp6j2yoocj/sdk/config/dir_metadata.json --profile=/tmp/tmp6j2yoocj/sdk/config/profiles.json --mode=rollup --key=azure_sdk --sdk_path=/tmp/tmp6j2yoocj/sdk
FAILED !!!
/tmp/tmp6j2yoocj/sdk/generators/profilegen/src/profile_generator.rb:208:in `generate_operation_types': uninitialized constant Azure::Authorization::Mgmt::V2015_07_01 (NameError)
Did you mean?  Azure::Authorization::Mgmt::V2015_07_01_preview
	from /tmp/tmp6j2yoocj/sdk/generators/profilegen/src/profile_generator.rb:123:in `block (4 levels) in generate_modules'
	from /tmp/tmp6j2yoocj/sdk/generators/profilegen/src/profile_generator.rb:122:in `each'
	from /tmp/tmp6j2yoocj/sdk/generators/profilegen/src/profile_generator.rb:122:in `block (3 levels) in generate_modules'
	from /tmp/tmp6j2yoocj/sdk/generators/profilegen/src/profile_generator.rb:118:in `each'
	from /tmp/tmp6j2yoocj/sdk/generators/profilegen/src/profile_generator.rb:118:in `block (2 levels) in generate_modules'
	from /tmp/tmp6j2yoocj/sdk/generators/profilegen/src/profile_generator.rb:101:in `each'
	from /tmp/tmp6j2yoocj/sdk/generators/profilegen/src/profile_generator.rb:101:in `block in generate_modules'
	from /tmp/tmp6j2yoocj/sdk/generators/profilegen/src/profile_generator.rb:95:in `each'
	from /tmp/tmp6j2yoocj/sdk/generators/profilegen/src/profile_generator.rb:95:in `generate_modules'
	from /tmp/tmp6j2yoocj/sdk/generators/profilegen/src/profile_generator.rb:68:in `generate_profile_sdk'
	from /tmp/tmp6j2yoocj/sdk/generators/profilegen/src/profile_generator.rb:38:in `generate'
	from /tmp/tmp6j2yoocj/sdk/generators/profilegen/src/profile_generator_client.rb:14:in `block in <main>'
	from /tmp/tmp6j2yoocj/sdk/generators/profilegen/src/profile_generator_client.rb:13:in `each'
	from /tmp/tmp6j2yoocj/sdk/generators/profilegen/src/profile_generator_client.rb:13:in `<main>'

@AutorestCI
Copy link

AutorestCI commented Oct 29, 2018

Automation for azure-sdk-for-java

A PR has been created for you:
Azure/azure-sdk-for-java#2540

@AutorestCI
Copy link

AutorestCI commented Oct 29, 2018

Automation for azure-sdk-for-go

Encountered an unknown error: (azure-sdk-for-go)

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 33, in exception_to_github
    yield context
  File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 170, in rest_handle_action
    return rest_pull_close(body, restapi_repo, sdk_pr_target_repo, sdkbase, sdk_tag)
  File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 185, in rest_pull_close
    rest_pr_management(rest_pr, sdk_pr_target_repo, sdk_tag, sdk_default_base)
  File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github_handler.py", line 151, in rest_pr_management
    sdk_tag=sdk_tag
  File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/SwaggerToSdkNewCLI.py", line 254, in generate_sdk_from_git_object
    with manage_git_folder(gh_token, Path(temp_dir) / Path("rest"), branched_rest_api_id, pr_number=pr_number) as restapi_git_folder, \
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 272, in manage_git_folder
    clone_to_path(gh_token, temp_dir, split_git_id[0], branch_or_commit=branch, pr_number=pr_number)
  File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 200, in clone_to_path
    _git_clone_to_path(https_authenticated_url, folder)
  File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/git_tools.py", line 76, in clone_to_path
    repo = Repo.clone_from(https_authenticated_url, str(folder))
  File "/usr/local/lib/python3.6/dist-packages/git/repo/base.py", line 988, in clone_from
    return cls._clone(git, url, to_path, GitCmdObjectDB, progress, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/git/repo/base.py", line 939, in _clone
    finalize_process(proc, stderr=stderr)
  File "/usr/local/lib/python3.6/dist-packages/git/util.py", line 333, in finalize_process
    proc.wait(**kwargs)
  File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 415, in wait
    raise GitCommandError(self.args, status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git clone -v https://AutorestCI:58ab395c311d1bd75b3e1db1cc8adaf9acc42afe@github.com/Azure/azure-rest-api-specs.git /tmp/tmpk5cpp2ei/rest
  stderr: 'Cloning into '/tmp/tmpk5cpp2ei/rest'...
POST git-upload-pack (gzip 5377 to 2556 bytes)
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
'

@AutorestCI
Copy link

AutorestCI commented Oct 29, 2018

Automation for azure-sdk-for-node

Nothing to generate for azure-sdk-for-node

@lmazuel
Copy link
Member Author

lmazuel commented Oct 29, 2018

@AutorestCI rebuild azure-sdk-for-python

@lmazuel lmazuel merged commit 54ce984 into master Oct 29, 2018
@lmazuel lmazuel deleted the authorization201809py branch October 29, 2018 19:56
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