Skip to content

Commit 37543c4

Browse files
azure-sdkscbedd
andauthored
Sync eng/common directory with azure-sdk-tools for PR 8974 (Azure#37417)
* updating package properties with direct/indirect (if named differently) as well as pulling BuildDocs from ci.yml artifact list if it exists * eliminate the addition of buildDocs property. it requires powershell-yaml to be present on our base function. not good * remove call to InitializeBuildDocs --------- Co-authored-by: Scott Beddall <[email protected]>
1 parent 9a8f379 commit 37543c4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

eng/common/scripts/Package-Properties.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ class PackageProps
1515
[boolean]$IsNewSdk
1616
[string]$ArtifactName
1717
[string]$ReleaseStatus
18+
# was this package purely included because other packages included it as an AdditionalValidationPackage?
19+
[boolean]$IncludedForValidation
20+
# does this package include other packages that we should trigger validation for?
1821
[string[]]$AdditionalValidationPackages
1922

2023
PackageProps([string]$name, [string]$version, [string]$directoryPath, [string]$serviceDirectory)
@@ -38,6 +41,7 @@ class PackageProps
3841
$this.Version = $version
3942
$this.DirectoryPath = $directoryPath
4043
$this.ServiceDirectory = $serviceDirectory
44+
$this.IncludedForValidation = $false
4145

4246
if (Test-Path (Join-Path $directoryPath "README.md"))
4347
{
@@ -143,6 +147,7 @@ function Get-PrPkgProperties([string]$InputDiffJson) {
143147
$key = $addition.Replace($RepoRoot, "").TrimStart('\/')
144148

145149
if ($lookup[$key]) {
150+
$lookup[$key].IncludedForValidation = $true
146151
$packagesWithChanges += $lookup[$key]
147152
}
148153
}

0 commit comments

Comments
 (0)