Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-appplatform] revert build setting resource #9236

Closed
wants to merge 75 commits into from

Conversation

azure-sdk
Copy link
Owner

Create to sync Azure/azure-rest-api-specs#28337

Please install the package by npm install https://portal.azure-devex-tools.com/api/sdk-dl-pub?p=Azure/28337/azure-sdk-for-js/@azure_arm-appplatform/azure-arm-appplatform-3.1.0-beta.1.tgz

hectorhdzg and others added 30 commits March 8, 2024 10:02
…ents (Azure#28823)

### Packages impacted by this PR
@azure/monitor-opentelemetry
…ure#28842)

Sync .github/workflows directory with azure-sdk-tools for PR
Azure/azure-sdk-tools#7845 See [eng/common
workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow)

---------

Co-authored-by: James Suplizio <[email protected]>
Co-authored-by: Wes Haggard <[email protected]>
### Packages impacted by this PR

@azure/identity

### Issues associated with this PR

Nightly test failures

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

Our nightly tests started failing with a `TypeError: Descriptor for
property generatePluginConfiguration is non-configurable and non-writable` error.

I'm far from an expert here, but I believe the error is due to ESModules
being immutable, whereas CJS Modules are mutable.

Wrapping the stubbable / mockable object is a reasonable workaround to
keep tests green regardless of whether they get run as ESM or CJS

### 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?

Deleting the tests is an option, or an integration test. Neither seem to
fit the bill here. Once we have credentials migrated over we may be able to
delete some of the unit tests and rely on recorded tests to test the various
scenarios. But we are not there yet.
… Package (Azure#28827)

### Packages impacted by this PR
@azure/monitor-opentelemetry

### Describe the problem that is addressed by this PR
Package should be updated to the latest version and tests updated
appropriately.

### 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)
### Packages impacted by this PR

@azure/core-client

### Issues associated with this PR

N/A, follow up on Azure#28631 

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

If you are exporting both CommonJS and ESM forms of a package, then it
is possible for both versions to be loaded at
run-time. However, the CommonJS build is a different module from the ESM
build, and thus a different thing from the
point of view of the JavaScript interpreter in Node.js.

https://github.com/isaacs/tshy/blob/main/README.md#dual-package-hazards

tshy handles this by building programs into separate folders and treats
"dual module hazards" as a fact of life.

One of the hazards of dual-modules is shared module-global state.

In core-clientwe have a module-global operationRequestMap that is used
for deserializing. In order to ensure it works in this dual-package world we 
must use one of multiple-recommended workarounds.

In this case, the tshy documentation provides a solution to this with a
well-documented path forward. This is what is implemented here.

Please refer to
https://github.com/isaacs/tshy/blob/main/README.md#module-local-state
for added context

### 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?

The obvious alternative is to just not do anything since tests have not
been failing; however, that
seems risky. While _this_ particular issue has not come up in tests, a
similar one came up for core-tracing.

I am open to just _not_ doing anything of course - I love not adding
code so just give me a reason!
…8840)

### Packages impacted by this PR
@azure/monitor-opentelemetry-exporter
### Packages impacted by this PR

- @azure/dev-tool

### Issues associated with this PR


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

Reverts back to the original for the testing ts-node for JS and TS.

### 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)_

- Azure#28801

### 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)
Update emitter packages.
### Packages impacted by this PR

- @azure/keyvault-keys
- @azure/keyvault-admin
- @azure/keyvault-secrets

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

Fixes the glob path issue with the upgrade to `rimraf` since there were
extra calls to `rimraf` after the standard calls.
The `azsdkjsrush` storage account has seemingly been deleted, so this
will always fail and waste effort during CI.

Tracking issue for a full fix: Azure#28865
…n SDK (Azure#28847)

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

Added the CreatCallFailed and AnswerFailed event.

This changed is tested against the Contoso app.
### Packages impacted by this PR

- `@azure/opentelemetry-instrumentation-azure-sdk`

### Issues associated with this PR


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

Updates to latest OTEL

### 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)
### Packages impacted by this PR

- @azure-tests/perf-monitor-opentelemetry

### Issues associated with this PR


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

Updates to latest OTEL packages

### 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)
- convert pipelines to 1es-templates from all entrypoints. specifically archetype-sdk-tests, archetype-sdk-client, and cosmos-sdk-client.
- Move all image selection (outside of release deployments) to honor env variables instead of manually writing the pool (similar patterns for all other platforms)

Co-authored-by: Ben Broderick Phillips <[email protected]>
This is an automatic PR generated weekly with changes from running the
command rush update --full
### Packages impacted by this PR

- @azure/dev-tool

### Issues associated with this PR


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

Updates to latest dependencies and move from mocha to vitest.

### 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)
### Packages impacted by this PR

N/A

### Issues associated with this PR

Build failures

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

`esm` is slowly becoming a larger problem for us and we've been on a
mission to remove it. min/max tests fail because esm is unable to handle
safe-navigation operators (?.) 

While a separate PR switches tests to use tsx, this PR focuses on
min/max tests and can be merged separately.

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

Azure#28826
Builds off of Matt's work on moving to tsx in Azure#28801 by removing the
`use-esm-workaround` flag from packages that needed it before we moved to tsx.

There's additional cleanup to be had, but I am trying not to cause a
build storm.

We are at a point where we can delete `esm` globally!

Contributes to Azure#28617 which can be completed with a no-ci change to
remove `esm` globally

****NO_CI****
Turning on GitHub Action to enforce the max life of issues. "Close stale
issues"
Correcting some autoformatting stuff that was introduced in my
`1es-template` PR.

There were two nightly failures:

- Failure in `Publish package to daily feed` (addressed by balancing
quotes)
- Failure to run `PublishDocsToNightlyBranch` (addressed by updating
`vmImage` -> `image` in the pool settings for the job.)

I have kicked a couple test builds:

- [Template
Release](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3589129&view=results)
- [Template Release
Nightly](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3589156&view=results)
### Packages impacted by this PR
@azure/monitor-opentelemetry

Updating names to align with other SDKs, these should not be available
for customer to directly query so this is not a breaking change
… Log/Span Processors and Use SpanProcessors in Default Config (Azure#28597)

### Packages impacted by this PR
@monitor-opentelemetry

### Describe the problem that is addressed by this PR
README should account for all configuration options.
We should not rely on the deprecated `SpanProcessor` field on the SDK
config.
)

### Packages impacted by this PR
@azure/monitor-opentelemetry

### Describe the problem that is addressed by this PR
Code samples should be consistent and be syntactically correct in
TypeScript

Azure#28744 

### 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)
kazrael2119 and others added 25 commits March 15, 2024 14:09
### Packages impacted by this PR
@azure/monitor-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)
Sync eng/common directory with azure-sdk-tools for PR
Azure/azure-sdk-tools#7892 See [eng/common
workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow)

---------

Co-authored-by: Ben Broderick Phillips <[email protected]>
This is an automatic PR generated weekly with changes from running the
command rush update --full
…ure#28916)

### Packages impacted by this PR
`@azure-tools/test-perf`

### Describe the problem that is addressed by this PR
Making perf package public for consumption outside this repo.
This marks the initial release of the `@azure-tools/test-perf` library
to npm, providing a robust test utility framework that assists with the
performance testing of Azure SDKs for JS/TS.

### Key Concepts

1. **Introduction of PerfTest**: A test utility designed to execute
performance and stress tests for Azure SDK for JavaScript packages.
2. **Test Execution**: Tests are run asynchronously, influenced by
parameters like duration, iterations, and parallelism.
3. **Command Line Parameters**: Utilizes `minimist` for parsing command
line options into a `PerfOptionDictionary<string>` for test
configuration.
4. **Default Options**: Includes standard parameters such as `help`,
`no-cleanups`, `parallel`, `duration`, `warmup`, `iterations`,
`no-cleanup`, and `milliseconds-to-log`.
5. **Test Lifecycle**: Tests run repeatedly within the specified
`duration` and `iterations`, with a `warmup` period for runtime
optimization.
6. **Setup and Cleanup**: Features `globalSetup`/`globalCleanup` methods
for CPU-level preparation and `setup`/`cleanup` methods for
instance-specific state management.
### Packages impacted by this PR

`@azure/core-client`

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

When this logic was ported from a Storage-specific policy, it referenced
a field in the challenge called `resource_uri` instead of the actual
value which is `resource_id`.

You can see the working value in the storage/stable branch:
https://github.com/Azure/azure-sdk-for-js/blob/f7fca7e84dfd0aced888ea5c0d109468a1e2a3a6/sdk/storage/storage-blob/src/policies/StorageBearerTokenChallengeAuthenticationPolicy.ts#L252

I suspect the reason for the confusion is because the documentation page
that describes this feature incorrectly gives an example that has
`resource_uri` even though the parameter description lists
`resource_id`:
https://learn.microsoft.com/en-us/rest/api/storageservices/authorize-with-azure-active-directory#sample-response-to-bearer-challenge

This wasn't caught previously as Storage had not migrated to CoreV2 and
exercised this codepath.
…itor part A/tags (Azure#28965)

### Packages impacted by this PR
@azure/monitor-opentelemetry-exporter

Add support for AiDeviceId, AiDeviceModel and AiApplicationVer
Fix issue with AiUserId, this is not part of resource attributes
Removed deprecated references from @opentelemetry/semantic-conventions
### Packages impacted by this PR
@azure/openai

### Issues associated with this PR


### Describe the problem that is addressed by this PR
This PR updates AOAI package to the latest customization tool v2 with
the new folder structure. "sources" folder is removed and the generated
code will be located in "generated" folder. The PR does not use the
latest TypeSpec commit; that will be addressed in a later PR to avoid
massive changes to the API.
…red (Azure#28974)

### Packages impacted by this PR

`@azure/core-rest-pipeline`

### Issues associated with this PR

Azure#28951

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

When PR Azure#28563 upgraded `http-proxy-agent` it didn't properly pass along
`port` as this is now encoded in the proxy URL instead of the agent
options.

This PR trims down the unnecessary parsing we are doing to turn the
proxy URL into `ProxySettings`, preferring to pass the URL as-is to
`http-proxy-agent` and avoid losing information. In cases where we
receive `ProxySettings` we will convert it into a URL correctly.

For unknown historical reasons, `getDefaultProxySettings` was exposed as
public surface, but since we no longer need this internally, I have
marked it as deprecated so we may remove it in a later major version.

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

Existing tests were updated to validate the proxy URL being set
correctly on the agent itself.
See title.

[Test
Build](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3615161&view=results)
unpublishing a random manual test release of `@azure/template`.
### Describe the problem that is addressed by this PR

Re-adds "browser" field to `package.json` to support
older bundlers that do not have support for the more modern "exports"
field added in Node 14.
### Packages impacted by this PR

- @azure/notification-hubs

### Issues associated with this PR

- Azure#28936

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

Fixes to expand the API to include the FCM V1 Message type as part of
the `Notification` type.

### 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)
### Packages impacted by this PR
@azure/event-hubs

### Issues associated with this PR
N/A

### Describe the problem that is addressed by this PR
One customer is complaining that the minimum wait of 60 seconds is too
long and they wish to be able to lower it.

### 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?
N/A

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

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

### 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)_
- [x] Added a changelog (if necessary)
Merge c473e86d4cb784216a97e254919f30950bbf7936 into 978d1c0aa7e5bb246966ccf13b801b1e0a741380
@github-actions github-actions bot added the Mgmt label Mar 20, 2024
@azure-sdk azure-sdk closed this Mar 24, 2024
@azure-sdk azure-sdk deleted the sdkAuto/28337/@azure_arm-appplatform branch March 24, 2024 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.