Граф коммитов

103 Коммитов

Автор SHA1 Сообщение Дата
Qi Pan 774f5305c7
{CI} Pipeline to auto sync resourceManagement.yml according to ADO Wiki Page - Service Contact List (#30012) 2024-10-24 16:19:58 +11:00
ZelinWang b6f11be33d
{CI} Bump pyyaml to latest version 6.0.1 (#26919) 2023-07-18 18:01:22 +08:00
ZelinWang c783f0de4c
{CI} Workaround for error installing pyyaml==5.4, cython_sources (#26917) 2023-07-18 12:29:08 +08:00
Jiashuo Li ba44e95b9d
{Misc.} Remove usages of `six` (#19554) 2021-10-11 15:13:31 +08:00
Jiashuo Li 87004321ec
{Packaging} Drop `mock` library (#19024) 2021-08-04 16:32:35 +08:00
Jiashuo Li 50ccb24528
{Misc} Drop `from __future__ import print_function` (#17364) 2021-03-24 11:10:34 +08:00
Xiaojian Xu 1cf3072bb2
{Package} Migrate CLI packaging system to PEP420 (#14372)
* init pep420 change

* fix linter error

* fix another linter error

* elegant way to handle __main__.py

* remove nspkg

* refactor azure_bdist_wheel to fit wheel 0.34.2

* add namespace package __init__.py to sdist

* fix merge conflict

* fix generic update problem

* fix merge conflict

* upgrade telemetry version

* upgrade telemetry version

* rollback some useless change

* build yum/deb/homebrew etx

* use template to generate formula

* update build.cmd

* update build scripts

* upgrade azure-mutliapi-storage to 0.3.6

* fix debian build script

* fix merge conflict

* init pep420 change

* fix linter error

* fix another linter error

* elegant way to handle __main__.py

* remove nspkg

* refactor azure_bdist_wheel to fit wheel 0.34.2

* add namespace package __init__.py to sdist

* fix merge conflict

* fix generic update problem

* fix merge conflict

* upgrade telemetry version

* upgrade telemetry version

* rollback some useless change

* build yum/deb/homebrew etx

* use template to generate formula

* update build.cmd

* update build scripts

* upgrade azure-mutliapi-storage to 0.3.6

* fix debian build script

* fix merge conflict

* fix merge conflict

* fix generic update test problem

* remove extra __init__.py

* remove __init__.pyc file in debian and rpm

* update build wheel stratages

* update version

* update build scripts

* fix webapp test error

* add __main__.py in sdist

* add test homebrew package scripts

* update version value in __main__.py

* make test_homebrew_package.sh executable

* fix homebrew permission problem

* fix error

* skip some acr tests

* fix style error

* skip config tests

* fix config test MAC error

* fix role config test error

* fix test error

* fix test error

* workaround for vsts bug

* fix test error

* fix homebrew test error

* fix configure test error

* update homebrew package job timeout value

* use released azdev

* rollback pipelines

* rollback pipelines 2

* refactor config test
2020-08-19 17:02:46 +08:00
Jianhui Harold 1384789fa0
{CI} new pipeline to run full automation test for cross verification (#12732) 2020-03-25 15:57:19 +08:00
Feng Zhou dde395cb14
[Packaging] drop support for python 3.5 (#12694) 2020-03-25 11:32:41 +08:00
Jianhui Harold 1ba462d3af
{CI} Enable incremental test on commnad modules only (#12657) 2020-03-23 13:17:05 +08:00
Feng Zhou 0071a8ab49
{Packaging} bump up pyyaml (#12440) 2020-03-06 11:49:17 +08:00
Craig Rodrigues afe1a01d14
Drop support for Python 2.7 (#11363)
Co-authored-by: Jiashuo Li <jiasli@microsoft.com>
2020-02-12 15:48:12 +08:00
Feng Zhou 4f89b707cc
remove python 3.4 support (#11432) 2019-12-09 13:05:58 +08:00
Travis Prescott e00ad99b0d
Fix CI test discovery (#9759)
* Discover tests.

* Debugging

* Fix test discovery

* Re-record tests.

* Re-record tests.

* Adding missing package_data entries (#9760)

* Adding botservice package_data

* Adding core package_data

* Adding acr package_data

* Adding monitor package_data

* Adding servicefabric package_data

* Bump azure-mgmt-authorization SDK version to fix tests.

* Re-record tests and bump azure-mgmt-cosmosdb SDK.

* Remove fuzzy versions.

* Fix version syntax.

* Fix recordings and other test issues.

* Pin requirements.txt for reservations

* Fix AKS tests.

* Re-record tests.
2019-06-24 15:47:37 -07:00
Martin Strobel 1701537992 Merge remote-tracking branch 'azure/dev' into flatten 2019-06-14 09:29:50 -07:00
Travis Prescott b9ba96e628
CLI-wide Preview Status (#9661)
* Update for preview.

* Fix all missing parameter help issues.

* Final preview. Limited restore of ci_exclusions.

* Add HISTORY entry.

* CI issues.
2019-06-13 10:26:40 -07:00
Martin Strobel 4e1c7ac216 Merge remote-tracking branch 'azure/dev' into flatten 2019-06-11 08:49:47 -07:00
Zim Kalinowski e783116add Remove line continuation from inside 'quotes' in help files of az resource (#9540)
* removed line continuations from quotes

* different concatenation mechanism

* fix paramiko version

* fix syntax

* fixed line split

* one more fix

* make it consistent with original algorithm
2019-06-10 09:36:36 -07:00
Martin Strobel 36c928fcde Removing __init__.py lint rule.
Now that we'll be merging all command_modules into the azure-cli package, we no longer need to check other packages to ensure their __init__.py structures are correct.
2019-06-04 16:58:35 -07:00
adewaleo 1bab798589
[wip] az feedback (#8829)
* Command metadata now logged per command. Feedback command can reach this metadata.

Command duration and time since last run now properly shown.

Print format updates. Minor bug fixes.

Prompt user for issue they want info on. Fix bugs.

changes with browser

Skip feedback commands. Browser open works. Verbose shows issue template.

Refactored code, although printing and time logic seems to be incorrect.

* Add tests for az feedback. Update bug_report.md file. Fix exit code bug.

* Address linter/style errors. Update History.rst

Delete last 5 commands if number of cached commands exceeds 25.

Address more style issues.

style fixes

Move feedback test to correct location.

More style fixes.

* Rename FileNotFoundError to OSError. Address style problems.

More style fixes. Fix python 2 error.

* Update command logger context. Ensure that failed show commands log to command metadata logs.

Minor changes.

* Fix docker build issue. Properly detect powershell. Address some feedback.

* Fixed log cleanup bug. Remove sensitive information from command_args. Minor updates.

Fix bug where command_data_dict could be None.

* Detect powershell. Take 2.

* Fix setup.py

* Style fix.

* az feedback no longer shows command duration. Other stylistic updates.

* Style fix.

* Pylint, line too long.
2019-04-04 13:24:22 -07:00
Roshanak Zilouchian 536eee5c79 replacing the find command with the find extension (#8336)
* replacing the find command with the find extension

* fixed linter issues

* added missing license

* fixing syntax issue

* resolving print issue and dependency issue

* Update authoring.md (#8478)

* Update authoring.md

Updates the instructions based on the release of azdev and the updates to `az --version`

* Update authoring.md

* adding an import for print

* fix formatting

* fix formatting

* fixing help file and test failures

* fixing help file white space

* fixing long line issue

* fixing linter issues

* Fix versions and history. (#8611)

* Fix resource release notes.

* supressing help linter rule

* added versioning

* fixing history and readme

* fixing imports

* retrigger the build

* removing colorama

* changing to prod and updating the message

* fix whitespace
2019-03-07 08:09:03 -08:00
adewaleo 7d1d665aaf Add code to handle supported_profiles in examples. (#8496)
* Add code to handle supported_profiles in examples.

* Minor update. Style fix.

* Add unittests for supported_api_version. Update help.py files.

* Remove uses of min_profile and max_profile with respect to help examples.

* Update linter to use supported_profiles.

* Update authoring command docs. Updated storage account example.

* Fix KeyError in faulty_help_example_parameters_rule.

* Minor update to test_supported_profiles.

* Add unsupported-profiles.

Minor style fix.
2019-03-06 15:56:42 -08:00
Travis Prescott d843d1ec35
PyYaml fixes. Bump knack version. (#8696)
* PyYaml fixes. Bump knack version.

* Fix issues with Python 2.7. Update uses of yaml.dump with yaml.safe_dump.
2019-03-06 14:01:28 -08:00
adewaleo ff9f7df151
[linter] Permit examples to contain arguments that start with 'az ' or contain a pipe '|' . (#8608)
* Permit examples to have arguments that start with 'az '.

More carefuly strip unwanted chars.

Minor update.

* Handle az and pipes in command parameters.

* Improve command substitution logic via regex.
2019-03-01 10:37:33 -08:00
adewaleo d04b9ff3af [linter / doc] Add example parameter linter rule. (#8083)
* Preliminary example linter work.

* Faulty help example parameters rule works.

* Updates. Use AzCliCommandParser to parse commands. More intelligently split commands.

* Linter rule does not fail on invalid parameter values. E.g. not valid json or not valid date time type.

* Removed violations limit.

* Updated linter rule error formatting. Updated help entries with incorrect parameters (and problematic formatting).

* Updated dms and resource module help. Minor fixes to printing format.

* Updates to appservice eventhubs and hdinsight examples.

* Fix iot, keyvault, rdbms and vm. Keyvault is wip. Need to properly deal with && and ||.

* Linter properly handles && and || shell control operators.

* Fix network, relay, role and servicebus examples. Minor fix to linter rule.

* Update appservice servicefabric sql and storage examples. Updated linter rule formatting.

* Pacify pep8

* Use proper example parameter placeholder syntax. Remove unnecessary code in cli_linter/util.py

* Fix example by removing comment from command.

* Linter rule skips examples for non-latest profiles. Minor updates to examples.

* Throw LinterError internally instead of SystemExit.
2019-01-16 14:21:30 -08:00
Travis Prescott a97d50eb9a
Bump pyyaml dependency. (#8192) 2019-01-08 14:26:39 -08:00
Travis Prescott abf69e580a Remove unused scripts. (#7860) 2018-12-04 14:09:30 -08:00
Willie Xu 183e858dc0 added rule exclusions for extensions (#7782) 2018-11-08 07:31:00 -08:00
Willie Xu a1f8c7e1f4 moved extension logic back to 'extension' namespace to avoid breaking iot extension (#7691)
* moved extension logic in back to  namespace to avoid breaking iot

* pep8
2018-10-27 07:48:09 -07:00
Travis Prescott 28120b8ba8 Bump Knack version. (#7679) 2018-10-25 17:37:29 -07:00
Willie Xu 1e0e597b88
Move extension logic into core (#7653)
* moved previous 'extensions' event handling logic

* moved all extension management utility to core

* fix ref

static checking

fix test import

* core package

* fix reference

* renamed to register_global_transforms
2018-10-24 15:38:30 -07:00
Travis Prescott c9cac36d26
Fix CI. Remove autopep8 dependency (#7597)
* Update tools setup.

* Remove autopep8
2018-10-17 12:21:55 -07:00
Travis Prescott 6c7195d860
Merge CLI 2.0.48 hotfix to dev and bump versions (#7590)
* Homebrew hotfix.

* CI issue?
2018-10-16 17:28:03 -07:00
Travis Prescott 524491c580
Bump load thresholds. (#7483) 2018-10-03 17:36:29 -07:00
Willie Xu b4f4a8bbad
Fix 'azdev test' automation and storage stack tests (#7182)
* allow azdev to work with profiles

* fix tests for storage stack

* missed a import from rebase

* cleaned up code
2018-08-30 11:03:31 -07:00
Willie Xu 84b8dbfd3d Cleaned up rest of faulty examples (#7133)
* cleaned up rest of faulty examples

* added example linter exclusions

* bumped versions of command modules
2018-08-23 17:02:52 -07:00
Travis Prescott b1c69f1731
[Compute] Deprecate `--storage-caching` option in VM create. (#7119)
* Deprecate `--storage-caching` option in VM create.

* Fix linter rule.
2018-08-22 10:51:20 -07:00
Travis Prescott 0a5587d951
[Monitor] Metric Alerts commands (#7037)
* Metric Alerts commands

* Code review feedback.
2018-08-16 18:28:53 -07:00
Willie Xu c9fe2efc87
Added linter rule to check for command name in example (#7062)
* added linter rule to check for command name in example

* appservice version

* command tables copied into command_loader
2018-08-16 10:04:10 -07:00
Troy Dai 7e6d3cc542
Overhaul Azure CLI telemetry upload process (#6682)
1. Stop starting upload process after each command;
2. Save telemetry to telemetry temp folder under user profile;
3. Start telemetry upload process when enough telemetry data is
accumulated.
4. One telemetry upload at a time.
2018-08-01 16:10:58 -07:00
Troy Dai 25ae82de6d
Add dependency check to CI (#6828) 2018-07-20 15:06:12 -07:00
Troy Dai 44bf889c04
Remove build and publish commands from azdev (#6835)
As these functions have been moved to internal tooling
2018-07-20 09:14:09 -07:00
Willie Xu 69c8ba451a
pin pylint at 1.9.2 (#6809) 2018-07-16 13:46:06 -07:00
Troy Dai 5d852c203b
Pin PyYAML version to 3.13 instead of 4.2b (#6788)
Also: Bump container and interactive module versions
2018-07-13 11:07:16 -07:00
Willie Xu 20200593fa
Added check for properly loading extensions `azdev verify load_all` (#6765)
* added check for properly loading extensions to CI

* static check

* load-all

load-all
2018-07-11 11:14:17 -07:00
Troy Dai 20980354c0
Add automation on 2.7 back to CI (#6726) 2018-07-06 09:16:12 -07:00
Troy Dai e20acd5d64
Temporarily disable automation on 2.7 (#6709)
* Temporarily disable automation on 2.7
* Remove output suppress in automation
2018-07-02 21:45:56 -07:00
Troy Dai 9b6083d95d
Merge branch 'hotfix-2.0.41' into dev 2018-07-02 14:09:28 -07:00
Troy Dai ee53cc3e6f
Upgrade PyYAML to 4.2b4 2018-07-02 11:29:02 -07:00
Travis Prescott b3d52ca0e6
Add Deprecation support (#6472)
* CLI deprecation mechanisms.

* Add encoding to help files. Partial fix #5954.

* Progress.

* Bump versions.

* Workaround for strange help issue.

* CI fixes.

* Update help generation script.

* Fixes for `az interactive`.

* Interactive work

* Bump versions.

* Code review feedback.

* Rebase conflict.

* Code review feedback.

* Code review feedback. Fix command group deletion.

* Bump versions.
2018-06-28 11:01:13 -07:00