From 4666a49106577723b9eb7e45f2eac7f84c0f632e Mon Sep 17 00:00:00 2001 From: Olivia Jain Date: Fri, 20 Aug 2021 17:41:18 -0700 Subject: [PATCH] Add Component Governance (#8794) * Update linux-gpu-tensorrt-ci-perf-pipeline.yml for Azure Pipelines * Update linux-gpu-tensorrt-ci-perf-pipeline.yml for Azure Pipelines * Update linux-gpu-tensorrt-ci-perf-pipeline.yml for Azure Pipelines * Update linux-gpu-tensorrt-ci-perf-pipeline.yml for Azure Pipelines --- .../linux-gpu-tensorrt-ci-perf-pipeline.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/tools/ci_build/github/azure-pipelines/linux-gpu-tensorrt-ci-perf-pipeline.yml b/tools/ci_build/github/azure-pipelines/linux-gpu-tensorrt-ci-perf-pipeline.yml index 812c8e7a93..a0bf07afd4 100644 --- a/tools/ci_build/github/azure-pipelines/linux-gpu-tensorrt-ci-perf-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/linux-gpu-tensorrt-ci-perf-pipeline.yml @@ -42,7 +42,7 @@ parameters: - name: PublishWheel displayName: Publish Wheel type: boolean - default: true + default: false - name: ModelGroups type: object @@ -77,11 +77,6 @@ jobs: timeoutInMinutes: 3000 steps: - - - ${{ if eq(parameters.MemTest, true) }}: - - script: '$(Build.SourcesDirectory)/onnxruntime/python/tools/tensorrt/perf/mem_test/run_mem_test_docker.sh -d ort-$(branch) -p $(Build.SourcesDirectory)/onnxruntime/python/tools/tensorrt/perf/mem_test/' - displayName: 'Run Memory Test' - workingDirectory: '$(Build.SourcesDirectory)/onnxruntime/python/tools/tensorrt/perf/mem_test/' - ${{ if eq(parameters.BuildORT, true) }}: @@ -95,6 +90,11 @@ jobs: displayName: 'Build latest ORT' workingDirectory: '$(Build.SourcesDirectory)/onnxruntime/python/tools/tensorrt/perf/build' + - ${{ if eq(parameters.MemTest, true) }}: + - script: '$(Build.SourcesDirectory)/onnxruntime/python/tools/tensorrt/perf/mem_test/run_mem_test_docker.sh -d ort-$(branch) -p $(Build.SourcesDirectory)/onnxruntime/python/tools/tensorrt/perf/mem_test/' + displayName: 'Run Memory Test' + workingDirectory: '$(Build.SourcesDirectory)/onnxruntime/python/tools/tensorrt/perf/mem_test/' + - ${{ if eq(parameters.RunPython38, true) }}: - script: 'docker build --build-arg IMAGE=ort-$(branch) -t ort-$(branch) -f $(Build.SourcesDirectory)/onnxruntime/python/tools/tensorrt/perf/build/Dockerfile.python38 .' displayName: 'Build latest ORT Images' @@ -135,6 +135,10 @@ jobs: displayName: 'Copy Artifacts' workingDirectory: '$(Build.SourcesDirectory)/onnxruntime/python/tools/tensorrt/perf/' + - template: templates/component-governance-component-detection-steps.yml + parameters : + condition : 'succeeded' + - task: PublishBuildArtifacts@1 inputs: pathtoPublish: '$(Build.SourcesDirectory)/Artifact'