Skip to content

{Alertsmanagement} Add __init__.py#1520

Merged
qwordy merged 1 commit intoAzure:masterfrom
qwordy:alertsmanagement2
Apr 8, 2020
Merged

{Alertsmanagement} Add __init__.py#1520
qwordy merged 1 commit intoAzure:masterfrom
qwordy:alertsmanagement2

Conversation

@qwordy
Copy link
Member

@qwordy qwordy commented Apr 8, 2020

{Alertsmanagement} Add init.py
Try to fix import error in CI checks when publishing the extension.


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

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

@qwordy
Copy link
Member Author

qwordy commented Apr 8, 2020

I update index.json in order to trigger doc generation. The failed task succeeds now. I will revert it.

2020-04-08T03:20:17.3108888Z test_ref_doc_alertsmanagement (__main__.IndexRefDocs) ... /opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/sphinx/util/rst.py:26: FutureWarning: Possible set difference at position 3
2020-04-08T03:20:17.3111052Z   symbols_re = re.compile(r'([!--/:-@\[-`{-~])')  # symbols without dot(0x2e)
2020-04-08T03:20:17.3111950Z sphinx-build 1.7.0
2020-04-08T03:20:17.8284572Z Processing /tmp/tmptstywaek/alertsmanagement-0.1.0-py2.py3-none-any.whl
2020-04-08T03:20:18.2921835Z Installing collected packages: alertsmanagement
2020-04-08T03:20:18.3449873Z Successfully installed alertsmanagement-0.1.0
2020-04-08T03:20:18.6646361Z Running Sphinx v1.7.0
2020-04-08T03:20:18.9994436Z loading pickled environment... not yet created
2020-04-08T03:20:19.0017467Z building [mo]: targets for 0 po files that are out of date
2020-04-08T03:20:19.0018026Z building [xml]: targets for 1 source files that are out of date
2020-04-08T03:20:19.0034419Z updating environment: 1 added, 0 changed, 0 removed
2020-04-08T03:20:19.0037422Z reading sources... [100%] ind
2020-04-08T03:20:19.5685787Z FOUND 5 command(s) from the extension.
2020-04-08T03:20:19.5691887Z 
2020-04-08T03:20:19.5692851Z looking for now-outdated files... none found
2020-04-08T03:20:19.5693999Z pickling environment... done
2020-04-08T03:20:19.5694346Z checking consistency... done
2020-04-08T03:20:19.5694642Z preparing documents... done
2020-04-08T03:20:19.5694944Z writing output... [100%] ind
2020-04-08T03:20:19.6326429Z 
2020-04-08T03:20:19.6326968Z build succeeded.
2020-04-08T03:20:19.6327254Z 
2020-04-08T03:20:19.6327892Z The XML files are in ../../../../../tmp/tmpa1kdjgxl/alertsmanagement.
2020-04-08T03:20:19.6328858Z /opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/sphinx/util/rst.py:26: FutureWarning: Possible set difference at position 3
2020-04-08T03:20:19.6329648Z   symbols_re = re.compile(r'([!--/:-@\[-`{-~])')  # symbols without dot(0x2e)
2020-04-08T03:20:19.7375327Z -- Using output directory /tmp/tmpa1kdjgxl/alertsmanagement
2020-04-08T03:20:19.7377529Z -- Executing "/opt/hostedtoolcache/Python/3.7.6/x64/bin/python -m pip install --target /tmp/tmp5zeiy4ll/extension /tmp/tmptstywaek/alertsmanagement-0.1.0-py2.py3-none-any.whl --disable-pip-version-check --no-cache-dir"
2020-04-08T03:20:19.7378695Z -- Executing "sphinx-build -b xml /home/vsts/work/1/s/scripts/refdoc /tmp/tmpa1kdjgxl/alertsmanagement" with AZURE_EXTENSION_DIR set to /tmp/tmp5zeiy4ll
2020-04-08T03:20:19.7379422Z -- Cleaned up temp directory /tmp/tmp5zeiy4ll
2020-04-08T03:20:19.7380047Z -- Ref doc output available at /tmp/tmpa1kdjgxl/alertsmanagement
2020-04-08T03:20:19.7380538Z -- Done.
2020-04-08T03:20:19.7443597Z ok

@qwordy qwordy force-pushed the alertsmanagement2 branch from 531ddea to f54aa91 Compare April 8, 2020 03:31
@haroldrandom
Copy link
Contributor

haroldrandom commented Apr 8, 2020

Test result of job Verify Ref Docs captured from the first commit:
image

it indicates the fix succeeded.

@qwordy qwordy merged commit a9a5a51 into Azure:master Apr 8, 2020
ManuInNZ pushed a commit to ManuInNZ/azure-cli-extensions that referenced this pull request Apr 11, 2020
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.

2 participants