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

254 Коммитов

Автор SHA1 Сообщение Дата
Jeremy Meng 8dc3e561db
[EngSys] fix `schema-registry-avro` build failure on Windows (#31607)
After moving to vendored rimraf, this particular "clean" script is
failing likely due to the escaped quoted argument before it and how
dev-tool handls arguments. Moving `*.tgz *.log` fixes it.
2024-11-01 18:35:43 -07:00
Jeremy Meng a28e8f0795 [EngSys] move to vendored version of cross-env via dev-tool
***NO_CI***

- apply the transformation

- update samples' README
2024-11-02 00:48:06 +00:00
Jeremy Meng 6a2c7300eb [eslint-plugin] add rule "@typescript-eslint/consistent-type-imports": "warn"
- apply lint:fix results

- revert fixes that are not related to consistent-type-imports and cases error

- regenerate .api.md files

- format

- update core-comparison diff
2024-10-30 15:48:52 +00:00
Jeremy Meng 1cae9db8e1 [EngSys] remove "audit" NPM script and it's related file
as we no longer use it and rely on GitHub security features.

***NO_CI***
2024-10-25 19:28:06 +00:00
Jeremy Meng 59bb0809ba [EngSys] use vendored version of `mkdirp` and `rimraf` from dev-tool
also remove dependency on `@microsoft/api-extractor` as we already move to
`dev-tool run extract-api` which calls api-extractor Api instead.

***NO_CI***
2024-10-23 17:53:07 +00:00
Minh-Anh Phan feacb89b2f
[SR Json and Avro] Samples Fix (#31399)
Fix the samples #31357 and re-enable min max on SR Avro package
2024-10-14 15:09:14 -07:00
Minh-Anh Phan 72187a1b21
[Schema Registry Avro] ESM Migrate (#31131)
Migrate SR Avro
2024-10-11 11:23:55 -07:00
Matthew Podwysocki 61c8b9aae4 [EngSys] Add update-snippets to all package.json files ***NO_CI*** 2024-09-26 17:59:37 +00:00
Jeremy Meng a7b3656a05 [EngSys] upgrade dev dependency `typescript` version to `~5.6.2`
***NO_CI***

- replace version to "~5.6.2"
- rush update
- add `"skipLibCheck": true` for several packages that are affected by https://github.com/vitest-dev/vitest/issues/4688

- [formrecognizer] help TypeScript to understand with more explicit type

- [schema-registry-{avro,json}] skip lib check due to lru-cache issue with the Iterator TReturn change

https://github.com/isaacs/node-lru-cache/issues/348
2024-09-19 18:07:31 -07:00
Azure SDK Bot 96dceffd46
Post release automated changes for schemaregistry releases (#31136)
Post release automated changes for azure-schema-registry-json
2024-09-17 12:18:27 -07:00
Minh-Anh Phan fdac51005e
[Schema Registry] Post release update for Schema Registry (#31138)
Update package version after release
2024-09-17 12:17:57 -07:00
Minh-Anh Phan 9cc2c01c00
[Schema Registry] Generate from latest TypeSpec (#30345)
### Describe the problem that is addressed by this PR
Generate RLC layer from TypeSpec for 2022-10 API version

### 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?
2024-09-09 15:45:52 -07:00
Jeremy Meng d5f6d677ec [EngSys] standardize OSS copyright header
- [eslint-plugin] github-source-headers rule should use "MIT License".

  This change updates our linter rule and the whole repository to have consistent
  license header.

***NO_CI***

- remove "All rights reserved." from header

- "MIT license" => "MIT License"
2024-08-27 13:01:38 -07:00
Jeremy Meng f04044e34e [eslint] remove ESLINT_USE_FLAT_CONFIG=true env variable
now that we have moved to eslint v9.

***NO_CI***
2024-08-26 12:52:48 -07:00
Jeremy Meng 5adb09d715 [engsys] upgrade dev dependency eslint to v9
***NO_CI***

- bump eslint version to ^9.9.0
- [eslint-plugin] remove eslint-plugin-import for now. Will re-visit until it supports eslint v9
2024-08-23 16:37:40 -07:00
Jeremy Meng 4ab6590ffe Apply automated migration to eslint flat config 2024-08-22 11:43:19 -07:00
Deyaaeldeen Almahallawi 3335c5eb34
[Schema Registry] Migrate to Bicep (#30850)
And also:
- Update API versions
- Be cloud-independent to allow running in sovereign clouds.

Live tests run: 
-
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4069965&view=results
-
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4070103&view=results
2024-08-22 09:06:28 -07:00
Jeremy Meng 405c244bb1 [linting] move perf tests to use eslint flat config
***NO_CI***

- add one flat config file for perf tests

- update NPM scripts of these packages to use that flat config for perf tests

  As eslint v8 still not switched to flat config by default, this change
  temporarily uses `cross-env` to set `ESLINT_USE_FLAT_CONFIG=true`

  Once we moved to eslint v9 the env var can be removed.
2024-08-15 10:56:56 -07:00
Jeremy Meng 3a68e456b2 [Samples] update "src/**.ts" to "src/**/*.ts" in tsconfig.json
Previously dev-tool has been fixed to generate correct include path in samples
tsconfig.json but samples were not updated.

This PR fixes the samples tsconfig.json in one run; otherwise with the recent
branch protection policy changes, when individual packages re-publish samples,
js-core team would have to approve the tsconfig.json changes.

***NO_CI***
2024-07-24 13:53:00 +00:00
Minh-Anh Phan 681de6db5b
[Eng] Set Default for Federated Auth to True (#30163)
### Describe the problem that is addressed by this PR
Remove local federated auth in tests.yml and enable Federated Auth by
default in eng folder
2024-07-22 17:24:20 -07:00
Jeremy Meng b93b62368b [EngSys] remove tsconfig.package.json
which only extends from tsconfig.json.  There might be more customization for
packages in the early days but not any more.

This PR removes it and updates packages to extends tsconfig.json directly

***NO_CI***
2024-07-16 13:27:25 +00:00
Jeremy Meng 1a09f43108 [EngSys] upgrade dev dependency `typescript` version to `~5.5.3`
***NO_CI***

- also include *.api.md updates due to the following TypeScript 5.5 change

https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-5.html#simplified-reference-directive-declaration-emit
2024-07-03 22:24:35 +00:00
Minh-Anh Phan 84c3c166d6
[Schema Registry] Migrate Test Suite Authentication (#29934)
### Packages impacted by this PR
@azure/schema-registry 
@azure/schema-registry-avro
@azure/schema-registry-json

### Issues associated with this PR


### Describe the problem that is addressed by this PR
Migrate away from secret based authentication. Update tests.yml and
test-resources.json output
2024-07-02 12:04:34 -07:00
Minh-Anh Phan 932a5b07a4
[Schema Registry JSON] Update API View (#30131)
Update API View from arch board review
2024-07-02 11:41:38 -07:00
Jeremy Meng 907b4edd0b
[schemaregistry-avro] upgrade dev dependency `stream` to ^0.0.3 (#30257)
and update pnpm-lock.yaml

Resolves issue https://github.com/Azure/azure-sdk-for-js/issues/30249
2024-07-01 16:51:54 -07:00
Jeremy Meng 74dfa883b9 [EngSys] upgrade dep dependency `nyc` to ^17.0.0
***NO_CI***
2024-06-28 17:57:40 +00:00
Minh-Anh Phan 74b40a297e
[Schema Registry] Update JsonSchemaSerializer Class Name (#29978)
### Packages impacted by this PR


### Issues associated with this PR


### Describe the problem that is addressed by this PR
Prepare GA release for schema registry & schema registry Json schema
serializer. Change class name from `JsonSerializer` to
`JsonSchemaSerializer`

Co-authored-by: Maor Leger <maorleger@users.noreply.github.com>
2024-06-17 15:04:24 -07:00
Maor Leger 2e040fae8a Bump @azure/identity to 4.2.1 in samples ***NO_CI*** 2024-06-11 14:01:31 -07:00
Minh-Anh Phan e82103b94f
[Schema Registry] Update Dependencies in package.json (#29876)
### Packages impacted by this PR
@azure/schema-registry
@azure/schema-registry-avro

### Issues associated with this PR
#29866

### Describe the problem that is addressed by this PR
Update the dependency version for @azure/core-client in
@azure/schema-registry. Skip 1 failing test in @azure/scheme-registry-avro
2024-06-03 09:34:37 -07:00
Matthew Podwysocki cd3cf2e03e [EngSys] Update version of @azure-tools/test-utils ***NO_CI*** 2024-05-08 11:54:46 -07:00
Matthew Podwysocki 769c1b126e [EngSys] Update name of @azure-tools/test-utils ***NO_CI*** 2024-04-25 13:14:33 -07:00
Jeremy Meng e9561c1a52 [EngSys] back to use `nyc` for code coverage
now that we removed `esm` dependency, `nyc` should be working again, and `nyc`
appears to have better results than `c8` does.

***NO_CI***
2024-04-19 12:19:32 -07:00
Maor Leger 224f7c1c14 [EngSys] Migrate to dev-tool extract-api ***NO_CI*** 2024-04-19 18:13:41 +00:00
Maor Leger 446e9d831b [EngSys] Remove ESM dependency ***NO_CI*** 2024-04-19 15:45:48 +00:00
Jeremy Meng 398494acd8 [EngSys] upgrade dev dependency `typescript` to `~5.4.5`
The only package that still stays on ~5.3.3 is search-document (tracked by issue #29283)

***NO_CI***
2024-04-11 23:19:38 +00:00
Matthew Podwysocki 92a3d9128d
[schema registry] Update LRU cache (#29102)
### Packages impacted by this PR

- @azure/schema-registry
- @azure/schema-registry-avro

### Issues associated with this PR

- https://github.com/Azure/azure-sdk-for-js/issues/25221

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

Updates to latest `lru-cache`

### 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)
2024-03-28 14:28:56 -07:00
Maor Leger d7173879bf [EngSys] C8 major version update ***NO_CI*** 2024-03-22 13:26:43 -05:00
Harsha Nalluru 8d3374a81a
[Perf] Make perf package public for consumption outside this repo (#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.
2024-03-19 10:05:34 +00:00
Maor Leger e3aaa5abef
remove use-esm-workaround (#28826)
Builds off of Matt's work on moving to tsx in #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 #28617 which can be completed with a no-ci change to
remove `esm` globally

****NO_CI****
2024-03-12 12:32:59 -07:00
Scott Beddall (from Dev Box) ecdb45e61d replace all tests.yml usage w/ extends to archetype-sdk-tests.yml ***NO_CI*** 2024-03-11 14:13:06 -07:00
Matthew Podwysocki ca72dcf5c9 [EngSys] move to rimraf 5 ***NO_CI*** 2024-03-07 16:48:30 -08:00
Jeremy Meng cd4d6b9f6f
[EngSys] switch to use `esm4mocha` loader by default for *.js tests (#28589)
- Switch to use esm4mocha loader by default
- Add `--use-esm-workaround=true` to packages that need more work
(mostly due to usage of `__dirname` that is no longer available in ESM)
- Change some usage of `__dirname` to `"."` when possible
- [esm4mocha] only transform modules whose format is changed
- [load-testing-rest] update tsconfig.json to be consistent with other
packages
2024-02-16 14:37:24 -08:00
Jeremy Meng 09784c3724 [EngSys] upgrade dev dependency `pretter` to `^3.2.5`
There's some changes in 3.2.5 which caused formatting changes for tsconfig.json
which caused our rush automation failed in check-format when moving to latest 3.2.5.

https://github.com/prettier/prettier/blob/main/CHANGELOG.md#use-json-parser-for-tsconfigjson-by-default-16012-by-sosukesuzuki

This change upgrades prettier to version ^3.2.5 and format files using "rush format".

***NO_CI***
2024-02-06 12:13:14 -08:00
Maor Leger c0d505f086 [EngSys] Update to @azure/identity 4.x
This change migrates every package to the latest major version of
identity in order to ensure we can catch any regressions earlier in the
development process.

I chose to upgrade the samples' package.json as well - but happy to
revert that if there are objections.

***NO_CI***
2024-02-02 19:01:35 +00:00
Jeremy Meng ee5c29d72d ***NO_CI***
bump to ~5.3.3
2024-01-26 11:25:48 -08:00
Matthew Podwysocki f70fa9821c [EngSys] Update TypeScript to 5.3 2024-01-26 11:25:47 -08:00
Jeremy Meng 0e1c8881f0 [EngSys] upgrade dev dependency `prettier` version to ^3.2.4
***NO_CI***

Latest versions of prettier now correctly formats `tsconfig.json`, which results
in differences with previous version of 3.1.1 in pnpm-lock.yaml. This is failing
the automated rush update pipeline because `check-format` fails with version
3.2.4.

This includes changes of
- bumping prettier version to ^3.2.4
- running `rush format`
2024-01-18 19:05:41 +00:00
Jeremy Meng 12b4dcc257 [EngSys] upgrade to prettier v3
***NO_CI***

- remove dev dependency `prettier` from non-tool packages when possible and
  update them to run vendored prettier for `check-format` and `format` scripts

- upgrade rest of packages to prettier v3

- run `rush format` for all rush packages

This is a follow-up to https://github.com/Azure/azure-sdk-for-js/pull/28127 to
move the rest of repo to prettier v3.
2024-01-10 18:45:01 -05:00
Jeremy Meng f6e6736d3a [EngSys] remove dev dependency `mocha-junit-reporter`
***NO_CI***

We have replaced it with Mocha builtin XUnit reporter in PR https://github.com/Azure/azure-sdk-for-js/pull/27992
2023-12-06 22:28:15 +00:00
Minh-Anh Phan b8c0a1afb1
[schema registry] Migrate Test Recordings (#27691) 2023-11-07 17:02:18 -08:00