Skip to content

Commit

Permalink
Sync latest main back to feature lro v3 branch (#2464)
Browse files Browse the repository at this point in the history
* deprecate-baseurl-in-favor-of-endpoint (#2246)

* deprecate-baseurl-in-favor-of-endpoint

* codegen change

* fix integration test and unit test

* update smoke-test && merge main

* revert smoke-test-list

* update

* revert change

* update

* update

* update

* update

* Revert "update"

This reverts commit 02967a1.

* update

* fix ci

* rename endpoint parameter

* update (#15)

* update test

---------

Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>

* Support usage and access (#2356)

* support-usage-and-access

* add generate orphan models options

* test push code to pr

* add test case for clientGeneratorCore access and usage

* rename public as operation name for now

* fix integration test

* add modular test case and remove duplicate case

* regenerate all test

* regenerate rlc test

* fix ci

---------

Co-authored-by: Jiao Di (MSFT) <80496810+v-jiaodi@users.noreply.github.com>

* Support server versions in modular and add cadl-ranch test cases (#2261)

* add modular server versions

* fix version param global calculation

* fix api version in operation logic

* fix versioned test

* fix ci

* fix ci

* add rlc server versions in this pr

* revert smoke test

* should only have client side api version if api version exists in all operations

* fix batch

* fix ut

* unify api version when it exists in all operations

* fix smoke test

* fix ci

* fix parameters

* fix ci

* add ut for api version in modular

* Update packages/typespec-ts/test/modularUnit/apiOperations.spec.ts

* fix ut

* reserve work

* generate client level required apiVersion

* handle api-version in both url and query

* fix ci

* should not export apiVersion in operation level signature when it has default value

* Update packages/typespec-ts/src/modular/helpers/operationHelpers.ts

* fix integration test

* fix smoke-test

* regen smoke-test

* regen cadl test case

* add ut and fix smoke test

* resolve comments

---------

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

* Add coverage cases for Server NotDefined in cadl-ranch (#2370)

* Supplement server endpoint not-defined

* update cadl-ranch version

* bump cadl ranch version regen code

* Add coverage cases for Azure Core Scalar in cadl-ranch (#2369)

* Supplement azure core scalar

* update test case

* remove .only in test case

* update test case

* fix easm build failure (#2379)

* add easm test case

* Fix the core model renaming due to enableModelNamespace option enabled

* update

* update

* remove easm

---------

Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>

* Upgrade the emitter version in April (#2395)

* Upgrade the emitter version

* Update the changelog

* Update the changelog

* Update the changelog

* Update packages/autorest.typescript/CHANGELOG.md

* Update packages/rlc-common/CHANGELOG.md

* Update packages/typespec-ts/CHANGELOG.md

---------

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

* Fix missing scripts issue in package.json and bump emitter version (#2402)

* fix rlc package.json script issue

* Update the Unit test

* Update the changelog and regen smoke test

* Update the issue number

* Update the lock file

---------

Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>

* Support special words (#2387)

* support-special-words

* update cadl ranch list

* update

* Update specialWords.spec.ts

* design implementation

* update test

* Update nameUtils.spec.ts

* update

* fix naming if operation name duplicate

* update typespec-test smoke-test

* Update clientContext.spec.ts

* fix-naming-parity-with-hlc (#17)

* fix optional params

* update rlc test

* update non-branded-test

* should not rename property name

---------

Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>

* Update specialWords.spec.ts (#2431)

* Add rlc coverage cases for payload media type in cadl-ranch (#2265)

* add rlc payload media type

* rege code and remove .only in test case

* update test case

* Upgrade `mkdirp` to ^3.0.1

by doing a string replacement

* Support server parameter in modular (#2424)

* enable-modular-in-parameterized-host

* support optional client parameter in modular

* enable anomaly detector modular generation

* fix ut

* fix cadl ranch test case

* fix smoke test

* reserve work

* fix anomaly detector api version missing

* use camel case for file name in modular client

* fix filename uppercase

* fix client name upper case

* resolve duplicate files

* fix batch rename

* fix rename in chatapi

* fix rename for contentsafety

* fix renaming in smoke test

* fix renaming in integration test

* fix batch rename

* fix smoke-test

* normalize name

* fix non-branded case

* fix ci

* fix ci

* Add modular coverage cases for payload media type in cadl-ranch (#2266)

* add modular payload media type

* update test case

* fix issus

* use local dev version

* update @azure-rest/core-client to 1.4.0

* regen code

---------

Co-authored-by: Qiaoqiao Zhang <qiaozha@microsoft.com>

* Fix the missing scripts issues and add test config (#2426)

* Fix the missing scripts issues

* add ut

* update

* update

* fix ci

* Remove the @azure-tools/vite-plugin-browser-test-map dependency

* Added the browser config in azure mono repo

* update smoke test

* update

---------

Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>

* Upgrade generated packages to have `typescript@~5.4.5`

* Extensible/fixed enum support & upgrade compiler to v0.55 (#2380)

* Update the tcgc to latest dev

* Fix build issue

* Update the UTs

* Update the enum and union cases

* Update the extensible enum

* Update the modular enum and union

* regen code

* Set the default flattenUnionAsEnum option

* gen fixedEnums and extensibleEnums code

* Enable the option flatten-union-as-enum as false for ts

* Refactor rlc UTs

* Regenerate the union cases in modular

* update smoeke test

* Update the UnitTest

* update input usage

* skip overload and generate code

* Update the import issue

* Disable the overload case

* regen code

* Upgrade to the latest

* Revert overload

* Resolve conflicts

* Remove skipped cases

* add union enum case

* smoke test

* regen integration code

* Disable the server case

* regen smoke test

* enable server path multiple

* rege integration code

* rebuild server path multiple

* Update the apiVerison fix

* update lock file

* lock file update

* Update the extensible and fixed enum

* update the changes

* update deleted files

* Regenerate smoke test

* Resolve comments

---------

Co-authored-by: Jiao Di (MSFT) <80496810+v-jiaodi@users.noreply.github.com>
Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>

* Update core client (#2441)

* update core client

* update format

* fix ci error

* Bump `typescript` version to ~5.4.5 in code generator packages

* Upgrade `c8` version to ^9.1.0 in generated packages

The c8 version azure-sdk-for-js repro has been upgraded to ^9.1.0 already.

* Support additional properties full cases in RLC (#2445)

* upgrade cadl-ranch version

* update

* fix rlc additional properties

* update test case

* update

* update test case

---------

Co-authored-by: qiaozha <qiaozha@microsoft.com>

* 9.1.0

* Update the changelog and bump versions in mid April (#2452)

* Update the changelog and bump versions

* update the lock file

* upgrade the tcgc to the latest stable

* revert version

* Downgrade to 18.19.x version

* Downgrade to 18.19.x

---------

Co-authored-by: Jiao Di (MSFT) <80496810+v-jiaodi@users.noreply.github.com>

* add server test case for modular and rlc (#2457)

* Document package-version in README.md (#2365)

* Add encode bytes missing test (#2456)

* add missing test

* fix body parameter format

---------

Co-authored-by: qiaozha <qiaozha@microsoft.com>

* Replace `esm` dev dependency with `tsx` for js mono repo

as we already switched to `tsx` in PR https://github.com/Azure/azure-sdk-for-js/pull/28826/files#diff-164a9ae95cf7571742ca1882b5fdc0a43e7000c271ff566de5e99ef2c2820021R34

* update unit test

* use `dev-tool run extract-api` in packages generated for JS mono repo

This follows the commit in JS repo: Azure/azure-sdk-for-js@224f7c1

* update test baselines

* fix unit tests

* fix test

* switch back to nyc

* update unit test

* add cancellationToken case (#2463)

* add cancellationToken case

* update

* update to the latest

* Update the smoke test code to the latest main

* update the integration to latest main

* update the latest modular int

* Adopt change to latest main

* Regen smoke and integration test

* change the client name

* Delete useless code

* remove ut

* update the integration for lro

* Upgrade the tcgc to v0.41.3 (#2453)

* Update the changelog and bump versions

* update the lock file

* upgrade the tcgc to the latest stable

* update version

* update version

* upgrade tcgc

* fix ci error

* regen smoke test

* Remove the hard coded template logic

* regen integration and smoke test

---------

Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>

* upgrade rush version (#2468)

* merge to the latest feature branch

* merge to the main

* update the lock file

* fix ci error

---------

Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com>
Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Co-authored-by: Jiao Di (MSFT) <80496810+v-jiaodi@users.noreply.github.com>
Co-authored-by: qiaozha <qiaozha@microsoft.com>
Co-authored-by: Jeremy Meng <jeremy.ymeng@gmail.com>
Co-authored-by: Jeremy Meng <yumeng@microsoft.com>
Co-authored-by: Max Horstmann <MaxHorstmann@users.noreply.github.com>
  • Loading branch information
8 people committed Apr 24, 2024
1 parent efbba8d commit 14743b5
Show file tree
Hide file tree
Showing 1,285 changed files with 28,557 additions and 12,890 deletions.
2 changes: 1 addition & 1 deletion .scripts/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.19.x"
versionSpec: "18.x"
displayName: "Use Node 18"
- script: |
npm install -g @microsoft/rush
Expand Down
20 changes: 10 additions & 10 deletions .scripts/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ stages:
macOS_Node18:
Pool:
OSVmImage: "macOS-latest"
NodeTestVersion: "18.19.x"
NodeTestVersion: "18.x"
Linux_Node18:
Pool: ${{ parameters.LinuxPool }}
OSVmImage: "ubuntu-20.04"
NodeTestVersion: "18.19.x"
NodeTestVersion: "18.x"
Windows_Latest:
Pool:
OSVmImage: "Windows-latest"
Expand All @@ -134,11 +134,11 @@ stages:
macOS_Node18:
Pool:
OSVmImage: "macOS-latest"
NodeTestVersion: "18.19.x"
NodeTestVersion: "18.x"
Linux_Node18:
Pool: ${{ parameters.LinuxPool }}
OSVmImage: "ubuntu-20.04"
NodeTestVersion: "18.19.x"
NodeTestVersion: "18.x"
Windows_Latest:
Pool:
OSVmImage: "Windows-latest"
Expand Down Expand Up @@ -169,11 +169,11 @@ stages:
macOS_Node18:
Pool:
OSVmImage: "macOS-latest"
NodeTestVersion: "18.19.x"
NodeTestVersion: "18.x"
Linux_Node18:
Pool: ${{ parameters.LinuxPool }}
OSVmImage: "ubuntu-20.04"
NodeTestVersion: "18.19.x"
NodeTestVersion: "18.x"
pool:
name: $[coalesce(variables['Pool'], '')]
vmImage: $[coalesce(variables['OSVmImage'], '')]
Expand Down Expand Up @@ -231,11 +231,11 @@ stages:
macOS_Node18:
Pool:
OSVmImage: "macOS-latest"
NodeTestVersion: "18.19.x"
NodeTestVersion: "18.x"
Linux_Node18:
Pool: ${{ parameters.LinuxPool }}
OSVmImage: "ubuntu-20.04"
NodeTestVersion: "18.19.x"
NodeTestVersion: "18.x"
Windows_Latest:
Pool:
OSVmImage: "Windows-latest"
Expand All @@ -261,11 +261,11 @@ stages:
macOS_Node18:
Pool:
OSVmImage: "macOS-latest"
NodeTestVersion: "18.19.x"
NodeTestVersion: "18.x"
Linux_Node18:
Pool: ${{ parameters.LinuxPool }}
OSVmImage: "ubuntu-20.04"
NodeTestVersion: "18.19.x"
NodeTestVersion: "18.x"
# Windows_Latest:
# Pool:
# OSVmImage: "Windows-latest"
Expand Down
24 changes: 12 additions & 12 deletions .scripts/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ stages:
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.19.x"
versionSpec: "18.x"
displayName: "Install Node.js"
- script: |
tar zxvf $(Pipeline.Workspace)/packages/$(TAR_NAME)
Expand All @@ -59,7 +59,7 @@ stages:
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.19.x"
versionSpec: "18.x"
displayName: "Install Node.js"
- script: |
cd $(Pipeline.Workspace)/packages
Expand Down Expand Up @@ -90,7 +90,7 @@ stages:
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.19.x"
versionSpec: "18.x"
displayName: "Install Node.js"
- script: |
tar zxvf $(Pipeline.Workspace)/packages/$(TAR_NAME)
Expand All @@ -113,7 +113,7 @@ stages:
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.19.x"
versionSpec: "18.x"
displayName: "Install Node.js"
- script: |
cd $(Pipeline.Workspace)/packages
Expand Down Expand Up @@ -145,7 +145,7 @@ stages:
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.19.x"
versionSpec: "18.x"
displayName: "Install Node.js"
- script: |
tar zxvf $(Pipeline.Workspace)/packages/$(TAR_NAME)
Expand All @@ -168,7 +168,7 @@ stages:
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.19.x"
versionSpec: "18.x"
displayName: "Install Node.js"
- script: |
cd $(Pipeline.Workspace)/packages
Expand Down Expand Up @@ -196,7 +196,7 @@ stages:
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.19.x"
versionSpec: "18.x"
displayName: "Install Node.js"
- script: |
tar zxvf $(Pipeline.Workspace)/packages/$(TAR_NAME)
Expand All @@ -221,7 +221,7 @@ stages:
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.19.x"
versionSpec: "18.x"
displayName: "Install Node.js"
- script: |
tar zxvf $(Pipeline.Workspace)/packages/$(TAR_NAME)
Expand All @@ -246,7 +246,7 @@ stages:
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.19.x"
versionSpec: "18.x"
displayName: "Install Node.js"
- script: |
tar zxvf $(Pipeline.Workspace)/packages/$(TAR_NAME)
Expand All @@ -270,7 +270,7 @@ stages:
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.19.x"
versionSpec: "18.x"
displayName: "Install Node.js"
- script: |
cd $(Pipeline.Workspace)/packages
Expand All @@ -293,7 +293,7 @@ stages:
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.19.x"
versionSpec: "18.x"
displayName: "Install Node.js"
- script: |
cd $(Pipeline.Workspace)/packages
Expand All @@ -316,7 +316,7 @@ stages:
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.19.x"
versionSpec: "18.x"
displayName: "Install Node.js"
- script: |
cd $(Pipeline.Workspace)/packages
Expand Down
4 changes: 2 additions & 2 deletions .scripts/smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
macOS_Node18:
Pool:
OSVmImage: "macOS-latest"
NodeTestVersion: "18.19.x"
NodeTestVersion: "18.x"
Linux_Node18:
Pool: ${{ parameters.LinuxPool }}
OSVmImage: "ubuntu-20.04"
NodeTestVersion: "18.19.x"
NodeTestVersion: "18.x"
Windows_Latest:
Pool:
OSVmImage: "Windows-latest"
Expand Down
3 changes: 1 addition & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@
"runtimeArgs": [
"ts-node",
"./test/commands/gen-cadl-ranch.ts",
"--tag=rlc",
"--debug"
"--tag=modular"
],
"runtimeExecutable": "npx",
"skipFiles": ["<node_internals>/**"],
Expand Down
Loading

0 comments on commit 14743b5

Please sign in to comment.