From 53fa4b0c794833671f4c78e80369f70c84391c56 Mon Sep 17 00:00:00 2001 From: "JASIN SHABANI (AKVELON INC)" Date: Wed, 21 Aug 2024 15:22:15 +0200 Subject: [PATCH 01/21] Adding support file to Python clients --- SUPPORT.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 SUPPORT.md diff --git a/SUPPORT.md b/SUPPORT.md new file mode 100644 index 00000000..4b39127e --- /dev/null +++ b/SUPPORT.md @@ -0,0 +1,6 @@ +# Support +## How to file issues and get help +This project uses GitHub Issues to track bugs and feature requests. Please search the existing issues before filing new issues to avoid duplicates. For new issues, file your bug or feature request as a new Issue. + +## Microsoft Support Policy +Support for this **PROJECT or PRODUCT** is limited to the resources listed above. \ No newline at end of file From d6bc683bff778eee9beb2f1aa2511cf4a3be7bcb Mon Sep 17 00:00:00 2001 From: "JASIN SHABANI (AKVELON INC)" Date: Fri, 23 Aug 2024 15:31:44 +0200 Subject: [PATCH 02/21] updating the support file --- SUPPORT.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SUPPORT.md b/SUPPORT.md index 4b39127e..c5082ebc 100644 --- a/SUPPORT.md +++ b/SUPPORT.md @@ -3,4 +3,4 @@ This project uses GitHub Issues to track bugs and feature requests. Please search the existing issues before filing new issues to avoid duplicates. For new issues, file your bug or feature request as a new Issue. ## Microsoft Support Policy -Support for this **PROJECT or PRODUCT** is limited to the resources listed above. \ No newline at end of file +Support for this Azure DevOps Python API is limited to the resources listed above. \ No newline at end of file From 480a89fefebfe1c16b98f134fc8a0c9da69abfaa Mon Sep 17 00:00:00 2001 From: "JASIN SHABANI (AKVELON INC)" Date: Fri, 23 Aug 2024 16:12:35 +0200 Subject: [PATCH 03/21] changing support text as we agreed to looks better. --- SUPPORT.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SUPPORT.md b/SUPPORT.md index c5082ebc..8a8ef458 100644 --- a/SUPPORT.md +++ b/SUPPORT.md @@ -3,4 +3,4 @@ This project uses GitHub Issues to track bugs and feature requests. Please search the existing issues before filing new issues to avoid duplicates. For new issues, file your bug or feature request as a new Issue. ## Microsoft Support Policy -Support for this Azure DevOps Python API is limited to the resources listed above. \ No newline at end of file +Support for Azure DevOps Python API is limited to the resources listed above. \ No newline at end of file From 135fd03158f6e197c5cc0c26ab8143a62fdc6e68 Mon Sep 17 00:00:00 2001 From: apudovkin-ms Date: Fri, 13 Sep 2024 12:40:55 +0200 Subject: [PATCH 04/21] Create azure-pipelines.yml --- azure-pipelines.yml | 145 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 145 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..eed1e721 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,145 @@ +# 'Allow scripts to access the OAuth token' was selected in pipeline. Add the following YAML to any steps requiring access: +# env: +# MY_ACCESS_TOKEN: $(System.AccessToken) +# Variable 'runCodesignValidationInjection' was defined in the Variables tab +# Variable 'policy_service.build_task_injection.enabled' was defined in the Variables tab +# Variable 'PipelineGovernanceStatus_Audited' was defined in the Variables tab +# Variable 'PipelineClassification_Audited' was defined in the Variables tab +# Variable '1espt.codesignvalidation.enforced' was defined in the Variables tab +# Cron Schedules have been converted using UTC Time Zone and may need to be updated for your location +trigger: + branches: + include: + - dev + - master + - releases/vsts + batch: True +schedules: +- cron: 0 6 * * 1 + branches: + include: + - refs/heads/dev + always: true +resources: + repositories: + - repository: self + type: git + ref: refs/heads/dev +jobs: +- job: Phase_1 + displayName: Phase 1 + cancelTimeoutInMinutes: 1 + pool: + name: Hosted VS2017 + steps: + - checkout: self + clean: true + fetchTags: true + persistCredentials: True + - task: UsePythonVersion@0 + displayName: Use Python 3.x + - task: PowerShell@2 + name: PowerShell4 + displayName: Create Virtual Environment + inputs: + targetType: inline + script: >- + .\scripts\windows\init.ps1 + + if ($LASTEXITCODE -ne 0) { + Write-Host "##vso[task.logissue type=error;] init script failed." + Exit $LASTEXITCODE + } + + + & python -m pip install -U pip setuptools + - task: Bash@3 + name: ShellScript1 + displayName: Update Version + inputs: + filePath: scripts/ci/version.sh + arguments: $(Build.BuildNumber) + script: > + #!/usr/bin/env bash + + + # Update the version strings in the source code + + + # Input: + + # $1 - the version string, if omitted, use ${BUILD_BUILDID} + + + version=$1 + + + if [ -z ${version} ]; then + version=${BUILD_BUILDID} + fi + + + if [ -z ${version} ]; then + echo 'Missing version string' + exit 1 + fi + + + echo "Add dev version suffix: $version" + + + platform=`uname` + + + echo "Platform: $platform" + + + pattern="s/^VERSION = [\"']\(.*\)[\"']/VERSION = \"\1.dev$version\"/" + + + if [ "${platform}" == "MSYS_NT-10.0" ]; then + # On preview version of sh build task, the script will pick up the wrong version of find.exe + find="C:\Program Files\Git\usr\bin\find.exe" + else + find="find" + fi + + + + for each in $("${find}" . -name setup.py); do + if [ "$platform" == "Darwin" ]; then + sed -i "" "${pattern}" "${each}" + rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi + else + sed -i "${pattern}" "${each}" + rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi + fi + done + + + for each in $("${find}" . -name version.py); do + if [ "$platform" == "Darwin" ]; then + sed -i "" "${pattern}" "${each}" + rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi + else + sed -i "${pattern}" "${each}" + rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi + fi + done + - task: PowerShell@2 + name: PowerShell1 + displayName: Compile All + timeoutInMinutes: 1 + inputs: + targetType: inline + script: >- + .\scripts\windows\init.ps1 + + if ($LASTEXITCODE -ne 0) { + Write-Host "##vso[task.logissue type=error;] init script failed." + Exit $LASTEXITCODE + } + + + & python -m compileall . +... From 148ce24f8d21adb2a23da076af778fe58de650c5 Mon Sep 17 00:00:00 2001 From: apudovkin-ms Date: Fri, 13 Sep 2024 13:57:17 +0200 Subject: [PATCH 05/21] Update azure-pipelines.yml --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index eed1e721..0c941342 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -30,7 +30,8 @@ jobs: displayName: Phase 1 cancelTimeoutInMinutes: 1 pool: - name: Hosted VS2017 + name: Azure Pipelines + vmImage: windows-2022 steps: - checkout: self clean: true From 0af04ae4d83c9b6e347607878d3ac107cba54c4e Mon Sep 17 00:00:00 2001 From: apudovkin-ms Date: Fri, 13 Sep 2024 17:26:38 +0200 Subject: [PATCH 06/21] Update azure-pipelines.yml --- azure-pipelines.yml | 217 ++++++++++++++++++-------------------------- 1 file changed, 89 insertions(+), 128 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0c941342..5ecd787e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,12 +1,6 @@ -# 'Allow scripts to access the OAuth token' was selected in pipeline. Add the following YAML to any steps requiring access: -# env: -# MY_ACCESS_TOKEN: $(System.AccessToken) -# Variable 'runCodesignValidationInjection' was defined in the Variables tab -# Variable 'policy_service.build_task_injection.enabled' was defined in the Variables tab -# Variable 'PipelineGovernanceStatus_Audited' was defined in the Variables tab -# Variable 'PipelineClassification_Audited' was defined in the Variables tab -# Variable '1espt.codesignvalidation.enforced' was defined in the Variables tab -# Cron Schedules have been converted using UTC Time Zone and may need to be updated for your location +# This Yaml Document has been converted by ESAI Yaml Pipeline Conversion Tool. +# Please make sure to check all the converted content, it is your team's responsibility to make sure that the pipeline is still valid and functions as expected. +# This pipeline will be extended to the MicroBuild template trigger: branches: include: @@ -25,122 +19,89 @@ resources: - repository: self type: git ref: refs/heads/dev -jobs: -- job: Phase_1 - displayName: Phase 1 - cancelTimeoutInMinutes: 1 - pool: - name: Azure Pipelines - vmImage: windows-2022 - steps: - - checkout: self - clean: true - fetchTags: true - persistCredentials: True - - task: UsePythonVersion@0 - displayName: Use Python 3.x - - task: PowerShell@2 - name: PowerShell4 - displayName: Create Virtual Environment - inputs: - targetType: inline - script: >- - .\scripts\windows\init.ps1 - - if ($LASTEXITCODE -ne 0) { - Write-Host "##vso[task.logissue type=error;] init script failed." - Exit $LASTEXITCODE - } - - - & python -m pip install -U pip setuptools - - task: Bash@3 - name: ShellScript1 - displayName: Update Version - inputs: - filePath: scripts/ci/version.sh - arguments: $(Build.BuildNumber) - script: > - #!/usr/bin/env bash - - - # Update the version strings in the source code - - - # Input: - - # $1 - the version string, if omitted, use ${BUILD_BUILDID} - - - version=$1 - - - if [ -z ${version} ]; then - version=${BUILD_BUILDID} - fi - - - if [ -z ${version} ]; then - echo 'Missing version string' - exit 1 - fi - - - echo "Add dev version suffix: $version" - - - platform=`uname` - - - echo "Platform: $platform" - - - pattern="s/^VERSION = [\"']\(.*\)[\"']/VERSION = \"\1.dev$version\"/" - - - if [ "${platform}" == "MSYS_NT-10.0" ]; then - # On preview version of sh build task, the script will pick up the wrong version of find.exe - find="C:\Program Files\Git\usr\bin\find.exe" - else - find="find" - fi - - - - for each in $("${find}" . -name setup.py); do - if [ "$platform" == "Darwin" ]; then - sed -i "" "${pattern}" "${each}" - rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi - else - sed -i "${pattern}" "${each}" - rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi - fi - done - - - for each in $("${find}" . -name version.py); do - if [ "$platform" == "Darwin" ]; then - sed -i "" "${pattern}" "${each}" - rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi - else - sed -i "${pattern}" "${each}" - rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi - fi - done - - task: PowerShell@2 - name: PowerShell1 - displayName: Compile All - timeoutInMinutes: 1 - inputs: - targetType: inline - script: >- - .\scripts\windows\init.ps1 - - if ($LASTEXITCODE -ne 0) { - Write-Host "##vso[task.logissue type=error;] init script failed." - Exit $LASTEXITCODE - } - - - & python -m compileall . -... + - repository: MicroBuildTemplate + type: git + name: 1ESPipelineTemplates/MicroBuildTemplate + ref: refs/tags/release +extends: + template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate + parameters: + sdl: + sourceAnalysisPool: + pool: + name: AzurePipelines-EO + image: AzurePipelinesWindows2022compliantGPT + os: windows + customBuildTags: + - ES365AIMigrationTooling + stages: + - stage: stage + jobs: + - job: Phase_1 + displayName: Phase 1 + cancelTimeoutInMinutes: 1 + pool: + name: Azure Pipelines + vmImage: windows-2022 + steps: + - checkout: self + clean: true + fetchTags: true + persistCredentials: True + - task: UsePythonVersion@0 + displayName: Use Python 3.x + - task: PowerShell@2 + name: PowerShell4 + displayName: Create Virtual Environment + inputs: + targetType: inline + script: >- + .\scripts\windows\init.ps1 if ($LASTEXITCODE -ne 0) { + Write-Host "##vso[task.logissue type=error;] init script failed." + Exit $LASTEXITCODE + } & python -m pip install -U pip setuptools + - task: Bash@3 + name: ShellScript1 + displayName: Update Version + inputs: + filePath: scripts/ci/version.sh + arguments: $(Build.BuildNumber) + script: > + #!/usr/bin/env bash # Update the version strings in the source code # Input: # $1 - the version string, if omitted, use ${BUILD_BUILDID} version=$1 if [ -z ${version} ]; then + version=${BUILD_BUILDID} + fi if [ -z ${version} ]; then + echo 'Missing version string' + exit 1 + fi echo "Add dev version suffix: $version" platform=`uname` echo "Platform: $platform" pattern="s/^VERSION = [\"']\(.*\)[\"']/VERSION = \"\1.dev$version\"/" if [ "${platform}" == "MSYS_NT-10.0" ]; then + # On preview version of sh build task, the script will pick up the wrong version of find.exe + find="C:\Program Files\Git\usr\bin\find.exe" + else + find="find" + fi for each in $("${find}" . -name setup.py); do + if [ "$platform" == "Darwin" ]; then + sed -i "" "${pattern}" "${each}" + rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi + else + sed -i "${pattern}" "${each}" + rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi + fi + done for each in $("${find}" . -name version.py); do + if [ "$platform" == "Darwin" ]; then + sed -i "" "${pattern}" "${each}" + rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi + else + sed -i "${pattern}" "${each}" + rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi + fi + done + - task: PowerShell@2 + name: PowerShell1 + displayName: Compile All + timeoutInMinutes: 1 + inputs: + targetType: inline + script: >- + .\scripts\windows\init.ps1 if ($LASTEXITCODE -ne 0) { + Write-Host "##vso[task.logissue type=error;] init script failed." + Exit $LASTEXITCODE + } & python -m compileall . From 55cdf8d15a7b3734ce8fc986f8d33e2967284429 Mon Sep 17 00:00:00 2001 From: apudovkin-ms Date: Fri, 13 Sep 2024 17:37:41 +0200 Subject: [PATCH 07/21] Update azure-pipelines.yml --- azure-pipelines.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 5ecd787e..126e27ca 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -27,7 +27,9 @@ extends: template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate parameters: sdl: - sourceAnalysisPool: + sourceAnalysisPool: + name: AzurePipelines-EO + image: 1ESPT-Windows2022 pool: name: AzurePipelines-EO image: AzurePipelinesWindows2022compliantGPT From 30539c18e01b0c55b75955c713a55372d1a813e8 Mon Sep 17 00:00:00 2001 From: apudovkin-ms Date: Fri, 13 Sep 2024 17:38:47 +0200 Subject: [PATCH 08/21] Update azure-pipelines.yml --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 126e27ca..316ff054 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -28,8 +28,8 @@ extends: parameters: sdl: sourceAnalysisPool: - name: AzurePipelines-EO - image: 1ESPT-Windows2022 + name: Azure Pipelines + image: windows-2022 pool: name: AzurePipelines-EO image: AzurePipelinesWindows2022compliantGPT From 6951ea6ae6c7c07f1b73d490ddf9e9ea267de68f Mon Sep 17 00:00:00 2001 From: apudovkin-ms Date: Fri, 13 Sep 2024 17:43:15 +0200 Subject: [PATCH 09/21] Update azure-pipelines.yml --- azure-pipelines.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 316ff054..eceb2bfc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -27,13 +27,9 @@ extends: template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate parameters: sdl: - sourceAnalysisPool: - name: Azure Pipelines - image: windows-2022 + sourceAnalysisPool: 1ESPtTfsAgentBuildPoolSDL pool: - name: AzurePipelines-EO - image: AzurePipelinesWindows2022compliantGPT - os: windows + name: 1ESPtTfsAgentBuildPool1 customBuildTags: - ES365AIMigrationTooling stages: From 20b69f0389ebd9ecf114d8a638a38011bfbf4551 Mon Sep 17 00:00:00 2001 From: apudovkin-ms Date: Mon, 16 Sep 2024 08:55:19 +0200 Subject: [PATCH 10/21] Update azure-pipelines.yml --- azure-pipelines.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index eceb2bfc..f4c48a06 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -39,8 +39,7 @@ extends: displayName: Phase 1 cancelTimeoutInMinutes: 1 pool: - name: Azure Pipelines - vmImage: windows-2022 + name: 1ESPtTfsAgentBuildPool1 steps: - checkout: self clean: true From 1d796f598fd675808f3809b292339b5b809a8381 Mon Sep 17 00:00:00 2001 From: apudovkin-ms Date: Mon, 16 Sep 2024 09:23:47 +0200 Subject: [PATCH 11/21] Update azure-pipelines.yml --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f4c48a06..399fad7a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -56,7 +56,7 @@ extends: .\scripts\windows\init.ps1 if ($LASTEXITCODE -ne 0) { Write-Host "##vso[task.logissue type=error;] init script failed." Exit $LASTEXITCODE - } & python -m pip install -U pip setuptools + } "&" python -m pip install -U pip setuptools - task: Bash@3 name: ShellScript1 displayName: Update Version From e510056bab6de1e4ecbaa2ed28695def0ea46d39 Mon Sep 17 00:00:00 2001 From: apudovkin-ms Date: Mon, 16 Sep 2024 09:43:32 +0200 Subject: [PATCH 12/21] Update azure-pipelines.yml --- azure-pipelines.yml | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 399fad7a..6f767cf2 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -64,17 +64,37 @@ extends: filePath: scripts/ci/version.sh arguments: $(Build.BuildNumber) script: > - #!/usr/bin/env bash # Update the version strings in the source code # Input: # $1 - the version string, if omitted, use ${BUILD_BUILDID} version=$1 if [ -z ${version} ]; then + #!/usr/bin/env bash + # Update the version strings in the source code + # Input: + # $1 - the version string, if omitted, use ${BUILD_BUILDID} + version=$1 + + if [ -z ${version} ]; then version=${BUILD_BUILDID} - fi if [ -z ${version} ]; then + fi + + if [ -z ${version} ]; then echo 'Missing version string' exit 1 - fi echo "Add dev version suffix: $version" platform=`uname` echo "Platform: $platform" pattern="s/^VERSION = [\"']\(.*\)[\"']/VERSION = \"\1.dev$version\"/" if [ "${platform}" == "MSYS_NT-10.0" ]; then + fi + + echo "Add dev version suffix: $version" + + platform=`uname` + + echo "Platform: $platform" + + pattern="s/^VERSION = [\"']\(.*\)[\"']/VERSION = \"\1.dev$version\"/" + + if [ "${platform}" == "MSYS_NT-10.0" ]; then # On preview version of sh build task, the script will pick up the wrong version of find.exe find="C:\Program Files\Git\usr\bin\find.exe" else find="find" - fi for each in $("${find}" . -name setup.py); do + fi + + for each in $("${find}" . -name setup.py); do if [ "$platform" == "Darwin" ]; then sed -i "" "${pattern}" "${each}" rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi @@ -82,7 +102,10 @@ extends: sed -i "${pattern}" "${each}" rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi fi - done for each in $("${find}" . -name version.py); do + done + + + for each in $("${find}" . -name version.py); do if [ "$platform" == "Darwin" ]; then sed -i "" "${pattern}" "${each}" rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi From cdf841fe60350a12e526ceb8e159d50cc8b271f8 Mon Sep 17 00:00:00 2001 From: apudovkin-ms Date: Mon, 16 Sep 2024 11:18:39 +0200 Subject: [PATCH 13/21] Update azure-pipelines.yml --- azure-pipelines.yml | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6f767cf2..6a4b97d1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -65,28 +65,42 @@ extends: arguments: $(Build.BuildNumber) script: > #!/usr/bin/env bash + + # Update the version strings in the source code + + # Input: + # $1 - the version string, if omitted, use ${BUILD_BUILDID} - version=$1 + + + version=$1 + if [ -z ${version} ]; then version=${BUILD_BUILDID} - fi + fi + if [ -z ${version} ]; then echo 'Missing version string' exit 1 - fi + fi + echo "Add dev version suffix: $version" - + + platform=`uname` - + + echo "Platform: $platform" - + + pattern="s/^VERSION = [\"']\(.*\)[\"']/VERSION = \"\1.dev$version\"/" - + + if [ "${platform}" == "MSYS_NT-10.0" ]; then # On preview version of sh build task, the script will pick up the wrong version of find.exe find="C:\Program Files\Git\usr\bin\find.exe" @@ -94,6 +108,8 @@ extends: find="find" fi + + for each in $("${find}" . -name setup.py); do if [ "$platform" == "Darwin" ]; then sed -i "" "${pattern}" "${each}" From 146ecdbadab90eae8f71d335a90d83295a1503e8 Mon Sep 17 00:00:00 2001 From: apudovkin-ms Date: Mon, 16 Sep 2024 11:24:56 +0200 Subject: [PATCH 14/21] Update azure-pipelines.yml --- azure-pipelines.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6a4b97d1..773eaecf 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -53,10 +53,15 @@ extends: inputs: targetType: inline script: >- - .\scripts\windows\init.ps1 if ($LASTEXITCODE -ne 0) { + .\scripts\windows\init.ps1 + + if ($LASTEXITCODE -ne 0) { Write-Host "##vso[task.logissue type=error;] init script failed." Exit $LASTEXITCODE - } "&" python -m pip install -U pip setuptools + } + + + & python -m pip install -U pip setuptools - task: Bash@3 name: ShellScript1 displayName: Update Version From 85db320c7a6114c4fc6decb3cc3c347aa7dc8692 Mon Sep 17 00:00:00 2001 From: apudovkin-ms Date: Mon, 16 Sep 2024 12:48:07 +0200 Subject: [PATCH 15/21] Update azure-pipelines.yml --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 773eaecf..1e4107c1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -40,6 +40,7 @@ extends: cancelTimeoutInMinutes: 1 pool: name: 1ESPtTfsAgentBuildPool1 + os: windows steps: - checkout: self clean: true From a7343a1b2b2d8aefa753e4edf9f0a23e70ac1f73 Mon Sep 17 00:00:00 2001 From: apudovkin-ms Date: Mon, 16 Sep 2024 13:42:48 +0200 Subject: [PATCH 16/21] Update azure-pipelines.yml --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1e4107c1..796af48f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -39,7 +39,8 @@ extends: displayName: Phase 1 cancelTimeoutInMinutes: 1 pool: - name: 1ESPtTfsAgentBuildPool1 + name: 1ES-OSE-Pool + image: 1ES-OSE-Hosted-Pool-windows os: windows steps: - checkout: self From 91a77357502fd952f06fd916c5a96eaf130d8187 Mon Sep 17 00:00:00 2001 From: apudovkin-ms Date: Mon, 16 Sep 2024 13:58:34 +0200 Subject: [PATCH 17/21] Update azure-pipelines.yml --- azure-pipelines.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 796af48f..1e4107c1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -39,8 +39,7 @@ extends: displayName: Phase 1 cancelTimeoutInMinutes: 1 pool: - name: 1ES-OSE-Pool - image: 1ES-OSE-Hosted-Pool-windows + name: 1ESPtTfsAgentBuildPool1 os: windows steps: - checkout: self From 3bcfa49985502143160f02e3264c1ea9e929b949 Mon Sep 17 00:00:00 2001 From: apudovkin-ms Date: Mon, 16 Sep 2024 16:34:09 +0200 Subject: [PATCH 18/21] Update azure-pipelines.yml --- azure-pipelines.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1e4107c1..cbdb14d7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -29,7 +29,9 @@ extends: sdl: sourceAnalysisPool: 1ESPtTfsAgentBuildPoolSDL pool: - name: 1ESPtTfsAgentBuildPool1 + name: Azure-Pipelines-1ESPT-ExDShared + image: windows-2022 + os: windows customBuildTags: - ES365AIMigrationTooling stages: @@ -39,8 +41,7 @@ extends: displayName: Phase 1 cancelTimeoutInMinutes: 1 pool: - name: 1ESPtTfsAgentBuildPool1 - os: windows + name: 1ES-Shared-Hosted-Pool_Windows-Server-2022 steps: - checkout: self clean: true From 5866dda33adddbd85d7eb02b39c7669c341d7674 Mon Sep 17 00:00:00 2001 From: apudovkin-ms Date: Mon, 16 Sep 2024 16:40:02 +0200 Subject: [PATCH 19/21] Update azure-pipelines.yml --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index cbdb14d7..d5937432 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -147,4 +147,4 @@ extends: .\scripts\windows\init.ps1 if ($LASTEXITCODE -ne 0) { Write-Host "##vso[task.logissue type=error;] init script failed." Exit $LASTEXITCODE - } & python -m compileall . + } "&" python -m compileall . From 1af8cda2f11e9aa762d8192be8885d58f3ceb706 Mon Sep 17 00:00:00 2001 From: Max Velitchko Date: Mon, 19 May 2025 18:33:22 -0700 Subject: [PATCH 20/21] Fix: PipelinesChecksClient.update_check_configuration() --- .../devops/v7_0/pipelines_checks/models.py | 17 ++++++++++++++--- .../devops/v7_1/pipelines_checks/models.py | 17 ++++++++++++++--- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/azure-devops/azure/devops/v7_0/pipelines_checks/models.py b/azure-devops/azure/devops/v7_0/pipelines_checks/models.py index c0d911df..a06fa1c0 100644 --- a/azure-devops/azure/devops/v7_0/pipelines_checks/models.py +++ b/azure-devops/azure/devops/v7_0/pipelines_checks/models.py @@ -385,6 +385,12 @@ class CheckConfiguration(CheckConfigurationRef): :type modified_on: datetime :param timeout: Timeout in minutes for the check. :type timeout: int + :param is_disabled: True if the check is disabled. + :type is_disabled: bool + :param version: Configuration version. + :type version: int + :param settings: Check settings. + :type settings: TaskCheckConfig """ _attribute_map = { @@ -397,10 +403,13 @@ class CheckConfiguration(CheckConfigurationRef): 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'timeout': {'key': 'timeout', 'type': 'int'} + 'timeout': {'key': 'timeout', 'type': 'int'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'version': {'key': 'version', 'type': 'int'}, + 'settings': {'key': 'settings', 'type': 'TaskCheckConfig'} } - def __init__(self, id=None, resource=None, type=None, url=None, _links=None, created_by=None, created_on=None, modified_by=None, modified_on=None, timeout=None): + def __init__(self, id=None, resource=None, type=None, url=None, _links=None, created_by=None, created_on=None, modified_by=None, modified_on=None, timeout=None, is_disabled=None, version=None, settings=None): super(CheckConfiguration, self).__init__(id=id, resource=resource, type=type, url=url) self._links = _links self.created_by = created_by @@ -408,7 +417,9 @@ def __init__(self, id=None, resource=None, type=None, url=None, _links=None, cre self.modified_by = modified_by self.modified_on = modified_on self.timeout = timeout - + self.is_disabled = is_disabled + self.version = version + self.settings = settings class CheckRun(CheckRunResult): """ diff --git a/azure-devops/azure/devops/v7_1/pipelines_checks/models.py b/azure-devops/azure/devops/v7_1/pipelines_checks/models.py index 17713252..f1cf0c8b 100644 --- a/azure-devops/azure/devops/v7_1/pipelines_checks/models.py +++ b/azure-devops/azure/devops/v7_1/pipelines_checks/models.py @@ -412,6 +412,12 @@ class CheckConfiguration(CheckConfigurationRef): :type modified_on: datetime :param timeout: Timeout in minutes for the check. :type timeout: int + :param is_disabled: True if the check is disabled. + :type is_disabled: bool + :param version: Configuration version. + :type version: int + :param settings: Check settings. + :type settings: TaskCheckConfig """ _attribute_map = { @@ -425,10 +431,13 @@ class CheckConfiguration(CheckConfigurationRef): 'issue': {'key': 'issue', 'type': 'CheckIssue'}, 'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'}, 'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'}, - 'timeout': {'key': 'timeout', 'type': 'int'} + 'timeout': {'key': 'timeout', 'type': 'int'}, + 'is_disabled': {'key': 'isDisabled', 'type': 'bool'}, + 'version': {'key': 'version', 'type': 'int'}, + 'settings': {'key': 'settings', 'type': 'TaskCheckConfig'} } - def __init__(self, id=None, resource=None, type=None, url=None, _links=None, created_by=None, created_on=None, issue=None, modified_by=None, modified_on=None, timeout=None): + def __init__(self, id=None, resource=None, type=None, url=None, _links=None, created_by=None, created_on=None, issue=None, modified_by=None, modified_on=None, timeout=None, is_disabled=None, version=None, settings=None): super(CheckConfiguration, self).__init__(id=id, resource=resource, type=type, url=url) self._links = _links self.created_by = created_by @@ -437,7 +446,9 @@ def __init__(self, id=None, resource=None, type=None, url=None, _links=None, cre self.modified_by = modified_by self.modified_on = modified_on self.timeout = timeout - + self.is_disabled = is_disabled + self.version = version + self.settings = settings class CheckRun(CheckRunResult): """ From 8336bf356fd8cd83431957750bd7ecaf11d40c97 Mon Sep 17 00:00:00 2001 From: Max Velitchko Date: Mon, 19 May 2025 18:44:47 -0700 Subject: [PATCH 21/21] Python 3.7 is not supported anymore --- .github/workflows/pythonpackage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 279ae64e..76dc998a 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -9,7 +9,7 @@ jobs: strategy: max-parallel: 5 matrix: - python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v1 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy