зеркало из
1
0
Форкнуть 0
Граф коммитов

543 Коммитов

Автор SHA1 Сообщение Дата
Azure SDK Bot b027bbba88
fix pipeline (#34185)
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
2024-02-06 02:28:42 +00:00
Azure SDK Bot 4cb239a6ec
[pipeline] optimize log (#34172)
* add more log to show

* update

---------

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
2024-02-05 15:23:00 +08:00
swathipil a97069d7a1
[Core] add perf tests (#33687)
* add upload/download perf tests

* add stream download/pageable perf tests

* update readme + rename test files

* start adding json (tables) request to core perf tests

* add tables put json

* add more json request tests

* cleanup readme + code

* add tables to perf reqs

* add policies arg

* add perf pipeline

* address annas comments

* address more comments

* add results-per-page option for list entities pageable perf test

* add aad auth arg

* address comments

* more comments

* fix upload binary test

* update perf pipeline

* comments

* test setting processes to 1

* fix resourcenotfound error

* update perf yml

* update regex of args

* remove debug logging

* add len to random stream to fix requests content length bug

* add requests transport to perf tests yml

* black

* fix mypy error in samples

* update perf timeout

* fix aiohttp sync upload stream bug
2024-02-02 13:57:15 -08:00
Jacob Lauzon 43452dd63e
[Storage] Introduce `azure-storage-extensions` (#33991) 2024-01-26 03:36:01 +00:00
McCoy Patiño 8262041a02
Support user-based authentication in live tests (#33994) 2024-01-24 17:06:44 -08:00
Scott Beddall 7624a2757c
Use prebuilt wheel dir to resolve necessary azure requirements before using repo version (#33911)
* enable our prebuilt wheel dir to override a located relative path
2024-01-19 10:54:13 -08:00
Scott Beddall 215eeac832
Nightly Dependency Replacement (#33908)
* probably need to ensure that sanitize_setup and create_build_and_install both submit True as well, but let's see if this works
* version_set_dev implies that we will always be working in a dev context, so should pass along dev=True
2024-01-18 16:07:05 -08:00
Krista Pratico 9dac56c3c0
close vnext issues if library passing (#33494)
* add close_vnext_issue function

* add close_vnext_issue function to ci checks that create issues

* add strict sphinx

* log GH issue number we're closing
2024-01-17 19:02:44 -08:00
Yuchao Yan 36caf9bbd7
drop py3.7 (#33753) 2024-01-09 14:50:22 -08:00
Scott Beddall fc9d4e538b
Remove Python 3.7 (#33722)
* remove 3.7
* require pygithub (and from there pynacl) from the default requirements set. this should allow testing on windows pypy39 to successfully install requirements
* remove python_version spec
* rebalance to force windows onto py310. there iwn't a wheel for pywin32 that works with pypy
* Update tools/azure-sdk-tools/setup.py
2024-01-09 13:21:15 -08:00
Paul Van Eck 56b5c3a57b
[CI] Fix parsing of dev_requirements with comments (#33734)
Encountered some issues with the generation.py script
when comments are in the dev_requirements.txt file. This
change correctly parses them.

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
2024-01-08 17:32:59 -08:00
Krista Pratico dd994c840b
create GH issues for strict sphinx (#33404)
* add strict-sphinx for issue creation

* add vnext_issue creator to run_sphinx_build

* add GH_TOKEN to generate docs to step

* update template

* update date to april deadline

* don't need args

* only open issues if running in analyze-weekly

* add in rohit's feedback
2023-12-15 11:00:24 -08:00
Krista Pratico 8acb041de5
CI enabled flag (#33387)
* try ci_enabled flag

* try using a gh env var

* fix import

* set env var, add filter in discover_targeted_packages

* add Public param to ci.yml test

* retry setting env var

* pass through template

* missing paren

* don't look for Public in ci.yml

* try again

* remove unrecognized arg

* print vars

* try checking build.reason

* few fixes + prints

* try testing skip

* try more prints

* try more prints

* try more prints

* try nonempty packages list

* ignore discover_targeted_packages for now

* try again

* try again

* try no parameter

* missed import

* accidentally deleted other var

* try again

* fix

* test set PULLREQUEST

* missed var

* set var correctly

* don't fail docs step

* remove condition

* comment

* fake pull request run

* with discover targeted packages filter run

* remove print debugs

* try only publish artifacts if they exist for docs

* remove filter for now

* try again

* set in right tempalte

* switch to a service we actually want to disable

* formatting

* feedback

* block on release if ci_enabled=false

* test disabling ci for template, should block on release

* remove test setting from azure-template

* remove unused import and add small doc
2023-12-14 16:07:23 -08:00
McCoy Patiño 5c4c683dcb
Remove internal `azure-devtools` references (#33492) 2023-12-14 15:24:25 -08:00
McCoy Patiño ad5ddf4e71
Remove deprecated test classes (#33400) 2023-12-13 09:40:03 -08:00
McCoy Patiño 630b103822
[Batch] Migrate to new test class inheritance and structure (#33388) 2023-12-13 09:30:51 -08:00
mccoyp 7b36743b5c [skip ci] Move perfstress_tests to devtools 2023-11-29 17:13:21 -08:00
McCoy Patiño 6dd921cc3e
Move away from `azure-devtools` test exceptions (#33273) 2023-11-28 11:11:50 -08:00
McCoy Patiño 8491fe43a0
[Communication] Remove references to deprecated `azure-devtools` library (#33191) 2023-11-28 11:06:54 -08:00
Scott Beddall 480c276faf
fix regression while installing azure-ml package (#33320) 2023-11-28 18:55:25 +00:00
catalinaperalta ca7bc6c1ab
allow post process for tsp generated projects (#33173) 2023-11-15 02:20:14 +00:00
Patrick Hallisey c73beedea0
Add language-settings functions for generic regeneration pipeline support (#32011) 2023-11-14 15:33:32 -08:00
Scott Beddall da947a9fce
Add `Optional` Environment (#32332)
* updates to eng/ci_tools and eng/test_tools.txt to allow necessary additions for compatibility
* added new namespace to azure-sdk-tools: ci_tools.scenario.
  * ci_tools.scenario is used to emplace any code that actually does the action of installing a dependency, replacing requirements, building on the fly, etc. This means that create_package_and_install and replace_dev_reqs both are moved into this module
* created tox environment 'optional'. This tox environment utilizes array items of pyproject.toml config item 'tool.azure-sdk-build.optional' to install requirements for specific test scenarios before invoking tests against them. These tests are run within a custom venv for each optional configuration item in pyproject.toml, location .tox/optional/<envname>/
  * the new 'optional' environment is enhanced to allow users to pass in the target environment EG: 'tox -e optional --root . -c ../../../eng/tox/tox.ini -- --optional no_requests'

Co-authored-by: Laurent Mazuel <laurent.mazuel@gmail.com>
Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com>
2023-11-13 17:01:58 -08:00
Xiang Yan aacafd98da
update docs and debugging info (#33111)
* update docs and debugging info

* Update doc/dev/code_snippets.md

Co-authored-by: Krista Pratico <krpratic@microsoft.com>

---------

Co-authored-by: Krista Pratico <krpratic@microsoft.com>
2023-11-10 16:49:09 -08:00
Scott Beddall 296bbb622b
Enable Build of Non-Universal Wheels (#32911)
* Temporarily Scaffold new azure-storage-extensions package
* Update parse_functions.py to pick up extension modules and package names
* Add additional code testing parse_function for the new functionality
* Update build.py to invoke cibuildwheel to produce platform-specific wheels where necessary

Co-authored-by: Jacob Lauzon <jalauzon@microsoft.com>
Co-authored-by: Azure SDK Bot <adxpysdk@microsoft.com>
2023-11-09 13:34:48 -08:00
Scott Beddall d88fdea88b
Adjust Build of Relative Dependencies (#32883)
* updated replace_dev_reqs to handle all cases of relative installs to handle local relative deeps _deeper_ than the target package. Previously only handled relative deps starting with ../
* added unit tests for replace_dev_reqs to ensure that packages are replaced (or left alone) as expected
* apply black
* update scenario to include 'here'. update test to use automatic tempdir cleanup per Kevin's feedback

---------

Co-authored-by: kdestin <101366538+kdestin@users.noreply.github.com>
2023-10-31 16:07:36 -07:00
McCoy Patiño e75ba90665
[Test Proxy] Fix async tests on latest Core (#32751) 2023-10-25 23:34:56 +00:00
Krista Pratico e4dc09e657
be smarter about matching exact package name for vnext issues (#32714) 2023-10-24 18:31:30 -07:00
catalinaperalta 5a4f295f09
Update tox run -e generate for tsp-client tool release (#32553)
* update tox generate

* update tsp-location.yaml error message
2023-10-23 16:28:28 -07:00
Scott Beddall 98fb30ad9f
Updates to interactions with `pyproject.toml` (#32480)
* cleaning up setup_execute_tests. removing code paths that have gone completely unused since being implemented (to mirror previous methodology if necessary). cleaning up arguments that aren't used. cleaning up imports. generally just tightening up of the script and clarifying it's purpose.
* adding the ability to update a pyproject.toml easily
* adding tests for new update functionality
 
Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com>
Co-authored-by: Scott Beddall <45376673+scbedd@users.noreply.github.com>
Co-authored-by: Scott Beddall (from Dev Box) <scbedd@microsoft.com>
2023-10-18 14:06:14 -07:00
McCoy Patiño eb22d096b4
[Test Proxy] Reduce excessive logging during tests (#32476) 2023-10-12 18:06:35 -07:00
McCoy Patiño 9a483b87a9
[Test Proxy] Automatically rotate local certificate (#32449) 2023-10-12 11:24:47 -07:00
Scott Beddall a28103b2e4
Add Python 3.12 to build matrix (#31758)
* Add python 3.12 to platform matrix for tests
* Various updates to test_tools.txt and ci_tools.txt to enable compatibility with python 3.12 at test run time
* Adjust build matrix for metricsadvisor and tables to route python 3.11 from windows to ubuntu machine, bypassing issue #32409 
* Add manually built cffi and aiohttp to test_tools.txt to enable async recorded tests on python 3.12
* Various updates to minimum range in install_depend_packages.py. All due to various levels of support for py 3.12
* Add the concept of platform specific override for minimum version, allowing the invoking platform to further refine the selection from pypi
* Updates and extensions to tools/azure-sdk-tools to handle cleanup of git idx files with wonky permissions
* Disable latestdependency and mindependency in azure-eventhub-checkpointstoreblob-aio. Follow-up issue #32422 
* Various other small updates to enable further compatibility

Co-authored-by: Krista Pratico <krpratic@microsoft.com>
2023-10-10 17:19:22 -07:00
Laurent Mazuel d03940fae4
Improve SDK automation debugging (#32302) 2023-10-09 06:14:30 +00:00
Chenjie Shi f0ceeb9b1a
Update sdk_generator.py (#32263)
fix python sdk generation problem
2023-09-28 04:11:30 +00:00
McCoy Patiño 8913e9d325
Update `devtools_testutils` documentation (#32259) 2023-09-27 17:05:45 -07:00
Scott Beddall 2cb9ce8e0c
Fix Snippet-Update Tests (#32217)
* fix tests
* local path
2023-09-25 14:15:35 -07:00
Yuchao Yan 0405b01f70
fix toml write (#32209) 2023-09-25 17:02:55 +08:00
Scott Beddall a743c56328
Upgrade Sphinx (#32066)
* updates to test sever, removing a couple of the pins from test_tools and ci_tools.txt
* remove bad readme_renderer requirement
* simplifying requirements. fixing requirement file for invoking analyze
* repair issues with pypy39 due to twine installation
* exclude azure-core-tracing-opencensus from sphinx build
* eliminate pytoml dependency
* Update Sphinx to v6.x
* safe import of tomli on <py311. import tomllib on >=py311. always pull in toml-w

Co-authored-by: Laurent Mazuel <laurent.mazuel@gmail.com>
2023-09-21 11:40:33 -07:00
ChenxiJiang333 44cf627956
Update README.md (#32154) 2023-09-21 09:51:58 +08:00
Scott Beddall 616ee29c91
Conda Pipeline Adjustments (#31968)
* adjustments recommended by McCoy
* apply black to adjustments
* our conda packages only support 38 -> 311
2023-09-18 17:37:49 -07:00
Laurent Mazuel 668f410822
Remove vcrpy completely (#32022)
* Remove vcrpy fork

* Packaging update of azure-mgmt-storagesync

* Fix azure-core tests

* cspell

* Fix tests without sdktools

* Adjust tag for azure sdk

---------

Co-authored-by: Azure SDK Bot <adxpysdk@microsoft.com>
2023-09-11 17:54:31 -07:00
Scott Beddall c82f016de6
Add Keyword Check (#31823)
* parse 'keywords' from setup.py in ParsedSetup class
* take advantage of parsed keywords to add new tox environment that verifies that 'azure sdk' is present in the keywords for our packages
* add check to 'analyze' step to invoke newly added keyword check
2023-09-07 16:10:57 -07:00
Scott Beddall f1f3836980
Refactor Conda Pipeline (#31804)
- Restructure per-service conda builds to a single, unified conda build located within `conda-sdk-client`
- This newly refactored pipeline takes the form of two stages. the first builds multiplatform conda packages against py38,39,310,311. the second builds all our universal (noarch) conda packages.
- Move all conda releaselogs under `conda/conda-releaselogs`
- Move all conda recipes from Xiang's personal build store into the official repo
- Refactor conda build pipeline from a script within `devops_tasks` directory to an entrypoint within `azure-sdk-tools`
- Update conda build within azure-sdk-tools to _also retrieve package data_ prior to assembling a conda package. This totally eliminates the need for a difference in CI and local invocation, and massively simplifies the CI pipeline steps
- Update conda version to 2023.09.01
2023-09-06 16:24:33 -07:00
catalinaperalta 0516392254
[generate client] Add post processing option when generating from autorest (#31865)
* add post processing option when generating from autorest

* check if generate section is present

* nit

* update toml section name
2023-08-31 10:41:22 -07:00
Laurent Mazuel d053b3cf39
Generate script (#31649)
* Generate script

* Python folder

* Add TSP support

* Simplify PS mode

* Add tox env

* add shell arg for autorest

---------

Co-authored-by: Catalina Peralta <catalinaperaltah@hotmail.com>
2023-08-29 13:57:13 -07:00
Krista Pratico e857bd3adf
don't run mypy on nonexistent samples dir, fix pip install for tox (#31738) 2023-08-24 14:19:58 -07:00
Scott Beddall 6faa888258
Produce Source Distribution and Documentation as tar.gz (#31419)
* remove all references to *.zip files throughout CI
* source distribution and documentation artifact are now all tar.gz files
* update all references to artifact .zip -> .tar.gz

Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com>
2023-08-15 17:07:37 -07:00
Krista Pratico 33f3fe6cc2
vnext issue creator script (#31474)
* try getting build id

* try more env vars in ci

* try print env var

* try print env var

* wip

* add vnext script

* update label for creating issue

* move dep

* add envar to vnext steps

* add gh token to pipeline

* fix package name and lines too long

* move vnext script to azure-sdk-tools/gh_tools per feedback

* cspell

* fix more cspell
2023-08-11 14:17:26 -07:00
Yuchao Yan a0374d4763
fix (#31563) 2023-08-10 16:11:59 +08:00
Azure SDK Bot 8c57ba14fe
update (#31426)
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
2023-08-03 09:46:37 +08:00
Azure SDK Bot b646f92070
[multiapi combiner] optimize logic to skip files under `v20*` when packaging (#31359)
* update

* optimize logic about finding tag

* pip install after updating setup.py

* update

---------

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
2023-07-28 05:40:51 +00:00
Azure SDK Bot 7222a5d779
update (#31341)
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
2023-07-27 08:12:46 +00:00
Azure SDK Bot e9be85f738
[multiapi] optimize pipeline to speed (#31321)
* keep old code

* keep old api version folder

* init code

* black

* udpate

* review

* review

* review

* review

* review

* complete

---------

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
2023-07-27 13:25:46 +08:00
Paul Van Eck a7519f925c
[Core] Add CAE flag to auth policies (#31012)
This first adds a keyword argument to the TokenCredential protocol method `get_token`.

This enables users and client SDKs to pass in a flag to denote that
`get_token` requests should be requesting CAE tokens.

If the underlying credential's `get_token` implementation supports this
flag, then a CAE token will be requested. Otherwise, a non-CAE token
will be requested.

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
2023-07-26 17:16:38 -07:00
McCoy Patiño e70aa6d831
[Test Proxy] Dynamically create HTTP clients (#30789) 2023-07-20 17:29:27 -07:00
Azure SDK Bot 773896922c
[multiapi combiner] fix for api version validation (#30881)
* fix

* Fix

* update

---------

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
2023-06-26 13:42:36 +08:00
Azure SDK Bot d1e926abcf
[multiapi combiner] fix api-version validation (#30880)
* fix api-version validation

* review

* fix

* fix

---------

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
2023-06-26 03:29:54 +00:00
Yuchao Yan 2ac597f0d6
[Pipeline][typespec] use common script (#30646)
* use common script

* update for automation

* update

* update

* remove unnecessary dependency

* update python emitter

* Update emitter-package.json
2023-06-14 14:00:17 +08:00
Xiang Yan d16dacf4b2
update snippet update tool (#30456)
* update snippet update tool

* add test script
2023-06-12 12:48:05 -07:00
Yuchao Yan ca0105e482
fix (#30680) 2023-06-12 12:44:33 +08:00
McCoy Patiño 979bdd22ba
[Test Proxy] Explicitly mark proxy executable as runnable by all users (#30473) 2023-06-01 10:43:51 -07:00
Yuchao Yan a8b0542804
update (#30592) 2023-06-01 16:09:19 +08:00
Yuchao Yan cab589490f
add _api_version for mixin operation group (#30553) 2023-05-31 15:13:22 +08:00
Scott Beddall b29b0db2c6
"Find Wheel" now handles platform-specific artifacts during selection (#30196)
* selection of wheel now honors the invoking executable's pip compatibility tags to select the correct wheel from a list
* add a unit test testing the selection algo

---------

Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com>
2023-05-30 17:25:41 -07:00
Yuchao Yan 58ac90978f
update (#30558) 2023-05-30 08:57:50 +00:00
Yuchao Yan e328ef62f9
add check for multiapi (#30555) 2023-05-30 06:27:04 +00:00
Scott Beddall 7956ddf267
fix samples invocation to ignore nonstandard python versions on a devops agent (#30547) 2023-05-26 11:23:10 -07:00
Xiang Yan 873a22dc73
update setup template (#30536) 2023-05-25 14:06:58 -07:00
Xiang Yan f5a1b44629
Update setup template to make black happy (#30510) 2023-05-25 08:53:00 -07:00
kdestin 982234bf05
[engsys] Migrate to tox4 (#30159)
* Remove references to {envbindir}

    tox prepends the {env_bin_dir} to $PATH, so commands
    will default to using the virtual environment first.

    See: https://tox.wiki/en/4.4.11/config.html#commands

    One of tox's core maintainers also discourages its use:
      https://github.com/tox-dev/tox/issues/2909#issuecomment-1409806654

* refactor: Write paths relative to git root, instead of package dir

    Uses an inline plugin (toxfile.py) to make a computed config
    value avaiable to tox environments.

* refactor: Rename {toxinidir} to {tox_root}

    {toxinidir} is an alias for {tox_root}, but {tox_root} is:
      * More clear: {tox_root} isn't necessarily where the ini file is
      * Shorter

* refactor: Flatten some commands that are no longer super long

* refactor: Make a pytest section

* refactor: Remove `changedir = {tox_root}`

    This is the default behavior, see:

    https://tox.wiki/en/4.4.11/config.html#change_dir-external

* fix: {distdir} is deprecated

    See: https://tox.wiki/en/latest/upgrading.html#removed-tox-ini-keys

* fix: Remove --ignore-installed from pip command

    --ignore-installed can break a python installation if multiple
    conflicting versions of a package are installed

* refactor: Add descriptions to all tox environments

* fix: Remove ineffective platform config

    platform = linux: linux
               macos: darwin
               windows: win32

    Setting the above in the base environment has no effect:
        * None of the environments have {linux,macos,windows} in the
          name, so the platform config is always empty.

* chore: Bump `tox` to `>4.4.11` and no longer install `tox-monorepo`

    tox4 natively solves what `tox-monorepo` was written to solve:
    `--root` lets you set `toxinidir` independently of the config
    file in use.

    4.4.11 was chosen as the cutoff since it was the first release to
    include a fix to `--root` that prevented `{work_dir}` from being
    changed when `{toxinidir}` was changed by `--root`.

    `tox-monorepo` should no longer be needed

* docs: Update CONTRIBUTING.md to use tox 4 commands

    * References to tox-monorepo were removed
    * Replaced discussion of `tox -l` with tox4's `tox list`
    * Updated examples to use `--root`

* docs: Make `azure-media-{videoanalyzer,analytics}-edge`'s DevTips.md point to CONTRIBUTING.md for tox

* docs: Remove remaining references to tox-monorepo

* doc: Use `--root` throughout documentation

* engsys: Make tox_harness set `{toxinidir}` when invoking tox

* engsys: Set required tox version in config

* docs: Use the new url for tox docs

* docs: Add a callout that TOX_* environment variables control defaults

    * TOX_CONFIG_DIR can be used to permanently set --conf
    * TOX_ROOT_DIR can be used to permanently set --root

* update packaging requirement everywhere it is used.

* fix cspell

* docs: Use `tox run` syntax throughout documentation

* engsys: Use `tox run` syntax in tox_harness.py

* docs: Replace – (U+2013 : EN DASH) with - (ASCII code 45)

* update pytest requirements + coverage.

* update virtualenv

* more conflicts resolved

* bringing in urllib3 restriction, aligning ci_tools.txt with test_tools.txt

* check_call requires a list of type string. if we append ['blah', 'blah'] we are actually inserting another array. just use regular array concatenation

* engsys: Tox uses `run` for serial execution and `run-parallel` for parallel`

* azure-core: Use `@pytest_asyncio.fixture` to mark an asyncio fixture

    See https://pytest-asyncio.readthedocs.io/en/latest/concepts.html#strict-mode

* pin coverage to newer version with no conflicts

* identify issue with missing code coverage being caused by wrongly named namespace (#30344)

* remove fix of dotfile!

* apply black formatting to resolve failing analyze step

* tox installing tox. probably not a good thing :)

* engsys: Remove `tox` from `azure-media-analytics-edge` dev_requirements

* align regression version of ci/test_tools.txt

* new coverage format requires that the package sources be present when combining .coverage files. amend our tox tree cleanup to exclude the whl directory when running coverage.

* ensure that missing hidden folder can't break cleanup operation

* ensure coverage isn't generated on whl_no_aio

* ensure that coverage is generated without wonky package paths

---------

Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
2023-05-23 10:11:23 -07:00
Yuchao Yan 4382ee39c6
[Pipeline] add process to call `multiapi combiner` (#30284)
* update

* update

* fix install
2023-05-09 10:27:55 +08:00
McCoy Patiño dad01cc59c
Require `urllib3` version less than 2 (#30203) 2023-05-03 19:00:11 +00:00
Yuchao Yan 164888fd1f
Fix multiapi combiner for operation_mixin (#30098) 2023-04-27 09:25:15 -07:00
McCoy Patiño 497f5f3435
Expand test scoping functionality (#30066) 2023-04-26 10:35:57 -07:00
Yuchao Yan 7d8cf59358
update package version rule (#29986)
* update package version rule

* update
2023-04-20 18:56:55 +08:00
McCoy Patiño 571cbd3540
[Test Proxy] Restore PROXY_URL setting functionality via .env (#29912) 2023-04-18 12:05:39 -07:00
Yuchao Yan a5e55d7936
update (#29851) 2023-04-14 13:56:57 +08:00
Azure SDK Bot 94adc0ea21
update (#29692)
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
2023-03-31 14:57:43 +08:00
Yuchao Yan 02362dabad
Fix swagger pipeline folder name in ci yaml (#29686)
* update

* udpate
2023-03-31 11:11:46 +08:00
iscai-msft ba0622efe2
fix deprecation warning for regex (#29635) 2023-03-28 13:05:50 -07:00
Ray Chen ca3588416a
Update sdk_generator.py (#29619)
Aligned the name to typespec or TypeSpec.
2023-03-28 13:53:35 +08:00
iscai-msft 4fa0545332
switch tooling over to typespec (#29501)
* switch tooling over to typespec

* Update sdk_generator.py

* fix

---------

Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
2023-03-24 09:47:24 +08:00
Scott Beddall f1a39c98f5
Remove `docker` integration with test framework (#28941) 2023-03-22 13:38:48 -07:00
iscai-msft cd49708b05
fix models dict classmethod (#29498) 2023-03-21 17:14:27 -07:00
McCoy Patiño e23d9a6b1e
[Test Proxy] Account for unexpected TypeErrors (#29476) 2023-03-20 15:14:27 -07:00
iscai-msft 10a47835fa
[mulitapi combiner] combine models in multiapi sdk (#28718) 2023-03-20 15:00:24 -07:00
Scott Beddall b62e8e7ab2
Pin newest `setuptools` wherever we use it (#29410)
* pin latest setuptools such that it won't be uninstalled during combined install
* Update eng/pipelines/templates/jobs/tests-nightly-python.yml

Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com>
2023-03-16 17:11:05 -07:00
swathipil 094cd29a56
remove msrest dependency from mgmt template + add isodate (#29318)
* remove msrest dependency + add isodate

* Update setup.py

---------

Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
2023-03-14 11:39:39 +08:00
Scott Beddall f0ab89bb21
Simplify Shared Requirements (#29224)
* Moves the analyze_deps script into azure-sdk-tools as an entrypoint 'sdk_analyze_deps' and add typing information to definition file
* Updates the analyze_dependencies module to evaluate the dependency specifiers found across the repo. If any combination of specifiers eliminates all available versions from PyPI (combined with local if present) we will throw. This won't catch transitive dependencies, but it will definitely catch conflicts in directs. A follow-up PR enabling poetry will validate transitive deps.
* Updates our shared_requirements.txt to more of a known dependencies list. It is now more of a "Yes we do have an external dep on isodate. None of the specifiers cause conflicts though."
2023-03-13 15:20:17 -07:00
Limin Gu 3266952230
update (#29297)
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
2023-03-13 10:34:18 +08:00
Krista Pratico 90d9bdcc33
add newline cushion between tags and python snippet in snippet update script (#29170)
* add newline cushion between tags and python snippet in snippet updater script

* run snippet updater script on libraries that use sample tags in readme
2023-03-08 09:34:42 -08:00
Paul Van Eck 179a88c5b0
[Perf] Perfstress framework profiling enhancements (#28043)
- When a user uses the `--profile` argument with the PerfStress
  framework, sorted pstats output of the cprofile data is now output
  to stdout.
- Profiling now supported with Event perf tests
- The warmup stage will now correctly run when profiling is enabled.
- A `--profile-path` argument is added to allow customization
of the output file/path.
- Now we restrict parallelism to 1 when profiling

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
Co-authored-by: antisch <antisch@microsoft.com>
2023-03-07 12:43:15 -08:00
Yuchao Yan 4b6a811cf0
Cadl refresh sdk script (#28801)
* init

* test package

* update

* update:

* udpate readme

* update:

* update:

* update

* version

* version

* fix

* fix

* delete annotation code

* Update emitter-package.json
2023-03-03 10:44:49 +08:00
Xiang Yan 49a2f49b96
readme update to opt in code snippet tool (#28889)
* app config

* updates

* update readmes

* Update sdk/keyvault/azure-keyvault-certificates/README.md

Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com>

* update

* update

* update

* update

* Update sdk/keyvault/azure-keyvault-keys/README.md

Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com>

* update

* update

* update

* Update sdk/keyvault/azure-keyvault-secrets/README.md

Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com>

* Update sdk/keyvault/azure-keyvault-secrets/samples/hello_world.py

Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com>

* Updates

* update

* update

* update

* update

* update

* updates

* update

* update

* update

* updates

* update

* update

* update

* update

* update

* update

* update

---------

Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com>
2023-02-24 07:12:49 -08:00
Yuchao Yan 9648e211c4
[Pipeline] optimize multiapi generation (#28931)
* remove old sdk code

* optimize

* update function name
2023-02-22 13:54:45 +08:00
swathipil e06f84a33f
update cached preparer call with kwargs (#28814) 2023-02-15 11:19:59 -08:00
scbedd 2f7c5c13d8 add pyproject.toml where necessary to honor the existing environment skips. remove existing exclusion lists from environment_exclusion.py ***NO_CI*** 2023-02-14 19:52:55 -05:00
Scott Beddall 8d921366bd
Local `tox` checks do not skip (#28612)
* update to only apply the is_check_enabled when we are in CI, all tox environments will run regardless if target package is configured to skip them in CI or not.
* now skipping an entire analyze entire step if possible
* now marking skipped package / environment combinations
2023-02-10 16:10:47 -08:00
Krista Pratico 8a48c7e3fc
fix local tox for pyright/verifytypes to match ci run (#28641)
* don't install azure-core via editable install from dev reqs for verifytypes

* make same change for pyright so we aren't mixing whl/sdist install with editable install when running locally

* create whls locally

* create whls for deps for pyright/verifytypes

* move shared code to ci_tools.functions and share between tox harness and script

* cspell
2023-02-10 14:31:04 -08:00
Yalin Li a332ad5e3e
[ACR] Fix mypy errors (#27852) 2023-02-06 23:12:13 -08:00
Yuchao Yan d5e8122971
fix (#28652) 2023-02-06 16:28:27 +08:00
McCoy Patiño 7cf2dbdbdf
[Test Proxy] recorded_test compatible with any pytest-asyncio (#28645) 2023-02-03 22:37:38 +00:00
Krista Pratico f8315ad640
[translation] regen+typing (#27786)
* some typing improvements

* regen and rerecord now that we don't gen with maxpagesize anymore

* fix typing errs and dependencies

* shared reqs

* enable samples for pyright/mypy

* cspell

* fix cspell again

* update

* update recordings tag

* pep526 type hints

* regen
2023-02-02 12:46:49 -08:00
Scott Beddall 429cba75bc
ensure that we trust the same cert bundle when checking the status of the test-proxy as we do when interacting with the test-proxy (#28511) 2023-01-31 10:08:34 -08:00
Scott Beddall 3e3056c26a
ensure versioning tooling works against packages with "test" in the name (#28467) 2023-01-24 14:32:01 -08:00
Paul Van Eck 6d96872435
[Monitor][Ingestion] Enable typing checks (#28439)
This enables mypy, pyright, and verifytypes checks.

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
2023-01-23 16:44:33 -08:00
Scott Beddall f538be5977
Eliminate Remaining `requests` usage within `azure-sdk-tools` (#27101)
* eliminate remaining requests usage from azure-sdk-tools
* directly add Paul's recommendations, definitely on point
* ensure that a None header gets flattened to empty string.
* ensure that the urllib3 clients honor the same certificate bundle that requests does
2023-01-20 13:18:15 -08:00
Scott Beddall d0f6d33c7e
Enable Pyproject Inclusion (#28345)
* inactive packages are still assembled, but will not be automatically tested unless included using ENABLE_PACKAGE_NAME=true
* checks can now be individually disabled through the pyproject.toml
* added package classifiers to ParsedSetup properties
* add new function is_check_enabled which combines environment_exclusions, pyproject.toml, and environment overrides into one slick package
* all run_check scripts now honor is_check_enabled to enable/disable atomically
* update eng_sys_checks for new functionality
* add pyproject.toml for all core/ packages
* enable black on only track 2 core packages
* remove package build exclusion list in favor of honoring classifier
* update a couple packages with Inactive classifier so they are no longer built. azure-mgmt-scheduler, azure-mgmt-documentdb, azure-mgmt-regionmove

Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com>
2023-01-19 16:41:18 -08:00
hemarina 5ad2f8394b
Add Azure Developer Credential (#27916)
* add azd

* apply changes on default, aio and test

* add changelog

* debug test

* modify tests and clear comment

* add --tenant-id

* --tenant-id test

* remove object, add option on init function

* merge

* fix test, add optional package

* Add updates on Readme later once we have the doc

* use https in the link

* pylint

* typing

* update changelog

* pylint

* pylint

* break long string in multiple lines

* verfitypes

* skip typing

* add comment
2023-01-19 11:41:24 -08:00
catalinaperalta 53429d2698
[formrecognizer] Typing updates (#27917)
* add typing for models

* add init typing

* remove FR from ci opt out check list

* type ignore

* exclude _generated from pyright check

* add py.typed to package data

* mypy fixes

* continue opting out of pyright

* pylint warnings for lists

* pylint fix on list

* pylint

* pylint fixes

* newline

* ci

* mypy samples fixes

* temporarily skip sample type checking

* update typing for v2 models

* update typing for v3 models

* correct form_type_confidence type

* update changelog

* update dict typing

* update list typing

* remove pyrightconfig.json

* pylint

* fix merge issues

* remove fr from exclusion list

* remove pylint disables
2023-01-12 17:45:01 -08:00
Xiang Yan 22c738ad26
Improve typing (#28216)
* Impove typing

* updates

* update

* updates

* updates

* updates

* update

* update

* Update sdk/search/azure-search-documents/azure/search/documents/_utils.py

Co-authored-by: Kashif Khan <361477+kashifkhan@users.noreply.github.com>

* update

* updates

* Update sdk/search/azure-search-documents/azure/search/documents/aio/_search_indexing_buffered_sender_async.py

Co-authored-by: Krista Pratico <krpratic@microsoft.com>

* Updates

* update

* remove _flatten_args

* add _flatten_args back

* update

* update

Co-authored-by: Kashif Khan <361477+kashifkhan@users.noreply.github.com>
Co-authored-by: Krista Pratico <krpratic@microsoft.com>
2023-01-11 10:23:04 -08:00
Paul Van Eck 83fca5e8f4
[Monitor][Query] Improve typing (#28175)
[Monitor][Query] Improve typing

This enables the mypy, pyright, verifytypes checks in the CI, and also
adds some typing improvements in order to pass the checks..

* Use class attribute style typing
* Class ordering in models file was changed a bit to allow
  for class attribute typing.

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
2023-01-10 19:18:35 -08:00
Yuchao Yan 199c09c99d
[pipeline][cadl] add global config (#27847)
* add global config

* fix path

* Update generate_utils.py

* update

* update output-folder

* update init new service

* review

* review

* use latest version

* pin version
2023-01-10 18:56:13 +08:00
McCoy Patiño b09567f7fe
[CredScan] Remove general string suppressions (#28151) 2023-01-09 18:02:07 -08:00
Xiang Yan e639e36108
Typing for identity (#28159)
* Typing for identity

* updates

* updates

* updates

* updates

* updates

* updates

* update

* update

* updates

* update

* updates

* updates

* updates

* update

* updates

* Update sdk/identity/azure-identity/azure/identity/aio/_credentials/azure_cli.py

Co-authored-by: Krista Pratico <krpratic@microsoft.com>

* updates

* update

* update

* update

* update

* updates

* Updates

* update

Co-authored-by: Krista Pratico <krpratic@microsoft.com>
2023-01-06 07:44:07 -08:00
Yuchao Yan 2a26cd625a
Fix template readme (#28133)
* readme template

* fix readme
2023-01-03 13:37:19 +08:00
Yalin Li 6da27fc16f
[AppConfig] Opt in mypy for samples (#27894) 2022-12-31 01:38:54 +00:00
Yuchao Yan 61ce105f4f
Update README.md (#28088)
* Update README.md

* Update README.md
2022-12-28 10:02:59 +08:00
Yuchao Yan fe8bdd8bf8
update template (#28060) 2022-12-27 06:34:23 +00:00
catalinaperalta 5c37e630ee
[formrecognizer] Update samples (#27959)
* opt in to sample type checking

* fix samples

* rename 3.1 async auth sample

* rename more conflicting files

* add typing fixes for copy, custom model, and strongly typed model samples

* fix strongly typed sample

* improve typing for strongly typed sample

* type recognized form result

* type the poller result in sample

* fix typing for invoice argument

* fix copy sample

* fix bounding box sample

* fix custom model samples

* ignore type mismatch in dict samples

* update typing vars

* ignore typing inconsistency

* pylint

* update docs with auth sample rename

* update docs with dict sample renames

* rename var

* using typing.List
2022-12-20 13:51:25 -08:00
Yuchao Yan 9746e4397b
fix pipeline (#27994) 2022-12-19 16:27:19 +08:00
Anna Tisch 3b125e3e9e
[Perfstress] Multiprocess support (#22997)
* Draft multiproc support

* Improve barrier reliability

* Spelling

* Run global setup per proc

* Update cspell

* Add parameters to SleepTest
- Aligns with .NET and supports more scenarios

* Add LogTest to help observe and debug the framework

* Subprocess spawn instead of fork

* Fix status reporting

* Improved error handling

* Updated docs

* Apply suggestions from code review

Co-authored-by: Paul Van Eck <paulvaneck@microsoft.com>

* Cspell fixes

* Typo

Co-authored-by: Mike Harder <mharder@microsoft.com>
Co-authored-by: Paul Van Eck <paulvaneck@microsoft.com>
2022-12-19 07:50:19 +13:00
iscai-msft e884a73f61
fix package scripting for multiapi combiner (#27988)
# Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.

# All SDK Contribution checklist:
- [ ] **The pull request does not introduce [breaking changes]**
- [ ] **CHANGELOG is updated for new features, bug fixes or other significant changes.**
- [ ] **I have read the [contribution guidelines](https://github.com/Azure/azure-sdk-for-python/blob/main/CONTRIBUTING.md).**

## General Guidelines and Best Practices
- [ ] Title of the pull request 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 more information on cleaning up the commits in your PR, [see this page](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md).

### [Testing Guidelines](https://github.com/Azure/azure-sdk-for-python/blob/main/CONTRIBUTING.md##building-and-testing)
- [ ] Pull request includes test coverage for the included changes.
2022-12-16 22:38:35 +00:00
Krista Pratico 54c7459d6a
[QA] enable pyright/verifytypes/samples (#27710)
* regen with latest autorest

* enable pyright and verifytypes

* lint and add dep to shared reqs

* enable samples checked by mypy/pyright

* regen with latest autorest
2022-12-16 14:16:05 -08:00
iscai-msft 0c9e4b3462
[scripts] add multiapi combiner tool (#27973) 2022-12-16 13:26:58 -08:00
Krista Pratico ed81e6db02
[TA] enable verifytypes (#27668)
* wip

* adding type hints where missing to library code

* fixing mypy errors in samples

* fix more typing issues

* formatting

* not ready for pyright until we can regenerate on newer autorest

* lint fixes

* fixes for models

* expand type hints in clients

* add missing type hints

* add back kwargs

* reorder optional
2022-12-16 13:02:30 -08:00
Anna Tisch 5d75f97cac
Mitigate race condition (#27975) 2022-12-16 12:06:08 +13:00
Krista Pratico 5c7d34d762
[CLU] enable pyright,verifytypes,samples for type checking (#27671)
* regenerate with latest autorest

* run autorest postprocess

* enable pyright,verifytypes,samples for type checking

* exclude auth samples checking by pyright until 27704 is fixed

* fix sample that we skip for pyright
2022-12-15 14:12:13 -08:00
Eric Xing 498b0365dd
[WebPubSub] Support new release 2022-11-01 (#27385)
* Upgrade to 20221102 & Add a sample

* fix JWT parameter absense

* update new sample

* update patch and recordings

* fix spell issues

* update generated SDK

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* update for new README.md

* update cspell.json

* update share_requirements.txt

* fix CI problems

* fix pylint problem

* update integration_sample and dev_requirements

* format changelog

* remove changelog empty entry

* Update CHANGELOG.md

* restore parameter name `filter_string` to `filter`

* Update environment_exclusions.py

* Update CHANGELOG.md

Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
2022-12-09 14:26:00 +08:00
Yuchao Yan c2493bf996
add timeout (#27878) 2022-12-09 13:22:50 +08:00
Scott Beddall c86892ae5d
allowing create_package_and_install to install relative deps automagically. (#27832)
Co-authored-by: Scott Beddall <sbeddall@gmail.com>
2022-12-06 12:44:22 -08:00
Yuchao Yan 0a76b586c3
.toml (#27793) 2022-12-02 05:45:56 +00:00
Wei Dong 1413fcd301
generate token file to generate apiview in sdk automation pipeline (#27790)
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
2022-12-02 03:56:27 +00:00
Jacob Lauzon 0fca9e534b
[Storage] Cleanup old test classes after test proxy migration (#27707) 2022-11-29 13:55:21 -08:00
Yuchao Yan ba886a49eb
update cmd (#27720) 2022-11-29 09:10:24 +00:00
Krista Pratico 9c35d4c9be
add packages to env exclusions which aren't ready for type checking (#27712) 2022-11-28 17:33:57 -08:00
Yuchao Yan 4499c899aa
optimization (#27639) 2022-11-22 11:35:50 +08:00
Dongwon Shin d1173e6d4c
[Test Proxy] Add error response when starting test proxy (#26155) 2022-11-17 13:08:09 -08:00
Yuchao Yan 5a16a18d73
opitimize breaking log for operation parameter (#27564) 2022-11-17 14:52:07 +08:00
Yuchao Yan 9b0417f832
code (#27561) 2022-11-17 14:02:50 +08:00
Xiang Yan aaf51641e4
add code snippet doc (#27481)
* add code snippet doc

* Update
2022-11-15 15:49:17 -08:00
Scott Beddall 3b1c811785
Common-sense `tox` environment skipping (#27487)
* move exclusion list to a file within sdk-tools that we can import from random places in the CI. clean up tox_harness as the serial invocation is unused, untested, and worthless.
* type and doccomment all touched functions
* replacing in_ci in favor of ci_tools common version that also honors github actions
* enable filtering based on the opt out lists from the unified exclusion set
* rename tox environment from lint -> pylint. update single reference to said environment. update documentation to reflect new location of exclusion list
* re-add azure-ai-textanalytics and azure-ai-metricsadvisor to opt_out lists
* adding further cspell exclusions
2022-11-15 13:22:36 -08:00
Yuchao Yan 2a809a3e6d
fix (#27417) 2022-11-10 16:03:14 +08:00
Yuchao Yan 74fe7f27e3
Update setup.py (#27272) 2022-11-08 10:37:17 +08:00
Yuchao Yan 538ee7e3a7
[pipeline] remove outdated samples in pipeline (#27324)
* remove outdated samples

* remove outdated samples
2022-11-08 09:48:33 +08:00
Yalin Li a10fb9c02a
Use asyncio.run() (#27289) 2022-11-04 14:19:05 -07:00
Xiang Yan afce7bfefa
add snippet update step (#26899)
* add snippet update step

* Get latest main (#26934)

* Change default local storage location (#26891)

* code and test (#26908)

Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>

* Update swagger_to_sdk_config_dpg.json (#26913)

* feat: enable internal components in pipeline yaml (#26800)

* feat: enable internal components in pipeline yaml

* refactor: add some gate logic

* fix: fix test_pipeline_job_create_with_registries

* fix: fix pylint

* Cadl automation pipeline (#26912)

* cdoe

* fix

* code

* fix

* code

* meta.json

* meta.json

* compatible

* refactor: divide pipeline related tests (#26886)

* fix: sdk.ml.azure-ai-ml.tests.datastore.e2etests.test_datastore

* feat: component with default label

* refactor: divide test_dsl_pipeline.py

* feat: load labelled arm id

* feat: support name@default
use name@label for node component in pipeline yaml

* [TA ] improve per-document error message when all documents fail per action (#26902)

* fix bad Document error message when all actions fail

* update changelog

* update wording

* skip cosmos emulator (#26930)

* try 3.7

* skip cosmos emulator tests until fixed

* revert change

* comment out emulator

* fix ci for core (#26923)

* fix ci for core

* updates

* updates

* updates

* updates

* updates

* adding additional version override support

* update

* update

* update

* update conda test-requirements to include azure-mgmt-storage that was previously coming dependency tools/azure-sdk-tools

Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>

Co-authored-by: Leighton Chen <lechen@microsoft.com>
Co-authored-by: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
Co-authored-by: Xingzhi Zhang <37076709+elliotzh@users.noreply.github.com>
Co-authored-by: Krista Pratico <krpratic@microsoft.com>
Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>

* update

* update

* update

* update

* update

* Update update_snippet.yml

* Update eng/pipelines/templates/steps/analyze.yml

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Update update_snippet.yml

* update

* update

* update

* updates

* update

* Updates

* updates

* updates

* update

* Add comments

Co-authored-by: Leighton Chen <lechen@microsoft.com>
Co-authored-by: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
Co-authored-by: Xingzhi Zhang <37076709+elliotzh@users.noreply.github.com>
Co-authored-by: Krista Pratico <krpratic@microsoft.com>
Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2022-11-03 14:08:53 -07:00
Scott Beddall 2b96b8fb00
Start Resolving Regression Failures (#27268)
* patch the hole in our requirement parsing
* cleanup unused usings
2022-11-03 11:58:21 -07:00
Scott Beddall 524cea247c
Resolve 3.11 Failures for `storage` (#27173)
* remove cffi pin
* remove wrapt 1.12.1 requirement from local vcrpy
2022-10-28 15:11:19 -07:00