-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade msal extensions to 0.2.0 * Bump msal version everywhere * Address readme feedback * Bump identity version to 1.0.9 * Increment package version after release of com.azure azure-identity (#12871) (#13217) Co-authored-by: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> * Fix merge error * fix build errors and tests * Migrate file cache tests * Fix eventhubs test and add change log * Ignored flaky CF tests (#12915) * Sync with master eng/common * Update change log date Co-authored-by: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Co-authored-by: Gauri Prasad <51212198+gapra-msft@users.noreply.github.com>
- Loading branch information
1 parent
c4f92a5
commit 4875a2e
Showing
32 changed files
with
554 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
eng/common/pipelines/templates/steps/daily-dev-build-variable.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This script fragment is used across our repos to set a variable "SetDevVersion" which | ||
# is used when this pipeline is going to be generating and publishing daily dev builds. | ||
|
||
steps: | ||
- pwsh: | | ||
$setDailyDevBuild = "false" | ||
if (('$(Build.Reason)' -eq 'Schedule') -and ('$(System.TeamProject)' -eq 'internal')) { | ||
$setDailyDevBuild = "true" | ||
} | ||
echo "##vso[task.setvariable variable=SetDevVersion]$setDailyDevBuild" | ||
displayName: "Setup Versioning Properties" | ||
condition: eq(variables['SetDevVersion'], '') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
parameters: | ||
TargetVariable: '' | ||
ServiceDirectory: '' | ||
|
||
steps: | ||
- pwsh: | | ||
git clone https://github.com/Azure/azure-sdk-tools.git $(Build.SourcesDirectory)/tools_repo | ||
cd $(Build.SourcesDirectory)/tools_repo | ||
git checkout 564ad63ae72d18422533fa1da9d396e7703c1cb5 | ||
displayName: Setup Identity Resolver | ||
- pwsh: | | ||
$result = dotnet run -v q -- ` | ||
--aad-app-id-var APP_ID ` | ||
--aad-app-secret-var APP_SECRET ` | ||
--aad-tenant-var AAD_TENANT ` | ||
--kusto-url-var KUSTO_URL ` | ||
--kusto-database-var KUSTO_DB ` | ||
--kusto-table-var KUSTO_TABLE ` | ||
--identity "$(Build.QueuedBy)" | ||
$resolvedIdentity = $result[-1] | ConvertFrom-Json | ||
Write-Host $resolvedIdentity | ||
Write-Output "##vso[task.setvariable variable=${{ parameters.TargetVariable }}]$($resolvedIdentity.GithubUserName)" | ||
displayName: 'Resolving Queuing User' | ||
workingDirectory: $(Build.SourcesDirectory)/tools_repo/tools/notification-configuration/identity-resolver | ||
env: | ||
APP_ID: $(notification-aad-app-id) | ||
APP_SECRET: $(notification-aad-secret) | ||
AAD_TENANT: $(notification-aad-tenant) | ||
KUSTO_URL: $(notification-kusto-url) | ||
KUSTO_DB: $(notification-kusto-db) | ||
KUSTO_TABLE: $(notification-kusto-table) | ||
- pwsh: | | ||
Remove-Item -Force -Recurse $(Build.SourcesDirectory)/tools_repo | ||
displayName: Clean Up Cloned Tools Repo | ||
- pwsh: | | ||
$originalValue = "$(${{ parameters.TargetVariable }})" | ||
$result = $(Build.SourcesDirectory)/eng/common/scripts/get-codeowners.ps1 -TargetDirectory /sdk/${{ parameters.ServiceDirectory }}/ -RootDirectory $(Build.SourcesDirectory) | ||
if ($result) { | ||
Write-Output "##vso[task.setvariable variable=${{ parameters.TargetVariable }}]$originalValue,$result" | ||
} | ||
displayName: Add CodeOwners if Present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,48 @@ | ||
# Wrapper Script for ChangeLog Verification | ||
param ( | ||
[String]$ChangeLogLocation, | ||
[String]$VersionString, | ||
[string]$PackageName, | ||
[string]$ServiceName, | ||
[string]$RepoRoot, | ||
[ValidateSet("net","java","js","python")] | ||
[string]$Language, | ||
[string]$RepoName, | ||
[boolean]$ForRelease=$False | ||
[String]$ChangeLogLocation, | ||
[String]$VersionString, | ||
[string]$PackageName, | ||
[string]$ServiceName, | ||
[string]$RepoRoot, | ||
[ValidateSet("net", "java", "js", "python")] | ||
[string]$Language, | ||
[string]$RepoName, | ||
[boolean]$ForRelease = $False | ||
) | ||
|
||
$ProgressPreference = "SilentlyContinue" | ||
. (Join-Path $PSScriptRoot SemVer.ps1) | ||
Import-Module (Join-Path $PSScriptRoot modules ChangeLog-Operations.psm1) | ||
|
||
if ((Test-Path $ChangeLogLocation) -and -not([System.String]::IsNullOrEmpty($VersionString))) | ||
$validChangeLog = $false | ||
if ($ChangeLogLocation -and $VersionString) | ||
{ | ||
Confirm-ChangeLogEntry -ChangeLogLocation $ChangeLogLocation -VersionString $VersionString -ForRelease $ForRelease | ||
$validChangeLog = Confirm-ChangeLogEntry -ChangeLogLocation $ChangeLogLocation -VersionString $VersionString -ForRelease $ForRelease | ||
} | ||
else | ||
else | ||
{ | ||
Import-Module (Join-Path $PSScriptRoot modules Package-Properties.psm1) | ||
if ([System.String]::IsNullOrEmpty($Language)) | ||
Import-Module (Join-Path $PSScriptRoot modules Package-Properties.psm1) | ||
if ([System.String]::IsNullOrEmpty($Language)) | ||
{ | ||
if ($RepoName -match "azure-sdk-for-(?<lang>[^-]+)") | ||
{ | ||
$Language = $RepoName.Substring($RepoName.LastIndexOf('-') + 1) | ||
$Language = $matches["lang"] | ||
} | ||
else | ||
{ | ||
Write-Error "Failed to set Language automatically. Please pass the appropriate Language as a parameter." | ||
exit 1 | ||
} | ||
} | ||
|
||
$PackageProp = Get-PkgProperties -PackageName $PackageName -ServiceName $ServiceName -Language $Language -RepoRoot $RepoRoot | ||
$validChangeLog = Confirm-ChangeLogEntry -ChangeLogLocation $PackageProp.pkgChangeLogPath -VersionString $PackageProp.pkgVersion -ForRelease $ForRelease | ||
} | ||
|
||
if (!$validChangeLog) | ||
{ | ||
exit 1 | ||
} | ||
|
||
$PackageProp = Get-PkgProperties -PackageName $PackageName -ServiceName $ServiceName -Language $Language -RepoRoot $RepoRoot | ||
Confirm-ChangeLogEntry -ChangeLogLocation $PackageProp.pkgChangeLogPath -VersionString $PackageProp.pkgVersion -ForRelease $ForRelease | ||
} | ||
exit 0 |
Oops, something went wrong.