Increase NPM ComponentDetection.Timeout: 1200 (#20681)

### Description
<!-- Describe your changes. -->



### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
This commit is contained in:
Jian Chen 2024-05-15 16:41:59 -04:00 committed by GitHub
parent ee3f2f4ebf
commit d1e66f0446
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -10,10 +10,10 @@ parameters:
default: 'nightly (@dev)'
variables:
# pipeline should define the following varaibles
# pipeline should define the following variables
# ExtraBuildArgs
# VersionSuffix
ComponentDetection.Timeout: 1800
${{ if eq(parameters.NpmPublish, 'nightly (@dev)') }}:
NpmPackagingMode: 'dev'
${{ if eq(parameters.NpmPublish, 'release candidate (@rc)') }}:

View file

@ -12,6 +12,7 @@ steps:
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
displayName: 'Component Detection'
continueOnError: true
condition:
or(or(and(eq('${{parameters.condition}}', 'ci_only'), and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'Scheduled'))),
and(eq('${{parameters.condition}}', 'always'), always())),
@ -20,7 +21,7 @@ steps:
# ignore unit tests in emscripten. emscripten unit tests are not used in onnxruntime build
# ignore onnx third_party directory. onnx third_party directory is not responsible for onnxruntime build
# ignore react_native e2e node_modules directory. react_native e2e node_modules directory is generated by react_native e2e tests
# ignore github directory. github directory is used for github actions, not for onnxruntime package
# ignore github directory. github directory is used for github actions, not for onnxruntime package
ignoreDirectories:
'$(Build.SourcesDirectory)/cmake/external/emsdk/upstream/emscripten/tests,
$(Build.SourcesDirectory)/cmake/external/onnx/third_party,