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

17390 Коммитов

Автор SHA1 Сообщение Дата
Timo van Veenendaal dbc12ec7ad
[keyvault] CAE support (#31140)
### Packages impacted by this PR

- `@azure/keyvault-common`
- Downstream Key Vault packages

### Issues associated with this PR

- Private

### Describe the problem that is addressed by this PR

In future, the Key Vault service will be adding support for Continuous
Access Evaluation (CAE). This PR adds the necessary support to the SDK's
challenge-based authentication policy to enable this feature.

After the initial challenge, with CAE enabled, any future request may
result in a 401 response, even if the access token used is valid. This
PR adds a new policy that handles this CAE challenge alongside the
normal challenge. The new policy replaces the existing use of Core's
`bearerTokenAuthenticationPolicy`, which is no longer suitable for this
use case since it cannot handle a CAE challenge that comes immediately
after a regular challenge.

### Are there test cases added in this PR? _(If not, why?)_

Yes, added test cases with mock requests and responses to cover a number
of different scenarios, ensuring the policy is doing the right thing.

I also manually tested against a test resource provided by the Key Vault
team which returns a CAE challenge in response to any authorized request
to the vault, and got the expected result (a normal challenge handled
successfully, followed by a CAE challenge handled successfully, followed
by another CAE challenge which the policy does not handle).

### Provide a list of related PRs _(if any)_

- Java PR for same feature:
https://github.com/Azure/azure-sdk-for-java/pull/41814
2024-10-08 15:43:27 -07:00
Azure SDK Bot 3a0deb8e95
Sync eng/common directory with azure-sdk-tools for PR 9113 (#31342)
Sync eng/common directory with azure-sdk-tools for PR
https://github.com/Azure/azure-sdk-tools/pull/9113 See [eng/common
workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow)

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2024-10-08 15:37:29 -07:00
Jeremy Meng c64f2e45a4
[core-amqp] move geographic replication constant to Event Hubs (#31328)
So that we can release GA fixes from main branch.

While at it, also port CHANGELOG entries from hotfix branch.
2024-10-08 13:44:47 -07:00
Azure SDK Bot 4fc29fe715
Sync eng/common directory with azure-sdk-tools for PR 9099 (#31336)
Sync eng/common directory with azure-sdk-tools for PR
https://github.com/Azure/azure-sdk-tools/pull/9099 See [eng/common
workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow)

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2024-10-08 11:59:27 -07:00
Jeremy Meng 5abc72c71a
[core] fix isStreamComplete issue (#31270)
Extract @MaryGao's fix from PR
https://github.com/Azure/azure-sdk-for-js/pull/31027

Fix an issue in `isStreamComplete` where the method never resolves when
the stream is not readable.

---------

Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>
2024-10-08 09:54:54 -07:00
Azure SDK Bot c7378eef41
Post release automated changes for instrumentation releases (#31333)
Post release automated changes for
azure-opentelemetry-instrumentation-azure-sdk
2024-10-08 16:48:08 +00:00
KarishmaGhiya e460e3b0d4
[Identity] Azure pipelines credentials - added headers for troubleshooting and prevent redirection (#31209) 2024-10-07 12:33:29 -07:00
howieleung 3f95c6d011
Update README.md (#31327)
### Packages impacted by this PR


### Issues associated with this PR


### Describe the problem that is addressed by this PR


### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-10-07 18:22:11 +00:00
Maor Leger 2ffa690a77
[dev-tool] Upgrade ts-morph to 24.x (#31326)
Resolves #31321
2024-10-07 17:25:07 +00:00
Jackson Weber b5eb82a145
[Monitor OpenTelemetry] Add Link to Official Docs to Browser SDK Loader Docs (#31318)
### Packages impacted by this PR
@azure/montior-opentelemetry

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [x] Added a changelog (if necessary)
2024-10-07 09:53:38 -07:00
Azure SDK Bot be5f03aa40
[EngSys] automatic rush update --full
<p dir="auto">This is an automatic PR generated weekly with changes from running the command rush update --full</p>
2024-10-07 09:44:25 -07:00
Dina Saparbaeva 2e0e9fd3a3
[communication]-[sms]-Split tests for Public and INT environments (#31322)
### Packages impacted by this PR

Split tests for Public and INT environments

### Issues associated with this PR


### Describe the problem that is addressed by this PR

Int pipeline is not stable. Splitting public and int tests until we find
solution.
### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)

---------

Co-authored-by: Dina Saparbaeva (from Dev Box) <dsaparbaeva@microsoft.com>
2024-10-07 18:26:56 +03:00
howieleung b7fc2175a0
Howie/inference samples (#31316)
### Packages impacted by this PR
Nothing.  Sample only

### Issues associated with this PR
Fixed samples to use proper environment variables. Use latest versions
of core tracing and instrumentation sdk.
I don't want users to change code to make the image url to work. So
change the code to make it run out of the box.

### Describe the problem that is addressed by this PR


### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-10-04 21:22:12 -07:00
Azure SDK Bot 5ba7f350e5
Sync eng/common directory with azure-sdk-tools for PR 9098 (#31315)
Sync eng/common directory with azure-sdk-tools for PR
https://github.com/Azure/azure-sdk-tools/pull/9098 See [eng/common
workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow)

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2024-10-04 13:16:51 -07:00
Matthew Podwysocki 73e9ecd568
[template] Add retry/timeout to macOS tests (#31314)
### Packages impacted by this PR

- @azure/template

### Issues associated with this PR

- #31296

### Describe the problem that is addressed by this PR

Adds a better timeout and retry logic for the issues with the best being
flaky.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-10-04 16:06:47 -04:00
Maor Leger ff53ed55b8
[keyvault-secrets] Migrate to ESM and tshy (#31254)
### Packages impacted by this PR

@azure/keyvault-secrets

### Issues associated with this PR

#30822

### Describe the problem that is addressed by this PR

Migrates keyvault-secrets to ESM and tshy
2024-10-04 08:29:46 -07:00
Azure SDK Bot 5c02b8078d
Post release automated changes for core releases (#31303) 2024-10-04 07:59:26 -07:00
Matthew Podwysocki 4d4b874244
[template] Add supportsTracing back (#31300)
### Packages impacted by this PR

- @azure/template

### Issues associated with this PR


### Describe the problem that is addressed by this PR

Adds `supportsTracing` back to the template project.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)

---------

Co-authored-by: Timo van Veenendaal <timov@microsoft.com>
2024-10-04 10:42:57 -04:00
Azure SDK Bot 72b4d90017
Sync eng/common directory with azure-sdk-tools for PR 9092 (#31305)
Sync eng/common directory with azure-sdk-tools for PR
https://github.com/Azure/azure-sdk-tools/pull/9092 See [eng/common
workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow)

---------

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2024-10-03 15:11:15 -07:00
Timo van Veenendaal 9a717bf26c
[template] Add role assignment to test-resources.bicep (#31306)
### Packages impacted by this PR

- `@azure/template`

### Describe the problem that is addressed by this PR

Grants the "App Configuration Data Owner" when deploying the template
live test resources. This fixes some issues recording tests for the
template package (and possibly the live tests too).

Copied from the App Config test-resources.bicep
[here](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appconfiguration/test-resources.bicep)
2024-10-03 14:07:10 -07:00
Maor Leger d036da83c8
[ai] Update core-tracing min-version (#31275)
### Packages impacted by this PR

@azure-rest/ai-inference

### Issues associated with this PR

N/A

### Describe the problem that is addressed by this PR

`@azure/core-tracing` will release as 1.2.0 as per
https://github.com/Azure/azure-sdk-for-js/pull/31272/files

This PR prepares ai-inference to use the correct version of
`@azure/core-tracing` and get support for `addEvent`
2024-10-03 13:10:56 -07:00
Matthew Podwysocki e81c5a39b4
[playwright] Migrate creator to ESM/vitest (#31293)
### Packages impacted by this PR

- @azure/create-microsoft-playwright-testing

### Issues associated with this PR


### Describe the problem that is addressed by this PR


### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
2024-10-03 13:18:47 -04:00
Timo van Veenendaal 868862b925
[core-client-rest] Update release date (#31301)
### Packages impacted by this PR

- `@azure-rest/core-client`

Use Core release date for this package instead of all package release
date
2024-10-02 15:55:32 -07:00
Maor Leger c710e9b67f
[template] Skip flaky test in Mac OS (#31297)
One of the template tests has been flaky on Mac OS. Given that template
is run as part of core and likely most PRs we decided to pend the test
for now and investigate it as part of #31296
2024-10-02 13:54:36 -07:00
Maor Leger dc16f1486b
[dev-tool] Update readme (#31295)
Just update the readme to specify dev-tool uses tsx instead of ts-node
now
2024-10-02 13:54:13 -07:00
Maor Leger 543f973590
[dev-tool] newline fix (#31294)
Fixes newline character to use `\n` in windows as well as other OS's
2024-10-02 20:28:04 +00:00
Azure SDK Bot 464f8d458f
Sync eng/common directory with azure-sdk-tools for PR 9074 (#31267)
Sync eng/common directory with azure-sdk-tools for PR
https://github.com/Azure/azure-sdk-tools/pull/9074 See [eng/common
workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow)

Co-authored-by: swathipil <swathip@microsoft.com>
2024-10-02 13:14:58 -07:00
Maor Leger e99e5dd409
[dev-tool] Use tsx (#31284)
### Packages impacted by this PR

@azure/dev-tool

### Issues associated with this PR

Resolves #29672

### Describe the problem that is addressed by this PR

With the move to ESM and tshy we've been running into issues using the
existing TS_NODE
based loader in dev-tool. Specifically we're seeing errors such as:

```
[run-samples] Error: Must use import to load ES Module: D:\a_work\1\s\sdk\template\template\samples-dev\getConfigurationSetting.ts
require() of ES modules is not supported.
require() of D:\a_work\1\s\sdk\template\template\samples-dev\getConfigurationSetting.ts from D:\a_work\1\s\common\tools\dev-tool\src\commands\samples\run.ts is an ES module file as it is a .ts file whose nearest parent package.json contains "type": "module" which defines all .ts files in that package scope as ES modules.
Instead change the requiring code to use import(), or remove "type": "module" from D:\a_work\1\s\sdk\template\template\package.json.
```

ts-node is being phased out for tsx, a modern alternative that handles
hybrid scenarios like us in much simpler manner.

This PR switches our loader from ts-node to tsx. Now we can run samples
again for both cjs and esm!
2024-10-02 12:23:56 -07:00
Timo van Veenendaal 8b185a7fe3
[core-client-rest] Add support for `allowReserved` and `explode` (#31058)
### Packages impacted by this PR

- `@azure-rest/core-client`

### Issues associated with this PR

- Fixes #30943
- Fixes #30944

### Describe the problem that is addressed by this PR

Adds support for passing in an object as a query or path parameter. At
present, this object allows for the user to specify a couple of
encoding-related options in addition to the value of the parameter:
- For path parameters: `allowReserved` can be set to true to indicate
that special characters appearing in the parameter should not be
URL-encoded. This allows for path parameters to contain characters like
`/`.
- For query parameters: `explode` can be set to true to change how
arrays are encoded. By default, array values are encoded as a single
query parameter, with each value separated by a comma (e.g. `foo=a,b,c`.
With `explode` set to true, each array value will be converted into a
single query parameter (e.g. `foo=a&foo=b&foo=c`).
2024-10-02 18:02:20 +00:00
Jeremy Meng 652a7ffa89 [eslint-plugin] fix ts-naming-options rule issue
***NO_CI***

Currently the rule only handles the case of

```ts
  clientMethod(options: MethodOptions) {}
```

but not when the options bag parameter has a default value

```ts
  clientMethod(options: MethodOptions = {}) {}
```

This change adds code to handle the latter.

- Add two unit tests

- Update the affected packages to suppress this rule as a warning

- react to the fix
2024-10-02 16:40:01 +00:00
Maor Leger 1e93a27d35
[instrumentation] Fix test assertion (#31289)
### Packages impacted by this PR

@azure/opentelemetry-instrumentation-azure-sdk

### Issues associated with this PR

Resolves #31287

### Describe the problem that is addressed by this PR

Looks like Sinon's matchers are a little looser than vitest's - while we
are calling inject with 3 arguments we only care about the first in this
test.

This PR restores the tests and updates the assertion
2024-10-02 13:48:15 +00:00
Matthew Podwysocki f8e509681f
[instrumentation] Move to ESM/vitest (#31286)
### Packages impacted by this PR

- @azure/opentelemetry-instrumentation-azure-sdk

### Issues associated with this PR


### Describe the problem that is addressed by this PR

Migrates the package to ESM and vitest. Note one issue with mocking with
the propagator object.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)

---------

Co-authored-by: Maor Leger <maorleger@users.noreply.github.com>
2024-10-01 18:08:34 -04:00
Jeff Fisher 2324c52282
[CODEOWNERS] cleanup some baseline entries that hopefully are no longer needed (#31273)
The baseline file suppresses errors and ideally should be empty. In this
PR, I'm trying to peel some of the low hanging fruit off like ensuring
our own team members are configured correctly and we're not assigning
issues to invalid labels.
2024-10-01 13:32:46 -05:00
Praven Kuttappan 5799d31aec
Pin API view parser version (#31282)
Pin API view parser version
2024-10-01 13:39:44 -04:00
Maor Leger a43b0fb86e
[instrumentation] Update OTel instrumentation changelog for October release (#31274) 2024-10-01 11:03:25 -04:00
cqnguy23 377c46bac6
Add support for MQTT event handler (#31072)
Add support for MQTT event handler

---------

Co-authored-by: chuongnguyen <chuongnguyen@microsoft.com>
2024-10-01 14:12:14 +07:00
Jeremy Meng 642b48cb3d
[core-xml] prepare for 2024 October release (#31277)
- update version and date in CHANGELOG
2024-09-30 18:24:12 -07:00
Maor Leger ec55da7107
[core] Prepare core-tracing for October release (#31272) 2024-09-30 15:03:26 -07:00
Maor Leger 47e5f01431
[dev-tool] migrate-package command improvements (#31269)
### Packages impacted by this PR

@azure/dev-tool

### Issues associated with this PR

N/A - part of migrations

### Describe the problem that is addressed by this PR

A few quality-of-life improvements as I migrate keyvault packages to
ESM:

1. Allow skipping browser test configuration
2. Ensure linters are happy by appending an empty line to updated json files
3. Replace `tsc -p .` with `dev-tool run build-package` in the scripts section
4. Replace `@azure-tools/test-utils` with `@azure-tools/test-utils-vitest`
5. Remove `tshy` from the dependencies to add since `build-package` uses
a vendored tshy version
2024-09-30 14:50:58 -07:00
Jeff Fisher 41f3443f4d
Update ownership of Cloud Shell (#31271)
A small update to the Cloud Shell ownership based on offline
conversations.
2024-09-30 16:23:12 -05:00
Jeremy Meng 60b3974263
[EngSyS] react to unused InterdependencyGraph.html being removed from eng/common (#31266)
Remove pipeline step of copying that file
2024-09-30 14:03:44 -07:00
Azure SDK Bot 3ddd97d9da
[EngSys] automatic rush update --full
<p dir="auto">This is an automatic PR generated weekly with changes from running the command rush update --full</p>
2024-09-30 11:00:39 -07:00
ZiWei Chen 6aa0c9bbe5
[mgmt] webpubsub release (#31073)
https://github.com/Azure/sdk-release-request/issues/5448
breaking caused by
https://github.com/Azure/azure-rest-api-specs/pull/29086
2024-09-30 14:06:01 +08:00
ZiWei Chen f732e630bb
[mgmt] trustedsigning release (#31255)
https://github.com/Azure/sdk-release-request/issues/5543
2024-09-30 12:58:39 +08:00
Azure SDK Bot f5563ee945
Post release automated changes for servicenetworking releases (#31259)
Post release automated changes for azure-arm-servicenetworking
2024-09-29 20:47:07 +08:00
ZiWei Chen 6fbad4f3ac
[mgmt] servicenetworking release (#30688)
https://github.com/Azure/sdk-release-request/issues/5346
swagger pr: https://github.com/Azure/azure-rest-api-specs/pull/30294
2024-09-29 16:02:35 +08:00
Azure SDK Bot 70dbb1bd53
Post release automated changes for storage releases (#31194)
Post release automated changes for azure-storage-blob
2024-09-29 10:59:38 +08:00
Azure SDK Bot 041e2c0804
Post release automated changes for storage releases (#31221)
Post release automated changes for azure-storage-file-share
2024-09-29 02:38:24 +00:00
Harsimar Kaur f7d0b98cb2
[monitor-opentelemetry] Live Metrics Filtering (for charts) (#31062)
### Packages impacted by this PR
monitor-opentelemetry

### Describe the problem that is addressed by this PR
This PR adds live metrics filtering, for the metrics charts. 
The change to fix the document spam bug is also here, but I will also
create a separate PR just for that.

There are a few things I didn't include in this PR that will be included
separate future PRs:
- filtering for documents on right hand pane. Currently this change just
emits all documents.
- changes to how CPU/Mem are to be collected for live metrics (per
process counters).
- Retry/caching logic for requests made to QuickPulse. Currently this PR
does not change this behavior, but for future parity with spec we should
consider caching live metrics data points when post requests fail &
reducing retries if there is a network error (considering ping/post
happens every few seconds anyway).

### Are there test cases added in this PR? _(If not, why?)_
Yes

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)

---------

Co-authored-by: Jackson Weber <jacksonweber@microsoft.com>
2024-09-27 14:31:09 -07:00
Maor Leger f0271b99c6
[dev-tool] Generate detailed report for ESM migrations (#31252)
### Packages impacted by this PR

dev-tool

### Issues associated with this PR

### Describe the problem that is addressed by this PR

A few QoL additions as we aim to complete the ESM migration:

- output markdown
- Add verbose mode to output individual package status

I only focused on ESM migration as we plan to migrate ESM + Vitest in a
single commit. This all builds off of the work Matt started and allows us to
keep an up-to-date wiki for folks to follow the migration status
2024-09-27 14:09:33 -07:00