diff --git a/tools/ci_build/github/azure-pipelines/linux-gpu-tensorrt-daily-perf-pipeline.yml b/tools/ci_build/github/azure-pipelines/linux-gpu-tensorrt-daily-perf-pipeline.yml index ac9153e1b4887..c00cbb06f26fd 100644 --- a/tools/ci_build/github/azure-pipelines/linux-gpu-tensorrt-daily-perf-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/linux-gpu-tensorrt-daily-perf-pipeline.yml @@ -191,8 +191,4 @@ jobs: pathtoPublish: '$(Build.SourcesDirectory)/Artifact' artifactName: 'result-$(Build.BuildNumber)' - - template: templates/component-governance-component-detection-steps.yml - parameters : - condition : 'succeeded' - - template: templates/clean-agent-build-directory-step.yml \ No newline at end of file diff --git a/tools/ci_build/github/azure-pipelines/nodejs/templates/test.yml b/tools/ci_build/github/azure-pipelines/nodejs/templates/test.yml index 9b2d7284cf342..28ece85428287 100644 --- a/tools/ci_build/github/azure-pipelines/nodejs/templates/test.yml +++ b/tools/ci_build/github/azure-pipelines/nodejs/templates/test.yml @@ -33,8 +33,4 @@ steps: node -p "require('onnxruntime-node')" workingDirectory: '$(Build.BinariesDirectory)/e2e_test' -- template: ../../templates/component-governance-component-detection-steps.yml - parameters : - condition : 'always' - - template: ../../templates/clean-agent-build-directory-step.yml diff --git a/tools/ci_build/github/azure-pipelines/nuget/templates/dml-vs-2022.yml b/tools/ci_build/github/azure-pipelines/nuget/templates/dml-vs-2022.yml index fcae62b1f55f2..130bc330d53f7 100644 --- a/tools/ci_build/github/azure-pipelines/nuget/templates/dml-vs-2022.yml +++ b/tools/ci_build/github/azure-pipelines/nuget/templates/dml-vs-2022.yml @@ -211,7 +211,3 @@ stages: inputs: targetPath: '$(Build.SourcesDirectory)\js\node\bin\napi-v3\win32\${{ parameters.sln_platform }}' artifactName: 'drop-onnxruntime-nodejs-win-${{ parameters.sln_platform }}-dml' - - - template: ../../templates/component-governance-component-detection-steps.yml - parameters : - condition : 'succeeded' diff --git a/tools/ci_build/github/azure-pipelines/nuget/templates/test_linux.yml b/tools/ci_build/github/azure-pipelines/nuget/templates/test_linux.yml index 26a6c685ffa66..ff598ce92ddb4 100644 --- a/tools/ci_build/github/azure-pipelines/nuget/templates/test_linux.yml +++ b/tools/ci_build/github/azure-pipelines/nuget/templates/test_linux.yml @@ -112,8 +112,4 @@ stages: IsReleaseBuild: $(IsReleaseBuild) PACKAGENAME: ${{ parameters.NugetPackageName }} - - template: ../../templates/component-governance-component-detection-steps.yml - parameters: - condition: 'always' - - template: ../../templates/clean-agent-build-directory-step.yml diff --git a/tools/ci_build/github/azure-pipelines/nuget/templates/test_macos.yml b/tools/ci_build/github/azure-pipelines/nuget/templates/test_macos.yml index 15746682d9137..5be0bfb7a3535 100644 --- a/tools/ci_build/github/azure-pipelines/nuget/templates/test_macos.yml +++ b/tools/ci_build/github/azure-pipelines/nuget/templates/test_macos.yml @@ -53,8 +53,4 @@ stages: DisableMlOps: $(DisableMlOps) IsReleaseBuild: $(IsReleaseBuild) - - template: ../../templates/component-governance-component-detection-steps.yml - parameters : - condition : 'always' - - template: ../../templates/clean-agent-build-directory-step.yml diff --git a/tools/ci_build/github/azure-pipelines/nuget/templates/test_win.yml b/tools/ci_build/github/azure-pipelines/nuget/templates/test_win.yml index 4842fcbd4dcfb..af2069a3512a5 100644 --- a/tools/ci_build/github/azure-pipelines/nuget/templates/test_win.yml +++ b/tools/ci_build/github/azure-pipelines/nuget/templates/test_win.yml @@ -118,8 +118,4 @@ stages: env: PACKAGENAME: ${{ parameters.NugetPackageName }} - - template: ../../templates/component-governance-component-detection-steps.yml - parameters : - condition : 'always' - - template: ../../templates/clean-agent-build-directory-step.yml diff --git a/tools/ci_build/github/azure-pipelines/stages/download-java-tools-stage.yml b/tools/ci_build/github/azure-pipelines/stages/download-java-tools-stage.yml index 7e5237b32bce2..1cc3e2def327f 100644 --- a/tools/ci_build/github/azure-pipelines/stages/download-java-tools-stage.yml +++ b/tools/ci_build/github/azure-pipelines/stages/download-java-tools-stage.yml @@ -23,8 +23,4 @@ stages: displayName: 'Publish Pipeline Java Tools Artifact' inputs: targetPath: '$(Agent.TempDirectory)/java-tools' - artifact: 'onnxruntime-java-tools' - - - template: ../templates/component-governance-component-detection-steps.yml - parameters : - condition : 'succeeded' \ No newline at end of file + artifact: 'onnxruntime-java-tools' \ No newline at end of file diff --git a/tools/ci_build/github/azure-pipelines/stages/java-cuda-packaging-stage.yml b/tools/ci_build/github/azure-pipelines/stages/java-cuda-packaging-stage.yml index 6c3407c09d463..617c00b5fa592 100644 --- a/tools/ci_build/github/azure-pipelines/stages/java-cuda-packaging-stage.yml +++ b/tools/ci_build/github/azure-pipelines/stages/java-cuda-packaging-stage.yml @@ -79,9 +79,6 @@ stages: path: '$(Build.ArtifactStagingDirectory)' artifact: 'onnxruntime-java-gpu' - - template: ../templates/component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' - job: Final_Jar_Testing_Windows_GPU dependsOn: Jar_Packaging_GPU @@ -127,10 +124,6 @@ stages: popd java -DUSE_CUDA=1 -jar junit-platform-console-standalone-1.6.2.jar -cp .;.\test;protobuf-java-3.21.7.jar;onnxruntime_gpu-$(OnnxRuntimeVersion).jar --scan-class-path --fail-if-no-tests --disable-banner workingDirectory: '$(Build.BinariesDirectory)\final-jar' - - - template: ../templates/component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' - job: Final_Jar_Testing_Linux_GPU dependsOn: Jar_Packaging_GPU @@ -182,7 +175,3 @@ stages: onnxruntimeubi8packagestest \ /bin/bash /onnxruntime_src/tools/ci_build/github/linux/java_linux_final_test.sh -r /build -v $(OnnxRuntimeVersion) displayName: 'Test' - - - template: ../templates/component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' diff --git a/tools/ci_build/github/azure-pipelines/stages/jobs/py-linux-cuda-package-test-job.yml b/tools/ci_build/github/azure-pipelines/stages/jobs/py-linux-cuda-package-test-job.yml index 49d65b10b393c..4e42afe0da96e 100644 --- a/tools/ci_build/github/azure-pipelines/stages/jobs/py-linux-cuda-package-test-job.yml +++ b/tools/ci_build/github/azure-pipelines/stages/jobs/py-linux-cuda-package-test-job.yml @@ -113,6 +113,3 @@ jobs: targetType: filePath filePath: tools/ci_build/github/linux/run_python_dockertest.sh arguments: -d GPU -c ${{parameters.cmake_build_type}} -i onnxruntimecuda${{ replace(parameters.CudaVersion, '.', '') }}xtrt86buildx86_64 -u 12.2 - - template: ../../templates/component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' diff --git a/tools/ci_build/github/azure-pipelines/stages/nuget-cuda-packaging-stage.yml b/tools/ci_build/github/azure-pipelines/stages/nuget-cuda-packaging-stage.yml index 5c5b464fe24e2..84b6d30ee32ac 100644 --- a/tools/ci_build/github/azure-pipelines/stages/nuget-cuda-packaging-stage.yml +++ b/tools/ci_build/github/azure-pipelines/stages/nuget-cuda-packaging-stage.yml @@ -204,10 +204,6 @@ stages: msbuildArguments: '-t:Clean -p:OnnxRuntimeBuildDirectory="$(Build.BinariesDirectory)" -p:OrtPackageId=Microsoft.ML.OnnxRuntime.Gpu' workingDirectory: '$(Build.SourcesDirectory)\csharp' - - template: ../templates/component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' - - task: 1ES.PublishPipelineArtifact@1 displayName: 'Publish Pipeline NuGet Artifact' inputs: diff --git a/tools/ci_build/github/azure-pipelines/stages/nuget-linux-cuda-packaging-stage.yml b/tools/ci_build/github/azure-pipelines/stages/nuget-linux-cuda-packaging-stage.yml index b1d0625c3b11b..8560817331475 100644 --- a/tools/ci_build/github/azure-pipelines/stages/nuget-linux-cuda-packaging-stage.yml +++ b/tools/ci_build/github/azure-pipelines/stages/nuget-linux-cuda-packaging-stage.yml @@ -59,9 +59,6 @@ stages: artifactNameNoVersionString: 'onnxruntime-linux-x64-cuda' libraryName: 'libonnxruntime.so.$(OnnxRuntimeVersion)' - - template: ../templates/component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' - template: ../templates/clean-agent-build-directory-step.yml # Linux CUDA with TensorRT Packaging - job: Linux_C_API_Packaging_TensorRT @@ -130,10 +127,6 @@ stages: artifactNameNoVersionString: 'onnxruntime-linux-x64-tensorrt' libraryName: 'libonnxruntime.so.$(OnnxRuntimeVersion)' - - - template: ../templates/component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' - template: ../templates/clean-agent-build-directory-step.yml # Linux CUDA Combined Testing and Publishing - stage: Linux_Packaging_combined_CUDA @@ -230,6 +223,3 @@ stages: inputs: targetPath: '$(Build.ArtifactStagingDirectory)' artifactName: 'onnxruntime-linux-x64-gpu' - - template: ../templates/component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' diff --git a/tools/ci_build/github/azure-pipelines/stages/nuget-win-cuda-packaging-stage.yml b/tools/ci_build/github/azure-pipelines/stages/nuget-win-cuda-packaging-stage.yml index 53e4218ae6fd5..e5d15db5c062a 100644 --- a/tools/ci_build/github/azure-pipelines/stages/nuget-win-cuda-packaging-stage.yml +++ b/tools/ci_build/github/azure-pipelines/stages/nuget-win-cuda-packaging-stage.yml @@ -160,7 +160,3 @@ stages: inputs: artifactName: 'onnxruntime-win-x64-gpu' targetPath: '$(Build.ArtifactStagingDirectory)' - - - template: ../templates/component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' diff --git a/tools/ci_build/github/azure-pipelines/stages/nuget_dml_packaging_stage.yml b/tools/ci_build/github/azure-pipelines/stages/nuget_dml_packaging_stage.yml index 51ccef1cca6c8..093de22566a8b 100644 --- a/tools/ci_build/github/azure-pipelines/stages/nuget_dml_packaging_stage.yml +++ b/tools/ci_build/github/azure-pipelines/stages/nuget_dml_packaging_stage.yml @@ -93,7 +93,4 @@ stages: displayName: 'Publish Pipeline NuGet Artifact' inputs: artifactName: 'drop-signed-nuget-dml' - targetPath: '$(Build.ArtifactStagingDirectory)' - - template: ../templates/component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' \ No newline at end of file + targetPath: '$(Build.ArtifactStagingDirectory)' \ No newline at end of file diff --git a/tools/ci_build/github/azure-pipelines/stages/py-cpu-packaging-stage.yml b/tools/ci_build/github/azure-pipelines/stages/py-cpu-packaging-stage.yml index 62657db41562d..e56ad9796fa3d 100644 --- a/tools/ci_build/github/azure-pipelines/stages/py-cpu-packaging-stage.yml +++ b/tools/ci_build/github/azure-pipelines/stages/py-cpu-packaging-stage.yml @@ -186,11 +186,6 @@ stages: workingDirectory: '$(Build.BinariesDirectory)\${{ parameters.cmake_build_type }}\${{ parameters.cmake_build_type }}' displayName: 'Run Python Tests' - - template: ../templates/component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' - - - ${{ if eq(parameters.enable_mac_cpu, true) }}: - stage: Python_Packaging_MacOS dependsOn: [] @@ -260,11 +255,6 @@ stages: artifactName: onnxruntime-macos-$(PythonVersion) targetPath: '$(Build.ArtifactStagingDirectory)' - - template: ../templates/component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' - - - ${{ if eq(parameters.enable_linux_arm, true) }}: - stage: Python_Packaging_Linux_ARM dependsOn: [] diff --git a/tools/ci_build/github/azure-pipelines/stages/set_packaging_variables_stage.yml b/tools/ci_build/github/azure-pipelines/stages/set_packaging_variables_stage.yml index 8013396018ffa..a1a983ee9ba20 100644 --- a/tools/ci_build/github/azure-pipelines/stages/set_packaging_variables_stage.yml +++ b/tools/ci_build/github/azure-pipelines/stages/set_packaging_variables_stage.yml @@ -39,9 +39,6 @@ stages: echo "##vso[task.setvariable variable=BuildTime;isOutput=true]$hhmm" displayName: 'Set Start Time as Variable' name: Set_Build_Time - - template: ../templates/component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' - stage: Debug dependsOn: Setup @@ -59,6 +56,3 @@ stages: - bash: echo $(MyVar) - bash: echo $(BuildTime) - bash: echo $(BuildDate) - - template: ../templates/component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' diff --git a/tools/ci_build/github/azure-pipelines/templates/android-java-api-aar-test.yml b/tools/ci_build/github/azure-pipelines/templates/android-java-api-aar-test.yml index 2fbae07b897b8..f5c0cfa68c0c7 100644 --- a/tools/ci_build/github/azure-pipelines/templates/android-java-api-aar-test.yml +++ b/tools/ci_build/github/azure-pipelines/templates/android-java-api-aar-test.yml @@ -110,7 +110,3 @@ jobs: env: BROWSERSTACK_ID: $(browserstack_username) BROWSERSTACK_TOKEN: $(browserstack_access_key) - - - template: component-governance-component-detection-steps.yml - parameters : - condition : 'succeeded' diff --git a/tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml b/tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml index 3228673d012ba..bb789edc1cf21 100644 --- a/tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml +++ b/tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml @@ -161,9 +161,7 @@ stages: targetPath: '$(Build.BinariesDirectory)/artifacts' artifactName: 'onnxruntime-ios-full-xcframework' - - template: component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' + - template: win-ci.yml parameters: @@ -289,9 +287,7 @@ stages: targetPath: '$(Build.ArtifactStagingDirectory)' artifactName: 'onnxruntime-java' - - template: component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' + - stage: NuGet_Packaging_CPU dependsOn: @@ -505,9 +501,7 @@ stages: msbuildArguments: '-t:Clean -p:OnnxRuntimeBuildDirectory="$(Build.BinariesDirectory)" -p:OrtPackageId=$(OrtPackageId)' workingDirectory: '$(Build.SourcesDirectory)\csharp' - - template: component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' + - stage: Nodejs_Packaging @@ -774,9 +768,7 @@ stages: artifactName: 'NPM_packages' targetPath: '$(Build.ArtifactStagingDirectory)' - - template: component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' + - template: ../nuget/templates/test_win.yml diff --git a/tools/ci_build/github/azure-pipelines/templates/c-api-linux-cpu.yml b/tools/ci_build/github/azure-pipelines/templates/c-api-linux-cpu.yml index 3d2105bd07dbd..cd2997cc389e9 100644 --- a/tools/ci_build/github/azure-pipelines/templates/c-api-linux-cpu.yml +++ b/tools/ci_build/github/azure-pipelines/templates/c-api-linux-cpu.yml @@ -100,8 +100,3 @@ jobs: arch: '${{parameters.OnnxruntimeNodejsBindingArch}}' os: 'linux' artifactName: 'drop-onnxruntime-nodejs-linux-${{parameters.OnnxruntimeArch}}' - - - ${{ if not(eq(parameters.OnnxruntimeNodejsBindingArch, 'arm64')) }}: - - template: component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' diff --git a/tools/ci_build/github/azure-pipelines/templates/clean-agent-build-directory-step.yml b/tools/ci_build/github/azure-pipelines/templates/clean-agent-build-directory-step.yml index 8d6a097ae6dcb..e0a13540351a4 100644 --- a/tools/ci_build/github/azure-pipelines/templates/clean-agent-build-directory-step.yml +++ b/tools/ci_build/github/azure-pipelines/templates/clean-agent-build-directory-step.yml @@ -9,9 +9,6 @@ steps: testRunTitle: 'Unit Test Run' condition: succeededOrFailed() -- template: component-governance-component-detection-steps.yml - parameters : - condition : 'succeeded' - script: | diff --git a/tools/ci_build/github/azure-pipelines/templates/component-governance-component-detection-steps.yml b/tools/ci_build/github/azure-pipelines/templates/component-governance-component-detection-steps.yml deleted file mode 100644 index a5351a182b7a2..0000000000000 --- a/tools/ci_build/github/azure-pipelines/templates/component-governance-component-detection-steps.yml +++ /dev/null @@ -1,47 +0,0 @@ -# component detection for component governance checks -parameters: -- name: condition - type: string - default: 'succeeded' # could be 'ci_only', 'always', 'succeeded' - -steps: -- ${{ if eq(variables['System.TeamProject'], 'Lotus') }}: - - powershell: | - Remove-Item $(Build.BinariesDirectory)/* -Recurse -Force - displayName: 'Clean up build directory' - - - 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())), - and(eq('${{parameters.condition}}', 'succeeded'), succeeded())) - inputs: - # 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 pybind11 third_party directory. pybind11 third_party directory is not responsible for onnxruntime build - # ignore pybind11 tests directory. pybind11 tests directory is not responsible for onnxruntime build - # ignore onnxruntime-extensions directory. onnxruntime-extensions 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 js node_modules directory. js node_modules directory is generated by js tests - # ignore onnxruntime-inference-examples directory. onnxruntime-inference-examples directory is used for inference examples, not for onnxruntime package - # ignore BinariesDirectory. BinariesDirectory is used for build output, not for onnxruntime package - ignoreDirectories: - '$(Build.Repository.LocalPath)/cmake/external/emsdk/upstream/emscripten/tests, - $(Build.Repository.LocalPath)/cmake/external/onnx/third_party/benchmark, - $(Build.Repository.LocalPath)/cmake/external/onnx/third_party/pybind11, - $(Build.Repository.LocalPath)/cmake/external/onnx/third_party/pybind11/tests, - $(Build.Repository.LocalPath)/cmake/external/onnxruntime-extensions, - $(Build.Repository.LocalPath)/js/react_native/e2e/node_modules, - $(Build.Repository.LocalPath)/js/node_modules, - $(Build.Repository.LocalPath)/onnxruntime-inference-examples, - $(Build.SourcesDirectory)/cmake/external/emsdk/upstream/emscripten/tests, - $(Build.SourcesDirectory)/cmake/external/onnx/third_party/benchmark, - $(Build.SourcesDirectory)/cmake/external/onnx/third_party/pybind11, - $(Build.SourcesDirectory)/cmake/external/onnx/third_party/pybind11/tests, - $(Build.SourcesDirectory)/cmake/external/onnxruntime-extensions, - $(Build.SourcesDirectory)/js/react_native/e2e/node_modules, - $(Build.SourcesDirectory)/js/node_modules, - $(Build.SourcesDirectory)/onnxruntime-inference-examples, - $(Build.BinariesDirectory)' \ No newline at end of file diff --git a/tools/ci_build/github/azure-pipelines/templates/explicitly-defined-final-tasks.yml b/tools/ci_build/github/azure-pipelines/templates/explicitly-defined-final-tasks.yml index 047445027220a..fa0f5dde4d639 100644 --- a/tools/ci_build/github/azure-pipelines/templates/explicitly-defined-final-tasks.yml +++ b/tools/ci_build/github/azure-pipelines/templates/explicitly-defined-final-tasks.yml @@ -9,9 +9,6 @@ steps: testRunTitle: 'Unit Test Run' condition: succeededOrFailed() -- template: component-governance-component-detection-steps.yml - parameters : - condition : 'succeeded' - script: docker system df && docker system prune -a -f && docker system df displayName: Clean docker images diff --git a/tools/ci_build/github/azure-pipelines/templates/final-jar-testing.yml b/tools/ci_build/github/azure-pipelines/templates/final-jar-testing.yml index 900d15a1fa861..5d947b3c34ad7 100644 --- a/tools/ci_build/github/azure-pipelines/templates/final-jar-testing.yml +++ b/tools/ci_build/github/azure-pipelines/templates/final-jar-testing.yml @@ -95,7 +95,5 @@ stages: - ${{ if eq(parameters['OS'], 'MacOS') }}: - template: use-xcode-version.yml - - template: component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' + diff --git a/tools/ci_build/github/azure-pipelines/templates/linux-wasm-ci.yml b/tools/ci_build/github/azure-pipelines/templates/linux-wasm-ci.yml index 5e06fc47ea801..0e60bf8e2e26d 100644 --- a/tools/ci_build/github/azure-pipelines/templates/linux-wasm-ci.yml +++ b/tools/ci_build/github/azure-pipelines/templates/linux-wasm-ci.yml @@ -184,6 +184,3 @@ jobs: searchFolder: '$(Build.BinariesDirectory)' testRunTitle: 'Unit Test Run' condition: and(succeededOrFailed(), eq('${{ parameters.BuildConfig }}', 'Debug')) - - template: component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' diff --git a/tools/ci_build/github/azure-pipelines/templates/mac-cpu-packaging-pipeline.yml b/tools/ci_build/github/azure-pipelines/templates/mac-cpu-packaging-pipeline.yml index a52932205f164..8fcdab437052c 100644 --- a/tools/ci_build/github/azure-pipelines/templates/mac-cpu-packaging-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/templates/mac-cpu-packaging-pipeline.yml @@ -137,6 +137,4 @@ stages: artifactName: 'onnxruntime-osx' condition: 'succeededOrFailed()' - - template: component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' + diff --git a/tools/ci_build/github/azure-pipelines/templates/ondevice-training-cpu-packaging-pipeline.yml b/tools/ci_build/github/azure-pipelines/templates/ondevice-training-cpu-packaging-pipeline.yml index 48b033cad1afb..56f0a6aad7dd0 100644 --- a/tools/ci_build/github/azure-pipelines/templates/ondevice-training-cpu-packaging-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/templates/ondevice-training-cpu-packaging-pipeline.yml @@ -297,10 +297,6 @@ stages: msbuildArguments: '-t:Clean -p:OnnxRuntimeBuildDirectory="$(Build.BinariesDirectory)" -p:OrtPackageId=$(OrtPackageId)' workingDirectory: '$(Build.SourcesDirectory)\csharp' - - template: component-governance-component-detection-steps.yml - parameters : - condition : 'succeeded' - - template: ../nuget/templates/test_win.yml parameters: diff --git a/tools/ci_build/github/azure-pipelines/templates/publish-nuget-steps.yml b/tools/ci_build/github/azure-pipelines/templates/publish-nuget-steps.yml index aa47294acac2b..2f7f3989e6055 100644 --- a/tools/ci_build/github/azure-pipelines/templates/publish-nuget-steps.yml +++ b/tools/ci_build/github/azure-pipelines/templates/publish-nuget-steps.yml @@ -132,6 +132,4 @@ stages: publishVstsFeed: '2692857e-05ef-43b4-ba9c-ccf1c22c437c/7982ae20-ed19-4a35-a362-a96ac99897b7' allowPackageConflicts: true - - template: component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' + diff --git a/tools/ci_build/github/azure-pipelines/templates/py-linux-qnn.yml b/tools/ci_build/github/azure-pipelines/templates/py-linux-qnn.yml index 73da992a121eb..f9d651c79d604 100644 --- a/tools/ci_build/github/azure-pipelines/templates/py-linux-qnn.yml +++ b/tools/ci_build/github/azure-pipelines/templates/py-linux-qnn.yml @@ -103,6 +103,3 @@ jobs: targetPath: '$(Build.BinariesDirectory)/dist' artifactName: onnxruntime-linux-qnn-x64 - - template: component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' diff --git a/tools/ci_build/github/azure-pipelines/templates/py-linux.yml b/tools/ci_build/github/azure-pipelines/templates/py-linux.yml index 8d0c4334f4874..313d9c7fd2b1c 100644 --- a/tools/ci_build/github/azure-pipelines/templates/py-linux.yml +++ b/tools/ci_build/github/azure-pipelines/templates/py-linux.yml @@ -126,6 +126,3 @@ jobs: - - template: component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' diff --git a/tools/ci_build/github/azure-pipelines/templates/py-win-arm64-qnn.yml b/tools/ci_build/github/azure-pipelines/templates/py-win-arm64-qnn.yml index b05d542376364..f5c597ab50af9 100644 --- a/tools/ci_build/github/azure-pipelines/templates/py-win-arm64-qnn.yml +++ b/tools/ci_build/github/azure-pipelines/templates/py-win-arm64-qnn.yml @@ -182,6 +182,3 @@ jobs: GdnPublishTsaOnboard: false GdnPublishTsaConfigFile: '$(Build.sourcesDirectory)\.gdn\.gdntsa' - - template: component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' diff --git a/tools/ci_build/github/azure-pipelines/templates/py-win-arm64ec-qnn.yml b/tools/ci_build/github/azure-pipelines/templates/py-win-arm64ec-qnn.yml index ade5b110f3043..e8665d9d46d41 100644 --- a/tools/ci_build/github/azure-pipelines/templates/py-win-arm64ec-qnn.yml +++ b/tools/ci_build/github/azure-pipelines/templates/py-win-arm64ec-qnn.yml @@ -164,6 +164,3 @@ jobs: GdnPublishTsaOnboard: false GdnPublishTsaConfigFile: '$(Build.sourcesDirectory)\.gdn\.gdntsa' - - template: component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' diff --git a/tools/ci_build/github/azure-pipelines/templates/py-win-x64-qnn.yml b/tools/ci_build/github/azure-pipelines/templates/py-win-x64-qnn.yml index 57361173b8880..8f910e8305b76 100644 --- a/tools/ci_build/github/azure-pipelines/templates/py-win-x64-qnn.yml +++ b/tools/ci_build/github/azure-pipelines/templates/py-win-x64-qnn.yml @@ -155,8 +155,4 @@ jobs: condition: and (succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main')) inputs: GdnPublishTsaOnboard: false - GdnPublishTsaConfigFile: '$(Build.sourcesDirectory)\.gdn\.gdntsa' - - - template: component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' + GdnPublishTsaConfigFile: '$(Build.sourcesDirectory)\.gdn\.gdntsa' diff --git a/tools/ci_build/github/azure-pipelines/templates/rocm.yml b/tools/ci_build/github/azure-pipelines/templates/rocm.yml index 1debe9e98eedc..25d58ffe0b29e 100644 --- a/tools/ci_build/github/azure-pipelines/templates/rocm.yml +++ b/tools/ci_build/github/azure-pipelines/templates/rocm.yml @@ -141,8 +141,5 @@ jobs: condition: and(ne(variables['ORT_DISABLE_PYTHON_PACKAGE_LOCAL_VERSION'], 'true'), and(succeeded(), eq(variables['DRY_RUN'], '0'))) displayName: 'Upload Rocm wheel to release repository' - - template: component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' - template: clean-agent-build-directory-step.yml diff --git a/tools/ci_build/github/azure-pipelines/templates/stages/mac-ios-packaging-build-stage.yml b/tools/ci_build/github/azure-pipelines/templates/stages/mac-ios-packaging-build-stage.yml index 90670858c8417..eeef3b96edd4c 100644 --- a/tools/ci_build/github/azure-pipelines/templates/stages/mac-ios-packaging-build-stage.yml +++ b/tools/ci_build/github/azure-pipelines/templates/stages/mac-ios-packaging-build-stage.yml @@ -228,7 +228,3 @@ stages: set -e -x ls -R "$(Build.ArtifactStagingDirectory)" displayName: "List staged artifacts" - - - template: ../component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' diff --git a/tools/ci_build/github/azure-pipelines/templates/win-ci.yml b/tools/ci_build/github/azure-pipelines/templates/win-ci.yml index e8a1395474634..da869f708418c 100644 --- a/tools/ci_build/github/azure-pipelines/templates/win-ci.yml +++ b/tools/ci_build/github/azure-pipelines/templates/win-ci.yml @@ -246,10 +246,6 @@ stages: SourceFolder: '$(Build.BinariesDirectory)\RelWithDebInfo\RelWithDebInfo' Contents: 'custom_op_library.dll' TargetFolder: '$(Build.ArtifactStagingDirectory)/testdata' - - - template: component-governance-component-detection-steps.yml - parameters : - condition : 'succeeded' - ${{ if contains(parameters.ort_build_pool_name, 'GPU') }}: - stage: Windows_Packaging_${{ parameters.stage_name_suffix }}_Testing dependsOn: Windows_Packaging_${{ parameters.stage_name_suffix }} diff --git a/tools/ci_build/github/azure-pipelines/templates/win-wasm-ci.yml b/tools/ci_build/github/azure-pipelines/templates/win-wasm-ci.yml index ed1862b78505d..196ea0d7b9ea9 100644 --- a/tools/ci_build/github/azure-pipelines/templates/win-wasm-ci.yml +++ b/tools/ci_build/github/azure-pipelines/templates/win-wasm-ci.yml @@ -154,6 +154,3 @@ jobs: searchFolder: '$(Build.BinariesDirectory)' testRunTitle: 'Unit Test Run' condition: and(succeededOrFailed(), eq('${{ parameters.BuildConfig }}', 'Debug')) - - template: component-governance-component-detection-steps.yml - parameters : - condition : 'succeeded' diff --git a/tools/ci_build/github/azure-pipelines/templates/win-web-ci.yml b/tools/ci_build/github/azure-pipelines/templates/win-web-ci.yml index 4ae7423803ddf..fecbfc8657894 100644 --- a/tools/ci_build/github/azure-pipelines/templates/win-web-ci.yml +++ b/tools/ci_build/github/azure-pipelines/templates/win-web-ci.yml @@ -307,6 +307,3 @@ jobs: displayName: 'Log Chrome processes (after test)' workingDirectory: '$(Agent.TempDirectory)\web\test' condition: always() - - template: component-governance-component-detection-steps.yml - parameters: - condition: 'succeeded' diff --git a/tools/ci_build/github/azure-pipelines/win-ci-fuzz-testing.yml b/tools/ci_build/github/azure-pipelines/win-ci-fuzz-testing.yml index f02e760130ff4..093b4ee7ec50d 100644 --- a/tools/ci_build/github/azure-pipelines/win-ci-fuzz-testing.yml +++ b/tools/ci_build/github/azure-pipelines/win-ci-fuzz-testing.yml @@ -66,7 +66,3 @@ jobs: script: '$(Build.BinariesDirectory)\$(BuildConfig)\$(BuildConfig)\onnxruntime_security_fuzz.exe /t /f "$(Build.BinariesDirectory)\$(BuildConfig)\$(BuildConfig)\testdata\mnist.onnx" 1 m' workingDirectory: $(Build.BinariesDirectory)\$(BuildConfig)\$(BuildConfig) failOnStderr: false # Optional - - - template: templates/component-governance-component-detection-steps.yml - parameters : - condition : 'succeeded' diff --git a/tools/ci_build/github/azure-pipelines/win-gpu-reduce-op-ci-pipeline.yml b/tools/ci_build/github/azure-pipelines/win-gpu-reduce-op-ci-pipeline.yml index 211541a18546f..bf909ad0605fe 100644 --- a/tools/ci_build/github/azure-pipelines/win-gpu-reduce-op-ci-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/win-gpu-reduce-op-ci-pipeline.yml @@ -48,7 +48,3 @@ jobs: python $(Build.SourcesDirectory)\tools\ci_build\build.py --config $(BuildConfig) --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --build_shared_lib --test --cmake_generator "Visual Studio 17 2022" --build_shared_lib --enable_onnx_tests --use_cuda --cuda_home="$(Agent.TempDirectory)\v11.8" --cmake_extra_defines "CMAKE_CUDA_ARCHITECTURES=75" --include_ops_by_config="$(Build.SourcesDirectory)\onnxruntime\test\testdata\required_ops.config" workingDirectory: '$(Build.BinariesDirectory)\$(BuildConfig)\$(BuildConfig)' displayName: 'Run tests' - - - template: templates/component-governance-component-detection-steps.yml - parameters : - condition : 'succeeded'