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

[Automation] Adding command linting for extensions to ensure consistency. #282

Merged
merged 8 commits into from
Sep 5, 2018

Conversation

williexu
Copy link
Contributor

@williexu williexu commented Sep 5, 2018


Closes: #205

-Linter verification occurs whenever index for a extension is modified, therefore publishing a new version of the extension.
-Teams will be expected to address linter problems with their extension when they next publish.

@troydai troydai changed the title Adding command linting for extensions to ensure consistency. [Automation] Adding command linting for extensions to ensure consistency. Sep 5, 2018
fail on error

static check

# Install CLI & Dev Tools
echo "Installing azure-cli-dev-tools and azure-cli..."
pip install --pre azure-cli --extra-index-url https://azurecliprod.blob.core.windows.net/edge
Copy link

Choose a reason for hiding this comment

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

Print the az version so that we can check if the az is the latest build from the log.

set +x # json output is too verbose
public_index=$(az extension list-available -d)
index_file=$(cat ./src/index.json)
modified_extensions=$(python ./scripts/ci/index_changes.py "$index_file" "$public_index")
Copy link

Choose a reason for hiding this comment

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

Ugr, the three lines of code look ugly. Is there a better way?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll put this part of the code all into the python script

@williexu williexu merged commit 8024da6 into Azure:master Sep 5, 2018
@williexu williexu deleted the linter branch October 1, 2018 22:04
ShreyaAnand pushed a commit to ShreyaAnand/azure-cli-extensions that referenced this pull request Dec 31, 2024
Upload model for `az monitor private-link-scope`
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