From 15efd85b28a76421e60a7ac771008147e0f62c67 Mon Sep 17 00:00:00 2001 From: xiaofeicao Date: Sat, 28 Feb 2026 17:24:19 +0800 Subject: [PATCH 1/7] update core --- core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core b/core index e46bb79faf..5a7deafc2c 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit e46bb79fafe2e98982ce5f785dbe1974c0209307 +Subproject commit 5a7deafc2ccfef66a9171c2da7422bc738ec8b36 From 81ee90db99aa5c7f85354d8e95c3c2ef009bdedd Mon Sep 17 00:00:00 2001 From: XiaofeiCao Date: Mon, 2 Mar 2026 11:44:48 +0800 Subject: [PATCH 2/7] check-in generated sample code for premium --- eng/sdk/sync_sdk.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eng/sdk/sync_sdk.py b/eng/sdk/sync_sdk.py index 7030f0cae7..2ad89d663b 100644 --- a/eng/sdk/sync_sdk.py +++ b/eng/sdk/sync_sdk.py @@ -172,7 +172,9 @@ def update_sdks(): cmd = ["git", "checkout", "src/test"] subprocess.check_call(cmd, cwd=module_path) - if not generated_samples_exists: + # For ARM module, we want to keep the generated samples code. + # For data-plane, if the generated samples/test code is not there before generation, we will delete the generated code after generation, to avoid unnecessary code check-in. + if not generated_samples_exists and not arm_module: shutil.rmtree(generated_samples_path, ignore_errors=True) if not generated_test_exists: shutil.rmtree(generated_test_path, ignore_errors=True) From 30eb9ee9763f44d15c9c2b4c4d92b967e0572724 Mon Sep 17 00:00:00 2001 From: xiaofeicao Date: Thu, 5 Mar 2026 12:16:11 +0800 Subject: [PATCH 3/7] try pin autorest version --- eng/pipelines/jobs/build-autorest-mgmt.yml | 2 +- eng/pipelines/variables/globals.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/eng/pipelines/jobs/build-autorest-mgmt.yml b/eng/pipelines/jobs/build-autorest-mgmt.yml index 894d6ed29a..f208d931c6 100644 --- a/eng/pipelines/jobs/build-autorest-mgmt.yml +++ b/eng/pipelines/jobs/build-autorest-mgmt.yml @@ -36,7 +36,7 @@ jobs: inputs: versionSpec: '$(NodeVersion)' - - script: npm install autorest -g + - script: npm install autorest@${AutorestVersion} -g - template: /eng/pipelines/steps/cache-maven-repository.yml parameters: diff --git a/eng/pipelines/variables/globals.yml b/eng/pipelines/variables/globals.yml index 1ac6949292..e03d00f765 100644 --- a/eng/pipelines/variables/globals.yml +++ b/eng/pipelines/variables/globals.yml @@ -1,6 +1,7 @@ variables: JavaVersion: '1.11' NodeVersion: '20.x' + AutorestVersion: '3.7.2' # Sets the Maven log level to either the LogLevel passed in the manual pipeline run or the default 'warn' MavenLogLevel: $[coalesce(variables['LogLevel'], 'warn')] From 10e076ef8eebf17debeb444b70c04a222c071dbd Mon Sep 17 00:00:00 2001 From: xiaofeicao Date: Thu, 5 Mar 2026 12:21:05 +0800 Subject: [PATCH 4/7] fix --- eng/pipelines/jobs/build-autorest-mgmt.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/jobs/build-autorest-mgmt.yml b/eng/pipelines/jobs/build-autorest-mgmt.yml index f208d931c6..6153b4f3af 100644 --- a/eng/pipelines/jobs/build-autorest-mgmt.yml +++ b/eng/pipelines/jobs/build-autorest-mgmt.yml @@ -36,7 +36,7 @@ jobs: inputs: versionSpec: '$(NodeVersion)' - - script: npm install autorest@${AutorestVersion} -g + - script: npm install autorest@$(AutorestVersion) -g - template: /eng/pipelines/steps/cache-maven-repository.yml parameters: From 4b8665ca7536f5a834cfe8143200ee58e6b1b381 Mon Sep 17 00:00:00 2001 From: xiaofeicao Date: Thu, 5 Mar 2026 12:30:43 +0800 Subject: [PATCH 5/7] also fix autorest pipeline --- eng/pipelines/jobs/build-autorest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/jobs/build-autorest.yml b/eng/pipelines/jobs/build-autorest.yml index 1327f7e92c..c9346e28ff 100644 --- a/eng/pipelines/jobs/build-autorest.yml +++ b/eng/pipelines/jobs/build-autorest.yml @@ -54,7 +54,7 @@ jobs: publishJUnitResults: false - script: | - npm install -g autorest + npm install -g autorest@$(AutorestVersion) npm ci displayName: 'Prepare Environment for Generation' From da7a11b7edb977a7cf91f0d0131fa6dd91811365 Mon Sep 17 00:00:00 2001 From: xiaofeicao Date: Thu, 5 Mar 2026 13:37:36 +0800 Subject: [PATCH 6/7] try failOnStderr --- eng/pipelines/jobs/build-autorest-mgmt.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eng/pipelines/jobs/build-autorest-mgmt.yml b/eng/pipelines/jobs/build-autorest-mgmt.yml index 6153b4f3af..1c9f0a813b 100644 --- a/eng/pipelines/jobs/build-autorest-mgmt.yml +++ b/eng/pipelines/jobs/build-autorest-mgmt.yml @@ -36,7 +36,7 @@ jobs: inputs: versionSpec: '$(NodeVersion)' - - script: npm install autorest@$(AutorestVersion) -g + - script: npm install autorest -g - template: /eng/pipelines/steps/cache-maven-repository.yml parameters: @@ -60,6 +60,7 @@ jobs: pwsh: true filePath: fluent-tests/Initialize-Tests.ps1 workingDirectory: ./fluent-tests + failOnStderr: false - task: Maven@4 displayName: 'Run Tests' From 7a31f9bfac4b6110726bf1ddb086c82dc07c1437 Mon Sep 17 00:00:00 2001 From: xiaofeicao Date: Thu, 5 Mar 2026 13:48:15 +0800 Subject: [PATCH 7/7] Revert "try failOnStderr" This reverts commit da7a11b7edb977a7cf91f0d0131fa6dd91811365. --- eng/pipelines/jobs/build-autorest-mgmt.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eng/pipelines/jobs/build-autorest-mgmt.yml b/eng/pipelines/jobs/build-autorest-mgmt.yml index 1c9f0a813b..6153b4f3af 100644 --- a/eng/pipelines/jobs/build-autorest-mgmt.yml +++ b/eng/pipelines/jobs/build-autorest-mgmt.yml @@ -36,7 +36,7 @@ jobs: inputs: versionSpec: '$(NodeVersion)' - - script: npm install autorest -g + - script: npm install autorest@$(AutorestVersion) -g - template: /eng/pipelines/steps/cache-maven-repository.yml parameters: @@ -60,7 +60,6 @@ jobs: pwsh: true filePath: fluent-tests/Initialize-Tests.ps1 workingDirectory: ./fluent-tests - failOnStderr: false - task: Maven@4 displayName: 'Run Tests'