Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python - pr #36635

Closed
wants to merge 132 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
38aeb2c
update venv reference methodology
scbedd Jul 19, 2024
8a2b75c
remove platform from build step
scbedd Jul 19, 2024
217d394
Merge branch 'update-venv-reference' into always-build
scbedd Jul 22, 2024
1c8ddf8
a _bunch_ of build changes. this is to get our builds all running the…
scbedd Jul 22, 2024
354213e
ok we aren't honoring the conditionals, but we can test the actual bu…
scbedd Jul 22, 2024
d84253d
update indentation
scbedd Jul 22, 2024
0442b24
update condition usage in use-venv
scbedd Jul 22, 2024
2cf398e
remove wonky condition
scbedd Jul 22, 2024
c0ffa9c
adjust packages usage in build-extended-artifacts
scbedd Jul 22, 2024
a2ea84b
Merge remote-tracking branch 'upstream/main' into simplify-build-agen…
scbedd Jul 22, 2024
1a7dcc1
why is this thing having such a hard time processing getting corehttp…
scbedd Jul 23, 2024
10a6127
Merge remote-tracking branch 'upstream/main' into simplify-build-agen…
scbedd Jul 23, 2024
425b744
waiting for confirmation, but pretty certain this will work
scbedd Jul 23, 2024
871e662
Update eng/pipelines/templates/steps/build.yml
scbedd Jul 23, 2024
0c0f06d
update the conditions in build-package-artifacts. the intent is to sa…
scbedd Jul 23, 2024
b358429
correct all the variable references
scbedd Jul 23, 2024
79f95f7
correct condition in set dev build
scbedd Jul 23, 2024
9753eb8
simplify the conditional
scbedd Jul 23, 2024
7ff3b89
cant remove a directory we're operating in
scbedd Jul 23, 2024
105edfe
leave behind the credscan suppression file though
scbedd Jul 23, 2024
2ba740d
clean up all the files in the repo
scbedd Jul 23, 2024
c205cb6
buncha updates!
scbedd Jul 24, 2024
873ffd6
clean up the outputs in build-package-artifacts
scbedd Jul 24, 2024
56ec683
fix the artifact download call
scbedd Jul 24, 2024
387d3d0
restore the python release stages to what they were. my changes were …
scbedd Jul 24, 2024
b550519
Merge remote-tracking branch 'upstream/main' into pipelinev3-v2
scbedd Jul 24, 2024
c3ac400
rationalizing our pipeline v3 work into the new simplified build. ver…
scbedd Jul 25, 2024
91e00e4
merge main
scbedd Jul 25, 2024
393d610
update usage of resolve-package-targeting everywhere which will honor…
scbedd Jul 25, 2024
cca4e9f
update our commit reference
scbedd Jul 25, 2024
3543235
save default parameter
scbedd Jul 25, 2024
fb92c74
correct conditional
scbedd Jul 25, 2024
c1135d7
BuildTargetingParameter -> BuildTargetingString
scbedd Jul 25, 2024
29b729c
change ordering of savepackageproperties
scbedd Jul 25, 2024
0340473
touch core so that the core PR has something to work against
scbedd Jul 25, 2024
ba9ad00
going to need to add this to an eng/common update
scbedd Jul 25, 2024
8c1df15
dot include the path
scbedd Jul 25, 2024
cad0a2f
generate pr diff with platform specific handlers
scbedd Jul 25, 2024
32b775b
remove bad call to generate-pr-diff
scbedd Jul 25, 2024
f192370
adjustments to eng/common
scbedd Jul 27, 2024
6699f69
PackageInfoDirectory -> PackagePropertiesFolder
scbedd Jul 27, 2024
3f0feaa
update usage
scbedd Jul 27, 2024
e854dd0
update
scbedd Jul 27, 2024
e3e6b50
verify changelogs should work now
scbedd Jul 30, 2024
7d00fbb
updating how we handle readme verify
scbedd Jul 30, 2024
da6ad20
resolve problem with the argument not being honored because the wrong…
scbedd Jul 30, 2024
fd04ac9
we need to pass a parameter not a test value that will always be unpo…
scbedd Jul 30, 2024
c450758
further progress for the evening
scbedd Jul 31, 2024
c65a6d9
ok so now we expand our targeted packages per the language settings
scbedd Aug 1, 2024
7150387
handle changes to detectApiChanges
scbedd Aug 1, 2024
52b5e01
debug output so we can understand why this isn't matching
scbedd Aug 1, 2024
27fd2c4
even more debug output! trying to understand why dependent packages a…
scbedd Aug 1, 2024
d3518bf
why is that not outputting?
scbedd Aug 1, 2024
ec29617
resolve issue with detect api changes
scbedd Aug 1, 2024
18cbb11
to fix the readme issues, we just need to ensure that the path passed…
scbedd Aug 1, 2024
e9fda5e
remove debug output
scbedd Aug 1, 2024
6518f92
Merge remote-tracking branch 'upstream/main' into pipelinev3-v2
scbedd Aug 1, 2024
949e324
remove additional debug statements
scbedd Aug 1, 2024
a5c76d0
update the test timeout to 120 minutes for the pr build
scbedd Aug 1, 2024
40dfddd
Merge remote-tracking branch 'upstream/main' into pipelinev3-v2
scbedd Aug 6, 2024
3c33a47
extend timeout even longer
scbedd Aug 6, 2024
b1778d3
update from Name to ArtifactName wthin Detect-Api-Changes, as js need…
scbedd Aug 6, 2024
c23b1cf
actually handle the rename properly
scbedd Aug 6, 2024
9de466b
Merge branch 'main' into pipelinev3-v2
scbedd Aug 8, 2024
e0884a4
make this thing totally ignore service directory when testing. so tha…
scbedd Aug 8, 2024
3ced7a7
don't need double output on resolve package targeting
scbedd Aug 8, 2024
fd5816e
resolve issue with not generating the packages we expect. update reso…
scbedd Aug 8, 2024
0be365f
Merge remote-tracking branch 'upstream/main' into pipelinev3-v2
scbedd Aug 9, 2024
4a67497
resolve the problem with verify readmes failing for internal run. exp…
scbedd Aug 9, 2024
92f9792
TimeoutInMinutes -> TestTimeoutInMinutes
scbedd Aug 9, 2024
c25fda2
update breaking samples by popping the bad configs
scbedd Aug 9, 2024
4b26f7e
remove an extra call to setdevbuild that is unnecessary and ends up u…
scbedd Aug 9, 2024
82fe6eb
commit progress towards rebalancing the matrix
scbedd Aug 13, 2024
1c12314
handling more and less than batchcount worth of packages
scbedd Aug 13, 2024
32a5b1f
we now properly handle smaller builds
scbedd Aug 13, 2024
8e4b198
conditon -> condition
scbedd Aug 13, 2024
3e0dbc1
task: PowerShell -> task: AzurePowerShell
scbedd Aug 13, 2024
4081775
call the script simpler
scbedd Aug 13, 2024
42054df
PlatformJson -> PlatformMatrix
scbedd Aug 13, 2024
92e7f66
ensure that corehttp builds nightly
scbedd Aug 13, 2024
0f122b7
add our pipeline to the sparse checkout path
scbedd Aug 13, 2024
4c4ec69
update core test, remove sparsecheckoutpath argument eng/ should be p…
scbedd Aug 13, 2024
548dc36
repair issues with regression matrix condition
scbedd Aug 13, 2024
698b0fd
call into the script in hopefully the proper fashion
scbedd Aug 13, 2024
dba37d1
double arguments param
scbedd Aug 13, 2024
f575e03
i am blind
scbedd Aug 13, 2024
809bf78
finally fix the real problem. we weren't referencing a variable that …
scbedd Aug 13, 2024
03943c1
why am I having such an issue working through these?
scbedd Aug 13, 2024
d7c7208
checking the wrong variable name
scbedd Aug 14, 2024
bc3c5a8
Merge branch 'main' into pipelinev3-v2
scbedd Aug 14, 2024
f3934cc
add the default variable so that it can be set later
scbedd Aug 14, 2024
12a5906
encode the state of the world for ml so that core builds aren't faile…
scbedd Aug 14, 2024
8f13dcd
when I reverted the check, I also reverted the removal of the properties
scbedd Aug 14, 2024
1eef1de
re-balance the dependent packages so we don't assign azure-storage-bl…
scbedd Aug 14, 2024
a9fac62
rebalance so that pypy39 doesn't get assigned storage
scbedd Aug 14, 2024
a8c9fd0
easy visibility as to what is being built
scbedd Aug 14, 2024
d9acae6
generate a parallel invocation for sphinx. need to take this over to …
scbedd Aug 26, 2024
85ead19
targeting string is split by comma not space
scbedd Aug 26, 2024
c969039
ensure that we get the sphinx log contents
scbedd Aug 26, 2024
fcc1dcf
change the formatting of the arguments
scbedd Aug 26, 2024
1826bfa
dump the outputs even in the case of success
scbedd Aug 26, 2024
f058dbc
some additional debugging. why isn't this picking up actual packages?
scbedd Aug 26, 2024
9e45d4d
additional debugging. why?
scbedd Aug 26, 2024
532539f
logging update
scbedd Aug 26, 2024
0ba34bb
more logging updates
scbedd Aug 26, 2024
cd6cf1e
save some simple param updates
scbedd Aug 27, 2024
6fb61a4
simplify some loggers so we can't stomp on ourselves
scbedd Aug 27, 2024
771cf62
Merge branch 'main' into pipelinev3-v2
scbedd Aug 29, 2024
5db6fb4
merge main, then update language-settings to reflect the new property…
scbedd Aug 30, 2024
52fe2a2
I think the issue is the replacement of the dev reqs stomping on each…
scbedd Aug 30, 2024
d3d89dd
I left a breakpoint behind
scbedd Aug 30, 2024
3b38df4
repair namespace update that doesn't get an artifact list anymore for…
scbedd Aug 30, 2024
95fb1ea
remove extra comma
scbedd Aug 30, 2024
7d51ba4
dealing with some output issues.
scbedd Aug 30, 2024
0e55d61
force save-package-properties commit into proper format
scbedd Aug 30, 2024
9ad9e9b
Revert "force save-package-properties commit into proper format"
scbedd Aug 30, 2024
25951f7
update save-package-properties
scbedd Aug 30, 2024
e5e5464
how do I keep missing these little issues
scbedd Aug 30, 2024
9c458b1
add a timeout to the sphinx build job, add dump of logs so we can fig…
scbedd Aug 30, 2024
ba0a0ad
display -> displayNAme
scbedd Aug 30, 2024
ee38ac0
section the documentation build away, as nothing other than the relea…
scbedd Sep 3, 2024
98ea9e0
Merge remote-tracking branch 'upstream/main' into pipelinev3-v2
scbedd Sep 3, 2024
f238f60
save progress such that azure-storage-blob skips on pypy distribution
scbedd Sep 3, 2024
59d93ee
allow us to diff when a package is included vs not
scbedd Sep 11, 2024
a69dadb
commit my progress so I have a place to revert to, don't push this
scbedd Sep 12, 2024
bf633ef
commit platform matrix so we can easily rerun modification script
scbedd Sep 12, 2024
65253ea
save progress for the evening
scbedd Sep 12, 2024
cd5bd08
ready to handle include duplication
scbedd Sep 12, 2024
71f28e1
right before adding include update
scbedd Sep 12, 2024
44f0674
it works! we're now autogenerating new include patterns!
scbedd Sep 12, 2024
76c5010
this will now work for various platform matrix jsons. going to restor…
scbedd Sep 12, 2024
5ddf3d4
merge main
scbedd Sep 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions eng/common/scripts/Package-Properties.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class PackageProps
[boolean]$IsNewSdk
[string]$ArtifactName
[string]$ReleaseStatus
[boolean]$IncludedForValidation
[string[]]$AdditionalValidationPackages

PackageProps([string]$name, [string]$version, [string]$directoryPath, [string]$serviceDirectory)
Expand All @@ -38,6 +39,7 @@ class PackageProps
$this.Version = $version
$this.DirectoryPath = $directoryPath
$this.ServiceDirectory = $serviceDirectory
$this.IncludedForValidation = $false

if (Test-Path (Join-Path $directoryPath "README.md"))
{
Expand Down Expand Up @@ -143,6 +145,8 @@ function Get-PrPkgProperties([string]$InputDiffJson) {
$key = $addition.Replace($RepoRoot, "").TrimStart('\/')

if ($lookup[$key]) {
$lookup[$key].IncludedForValidation = $true
Write-Host $lookup[$key].IncludedForValidation
$packagesWithChanges += $lookup[$key]
}
}
Expand Down
13 changes: 4 additions & 9 deletions eng/pipelines/templates/jobs/ci.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,12 @@ jobs:
value: ${{ parameters.InjectedPackages }}

steps:
- template: /eng/pipelines/templates/steps/targeting-string-resolve.yml
- template: /eng/pipelines/templates/steps/download-package-artifacts.yml

- template: /eng/pipelines/templates/steps/resolve-package-targeting.yml
parameters:
BuildTargetingString: ${{ parameters.BuildTargetingString }}
PackagePropertiesFolder: $(Build.ArtifactStagingDirectory)/PackageInfo

- template: /eng/common/pipelines/templates/steps/verify-agent-os.yml
parameters:
Expand Down Expand Up @@ -112,22 +115,14 @@ jobs:

- template: ../steps/build-test.yml
parameters:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
TestMarkArgument: ${{ parameters.TestMarkArgument }}
AdditionalTestArgs: '--wheel_dir="$(Build.ArtifactStagingDirectory)"'
CoverageArg: $(CoverageArg)
PythonVersion: $(PythonVersion)
ToxTestEnv: $(toxenv)
ToxEnvParallel: ${{ parameters.ToxEnvParallel }}
InjectedPackages: $(InjectedPackages)
TestProxy: ${{ parameters.TestProxy }}
BeforeTestSteps:
- template: /eng/pipelines/templates/steps/download-package-artifacts.yml

- template: ../steps/set-dev-build.yml
parameters:
ServiceDirectory: ${{ parameters.ServiceDirectory }}

- ${{ each step in parameters.BeforeTestSteps }}:
- ${{ step }}
AfterTestSteps: ${{ parameters.AfterTestSteps }}
82 changes: 64 additions & 18 deletions eng/pipelines/templates/jobs/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ jobs:
ComponentDetection.SourcePath: '$(Build.SourcesDirectory)/sdk/${{ parameters.ServiceDirectory }}'

steps:
- template: /eng/pipelines/templates/steps/build.yml
- template: /eng/pipelines/templates/steps/build-package-artifacts.yml
parameters:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
BuildTargetingString: ${{ parameters.BuildTargetingString }}
BeforePublishSteps: ${{ parameters.BeforePublishSteps }}
TestPipeline: ${{ parameters.TestPipeline }}
ArtifactSuffix: linux
Artifacts: ${{ parameters.Artifacts }}
ArtifactSuffix: linux
BuildTargetingString: ${{ parameters.BuildTargetingString }}

- job: 'Build_Windows'
timeoutInMinutes: 90
Expand All @@ -96,14 +96,14 @@ jobs:
ComponentDetection.SourcePath: '$(Build.SourcesDirectory)/sdk/${{ parameters.ServiceDirectory }}'

steps:
- template: /eng/pipelines/templates/steps/build.yml
- template: /eng/pipelines/templates/steps/build-package-artifacts.yml
parameters:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
BuildTargetingString: ${{ parameters.BuildTargetingString }}
BeforePublishSteps: ${{ parameters.BeforePublishSteps }}
TestPipeline: ${{ parameters.TestPipeline }}
ArtifactSuffix: windows
Artifacts: ${{ parameters.Artifacts }}
ArtifactSuffix: windows
BuildTargetingString: ${{ parameters.BuildTargetingString }}

- job: 'Build_MacOS'
timeoutInMinutes: 90
Expand All @@ -117,14 +117,14 @@ jobs:
ComponentDetection.SourcePath: '$(Build.SourcesDirectory)/sdk/${{ parameters.ServiceDirectory }}'

steps:
- template: /eng/pipelines/templates/steps/build.yml
- template: /eng/pipelines/templates/steps/build-package-artifacts.yml
parameters:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
BuildTargetingString: ${{ parameters.BuildTargetingString }}
BeforePublishSteps: ${{ parameters.BeforePublishSteps }}
TestPipeline: ${{ parameters.TestPipeline }}
ArtifactSuffix: mac
Artifacts: ${{ parameters.Artifacts }}
ArtifactSuffix: mac
BuildTargetingString: ${{ parameters.BuildTargetingString }}

- job: 'Build_Extended'
displayName: Build Extended
Expand All @@ -146,9 +146,41 @@ jobs:
steps:
- template: /eng/pipelines/templates/steps/download-package-artifacts.yml

- template: /eng/pipelines/templates/steps/targeting-string-resolve.yml
- template: /eng/pipelines/templates/steps/resolve-package-targeting.yml
parameters:
BuildTargetingString: ${{ parameters.BuildTargetingString }}
PackagePropertiesFolder: $(Build.ArtifactStagingDirectory)/PackageInfo

- template: ../steps/build-extended-artifacts.yml
parameters:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
BeforePublishSteps: ${{ parameters.BeforePublishSteps }}
BuildDocs: false
RunApiStubGen: true
TestPipeline: ${{ parameters.TestPipeline }}
Artifacts: ${{ parameters.Artifacts }}

- job: 'Build_Documentation'
displayName: Build Docs
dependsOn:
- 'Build_Linux'
- 'Build_Windows'
- 'Build_MacOS'

timeoutInMinutes: 90

pool:
name: $(LINUXPOOL)
image: $(LINUXVMIMAGE)
os: linux

steps:
- template: /eng/pipelines/templates/steps/download-package-artifacts.yml

- template: /eng/pipelines/templates/steps/resolve-package-targeting.yml
parameters:
BuildTargetingString: ${{ parameters.BuildTargetingString }}
PackagePropertiesFolder: $(Build.ArtifactStagingDirectory)/PackageInfo

- template: ../steps/build-extended-artifacts.yml
parameters:
Expand All @@ -157,6 +189,7 @@ jobs:
BuildDocs: ${{ parameters.BuildDocs }}
TestPipeline: ${{ parameters.TestPipeline }}
Artifacts: ${{ parameters.Artifacts }}
RunApiStubGen: false

- job: 'Analyze'
condition: and(succeeded(), ne(variables['Skip.Analyze'], 'true'))
Expand All @@ -172,10 +205,6 @@ jobs:
os: linux

steps:
- template: /eng/pipelines/templates/steps/targeting-string-resolve.yml
parameters:
BuildTargetingString: ${{ parameters.BuildTargetingString }}

- template: /eng/common/pipelines/templates/steps/check-spelling.yml
parameters:
ContinueOnError: false
Expand All @@ -196,6 +225,11 @@ jobs:
artifactName: 'packages_extended'
targetPath: $(Build.ArtifactStagingDirectory)

- template: /eng/pipelines/templates/steps/resolve-package-targeting.yml
parameters:
BuildTargetingString: ${{ parameters.BuildTargetingString }}
PackagePropertiesFolder: $(Build.ArtifactStagingDirectory)/PackageInfo

- template: ../steps/analyze.yml
parameters:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
Expand All @@ -219,6 +253,21 @@ jobs:
MatrixConfigs: ${{ parameters.MatrixConfigs }}
MatrixFilters: ${{ parameters.MatrixFilters }}
MatrixReplace: ${{ parameters.MatrixReplace }}
PreGenerationSteps:

- template: /eng/pipelines/templates/steps/download-package-artifacts.yml
condition: eq(variables['Build.Reason'], 'PullRequest')

- task: Powershell@2
inputs:
pwsh: true
filePath: eng/scripts/distribute-packages-to-matrix.ps1
arguments: >-
-PackageInfoFolder "$(Build.ArtifactStagingDirectory)/PackageInfo"
-PlatformMatrix "${{ parameters.MatrixConfigs[0].Path }}"
displayName: 'Distribute Packages to Matrix'
condition: eq(variables['Build.Reason'], 'PullRequest')

CloudConfig:
Cloud: Public
AdditionalParameters:
Expand Down Expand Up @@ -253,15 +302,12 @@ jobs:
- pwsh: |
python -m pip install "./tools/azure-sdk-tools[build]"
displayName: 'Prep Environment'
- template: /eng/pipelines/templates/steps/targeting-string-resolve.yml
parameters:
BuildTargetingString: ${{ parameters.BuildTargetingString }}
- task: PythonScript@0
displayName: 'Ensure service coverage'
inputs:
scriptPath: '$(Build.SourcesDirectory)/scripts/devops_tasks/update_regression_services.py'
arguments: >-
"$(TargetingString)"
"azure*"
--service="${{ parameters.ServiceDirectory }}"
--json=$(Build.SourcesDirectory)/eng/pipelines/templates/stages/regression-job-matrix.json
CloudConfig:
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/jobs/live.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
parameters:
AgentImage: ${{ parameters.OSName }}

- template: /eng/pipelines/templates/steps/targeting-string-resolve.yml
- template: /eng/pipelines/templates/steps/resolve-package-targeting.yml
parameters:
BuildTargetingString: ${{ parameters.BuildTargetingString }}

Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/jobs/regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:

# Please use `$(TargetingString)` to refer to the python packages glob string. This was previously `${{ parameters.BuildTargetingString }}`.
steps:
- template: /eng/pipelines/templates/steps/targeting-string-resolve.yml
- template: /eng/pipelines/templates/steps/resolve-package-targeting.yml
parameters:
BuildTargetingString: ${{ parameters.BuildTargetingString }}

Expand Down
32 changes: 4 additions & 28 deletions eng/pipelines/templates/stages/platform-matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,8 @@
"ubuntu-20.04": { "OSVmImage": "env:LINUXVMIMAGE", "Pool": "env:LINUXPOOL" },
"macos-latest": { "OSVmImage": "env:MACVMIMAGE", "Pool": "env:MACPOOL" }
},
"PythonVersion": [ "3.8", "pypy3.9", "3.11", "3.10" ],
"CoverageArg": "--disablecov",
"TestSamples": "false"
},
"include": [
{
"CoverageConfig": {
"ubuntu2004_39_coverage": {
"OSVmImage": "env:LINUXVMIMAGE",
"Pool": "env:LINUXPOOL",
"PythonVersion": "3.9",
"CoverageArg": "",
"TestSamples": "false"
}
}
},
{
"Config": {
"Ubuntu2004_312": {
"OSVmImage": "env:LINUXVMIMAGE",
"Pool": "env:LINUXPOOL",
"PythonVersion": "3.12",
"CoverageArg": "--disablecov",
"TestSamples": "false"
}
}
}
]
"PythonVersion": [ "3.8", "pypy3.9", "3.9", "3.11", "3.12", "3.10" ],
"TestSamples": "false",
"TargetingString": "azure*"
}
}
29 changes: 15 additions & 14 deletions eng/pipelines/templates/steps/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@ parameters:
ValidateFormatting: false
GenerateApiReviewForManualOnly: false

# The variable TargetingString is set by template `eng/pipelines/templates/steps/targeting-string-resolve.yml`. This template is invoked from yml files:
# eng/pipelines/templates/jobs/ci.tests.yml
# eng/pipelines/templates/jobs/ci.yml
# eng/pipelines/templates/jobs/live.test.yml

# Please use `$(TargetingString)` to refer to the python packages glob string. This was previously `${{ parameters.BuildTargetingString }}`.
# Please use `$(TargetingString)` to refer to the python packages glob string. This variable is set from resolve-package-targeting.yml.
steps:
- template: /eng/pipelines/templates/steps/analyze_dependency.yml
parameters:
Expand All @@ -32,14 +27,20 @@ steps:
scriptPath: 'scripts/devops_tasks/set_tox_environment.py'
arguments: '"$(TargetingString)" --team-project="$(System.TeamProject)" --service="${{ parameters.ServiceDirectory }}"'

- ${{ each artifact in parameters.Artifacts }}:
- ${{if ne(artifact.skipVerifyChangeLog, 'true')}}:
- template: /eng/common/pipelines/templates/steps/verify-changelog.yml
parameters:
PackageName: ${{artifact.name}}
ServiceName: ${{parameters.ServiceDirectory}}
ForRelease: false
Condition: succeededOrFailed()
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
- template: /eng/common/pipelines/templates/steps/verify-changelogs.yml
parameters:
PackagePropertiesFolder: $(Build.ArtifactStagingDirectory)/PackageInfo
Condition: succeededOrFailed()
- ${{ else }}:
scbedd marked this conversation as resolved.
Show resolved Hide resolved
- ${{ each artifact in parameters.Artifacts }}:
- ${{if ne(artifact.skipVerifyChangeLog, 'true')}}:
- template: /eng/common/pipelines/templates/steps/verify-changelog.yml
parameters:
PackageName: ${{artifact.name}}
ServiceName: ${{parameters.ServiceDirectory}}
ForRelease: false
Condition: succeededOrFailed()

- script: |
python -m pip install "./tools/azure-sdk-tools[build]" -q -I
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/templates/steps/analyze_dependency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ steps:
displayName: 'Install Python Tools'
condition: succeededOrFailed()

- template: /eng/common/pipelines/templates/steps/verify-readme.yml
- template: /eng/common/pipelines/templates/steps/verify-readmes.yml
parameters:
ScanPath: ${{ parameters.ScanPath }}
PackagePropertiesFolder: $(Build.ArtifactStagingDirectory)/PackageInfo
Condition: succeededOrFailed()

- pwsh: |
Expand Down
Loading