-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-python …
…into fr-business-cards * 'master' of https://github.com/Azure/azure-sdk-for-python: (71 commits) move the environment prep above the tooling that needs it (#14246) Increment version for appconfiguration releases (#14245) Azure Communication Service - Phone Number Administration (#14237) [text analytics] fix query param in cli call to get endpoint (#14243) Resolve Failing Documentation Build for azure-mgmt-core (#14239) Add code reviewers (#14229) [ServiceBus] make amqp_message properties read-only (#14095) [ServiceBus]remove topic parameter object settability (#14116) app config owner (#12986) [KeyVault] Handle Role Definition UUID Name Internally (#14218) Increment version for storage releases (#14224) Update Key Vault changelogs for October release (#14226) [ServiceBus] CI Test hotfixes (#14195) [text analytics] regen TA with GA autorest (#14215) [Storage][STG74]ChangeLog (#14192) fixes python 2.7 issue with unicode and strings again! (#14216) Feature/storage stg74 (#14175) Update communication pacakges to version b2 (#14209) [KeyVault] Add Status Methods to Query Backup and Restore Operations (#14158) Update buffered sender (#13851) ...
- Loading branch information
Showing
1,747 changed files
with
208,678 additions
and
19,326 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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
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
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
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,36 @@ | ||
# Cloud Configuration will be splat into parameters of `Add-AzEnvironment`. It | ||
# should be JSON in the form (not all fields are required): | ||
# { | ||
# "Name": "<environment name>", | ||
# "PublishSettingsFileUrl": "<publish settings file url>", | ||
# "ServiceEndpoint": "<service endpoint>", | ||
# "ManagementPortalUrl": "<management portal url>", | ||
# "ActiveDirectoryEndpoint": "<active directory endpoint>", | ||
# "ActiveDirectoryServiceEndpointResourceId": "<active directory service endpoint resource id>", | ||
# "ResourceManagerEndpoint": "<resource manager endpoint>", | ||
# "GalleryEndpoint": "<gallery endpoint>", | ||
# "GraphEndpoint": "<graph endpoint>", | ||
# "GraphAudience": "<graph audience>", | ||
# "AzureKeyVaultDnsSuffix": "<key vault suffix>", | ||
# "AzureKeyVaultServiceEndpointResourceId": "<key vault service endpoint resource id>" | ||
# } | ||
|
||
steps: | ||
- bash: sudo chown -R runner ~/.Azure | ||
displayName: (MacOS) Grant access to ~/.Azure | ||
condition: contains(variables['OSVmImage'], 'mac') | ||
|
||
# New-TestResources command requires Az module | ||
- pwsh: Install-Module -Name Az -Scope CurrentUser -AllowClobber -Force -Verbose | ||
displayName: Install Azure PowerShell module | ||
|
||
- task: Powershell@2 | ||
inputs: | ||
displayName: Register Dogfood environment | ||
targetType: inline | ||
pwsh: true | ||
script: | | ||
$environmentSpec = @" | ||
$(env-config-dogfood) | ||
"@ | ConvertFrom-Json -AsHashtable; | ||
Add-AzEnvironment @environmentSpec |
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,62 @@ | ||
<# | ||
.SYNOPSIS | ||
Uploads the release asset and returns the resulting object from the upload | ||
.PARAMETER ReleaseTag | ||
Tag to look up release | ||
.PARAMETER AssetPath | ||
Location of the asset file to upload | ||
.PARAMETER GitHubRepo | ||
Name of the GitHub repo to search (of the form Azure/azure-sdk-for-cpp) | ||
#> | ||
|
||
param ( | ||
[Parameter(Mandatory = $true)] | ||
[ValidateNotNullOrEmpty()] | ||
[string] $ReleaseTag, | ||
|
||
[Parameter(Mandatory = $true)] | ||
[ValidateNotNullOrEmpty()] | ||
[string] $AssetPath, | ||
|
||
[Parameter(Mandatory = $true)] | ||
[ValidateNotNullOrEmpty()] | ||
[string] $GitHubRepo, | ||
|
||
[Parameter(Mandatory = $true)] | ||
[ValidateNotNullOrEmpty()] | ||
[string] $GitHubPat | ||
) | ||
|
||
# Get information about release at $ReleaseTag | ||
$releaseInfoUrl = "https://api.github.com/repos/$GitHubRepo/releases/tags/$ReleaseTag" | ||
Write-Verbose "Requesting release info from $releaseInfoUrl" | ||
$release = Invoke-RestMethod ` | ||
-Uri $releaseInfoUrl ` | ||
-Method GET | ||
|
||
$assetFilename = Split-Path $AssetPath -Leaf | ||
|
||
# Upload URL comes in the literal form (yes, those curly braces) of: | ||
# https://uploads.github.com/repos/Azure/azure-sdk-for-cpp/releases/123/assets{?name,label} | ||
# Converts to something like: | ||
# https://uploads.github.com/repos/Azure/azure-sdk-for-cpp/releases/123/assets?name=foo.tar.gz | ||
# Docs: https://docs.github.com/en/rest/reference/repos#get-a-release-by-tag-name | ||
$uploadUrl = $release.upload_url.Split('{')[0] + "?name=$assetFilename" | ||
|
||
Write-Verbose "Uploading $assetFilename to $uploadUrl" | ||
|
||
$asset = Invoke-RestMethod ` | ||
-Uri $uploadUrl ` | ||
-Method POST ` | ||
-InFile $AssetPath ` | ||
-Credential $credentials ` | ||
-Headers @{ Authorization = "token $GitHubPat" } ` | ||
-ContentType "application/gzip" | ||
|
||
Write-Verbose "Upload complete. Browser download URL: $($asset.browser_download_url)" | ||
|
||
return $asset |
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
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
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,39 @@ | ||
# Overides the project file and CHANGELOG.md for the template project using the next publishable version | ||
# This is to help with testing the release pipeline. | ||
. "${PSScriptRoot}\..\common\scripts\common.ps1" | ||
$latestTags = git tag -l "azure-template_*" | ||
$semVars = @() | ||
|
||
$versionFile = "${PSScriptRoot}\..\..\sdk\template\azure-template\azure\template\_version.py" | ||
$changeLogFile = "${PSScriptRoot}\..\..\sdk\template\azure-template\CHANGELOG.md" | ||
|
||
Foreach ($tags in $latestTags) | ||
{ | ||
$semVars += $tags.Replace("azure-template_", "") | ||
} | ||
|
||
$semVarsSorted = [AzureEngSemanticVersion]::SortVersionStrings($semVars) | ||
LogDebug "Last Published Version $($semVarsSorted[0])" | ||
|
||
$newVersion = [AzureEngSemanticVersion]::ParsePythonVersionString($semVarsSorted[0]) | ||
$newVersion.IncrementAndSetToPrerelease() | ||
LogDebug "Version to publish [ $($newVersion.ToString()) ]" | ||
|
||
$versionFileContent = Get-Content -Path $versionFile | ||
$newVersionFile = @() | ||
|
||
Foreach ($line in $versionFileContent) | ||
{ | ||
if($line.StartsWith("VERSION")) | ||
{ | ||
$line = 'VERSION = "{0}"' -F $newVersion.ToString() | ||
} | ||
$newVersionFile += $line | ||
} | ||
|
||
Set-Content -Path $versionFile -Value $newVersionFile | ||
Set-Content -Path $changeLogFile -Value @" | ||
# Release History | ||
## $($newVersion.ToString()) ($(Get-Date -f "yyyy-MM-dd")) | ||
- Test Release Pipeline | ||
"@ |
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
Oops, something went wrong.