[build] fix the CI pipeline (#16962)

### Description
There are currently multiple failures that blocking the CI pipelines so
this PR has all of the fixes in order to make sure it passes the CI.
Otherwise a single fix will still fail the CI.

includes:
#16960
#16958

Please help to make sure this PR get merged once CI passed.

@snnn @carzh @guschmue 

Fixed:
[AB#18118](https://aiinfra.visualstudio.com/6a833879-cd9b-44a4-a9de-adc2d818f13c/_workitems/edit/18118)

---------

Co-authored-by: Caroline Zhu <carolinezhu@microsoft.com@orttrainingdev7.d32nl1ml4oruzj4qz3bqlggovf.px.internal.cloudapp.net>
This commit is contained in:
Yulong Wang 2023-08-01 16:22:45 -07:00 committed by GitHub
parent 1fbd1ed179
commit afac67bcc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 19 deletions

View file

@ -6,21 +6,12 @@
"configurations": [
{
"name": "[common] Launch Unit Tests",
"args": [
"-u",
"bdd",
"--timeout",
"999999",
"--colors",
"${workspaceFolder}/common/test/**/*.js"
],
"args": ["-u", "bdd", "--timeout", "999999", "--colors", "${workspaceFolder}/common/test/**/*.js"],
"internalConsoleOptions": "openOnSessionStart",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"cwd": "${workspaceFolder}/common",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"skipFiles": ["<node_internals>/**"],
"type": "node",
"sourceMaps": true,
"preLaunchTask": "tsc: build - common/test/tsconfig.json"
@ -29,14 +20,10 @@
"name": "[web] Launch Test Runner",
"program": "${workspaceFolder}/web/script/test-runner-cli.js",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"skipFiles": ["<node_internals>/**"],
"type": "node",
"cwd": "${workspaceFolder}/web",
"args": [
"suite1"
]
"args": ["suite1"]
},
{
"name": "[web] Attach to Chrome",

View file

@ -46,9 +46,9 @@ jobs:
- task: UsePythonVersion@0
# Use python 3.8 to avoid build some of the required packages
displayName: Use Python 3.8
displayName: Use Python 3.11
inputs:
versionSpec: 3.8
versionSpec: 3.11
- task: NodeTool@0
inputs:
versionSpec: '16.x'