diff --git a/tools/ci_build/github/azure-pipelines/nuget/templates/dml-vs-2019.yml b/tools/ci_build/github/azure-pipelines/nuget/templates/dml-vs-2019.yml index 99aabe09bb..022aaf7629 100644 --- a/tools/ci_build/github/azure-pipelines/nuget/templates/dml-vs-2019.yml +++ b/tools/ci_build/github/azure-pipelines/nuget/templates/dml-vs-2019.yml @@ -76,7 +76,7 @@ stages: - task: UsePythonVersion@0 inputs: - versionSpec: '3.7' + versionSpec: '3.8' addToPath: true architecture: ${{ parameters.BuildArch }} 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 38ad3d4cf5..94e4575357 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 @@ -26,7 +26,7 @@ stages: steps: - task: UsePythonVersion@0 inputs: - versionSpec: '3.7' + versionSpec: '3.8' addToPath: true architecture: x64 diff --git a/tools/ci_build/github/azure-pipelines/snpe-ep-nuget-packaging-pipeline.yml b/tools/ci_build/github/azure-pipelines/snpe-ep-nuget-packaging-pipeline.yml index a107bd4bea..2ee0435637 100644 --- a/tools/ci_build/github/azure-pipelines/snpe-ep-nuget-packaging-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/snpe-ep-nuget-packaging-pipeline.yml @@ -52,7 +52,7 @@ jobs: - task: UsePythonVersion@0 inputs: - versionSpec: '3.7' + versionSpec: '3.8' addToPath: true - task: PythonScript@0 @@ -105,7 +105,7 @@ jobs: - task: UsePythonVersion@0 inputs: - versionSpec: '3.7' + versionSpec: '3.8' addToPath: true - task: PythonScript@0 diff --git a/tools/ci_build/github/azure-pipelines/templates/py-packaging-selectable-stage.yml b/tools/ci_build/github/azure-pipelines/templates/py-packaging-selectable-stage.yml index 8fa7863772..c2fe786ca9 100644 --- a/tools/ci_build/github/azure-pipelines/templates/py-packaging-selectable-stage.yml +++ b/tools/ci_build/github/azure-pipelines/templates/py-packaging-selectable-stage.yml @@ -237,7 +237,7 @@ stages: - task: DeleteFiles@1 displayName: 'Delete files from $(Build.BinariesDirectory)\$(BuildConfig)' - condition: and (succeeded(), eq(variables['PythonVersion'], '3.7')) + condition: and (succeeded(), eq(variables['PythonVersion'], '3.8')) inputs: SourceFolder: '$(Build.BinariesDirectory)\$(BuildConfig)' Contents: | @@ -258,7 +258,7 @@ stages: #in 32 bits Win32 build. I tried all the settings but they all don't work. - task: SDLNativeRules@3 displayName: 'Run the PREfast SDL Native Rules for MSBuild' - condition: and (succeeded(), eq(variables['PythonVersion'], '3.7')) + condition: and (succeeded(), eq(variables['PythonVersion'], '3.8')) inputs: msBuildArchitecture: amd64 setupCommandlines: 'python $(Build.SourcesDirectory)\tools\ci_build\build.py --config Debug --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --cmake_generator "Visual Studio 16 2019" --enable_pybind --enable_onnx_tests --parallel --update --cmake_extra_defines onnxruntime_ENABLE_STATIC_ANALYSIS=ON' @@ -267,7 +267,7 @@ stages: - task: TSAUpload@2 displayName: 'TSA upload' - condition: and(and (succeeded(), eq(variables['PythonVersion'], '3.7')), eq(variables['Build.SourceBranch'], 'refs/heads/main')) + condition: and(and (succeeded(), eq(variables['PythonVersion'], '3.8')), eq(variables['Build.SourceBranch'], 'refs/heads/main')) inputs: GdnPublishTsaOnboard: false GdnPublishTsaConfigFile: '$(Build.sourcesDirectory)\.gdn\.gdntsa' @@ -497,7 +497,7 @@ stages: - task: DeleteFiles@1 displayName: 'Delete files from $(Build.BinariesDirectory)\RelWithDebInfo' - condition: and (succeeded(), eq(variables['PythonVersion'], '3.7')) + condition: and (succeeded(), eq(variables['PythonVersion'], '3.8')) inputs: SourceFolder: '$(Build.BinariesDirectory)\RelWithDebInfo' Contents: | @@ -516,7 +516,7 @@ stages: #Manually set msBuildCommandline so that we can also set CAExcludePath - task: SDLNativeRules@3 displayName: 'Run the PREfast SDL Native Rules for MSBuild' - condition: and (succeeded(), eq(variables['PythonVersion'], '3.7')) + condition: and (succeeded(), eq(variables['PythonVersion'], '3.8')) inputs: msBuildArchitecture: amd64 setupCommandlines: 'python $(Build.SourcesDirectory)\tools\ci_build\build.py --config RelWithDebInfo --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --cmake_generator "Visual Studio 16 2019" --enable_pybind --enable_onnx_tests ${{ parameters.gpu_build_py_parameters }} --parallel $(EpBuildFlags) --update --cmake_extra_defines onnxruntime_ENABLE_STATIC_ANALYSIS=ON' @@ -525,7 +525,7 @@ stages: - task: TSAUpload@2 displayName: 'TSA upload' - condition: and(and (succeeded(), eq(variables['PythonVersion'], '3.7')), eq(variables['Build.SourceBranch'], 'refs/heads/main')) + condition: and(and (succeeded(), eq(variables['PythonVersion'], '3.8')), eq(variables['Build.SourceBranch'], 'refs/heads/main')) inputs: GdnPublishTsaOnboard: false GdnPublishTsaConfigFile: '$(Build.sourcesDirectory)\.gdn\.gdntsa' diff --git a/tools/ci_build/github/azure-pipelines/templates/set-python-manylinux-variables-step.yml b/tools/ci_build/github/azure-pipelines/templates/set-python-manylinux-variables-step.yml index e3ea2281bb..110eaff46f 100644 --- a/tools/ci_build/github/azure-pipelines/templates/set-python-manylinux-variables-step.yml +++ b/tools/ci_build/github/azure-pipelines/templates/set-python-manylinux-variables-step.yml @@ -26,6 +26,10 @@ steps: variables = { "PythonManylinuxDir": "/opt/python/cp310-cp310" } + elif version == "3.11": + variables = { + "PythonManylinuxDir": "/opt/python/cp311-cp311" + } else: raise ValueError("Unsupported Python version: '{}'".format(version)) diff --git a/tools/ci_build/github/azure-pipelines/templates/upload-code-coverage-data.yml b/tools/ci_build/github/azure-pipelines/templates/upload-code-coverage-data.yml new file mode 100644 index 0000000000..0a94aa7b0f --- /dev/null +++ b/tools/ci_build/github/azure-pipelines/templates/upload-code-coverage-data.yml @@ -0,0 +1,32 @@ +jobs: + - job: Upload + workspace: + clean: all + pool: 'Win-CPU-2021' + variables: + - name: runCodesignValidationInjection + value: false + - name: skipComponentGovernanceDetection + value: true + dependsOn: + - CodeCoverage + condition: and (succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main')) + steps: + - checkout: self + submodules: false + + - task: DownloadPipelineArtifact@2 + displayName: 'Download Pipeline Artifact' + inputs: + buildType: 'current' + artifactName: 'html' + targetPath: '$(Build.BinariesDirectory)' + + - task: AzureFileCopy@4 + displayName: 'AzureBlob File Copy' + inputs: + SourcePath: '$(Build.BinariesDirectory)\*' + azureSubscription: AIInfraBuildOnnxRuntimeOSS + Destination: AzureBlob + storage: onnxruntime + ContainerName: '$web' \ No newline at end of file diff --git a/tools/ci_build/github/azure-pipelines/templates/validate-package.yml b/tools/ci_build/github/azure-pipelines/templates/validate-package.yml index 41707e0e99..5014b315a4 100644 --- a/tools/ci_build/github/azure-pipelines/templates/validate-package.yml +++ b/tools/ci_build/github/azure-pipelines/templates/validate-package.yml @@ -11,7 +11,7 @@ steps: - task: UsePythonVersion@0 displayName: 'Use Python' inputs: - versionSpec: 3.7 + versionSpec: 3.8 - task: PythonScript@0 displayName: 'Validate Package' diff --git a/tools/ci_build/github/azure-pipelines/templates/win-ci-vs-2019.yml b/tools/ci_build/github/azure-pipelines/templates/win-ci-vs-2019.yml index 7eb100f47d..91b68aeedb 100644 --- a/tools/ci_build/github/azure-pipelines/templates/win-ci-vs-2019.yml +++ b/tools/ci_build/github/azure-pipelines/templates/win-ci-vs-2019.yml @@ -82,7 +82,7 @@ jobs: - task: UsePythonVersion@0 inputs: - versionSpec: '3.7' + versionSpec: '3.8' addToPath: true architecture: ${{ parameters.buildArch }} 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 c186ed0002..6620f4396e 100644 --- a/tools/ci_build/github/azure-pipelines/templates/win-ci.yml +++ b/tools/ci_build/github/azure-pipelines/templates/win-ci.yml @@ -78,7 +78,7 @@ stages: - task: UsePythonVersion@0 inputs: - versionSpec: '3.7' + versionSpec: '3.8' addToPath: true architecture: ${{ parameters.buildArch }} 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 36c21db646..6d6edf1d47 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 @@ -56,7 +56,7 @@ jobs: displayName: 'Checkout submodules' - task: UsePythonVersion@0 inputs: - versionSpec: '3.7' + versionSpec: '3.8' addToPath: true architecture: $(buildArch) - task: NodeTool@0 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 b98ada6632..fd83ae5884 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 @@ -21,7 +21,7 @@ jobs: steps: - task: UsePythonVersion@0 inputs: - versionSpec: '3.7' + versionSpec: '3.8' addToPath: true architecture: $(buildArch) 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 aa265bce24..f559d537f4 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 @@ -22,7 +22,7 @@ jobs: steps: - task: UsePythonVersion@0 inputs: - versionSpec: '3.7' + versionSpec: '3.8' addToPath: true architecture: $(buildArch) diff --git a/tools/ci_build/github/azure-pipelines/win-gpu-tensorrt-ci-pipeline.yml b/tools/ci_build/github/azure-pipelines/win-gpu-tensorrt-ci-pipeline.yml index 35f3e1df7f..ef55f4e4a1 100644 --- a/tools/ci_build/github/azure-pipelines/win-gpu-tensorrt-ci-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/win-gpu-tensorrt-ci-pipeline.yml @@ -18,7 +18,7 @@ jobs: steps: - task: UsePythonVersion@0 inputs: - versionSpec: '3.7' + versionSpec: '3.8' addToPath: true architecture: $(buildArch) diff --git a/tools/ci_build/github/azure-pipelines/win-qnn-ci-pipeline.yml b/tools/ci_build/github/azure-pipelines/win-qnn-ci-pipeline.yml index 93b3870367..6d2f5f775e 100644 --- a/tools/ci_build/github/azure-pipelines/win-qnn-ci-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/win-qnn-ci-pipeline.yml @@ -27,7 +27,7 @@ jobs: - task: UsePythonVersion@0 inputs: - versionSpec: '3.7' + versionSpec: '3.8' addToPath: true architecture: $(buildArch) diff --git a/tools/ci_build/github/linux/docker/scripts/manylinux/install_deps_aten.sh b/tools/ci_build/github/linux/docker/scripts/manylinux/install_deps_aten.sh index f0b949f240..1f0bb751f8 100755 --- a/tools/ci_build/github/linux/docker/scripts/manylinux/install_deps_aten.sh +++ b/tools/ci_build/github/linux/docker/scripts/manylinux/install_deps_aten.sh @@ -6,7 +6,7 @@ yum -y install \ graphviz if [ ! -d "/opt/conda/bin" ]; then - PYTHON_EXES=("/opt/python/cp37-cp37m/bin/python3.7" "/opt/python/cp38-cp38/bin/python3.8" "/opt/python/cp39-cp39/bin/python3.9") + PYTHON_EXES=("/opt/python/cp38-cp38/bin/python3.8" "/opt/python/cp39-cp39/bin/python3.9" "/opt/python/cp310-cp310/bin/python3.10") else PYTHON_EXES=("/opt/conda/bin/python") fi diff --git a/tools/ci_build/github/linux/docker/scripts/manylinux/install_deps_eager.sh b/tools/ci_build/github/linux/docker/scripts/manylinux/install_deps_eager.sh index 379a19e2a7..d3e69b33df 100755 --- a/tools/ci_build/github/linux/docker/scripts/manylinux/install_deps_eager.sh +++ b/tools/ci_build/github/linux/docker/scripts/manylinux/install_deps_eager.sh @@ -6,7 +6,7 @@ yum -y install \ graphviz if [ ! -d "/opt/conda/bin" ]; then - PYTHON_EXES=("/opt/python/cp37-cp37m/bin/python3.7" "/opt/python/cp38-cp38/bin/python3.8" "/opt/python/cp39-cp39/bin/python3.9") + PYTHON_EXES=("/opt/python/cp38-cp38/bin/python3.8" "/opt/python/cp39-cp39/bin/python3.9" "/opt/python/cp310-cp310/bin/python3.10") else PYTHON_EXES=("/opt/conda/bin/python") fi