Skip to content

Commit 14743b5

Browse files
MaryGaoqiaozhakazrael2119v-jiaodijeremymeng
authored
Sync latest main back to feature lro v3 branch (#2464)
* 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>
1 parent efbba8d commit 14743b5

1,285 files changed

Lines changed: 28557 additions & 12890 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.scripts/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
steps:
22
- task: NodeTool@0
33
inputs:
4-
versionSpec: "18.19.x"
4+
versionSpec: "18.x"
55
displayName: "Use Node 18"
66
- script: |
77
npm install -g @microsoft/rush

.scripts/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ stages:
104104
macOS_Node18:
105105
Pool:
106106
OSVmImage: "macOS-latest"
107-
NodeTestVersion: "18.19.x"
107+
NodeTestVersion: "18.x"
108108
Linux_Node18:
109109
Pool: ${{ parameters.LinuxPool }}
110110
OSVmImage: "ubuntu-20.04"
111-
NodeTestVersion: "18.19.x"
111+
NodeTestVersion: "18.x"
112112
Windows_Latest:
113113
Pool:
114114
OSVmImage: "Windows-latest"
@@ -134,11 +134,11 @@ stages:
134134
macOS_Node18:
135135
Pool:
136136
OSVmImage: "macOS-latest"
137-
NodeTestVersion: "18.19.x"
137+
NodeTestVersion: "18.x"
138138
Linux_Node18:
139139
Pool: ${{ parameters.LinuxPool }}
140140
OSVmImage: "ubuntu-20.04"
141-
NodeTestVersion: "18.19.x"
141+
NodeTestVersion: "18.x"
142142
Windows_Latest:
143143
Pool:
144144
OSVmImage: "Windows-latest"
@@ -169,11 +169,11 @@ stages:
169169
macOS_Node18:
170170
Pool:
171171
OSVmImage: "macOS-latest"
172-
NodeTestVersion: "18.19.x"
172+
NodeTestVersion: "18.x"
173173
Linux_Node18:
174174
Pool: ${{ parameters.LinuxPool }}
175175
OSVmImage: "ubuntu-20.04"
176-
NodeTestVersion: "18.19.x"
176+
NodeTestVersion: "18.x"
177177
pool:
178178
name: $[coalesce(variables['Pool'], '')]
179179
vmImage: $[coalesce(variables['OSVmImage'], '')]
@@ -231,11 +231,11 @@ stages:
231231
macOS_Node18:
232232
Pool:
233233
OSVmImage: "macOS-latest"
234-
NodeTestVersion: "18.19.x"
234+
NodeTestVersion: "18.x"
235235
Linux_Node18:
236236
Pool: ${{ parameters.LinuxPool }}
237237
OSVmImage: "ubuntu-20.04"
238-
NodeTestVersion: "18.19.x"
238+
NodeTestVersion: "18.x"
239239
Windows_Latest:
240240
Pool:
241241
OSVmImage: "Windows-latest"
@@ -261,11 +261,11 @@ stages:
261261
macOS_Node18:
262262
Pool:
263263
OSVmImage: "macOS-latest"
264-
NodeTestVersion: "18.19.x"
264+
NodeTestVersion: "18.x"
265265
Linux_Node18:
266266
Pool: ${{ parameters.LinuxPool }}
267267
OSVmImage: "ubuntu-20.04"
268-
NodeTestVersion: "18.19.x"
268+
NodeTestVersion: "18.x"
269269
# Windows_Latest:
270270
# Pool:
271271
# OSVmImage: "Windows-latest"

.scripts/release.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ stages:
3636
steps:
3737
- task: NodeTool@0
3838
inputs:
39-
versionSpec: "18.19.x"
39+
versionSpec: "18.x"
4040
displayName: "Install Node.js"
4141
- script: |
4242
tar zxvf $(Pipeline.Workspace)/packages/$(TAR_NAME)
@@ -59,7 +59,7 @@ stages:
5959
steps:
6060
- task: NodeTool@0
6161
inputs:
62-
versionSpec: "18.19.x"
62+
versionSpec: "18.x"
6363
displayName: "Install Node.js"
6464
- script: |
6565
cd $(Pipeline.Workspace)/packages
@@ -90,7 +90,7 @@ stages:
9090
steps:
9191
- task: NodeTool@0
9292
inputs:
93-
versionSpec: "18.19.x"
93+
versionSpec: "18.x"
9494
displayName: "Install Node.js"
9595
- script: |
9696
tar zxvf $(Pipeline.Workspace)/packages/$(TAR_NAME)
@@ -113,7 +113,7 @@ stages:
113113
steps:
114114
- task: NodeTool@0
115115
inputs:
116-
versionSpec: "18.19.x"
116+
versionSpec: "18.x"
117117
displayName: "Install Node.js"
118118
- script: |
119119
cd $(Pipeline.Workspace)/packages
@@ -145,7 +145,7 @@ stages:
145145
steps:
146146
- task: NodeTool@0
147147
inputs:
148-
versionSpec: "18.19.x"
148+
versionSpec: "18.x"
149149
displayName: "Install Node.js"
150150
- script: |
151151
tar zxvf $(Pipeline.Workspace)/packages/$(TAR_NAME)
@@ -168,7 +168,7 @@ stages:
168168
steps:
169169
- task: NodeTool@0
170170
inputs:
171-
versionSpec: "18.19.x"
171+
versionSpec: "18.x"
172172
displayName: "Install Node.js"
173173
- script: |
174174
cd $(Pipeline.Workspace)/packages
@@ -196,7 +196,7 @@ stages:
196196
steps:
197197
- task: NodeTool@0
198198
inputs:
199-
versionSpec: "18.19.x"
199+
versionSpec: "18.x"
200200
displayName: "Install Node.js"
201201
- script: |
202202
tar zxvf $(Pipeline.Workspace)/packages/$(TAR_NAME)
@@ -221,7 +221,7 @@ stages:
221221
steps:
222222
- task: NodeTool@0
223223
inputs:
224-
versionSpec: "18.19.x"
224+
versionSpec: "18.x"
225225
displayName: "Install Node.js"
226226
- script: |
227227
tar zxvf $(Pipeline.Workspace)/packages/$(TAR_NAME)
@@ -246,7 +246,7 @@ stages:
246246
steps:
247247
- task: NodeTool@0
248248
inputs:
249-
versionSpec: "18.19.x"
249+
versionSpec: "18.x"
250250
displayName: "Install Node.js"
251251
- script: |
252252
tar zxvf $(Pipeline.Workspace)/packages/$(TAR_NAME)
@@ -270,7 +270,7 @@ stages:
270270
steps:
271271
- task: NodeTool@0
272272
inputs:
273-
versionSpec: "18.19.x"
273+
versionSpec: "18.x"
274274
displayName: "Install Node.js"
275275
- script: |
276276
cd $(Pipeline.Workspace)/packages
@@ -293,7 +293,7 @@ stages:
293293
steps:
294294
- task: NodeTool@0
295295
inputs:
296-
versionSpec: "18.19.x"
296+
versionSpec: "18.x"
297297
displayName: "Install Node.js"
298298
- script: |
299299
cd $(Pipeline.Workspace)/packages
@@ -316,7 +316,7 @@ stages:
316316
steps:
317317
- task: NodeTool@0
318318
inputs:
319-
versionSpec: "18.19.x"
319+
versionSpec: "18.x"
320320
displayName: "Install Node.js"
321321
- script: |
322322
cd $(Pipeline.Workspace)/packages

.scripts/smoke-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
macOS_Node18:
1212
Pool:
1313
OSVmImage: "macOS-latest"
14-
NodeTestVersion: "18.19.x"
14+
NodeTestVersion: "18.x"
1515
Linux_Node18:
1616
Pool: ${{ parameters.LinuxPool }}
1717
OSVmImage: "ubuntu-20.04"
18-
NodeTestVersion: "18.19.x"
18+
NodeTestVersion: "18.x"
1919
Windows_Latest:
2020
Pool:
2121
OSVmImage: "Windows-latest"

.vscode/launch.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@
126126
"runtimeArgs": [
127127
"ts-node",
128128
"./test/commands/gen-cadl-ranch.ts",
129-
"--tag=rlc",
130-
"--debug"
129+
"--tag=modular"
131130
],
132131
"runtimeExecutable": "npx",
133132
"skipFiles": ["<node_internals>/**"],

0 commit comments

Comments
 (0)