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

17225 Коммитов

Автор SHA1 Сообщение Дата
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
Hector Hernandez 0828621af2
[Monitor OpenTelemetry Exporter] Fix issue with Log attribute serialization (#31253)
### Packages impacted by this PR
@azure/monitor-opentelemetry-exporter

### Issues associated with this PR
Fixes #31220
2024-09-27 14:00:45 -07:00
Azure SDK Bot c414c72911
Post release automated changes for desktopvirtualization releases (#31251)
Post release automated changes for azure-arm-desktopvirtualization
2024-09-27 21:27:49 +08:00
Azure SDK Bot 4d3a52ad1c
Post release automated changes for avs releases (#31250)
Post release automated changes for azure-arm-avs
2024-09-27 21:27:16 +08:00
Azure SDK Bot 6d8c7276bc
Post release automated changes for containerservice releases (#31249)
Post release automated changes for azure-arm-containerservice
2024-09-27 21:27:05 +08:00
Azure SDK Bot 337bd4635e
Post release automated changes for network releases (#31248)
Post release automated changes for azure-arm-network
2024-09-27 21:26:49 +08:00
ZiWei Chen 4887ab74b5
update changelog date (#31247) 2024-09-27 19:37:08 +08:00
ZiWei Chen 742d38b2f8
[mgmt] computeschedule release (#31172)
https://github.com/Azure/sdk-release-request/issues/5497
2024-09-27 19:36:20 +08:00
ZiWei Chen e273e73d53
[mgmt] containerservice 07 preview release (#31244)
https://github.com/Azure/sdk-release-request/issues/5485
2024-09-27 16:59:03 +08:00
ZiWei Chen a4a78c97b5
[mgmt] fabric release (#31031)
https://github.com/Azure/sdk-release-request/issues/5418
swagger pr: https://github.com/Azure/azure-rest-api-specs/pull/30489
2024-09-27 16:55:27 +08:00
ZiWei Chen a1a3fd9fa9
[mgmt] avs release (#31161)
https://github.com/Azure/sdk-release-request/issues/5190
2024-09-27 16:54:06 +08:00
ZiWei Chen 0192d7861d
[mgmt] network release (#31111)
https://github.com/Azure/sdk-release-request/issues/5479
2024-09-27 15:27:50 +08:00
ZiWei Chen bd0560428f
[mgmt] desktopvirtualization release (#31074)
https://github.com/Azure/sdk-release-request/issues/5452
2024-09-27 15:19:15 +08:00
Jeremy Meng 537dc7dcaa
[ServiceBus] integrate changelog from 7.9.5 (#31243) 2024-09-26 18:03:52 -07:00
Jeremy Meng 7afc88a173
[template] skip samples execution temporarily (#31240)
until issue #29672 is fixed.
2024-09-26 15:10:56 -07:00
Azure SDK Bot 148e7fa40c
Sync eng/common directory with azure-sdk-tools for PR 9057 (#31237)
Sync eng/common directory with azure-sdk-tools for PR
https://github.com/Azure/azure-sdk-tools/pull/9057 See [eng/common
workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow)

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2024-09-26 15:05:38 -07:00