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

9612 Коммитов

Автор SHA1 Сообщение Дата
Harsha Nalluru 4b84df04c6
[Recorder] Releasing recorder to public - not setting private anymore (#17314) 2021-08-27 20:25:42 +00:00
Azure SDK Bot f504378caa
ensure test principal creation succeeds properly (#17312)
Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
2021-08-27 18:25:23 +00:00
Deyaaeldeen Almahallawi 0f7ccdb49a
[Schema Registry] Cross-languages API alignment (#17291)
* [Schema Registry] Cross-languages API alignment

* format in the avro pkg
2021-08-27 13:30:26 -04:00
praveenkuttappan 17523f2288
Skip update samples post release script for track2 management packages (#17295) 2021-08-27 13:21:33 -04:00
Jeremy Meng c776973e57
Fix codespace docker permission issue (#17306)
in `1-linux` we need `--privileged` in devcontainer's `runArgs`
2021-08-27 16:27:07 +00:00
Ramya Rao 9b74007d1c
Remove mock-fs, query-string, @types/query-string if they are not used (#17297) 2021-08-27 08:12:43 -07:00
Ramya Rao bb137b0aa4
Fix common linter errors for web-pubsub (#17299)
* Fix @azure/azure-sdk/ts-package-json-keywords failure

* Fix tsdoc/syntax errors for @param tag

* Fix tsdoc/syntax error for usage of @ for non tag

* Run lint:fix

* Update lintreport name
2021-08-27 08:11:42 -07:00
Ramya Rao 28e6a572a7
Fix common linter errors for web-pubsub-express (#17301)
* Run lint:fix

* Fix tsdoc/syntax errors around @param tag

* Update lint report name
2021-08-27 08:11:20 -07:00
praveenkuttappan cb9de8f7f0
Run build test pipeline for reduced test scope fore core pipeline (#17290) 2021-08-26 20:29:02 -04:00
Ramya Rao 71838726d9
rush update --full 8/26/2021 (#17294)
I was trying to remove some of the unused dependencies in our packages and this invariably will change the lock file. Found that `@types/node` v12 had a patch update in the past 24 hours that caused much noise to my updates. So, creating this PR with just `rush update --full` so that my future PRs can have less noise

Please note that the automated weekly PR that does this was already run yesterday and merged
2021-08-26 23:42:28 +00:00
Azure SDK Bot 5a76265226
Stip empty changelog sections before release (#17293)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2021-08-26 16:12:12 -07:00
Harsha Nalluru 85437db51e
[Recorder] Unified recorder prototyping with storage-queue/data-tables SDKs (#15826)
* update rush.json

* lock file

* package.json, rollup and tsconfig

* src file

* test

* add recorder.stop call

* set http

* set protocol to http

* core-rest-pipeline draft

* storage test

* keep only the storage test

* lock file

* update package.json

* recorder-new

* lock file

* undefined to null

* remove target es5

* add a guide with starter steps

* testing-recorder-new

* lock file

* types - recorder-new

* import urlBuilder from core-http

* disclaimer in the guide

* comment out the test in recorder-new

* testing recorder-new setup and test

* rest-pipeline 1.1.0

* lock file

* "versionPolicyName": "test" and sdkType

* karma.conf

* fix package.json

* update test to take sas url

* omit readme checks for testing-recorder-new, recorder-new

* lock file from master

* lock file and readmes

* remove TEST_MODE variable

* update readme with temp-location

* resources update

* skip runnign in ci

* update package.json

* remove console.logs and fix queue name

* fix browser mappings

* index.browser.ts and console.logs

* remove .olg from clean command

* test file with logs

* update readme

* update readme to reflect additional environment variables that must be set

* login steps

* lock file

* test file

* Copying the recordings saved in the container

* remove console logs

* "@azure/data-tables": "^12.1.2"

* dependencies

* rename test file

* core-v2 recorder first draft

* core-v2 node test works

* karma-conf fix

* uri -> url

* update tests

* refactor core-v1 and core-v2 recorder clients

* refactor common code between core-v1 core-v2 and node and browser

* renames and underscore removals

* typings -> types

* address feedback

* RecordingStateManager

* lock file

* lock file

* lock file from master

* lock file

* recorder-new package test skipped

* delete commented test file

* Update sdk/test-utils/testing-recorder-new/README.md

* empty test file

* lock file

* add link descriptions

* Daniel's feedback

* Update sdk/test-utils/recorder-new/README.md

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

* Scott's feedback

* Addressing Will's feedback

* Add tslib

* RecordingState

* lock file

* currentState

* lock file

* docker cp

* remove lib from tsconfig

* more feedback

* utils file and base tests

* update error message

* initial set of tests

* Add copyright headers

* No need of the if checks

* both Test_Modes

* Append ${testMode} mode:

* karma conf and tests

* Daniel's new found love - npm run clean move from prebuild to build

* Added many many comments for Daniel 🐱👤

* lock file

* package renames

Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
2021-08-26 23:02:30 +00:00
Jose Manuel Heredia Hidalgo 1f667c4b3f
[RLC] Allow string, number and boolean values for input headers (#17135)
* Allow string, number and boolean values for input headers

* use String(value)

* mark as internal

* fix lint
2021-08-26 15:54:03 -07:00
Harsha Nalluru 8dbbedd71a
[Recorder] Adding a note in the readme to release publicly and rename the package(everywhere) (#17127)
* Adding a note in the readme to release publicly

* rename `@azure/test-utils-recorder` to `@azure-tools/test-recorder`

* lock file

* delete recorder new file
2021-08-26 21:22:27 +00:00
Azure SDK Bot ed6882d135
Automatic rush update --full (#17131) 2021-08-26 14:13:52 -07:00
Daniel Rodríguez b8f46a9175
Ensuring that the build script also cleans (#17123)
* [Identity] Ensuring that the build script also cleans

* ...everywhere!

* removing double cleans
2021-08-26 14:25:14 -04:00
Maor Leger e86058dd5e
[KeyVault] - Revert Key Rotation changes (#17141)
Revert 44a435caa6 and c65e17fe9e as they will be 
cut from 7.3 and moved to 7.4-preview.
2021-08-26 11:18:52 -07:00
Zachary Foster cf25413d4f
[Cosmos] Adds timeouts test with sample (#17124)
* Adds timeouts test

* Fix lint
2021-08-26 10:14:17 -04:00
govardhan c64d6b110b
added github support via .gitattributes to treat generated files in PRs as do-not-display-by-default (#17139) 2021-08-26 11:39:24 +00:00
chradek d938e7b0b7
[event-hubs] prevent empty span creation when tracing is disabled (#17129)
Fixes #14063

This update improves the event instrumentation logic so that spans are only created if tracing is enabled. This fixes the issue where adding events to an EventDataBatch led to empty spans being created when tracing was not enabled.

The `instrumentEventData` function is similar to the `instrumentMessage` function in service bus. The main difference is that in event hubs we need to check if the event being instrumented is an AmqpAnnotatedMessage or an EventData since properties are stored in a different field (properties vs applicationProperties) depending which is used.
In service bus, the ServiceBusMessage uses applicationProperties, so no distinction versus AmqpAnnotatedMessage is needed there.

/cc @maorleger
2021-08-25 22:02:54 +00:00
praveenkuttappan ccf4bc51b7
Fix pipeline formatting error (#17073) 2021-08-25 17:14:23 -04:00
colawwj 478fa337f6
update-CODEOWNERS-file (#17119) 2021-08-25 17:05:43 +08:00
colawwj 420865a5f0
templatespecs-track2 (#17115)
* templatespecs-track2

* update
2021-08-25 13:40:27 +08:00
Ramya Rao 41022921d4
Update CODEOWNERS for every mgmt package (#17060)
* Update CODEOWNERS for every mgmt package

* Remove extra line

* Update .github/CODEOWNERS

Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com>

Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com>
2021-08-25 13:37:01 +08:00
colawwj adf4d5dc3c
bump version (#17113) 2021-08-25 10:39:14 +08:00
luc c44618b830
Chat Core2 Migration (#17045)
* migrate to core client

* add tests recordings

* revert rollup change

* remove commented code

* fix dependency

* fix rush lint

* format files

* update swagger version

* update sdk version

* update pacakge version

* update the constants path

* revert recording files
2021-08-25 01:32:49 +00:00
Azure SDK Bot 0596e3a57f
Increment version for attestation releases (#16926)
Increment package version after release of azure-attestation
2021-08-25 00:17:32 +00:00
luc 1c0e6591e2
Add Lu Chen to Communication Code Owner (#17079)
* Add Lu Chen to code owner

* Add Lu Chen to Communication Chat code owner
2021-08-24 19:00:58 -04:00
Maor Leger 6927580ec6
[core] - return early in tracingPolicy if span is not recording (#17059)
## What

- If a span is not recording, return early and avoid doing any more work
- Update some missed test setup

## Why

When tracing is either not configured or the newly created span is not sampled this information would get dropped 
from both telemetry and request headers (since the serialized span context will not be valid).

We can return early in that case. It'll have several benefits:
1. Less instances of the Span#context / Span#spanContext rename issues (since we won't get there)
2. We can avoid some processing overhead, although for a non recording span it is probably (but not surely) very lightweight anyway.

## Callouts

Being able to avoid creating the span (and the URIBuilder overhead) is currently not possible for multiple reasons:
1. The OTel API does not provide a way to check whether tracing is globally configured https://github.com/open-telemetry/opentelemetry-js-api/issues/118 nor will that be supported in the future
2. Checking the current parent span is not an option either - due to sampling logic it's possible that the parent span is not recording but this span will be

So this is about as good as we can get for now.

Skipping CHANGELOG because the overall behavior should not change from a client's perspective.

Resolves #16580
2021-08-24 23:00:22 +00:00
Azure SDK Bot 2078bd509f
Increment package version after release of azure-app-configuration (#16649) 2021-08-24 16:00:09 -07:00
Maor Leger f62d5e7a4d
[core] - Remove SpanOptions from the public API (#16984)
## What

- Removes spanOptions from OperationTracingOptions
- Prepares client package for compatibility with both existing and future core-tracing code by adding runtime casts / checks where spanOptions are concerned
- Adds `az.namespace` as an attribute on the current context, ensuring that it is available for tracing policies
- Adds spanOptions as a parameter to `createSpan` allowing customization of a newly created span
- Prepare tracingPolicies for backwards and forwards compatibility at runtime by using spanOptions as well as spanContext to determine the value of az.namespace to set on spans.

**Does NOT upgrade client libraries yet and their API will NOT change until we upgrade**

## Why

spanContext originally existed to be able to shepherd attributes around in order to add them to any child spans. Specifically, we need to add the az.namespace to the outgoing request span. Now that `tracingContext` is available as both a bag of values as well as a container for parenting info, we no longer need spanOptions.

Actually, spanOptions grew to add enums and other elements that caused us pain in the past. See #15285 as an example.

Finally, providing spanOptions as a publicly available option bag means that we are providing ways for consumers to customize our own spans. We don't need that, as we own the spans we create.

But what we still need to provide is a way for our own libraries to customize the spans they produce. By moving spanOptions off of OperationTracingOptions and into a separate parameter in createSpan we can support this.

## Callouts

I tested compatibility here in multiple ways:

1. I changed core-tracing's version to preview.13 so that all libraries will run tests against the new package
2. I then changed it _back_ to 14, so that all libraries will run tests against the old pacakge
3. I packed preview.13 with new bits and installed published packages for a few libraries and manually tested a few scenarios

Resolves #15285 
Resolves #16726
2021-08-24 14:51:37 -07:00
Daniel Rodríguez d9e6263e15
[Identity] Fix broken link (#17072)
In this PR I’m fixing a broken link. It pointed to a feature branch, and it correctly routed to it while we were developing the feature, but after merging an deleting that branch, the link is now broken! (reasonably so). Let’s clean it up!

Thank you, @jeremymeng for letting me know about this.
2021-08-24 21:50:00 +00:00
Azure SDK Bot 4e5491fda6
Sync eng/common directory with azure-sdk-tools for PR 1918 (#16976)
* Stress test deployment script resiliency fixes

* Use PSModule-Helpers to install powershell-yaml

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2021-08-24 17:17:14 -04:00
Jeremy Meng beaf9b5e3d
Suppress CredScan warnings for test proxy dev cert (#17040)
This suppresses a CredScan warning that comes from a non-secret devcert
necessary for using the new test proxy. (See related Python PR at
https://github.com/Azure/azure-sdk-for-python/pull/20324)
2021-08-24 10:48:08 -10:00
praveenkuttappan baff00ab2d
New pipeline to run weekly JS automation (#17008)
* New pipeline to run weekly JS automation
2021-08-24 16:21:46 -04:00
Zachary Foster 078906ce35
[Cosmos] Adds pipeline to requestContext for AAD auth reuse (#16994)
* Adds pipeline for AAD auth to request handler

* lint and api extract
2021-08-24 14:51:26 -04:00
Jeremy Meng cf14eb515b
Remove usage of deprecated rollup-plugin-node-resolve (#17037)
- attestation and iot-device-update don't use rollup plugins directly, they are
using shared rollup config from dev-tool
2021-08-24 18:38:03 +00:00
Jeremy Meng 79f9ac2d62
Run `rush update --full` 2021-08-23 (#17033)
* Run `rush update --full` 2021-08-23

* dev-tool: use `builtin-modles: ^3.1.0` instead of `~3.1.0`
2021-08-24 08:29:18 -10:00
chradek 8c62014904
[service-bus] fix getMessageIterator docs (#16957) 2021-08-24 11:26:40 -07:00
Maor Leger 847e11f12d
Update region for MHSM deployment (#17056)
In order to get live test deployments of MHSM healthy again
2021-08-24 10:47:20 -07:00
colawwj f89f1a97ce
resources-subscription-track2 (#17046)
* resources-subscription-track2

* update

* update client construction
2021-08-24 16:32:46 +08:00
chradek b497c95e60
[event-hubs] adds IoT Hub connection string conversion with websockets sample (#16589)
As requested by https://github.com/Azure/azure-sdk-for-js/pull/7060#issuecomment-887480513, this PR adds a sample for converting an IoT Hub connection string to an Event Hubs-compatible connection string using web sockets.

The main difference is that websocket options need to be specified, and the port used to connect changed from 5671 to 443.

/cc @wiegvlieg - let me know if this helps or if you have more questions about how this sample works.
2021-08-24 02:14:54 +00:00
chradek 5944d3ad9a
[event-hubs] fix IoT Connection string sample (#16945) 2021-08-23 18:50:39 -07:00
Jeremy Meng a8bd43d1bc
[Cosmos] remove deprecated @types/fast-json-stable-stringify dependency (#17038)
* [Cosmos] remove deprecated @types/fast-json-stable-stringify dependency

as recommended by

```
 WARN  deprecated @types/fast-json-stable-stringify@2.1.0: This is a stub types definition. fast-json-stable-stringify provides its own type definitions, so you do not need this installed.
```

* Upgrade "fast-json-stable-stringify" to "^2.1.0",

* Run `rush update --recheck`
2021-08-23 23:47:12 +00:00
Zachary Foster 1d3913f17f
Remove empty sections (#17039) 2021-08-23 19:16:55 -04:00
Zachary Foster 01936b7639
Adds date to changelog (#17036) 2021-08-23 17:38:19 -04:00
Jeremy Meng b1b0741a40
Bump pnpm version to 5.18.10 (#17035)
to have security fix for tar@6.1.0 (see https://github.com/pnpm/pnpm/releases/tag/v5.18.10 for details)
2021-08-23 10:13:41 -10:00
Steve Faulkner d630c5f4f0
[Cosmos] Fix retry handling for Session Not Found errors (#17034) 2021-08-23 14:04:15 -05:00
Suyash Sonawane 2bd2e7703a
[core][client] Stop importing URL from url (#17022)
* [core][client] Stop importing URL from url

* fixed new linter new line error in package.json
2021-08-23 13:31:12 -04:00
Qiaoqiao Zhang 759218914f
update-pnpm-lock-yaml-with-rush-update (#17027) 2021-08-23 14:43:55 +08:00