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

[engsys] update platform matrix for node 14 deprecation #27302

Merged
merged 7 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions eng/pipelines/templates/jobs/smoke.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,24 +55,24 @@ jobs:
condition: and(succeeded(), eq(dependencies.smoke_test_eligibility.outputs['check_smoke_tests.RunSmokeTests'], true))
strategy:
matrix:
Mac Node14 (AzureCloud):
Mac Node18 (AzureCloud):
Pool: Azure Pipelines
OSVmImage: "macos-11"
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources)
ArmTemplateParameters: $(AzureCloudArmTemplateParameters)
NodeTestVersion: "14.x"
NodeTestVersion: "18.x"
Windows Node16 (AzureCloud):
Pool: "azsdk-pool-mms-win-2022-general"
OSVmImage: "MMS2022"
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources)
ArmTemplateParameters: $(AzureCloudArmTemplateParameters)
NodeTestVersion: "16.x"
Linux Node14 (AzureCloud):
Linux Node18 (AzureCloud):
Pool: "azsdk-pool-mms-ubuntu-2004-general"
OSVmImage: "MMSUbuntu20.04"
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources)
ArmTemplateParameters: $(AzureCloudArmTemplateParameters)
NodeTestVersion: "14.x"
NodeTestVersion: "18.x"
Linux Node16 (AzureCloud):
Pool: "azsdk-pool-mms-ubuntu-2004-general"
OSVmImage: "MMSUbuntu20.04"
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/stages/cosmos-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ stages:
MatrixFilters:
- TestType=node
- DependencyVersion=^$
- NodeTestVersion=14.x
- NodeTestVersion=18.x
- Pool=.*mms-win-2022.*
PreSteps:
- template: /eng/pipelines/templates/steps/cosmos-integration-public.yml
Expand Down
5 changes: 2 additions & 3 deletions eng/pipelines/templates/stages/platform-matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
}
},
"NodeTestVersion": [
"14.x",
"16.x",
"18.x",
"20.x"
Expand Down Expand Up @@ -49,7 +48,7 @@
"TestResultsFiles": "**/test-results.browser.xml"
}
},
"NodeTestVersion": "14.x"
"NodeTestVersion": "18.x"
},
{
"Agent": {
Expand All @@ -59,7 +58,7 @@
}
},
"TestType": "node",
"NodeTestVersion": "14.x",
"NodeTestVersion": "18.x",
"DependencyVersion": [
"max",
"min"
Expand Down
8 changes: 0 additions & 8 deletions eng/pipelines/templates/steps/use-node-test-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ steps:
parameters:
NodeVersion: $(NodeTestVersion)

# Node 14.x uses package [email protected] which is not compatible with win2022.
# Following the readme to upgrade to the latest one. Readme: https://github.com/nodejs/node-gyp/blob/main/docs/Force-npm-to-use-global-node-gyp.md
- pwsh: |
npm install --global node-gyp@latest
npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"}
displayName: Upgrade node-gyp version in Node 14x
condition: and(eq(variables['Pool'], 'azsdk-pool-mms-win-2022-general'), eq(variables['NodeTestVersion'], '14.x'))

# Packages with native dependencies must be reinstalled after changing Node versions
- pwsh: |
$nativeDependencySymlinkPaths = "common/temp/node_modules/.pnpm/node_modules/keytar,common/temp/node_modules/.pnpm/node_modules/@azure/msal-node-extensions"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"SKIP_UPDATE_CAPABILITIES_LIVE_TESTS": "true"
}
},
"NodeTestVersion": ["14.x", "16.x", "18.x"],
"NodeTestVersion": ["16.x", "18.x", "20.x"],
"TestType": "node",
"TestResultsFiles": "**/test-results.xml"
},
Expand Down Expand Up @@ -53,7 +53,7 @@
"SKIP_UPDATE_CAPABILITIES_LIVE_TESTS": "false"
}
},
"NodeTestVersion": "14.x"
"NodeTestVersion": "18.x"
},
{
"Agent": {
Expand All @@ -63,7 +63,7 @@
}
},
"TestType": "node",
"NodeTestVersion": "14.x",
"NodeTestVersion": "18.x",
"DependencyVersion": ["max", "min"],
"TestResultsFiles": "**/test-results.xml",
"SKIP_UPDATE_CAPABILITIES_LIVE_TESTS": "true"
Expand Down
6 changes: 3 additions & 3 deletions sdk/keyvault/keyvault-admin/platform-matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
}
},
"Versions": {
"14.x": {
"NodeTestVersion": "14.x"
},
"16.x_service_version_7_2": {
"NodeTestVersion": "16.x",
"ServiceVersion": "7.2"
},
"18.x": {
"NodeTestVersion": "18.x"
}
},
"TestType": "node"
Expand Down
4 changes: 2 additions & 2 deletions sdk/keyvault/keyvault-keys/platform-matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
},
"TestType": "node",
"NodeTestVersion": "14.x"
"NodeTestVersion": "18.x"
},
{
"Agent": {
Expand All @@ -19,7 +19,7 @@
}
},
"TestType": "node",
"NodeTestVersion": "16.x",
"NodeTestVersion": "18.x",
"ServiceVersion": ["7.0", "7.1", "7.2"]
}
],
Expand Down
Loading