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

8019 Коммитов

Автор SHA1 Сообщение Дата
Dominik 2f21805c9d
[communication-identity] Rename createUserWithToken to createUserAndToken (#14078) 2021-03-03 11:35:04 -08:00
Deyaaeldeen Almahallawi f08b33e7c3
[Text Analytics] Better names for assertions (#14070) 2021-03-03 11:17:36 -05:00
Mike Harder 0cb177013a
[Perf] Rename perfstress-test to perf-test (#14073)
- Also delete obsolete command in storage-blob
2021-03-03 07:29:52 +00:00
Sarangan Rajamanickam 2d64abe3be
Remove Samples and Readme References with apiKeys (#14072) 2021-03-02 21:28:06 -08:00
Deyaaeldeen Almahallawi 719c3f82a8
[Text Analytics] Adding performance testing for language detection (#14020)
Adds performance testing for text analytics by testing `detectLanguage`. The test is parameterized over the number of documents to send (1-1000).

Fixes https://github.com/Azure/azure-sdk-for-js/issues/13591.
2021-03-03 04:15:54 +00:00
KarishmaGhiya d1d33a4367
Fixing inconsistencies in package.json scripts (#13936) 2021-03-03 02:31:37 +00:00
Harsha Nalluru 51bd3e0f19
[Perf Tests][Storage Blob] Fixes to tsconfigs/package.json and adds NoOp test (#14024)
@mikeharder found that there was a vast difference in perf for the NoOp test in track-1 vs track-2 folders. 

Upon investigating, we have found that the differences in tsconfig and the different typescript versions being used for track-1 and track-2 to be the cause of the perf difference.

For a perspective, with the existing configs and TS4.1.2 for track-2 and TS4.1.5(installed globally) for track-1, the track-1 was 4 times worse in the NoOp test.

Upon changing the tsconfig for track-1 to the one we have for track-2 and adding the devDep on TS4.1.2 for track-1 similar to that of track-2, the difference was gone.

This PR attempts to fix the differences.

_(Note: Though the NoOp test had a huge perf difference, it would have been very negligible with the actual tests like downloading a blob given the work done at the SDK level and the service response time.)_
2021-03-03 01:36:01 +00:00
Jeff Fisher 204ecf1e30
[core-util] Create `@azure/core-util` (#14062)
To avoid having to export random helpers from `@azure/core-rest-pipeline`, this new package is being created to house them instead. This will also allow us to share utilities between HTTP and AMQP stacks.

See #14049 for some of the motivation.
2021-03-03 00:49:51 +00:00
Bert Ong 5e2b957a3c
[Communication] SMS 1:N Messages, Custom Tags and Idempotency Functionality (#13927)
* Code gen with new swagger

* Modified the Api to be pagedIterable

* Rename model to SendSmsResult

* Swagger changes

* Exporting SendSmsResult

* Samples

* Formatting

* update swagger + auto-gen

* update method signature + tests

* formatting

* First cut - update tests

* add livetest recordings

* workaround to mock uuid for browser tests

* update recordings

* conceal repeatibilityResult

* rename request and options

* update sample

* make options bag optional

* use fake timers and check repeatability on fail

* update mocked test fix unhandled promise warning

* clean up mock

* remove unnecessary import

* update md file

* refactor + update tests to support recording

* formatting

* skip token test if browser

* update recordings

* formatting

* update recordings

* update hash + changelog

* change how we assign date for idempotency

* update tests

* change how we skip browser token test

* remove test that is failing intermittently

* make samples prettier

* change how sample is printed

* refactor client

* formatting

* update tests from pr comments and re-record

* re-record and generate after PR feedback

* update tests because of service deployment

* add filter after rebase

Co-authored-by: Ankit Arora <ankita@microsoft.com>
2021-03-02 16:39:56 -08:00
Ramya Rao e662b30cfa
Update JS samples: issueToken() is now getToken() (#14058)
In #13819, `issueToken` got renamed to `getToken`
While the TS samples were updated, the JS ones were missed

Fixes #14057
2021-03-03 00:38:53 +00:00
Jianping Chen a01192e08c
Fix test pipeline after build script change (#14065)
Co-authored-by: JP Chen <jiach@microsoft.com>
2021-03-03 00:36:18 +00:00
Daniel Rodríguez 8e14c7acc2
re-recorded a test (#14061) 2021-03-02 18:25:50 -05:00
Dominik 0d43d03bd0
[communication-common] Add options bag for getToken function, mark @hidden where applicable (#14046)
* [communication-common] Add options bag for getToken function, mark @hidden where applicable

* rename url to endpoint in CommunicationIdentityClient constructor
2021-03-02 15:23:30 -08:00
Ziheng Zhou(MSFT) afb7a26378
Update Metrics Advisor Readme (#14028) 2021-03-02 14:49:48 -08:00
Deyaaeldeen Almahallawi 283363672a
[Text Analytics] Migrating to core v2 (#13715)
* adding core-https as a dep

* migrate to core-https

* address feedback

* address feedback

* fix failure

* address feedback

* ditch httpsClient

* move delay to be an internal function

* capitalize Unreleased

* revert delay changes
2021-03-02 16:57:18 -05:00
Ben Broderick Phillips f8d308e0d3
Exclude min/max testing for communication-administration live tests (#14056) 2021-03-02 16:23:48 -05:00
KarishmaGhiya 1cbf4460ee
Use internal tag for private methods and fields (#14008) 2021-03-02 20:50:26 +00:00
Chidozie Ononiwu ce98a40ec1
Add Alternative Code Paths Depending on Parameters (#13962)
* Add alternative code paths depending on parameters.

* SilentlyContinue before explicit error if npm is not detected
2021-03-02 12:50:17 -08:00
Deyaaeldeen Almahallawi 3190119757
[Text Analytics] Tiny edits (#14055)
Fix a tiny issue in samples and add the `@internal` tag on a newly added internal function.
2021-03-02 20:38:29 +00:00
Deyaaeldeen Almahallawi a7b7403979
[Text Analytics] Add piiCategories to recognizePiiEntities (#14043)
* [Text Analytics] Add piiCategories to recognizePiiEntities

* address feedback

* update sample

* update param name in changelog

* add phi back to samples

* fix syntax
2021-03-02 15:05:40 -05:00
Jeremy Meng 8bd2ca01d1
[MetrisAdvisor] use simple values in key rotation unit tests (#14041)
We don't need real key values for testing this functionality.
2021-03-02 11:08:05 -08:00
Ben Broderick Phillips dacf4448d6
Fix broken live test configurations (#14052) 2021-03-02 13:25:37 -05:00
Jeremy Meng c81faf961d
[service-bus][test] extract key values into constants (#14037)
* [service-bus][test] extract key values into constants

CredScan is computing hashes to identify locations of possible sensitive data.
Changes unrelated to the key values can cause the hashes to change. This PR
extract key values into constants in a separate file so the scan results remain
stable.

* Keep just one testConstents.ts under test/public/
2021-03-02 09:18:53 -08:00
Deyaaeldeen Almahallawi 8996766ae1
[Text Analytics] Remove relatedEntities property from healthcare entities (#14048)
It has been agreed on between the text analytics crew to remove this property. The user can use the new `entityRelations` to get the same information.
2021-03-02 15:43:06 +00:00
colawwj 46a1915967
arm-mediaservice-release (#13869)
* arm-mediaservice-release

* version update
2021-03-02 16:28:51 +08:00
Ziheng Zhou(MSFT) 2e892b042c
Update Storage File Data Lake Readme (#14027) 2021-03-01 23:05:45 -08:00
Deyaaeldeen Almahallawi cf8895ebcd
add normalizedText (#14045) 2021-03-01 22:55:06 -05:00
Deyaaeldeen Almahallawi 310a49898e
[Text Analytics] Expose healthcare relationships (#14038)
The service discovers relationships between healthcare entities and returns them as a list. This PR exposes this list after dereferencing the JSON pointers for healthcare entities.
Fixes https://github.com/Azure/azure-sdk-for-js/issues/14035
2021-03-02 01:32:34 +00:00
Ben Broderick Phillips 1d3632650c
Update live test yaml to use cloud and matrix configuration (#13886)
* Update live test templates to use matrix generation

* Update sdk live tests to use matrix generation, cloud config stages

* Fix live test matrix filter parity errors

* Remove matrix filters. Opt-in most tests to samples and min/max testing

* Fix post step template parameter in monitor live tests

* Filter dependency version for live tests that don't support it

* Only publish test results for browser and node tests
2021-03-01 19:25:57 -05:00
Richard Park d28b4ae11a
Fixing it so we check to see if a created span is actually being recorded before we add it to the links for the overall span. If not, then we don't bother since it'll be the empty/null span and won't actually record anything of interest. (#14040)
When we were instrumenting spans we wouldn't pay attention to whether we were currently recording or not, which could lead to us creating a bunch of empty/null spans and trying to add them as links to the span for our batches.

Rather than do that I just check (when we instrument) if the span we created is recording and if not don't add it.

Fixes #13049
2021-03-01 15:43:43 -08:00
Daniel Rodríguez 849472a1f8
[core-http] Token refresher fix (#13736)
The current token refreshing mechanism in core-http was wrong. The token was being refreshed before the "refresh time buffer" was reached. I've added tests to verify the behavior (if we change the source back, the tests do fail, as expected).

With this PR, here's what we will be doing:
1. If a token is not there or has expired, we ask for a new one (of course).
2. Before a token expires, in a time window, we try to retrieve the token through a refresh promise.
3. As we get new requests to retrieve that token, we re-use the same refresh promise.
4. If the refresh promise fails, next incoming request will re-run the refresh promise only after some specific time. (This is true again, I reverted my changes to this)

Please let me know how this looks! Feedback appreciated.

Reverted: ~**[Important]**  
The update after Jeff's approval is to fix the behavior to match the original intention. Only within the refresh window, while the valid token is still returned, the refresh promise should try to refresh the token once every 30 milliseconds (configurable) until the token expires. Once the token expires, the process does a final attempt to update it, then it stops.~

Incidentally fixes this customer issue, in which the token was refreshed more times than expected:
Fixes #13369
2021-03-01 22:54:12 +00:00
Richard Park 2e3fee5858
[keyvault] Change over to using core-tracing (#13949)
Removing the createSpan from keyvault-common (each package now has a simple version derived from core-tracing).
2021-03-01 13:13:29 -08:00
Deyaaeldeen Almahallawi f88317ff89
[Text Analytics] Regenerate using an updated swagger for StringIndexType (#14034) 2021-03-01 15:11:11 -05:00
Jeremy Meng 3738fa358d
[template] Make README Logging section consistent (#14022)
* [template] Make README Logging section consistent

We might have introduced the inconsistency for some libraries while copying
content from other languages.

* Update other README files

Contents for messaging libraries (Event Hub/Service Bus) remain unchanges
because they are different in having additional information about `rhea`
logging.

* linking to logger
2021-03-01 09:42:22 -08:00
Jeremy Meng f540b4ed9e
[Container Registry] Initial project structure (#14016)
* [Container Registry] Initial project structure

* Add sample placeholders

* Update api.md

* Address CR feedback

* Take pnpm-lock.yaml from upstream/master

* Fix pnpm-lock.yaml
2021-03-01 09:38:35 -08:00
Ramya Rao 199b5b722b
[Storage] Run lint:fix on all storage pkgs (#13932) 2021-03-01 09:21:29 -08:00
Deyaaeldeen Almahallawi a02b2c93d2
[Cosmos] Remove tslint usage (#14018)
* [Cosmos] Remove tslint usage

* edit
2021-03-01 11:54:51 -05:00
Deyaaeldeen Almahallawi fff7691042
[Cosmos] Fix linting issues in tests (#13040)
* [Cosmos] Fixing linting issues in tests

* formatting

* add test to the linting command

* fix more linting issues in test

* fix type
2021-03-01 11:54:41 -05:00
colawwj 06508330c2
arm-hybridkubernetes-release (#13937) 2021-03-01 10:58:27 +08:00
Azure SDK Bot 3c52b479b1
Update Prepare-Release script (#14023)
- Remove BuildType parameter as we can default it from package properties
- Stop passing BuildType and GroupId and instead defaul them from package properties
- Enable StrictMode to help identify potential errors
- Start passing sdktype and isnewsdk properties to devops script
- Sync latest changes with devops work item to fix a couple bugs

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2021-02-26 18:46:39 -08:00
praveenkuttappan f3661fc511
Verify api file path and enable api-extractor for abort-controller (#13861)
* Verify api file path and enable api-extractor for abort-controller
2021-02-26 16:14:53 -08:00
Richard Park 07404930f4
[event-hubs/service-bus] Change to use core-tracing's createSpanFunction (#13951)
Removing custom createSpan code in favor of core-tracing's createSpan functions. As part of this I also changed messageBatch.tryAdd() options related to tracing so it matched what OperationOptions. 

Also, fix in core-tracing so you can pass in a custom SpanKind (we were previously overwriting it).
2021-02-27 00:10:33 +00:00
chradek f6ed8c0425
[abort-controller] listeners that self-remove from abortSignal when invoked no longer prevent other listeners from being invoked (#13987)
Fixes #13985

See the issue linked above for a RCA on the bug this fixes.

## Issue
When using the @azure/abort-controller package, attaching event listeners to an abortSignal that remove themselves after being invoked can prevent other listeners attached to the same signal from being invoked.

## Solution
With this update, when abort() is called, we create a copy of the listeners array that isn't mutated when removeListener() is called on the abortSignal. This ensures that listeners are invoked in the same order they were added.
2021-02-26 23:10:40 +00:00
Ramya Rao b00c3ac9be
[Core] Use internal instead of hidden where applicable (#14019)
This PR has the below changes related to #13449
- Remove `@hidden` tag where `@internal` is already used
- Replace `@hidden` with `@internal` for members not exported from index.ts
2021-02-26 22:30:54 +00:00
Deyaaeldeen Almahallawi b585ceef62
[Cosmos] Fix linting issues (#13039)
* fix linting issues in samples

* formatting samples

* update api-extractor.json

* fix linting issues in src

* formatting src

* fix issue on constants.ts

* remove unnecessary @internal for now

* lint package.json

* lint api-extractor.json

* fix samples build

* use dev-tool rollup configs and fix new linting issues

* fix test compilation issue

* fix test compilation issue

* fix compilation issues in tests

* Fixes fetchFunction early invocation and uses sqlQuerySpec to prevent setting properties on string

* Fix formatting

* disable checks for this in fetchFunction

Co-authored-by: Zach <notzachfoster@gmail.com>
2021-02-26 16:01:31 -05:00
Matt Ellis 799dded07e
[EventGrid] Fix README.md issues (#14014)
Fixes minor typos in both prose and some of the example code (I
validated that the checked in samples were still correct, we just had
no coverage for the code in the README.md)

Fixes #13995
2021-02-26 12:10:10 -08:00
Dominik 4f3ca1324f
Remove the raw response from communication libraries (#13992) 2021-02-26 10:41:41 -08:00
Richard Park 46139daa33
[app-config] Use createSpan from core-tracing (#13942)
Update appconfig to use core-tracing/createSpan, rather than starting it's own spans.
- Reduced Spanner<T> to a single method (trace)
- Testing simplified
- Prep for otel 0.16+ upgrade that's coming.
2021-02-26 18:26:10 +00:00
Richard Park 82c42a2512
[telemetry] Centralize (as much as is practical) the creation of spans to ease upgrades (#13887)
As part of prepping for the next release of OpenTelemetry we found some code patterns that were going to become a large maintenance burden for us, primarily around the parenting of spans. To make this easier I've removed as many duplicate implementation of createSpan and tried to centralize everything into core-tracing instead. 

This won't completely remove changes needed for a newer version of OpenTelemetry but it'll eliminate one of the bigger bottlenecks.
2021-02-25 21:36:47 -08:00
Harsha Nalluru d0d1fca0f9
[Service Bus] Bad merge - Removing an unintentional duplicated test (#14000)
Bad merge at https://github.com/Azure/azure-sdk-for-js/pull/14000
2021-02-26 05:31:18 +00:00