Skip to content

Commit 0578a8a

Browse files
Neehar DuvvuriNeehar Duvvuri
authored andcommitted
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python into needuv/structured-results-otel-logging
2 parents 6ac7f0e + 1e53ab7 commit 0578a8a

File tree

370 files changed

+11043
-10064
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

370 files changed

+11043
-10064
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,12 @@
6262
# PRLabel: %Storage
6363
/sdk/storage/ @annatisch @jalauzon-msft @vincenttran-msft @weirongw23-msft
6464

65-
# AzureSdkOwners: @xiangyan99
65+
# AzureSdkOwners: @mrm9084
6666
# ServiceLabel: %App Configuration
6767
# ServiceOwners: @albertofori @avanigupta @mrm9084
6868

6969
# PRLabel: %App Configuration
70-
/sdk/appconfiguration/ @xiangyan99
71-
72-
# ServiceOwners: @mrm9084
73-
# ServiceLabel: %App Configuration Provider
74-
75-
# PRLabel: %App Configuration Provider
76-
/sdk/appconfiguration/azure-appconfiguration-provider/ @albertofori @avanigupta @mrm9084 @rossgrambo
70+
/sdk/appconfiguration/ @albertofori @avanigupta @mrm9084 @rossgrambo @xiangyan99
7771

7872
# ServiceLabel: %Attestation
7973
# PRLabel: %Attestation

.vscode/cspell.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1873,6 +1873,14 @@
18731873
"Onvif"
18741874
]
18751875
},
1876+
{
1877+
"filename": "sdk/confidentialledger/azure-confidentialledger/**",
1878+
"words": [
1879+
"mrenclave",
1880+
"MRENCLAVE",
1881+
"oeverify"
1882+
]
1883+
},
18761884
{
18771885
"filename": "sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/_operations/*.py",
18781886
"words": [

doc/dev/how_to_request_a_feature_in_sdk.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

eng/common/pipelines/templates/steps/set-vcpkg-cache-vars.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2+
parameters:
3+
- name: TokenTimeoutInHours
4+
type: number
5+
default: 1
6+
17
steps:
28
- pwsh: |
39
Write-Host "Setting vcpkg cache variables for read only access to vcpkg binary and asset caches"
@@ -12,6 +18,7 @@ steps:
1218
azureSubscription: 'Azure SDK Artifacts'
1319
ScriptType: FilePath
1420
ScriptPath: eng/common/scripts/Set-VcpkgWriteModeCache.ps1
21+
ScriptArguments: -TokenTimeoutInHours ${{ parameters.TokenTimeoutInHours }}
1522
azurePowerShellVersion: LatestVersion
1623
pwsh: true
1724
# This step is idempotent and can be run multiple times in cases of

eng/common/pipelines/templates/steps/validate-all-packages.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
11
parameters:
2-
ArtifactPath: $(Build.ArtifactStagingDirectory)
3-
Artifacts: []
4-
ConfigFileDir: $(Build.ArtifactStagingDirectory)/PackageInfo
2+
- name: ArtifactPath
3+
type: string
4+
default: $(Build.ArtifactStagingDirectory)
5+
- name: Artifacts
6+
type: object
7+
default: []
8+
- name: ConfigFileDir
9+
type: string
10+
default: $(Build.ArtifactStagingDirectory)/PackageInfo
11+
- name: PackageInfoFiles
12+
type: object
13+
default: []
514

615
steps:
716
- ${{ if and(ne(variables['Skip.PackageValidation'], 'true'), and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.TeamProject'], 'internal'))) }}:
817
- pwsh: |
918
echo "##vso[task.setvariable variable=SetAsReleaseBuild]false"
1019
displayName: "Set as release build"
11-
condition: and(succeeded(), eq(variables['SetAsReleaseBuild'], ''))
20+
condition: and(succeededOrFailed(), eq(variables['SetAsReleaseBuild'], ''))
1221
1322
- task: AzureCLI@2
1423
inputs:
@@ -24,7 +33,8 @@ steps:
2433
-ConfigFileDir '${{ parameters.ConfigFileDir }}' `
2534
-BuildDefinition $(System.CollectionUri)$(System.TeamProject)/_build?definitionId=$(System.DefinitionId) `
2635
-PipelineUrl $(System.CollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId) `
27-
-IsReleaseBuild $$(SetAsReleaseBuild)
36+
-IsReleaseBuild $$(SetAsReleaseBuild) `
37+
-PackageInfoFiles ('${{ convertToJson(parameters.PackageInfoFiles) }}' | ConvertFrom-Json -NoEnumerate)
2838
workingDirectory: $(Pipeline.Workspace)
2939
displayName: Validate packages and update work items
3040
continueOnError: true

eng/common/scripts/Create-APIReview.ps1

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Set-StrictMode -Version 3
2424
. (Join-Path $PSScriptRoot Helpers ApiView-Helpers.ps1)
2525

2626
# Submit API review request and return status whether current revision is approved or pending or failed to create review
27-
function Upload-SourceArtifact($filePath, $apiLabel, $releaseStatus, $packageVersion)
27+
function Upload-SourceArtifact($filePath, $apiLabel, $releaseStatus, $packageVersion, $packageType)
2828
{
2929
Write-Host "File path: $filePath"
3030
$fileName = Split-Path -Leaf $filePath
@@ -61,6 +61,13 @@ function Upload-SourceArtifact($filePath, $apiLabel, $releaseStatus, $packageVer
6161
$multipartContent.Add($releaseTagParamContent)
6262
Write-Host "Request param, setReleaseTag: $MarkPackageAsShipped"
6363

64+
$packageTypeParam = [System.Net.Http.Headers.ContentDispositionHeaderValue]::new("form-data")
65+
$packageTypeParam.Name = "packageType"
66+
$packageTypeParamContent = [System.Net.Http.StringContent]::new($packageType)
67+
$packageTypeParamContent.Headers.ContentDisposition = $packageTypeParam
68+
$multipartContent.Add($packageTypeParamContent)
69+
Write-Host "Request param, packageType: $packageType"
70+
6471
if ($releaseStatus -and ($releaseStatus -ne "Unreleased"))
6572
{
6673
$compareAllParam = [System.Net.Http.Headers.ContentDispositionHeaderValue]::new("form-data")
@@ -92,14 +99,14 @@ function Upload-SourceArtifact($filePath, $apiLabel, $releaseStatus, $packageVer
9299
return $StatusCode
93100
}
94101

95-
function Upload-ReviewTokenFile($packageName, $apiLabel, $releaseStatus, $reviewFileName, $packageVersion, $filePath)
102+
function Upload-ReviewTokenFile($packageName, $apiLabel, $releaseStatus, $reviewFileName, $packageVersion, $filePath, $packageType)
96103
{
97104
Write-Host "Original File path: $filePath"
98105
$fileName = Split-Path -Leaf $filePath
99106
Write-Host "OriginalFile name: $fileName"
100107

101108
$params = "buildId=${BuildId}&artifactName=${ArtifactName}&originalFilePath=${fileName}&reviewFilePath=${reviewFileName}"
102-
$params += "&label=${apiLabel}&repoName=${RepoName}&packageName=${packageName}&project=internal&packageVersion=${packageVersion}"
109+
$params +="&label=${apiLabel}&repoName=${RepoName}&packageName=${packageName}&project=internal&packageVersion=${packageVersion}&packageType=${packageType}"
103110
if($MarkPackageAsShipped) {
104111
$params += "&setReleaseTag=true"
105112
}
@@ -146,17 +153,18 @@ function Get-APITokenFileName($packageName)
146153
function Submit-APIReview($packageInfo, $packagePath)
147154
{
148155
$apiLabel = "Source Branch:${SourceBranch}"
156+
$packageType = $packageInfo.SdkType
149157

150158
# Get generated review token file if present
151159
# APIView processes request using different API if token file is already generated
152160
$reviewTokenFileName = Get-APITokenFileName $packageInfo.ArtifactName
153161
if ($reviewTokenFileName) {
154162
Write-Host "Uploading review token file $reviewTokenFileName to APIView."
155-
return Upload-ReviewTokenFile $packageInfo.ArtifactName $apiLabel $packageInfo.ReleaseStatus $reviewTokenFileName $packageInfo.Version $packagePath
163+
return Upload-ReviewTokenFile $packageInfo.ArtifactName $apiLabel $packageInfo.ReleaseStatus $reviewTokenFileName $packageInfo.Version $packagePath $packageType
156164
}
157165
else {
158166
Write-Host "Uploading $packagePath to APIView."
159-
return Upload-SourceArtifact $packagePath $apiLabel $packageInfo.ReleaseStatus $packageInfo.Version
167+
return Upload-SourceArtifact $packagePath $apiLabel $packageInfo.ReleaseStatus $packageInfo.Version $packageType
160168
}
161169
}
162170

eng/common/scripts/Detect-Api-Changes.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Param (
2222
$configFileDir = Join-Path -Path $ArtifactPath "PackageInfo"
2323

2424
# Submit API review request and return status whether current revision is approved or pending or failed to create review
25-
function Submit-Request($filePath, $packageName)
25+
function Submit-Request($filePath, $packageName, $packageType)
2626
{
2727
$repoName = $RepoFullName
2828
if (!$repoName) {
@@ -39,6 +39,7 @@ function Submit-Request($filePath, $packageName)
3939
$query.Add('packageName', $packageName)
4040
$query.Add('language', $LanguageShort)
4141
$query.Add('project', $DevopsProject)
42+
$query.Add('packageType', $packageType)
4243
$reviewFileFullName = Join-Path -Path $ArtifactPath $packageName $reviewFileName
4344
# If CI generates token file then it passes both token file name and original file (filePath) to APIView
4445
# If both files are passed then APIView downloads the parent directory as a zip
@@ -126,6 +127,7 @@ foreach ($packageInfoFile in $packageInfoFiles)
126127
{
127128
$packageInfo = Get-Content $packageInfoFile | ConvertFrom-Json
128129
$pkgArtifactName = $packageInfo.ArtifactName ?? $packageInfo.Name
130+
$packageType = $packageInfo.SdkType
129131

130132
LogInfo "Processing $($pkgArtifactName)"
131133

@@ -157,7 +159,7 @@ foreach ($packageInfoFile in $packageInfoFiles)
157159
if ($isRequired -eq $True)
158160
{
159161
$filePath = $pkgPath.Replace($ArtifactPath , "").Replace("\", "/")
160-
$respCode = Submit-Request -filePath $filePath -packageName $pkgArtifactName
162+
$respCode = Submit-Request -filePath $filePath -packageName $pkgArtifactName -packageType $packageType
161163
if ($respCode -ne '200')
162164
{
163165
$responses[$pkgArtifactName] = $respCode

0 commit comments

Comments
 (0)