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

Applying comments from API Review #18662

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
539379f
Removing return response for Pause/Resume/Stop recording
cochi2 Nov 4, 2021
b40f44f
Removing validations
cochi2 Nov 4, 2021
fb9d57f
Merge remote-tracking branch 'upstream/feature/communication-CallingS…
cochi2 Nov 11, 2021
cae2668
Fixes after merge
cochi2 Nov 11, 2021
71df0a4
Added downloadToFile operation
cochi2 Nov 11, 2021
e334435
Added downloadToFile test
cochi2 Nov 11, 2021
95cc23b
Updating API MD file
cochi2 Nov 11, 2021
af164bb
Fixing format auto
cochi2 Nov 11, 2021
7fa71af
Renaming files
cochi2 Nov 12, 2021
d3c1802
[KeyVault] - Move MHSM to resource group location (#18664)
maorleger Nov 12, 2021
39c0bcb
Add default cloud configuration values to source (#18653)
azure-sdk Nov 12, 2021
9de3024
Merge branch 'feature/communication-CallingServer-preview' into fmora…
cochi2 Nov 13, 2021
ed24a5e
simplify the commit history so that the patch can apply properly (#18…
azure-sdk Nov 13, 2021
5c81e14
Updating name for header
cochi2 Nov 13, 2021
8d28332
[Event Hubs] Merge feature branch for buffered producer (#18590)
deyaaeldeen Nov 13, 2021
64480ad
[Event Hubs] Prepare release (#18672)
deyaaeldeen Nov 13, 2021
dc47dcb
Node doesn't support some samples for smoke test (#18496)
sarangan12 Nov 13, 2021
e44e8a9
Add rlc quickstart guideline (#18503)
qiaozha Nov 15, 2021
619a27a
Running Rush update
cochi2 Nov 15, 2021
8d9d4e6
Sync eng/common directory with azure-sdk-tools for PR 2265 (#18683)
azure-sdk Nov 15, 2021
26ca5a7
Build and test predefined set of packages only in identity pipelines …
praveenkuttappan Nov 15, 2021
a3a6f93
Merge branch 'main' into feature/communication-CallingServer-preview
cochi2 Nov 15, 2021
34a0eae
Merge branch 'feature/communication-CallingServer-preview' into fmora…
cochi2 Nov 15, 2021
84b5cba
Merge remote-tracking branch 'upstream/feature/communication-CallingS…
cochi2 Nov 15, 2021
eda7ac0
Merge branch 'feature/communication-CallingServer-preview' into fmora…
cochi2 Nov 15, 2021
3de0451
Fixing playback testing
cochi2 Nov 15, 2021
339b320
Run rushx format
cochi2 Nov 15, 2021
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
380 changes: 342 additions & 38 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

517 changes: 517 additions & 0 deletions documentation/RLC-quickstart.md

Large diffs are not rendered by default.

26 changes: 22 additions & 4 deletions eng/common/TestResources/New-TestResources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,13 @@ if (!$PSBoundParameters.ContainsKey('ErrorAction')) {
$ErrorActionPreference = 'Stop'
}

function Log($Message) {
function Log($Message)
{
Write-Host ('{0} - {1}' -f [DateTime]::Now.ToLongTimeString(), $Message)
}

function Retry([scriptblock] $Action, [int] $Attempts = 5) {
function Retry([scriptblock] $Action, [int] $Attempts = 5)
{
$attempt = 0
$sleep = 5

Expand All @@ -109,7 +111,20 @@ function Retry([scriptblock] $Action, [int] $Attempts = 5) {
}
}

function MergeHashes([hashtable] $source, [psvariable] $dest) {
function LoadCloudConfig([string] $env)
{
$configPath = "$PSScriptRoot/clouds/$env.json"
if (!(Test-Path $configPath)) {
Write-Warning "Could not find cloud configuration for environment '$env'"
return @{}
}

$config = Get-Content $configPath | ConvertFrom-Json -AsHashtable
return $config
}

function MergeHashes([hashtable] $source, [psvariable] $dest)
{
foreach ($key in $source.Keys) {
if ($dest.Value.ContainsKey($key) -and $dest.Value[$key] -ne $source[$key]) {
Write-Warning ("Overwriting '$($dest.Name).$($key)' with value '$($dest.Value[$key])' " +
Expand All @@ -119,7 +134,8 @@ function MergeHashes([hashtable] $source, [psvariable] $dest) {
}
}

function BuildBicepFile([System.IO.FileSystemInfo] $file) {
function BuildBicepFile([System.IO.FileSystemInfo] $file)
{
if (!(Get-Command bicep -ErrorAction Ignore)) {
Write-Error "A bicep file was found at '$($file.FullName)' but the Azure Bicep CLI is not installed. See https://aka.ms/install-bicep-pwsh"
throw
Expand Down Expand Up @@ -492,6 +508,8 @@ try {
$templateParameters.Add('testApplicationSecret', $TestApplicationSecret)
}

$defaultCloudParameters = LoadCloudConfig $Environment
MergeHashes $defaultCloudParameters $(Get-Variable templateParameters)
MergeHashes $ArmTemplateParameters $(Get-Variable templateParameters)
MergeHashes $AdditionalParameters $(Get-Variable templateParameters)

Expand Down
15 changes: 15 additions & 0 deletions eng/common/TestResources/clouds/AzureChinaCloud.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"azConfigEndpointSuffix": ".azconfig.azure.cn",
"azureAuthorityHost": "https://login.chinacloudapi.cn/",
"cognitiveServicesEndpointSuffix": ".cognitiveservices.azure.cn",
"containerRegistryEndpointSuffix": ".azurecr.cn",
"cosmosEndpointSuffix": "cosmos.azure.cn",
"enableStorageVersioning": false,
"keyVaultDomainSuffix": ".vault.azure.cn",
"keyVaultEndpointSuffix": ".vault.azure.cn",
"keyVaultSku": "standard",
"searchEndpointSuffix": "search.azure.cn",
"serviceBusEndpointSuffix": ".servicebus.chinacloudapi.cn",
"storageEndpointSuffix": "core.chinacloudapi.cn",
"textAnalyticsSku": "S"
}
8 changes: 8 additions & 0 deletions eng/common/TestResources/clouds/AzureCloud.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"azureAuthorityHost": "https://login.microsoftonline.com/",
"cognitiveServicesEndpointSuffix": ".cognitiveservices.azure.com",
"communicationServicesEndpointSuffix": ".communication.azure.com",
"keyVaultDomainSuffix": ".vault.azure.net",
"keyVaultEndpointSuffix": ".vault.azure.net",
"storageEndpointSuffix": "core.windows.net"
}
15 changes: 15 additions & 0 deletions eng/common/TestResources/clouds/AzureUSGovernment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"azConfigEndpointSuffix": ".azconfig.azure.us",
"azureAuthorityHost": "https://login.microsoftonline.us/",
"cognitiveServicesEndpointSuffix": ".cognitiveservices.azure.us",
"containerRegistryEndpointSuffix": ".azurecr.us",
"cosmosEndpointSuffix": "cosmos.azure.us",
"enableStorageVersioning": false,
"formRecognizerLocation": "usgovvirginia",
"keyVaultDomainSuffix": ".vault.usgovcloudapi.net",
"keyVaultEndpointSuffix": ".vault.usgovcloudapi.net",
"keyVaultSku": "premium",
"searchEndpointSuffix": "search.azure.us",
"serviceBusEndpointSuffix": ".servicebus.usgovcloudapi.net",
"storageEndpointSuffix": "core.usgovcloudapi.net"
}
14 changes: 10 additions & 4 deletions eng/common/scripts/Verify-Links.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,10 @@ function CheckLink ([System.Uri]$linkUri, $allowRetry=$true)

if ($statusCode -in $errorStatusCodes) {
if ($originalLinkUri -ne $linkUri) {
LogWarning "[$statusCode] broken link $originalLinkUri (resolved to $linkUri)"
LogError "[$statusCode] broken link $originalLinkUri (resolved to $linkUri)"
}
else {
LogWarning "[$statusCode] broken link $linkUri"
LogError "[$statusCode] broken link $linkUri"
}

$linkValid = $false
Expand Down Expand Up @@ -423,14 +423,17 @@ foreach ($url in $urls) {
$pageUrisToCheck.Enqueue($uri);
}

if ($devOpsLogging) {
Write-Host "##[group]Link checking details"
}
while ($pageUrisToCheck.Count -ne 0)
{
$pageUri = $pageUrisToCheck.Dequeue();
if ($checkedPages.ContainsKey($pageUri)) { continue }
$checkedPages[$pageUri] = $true;

$linkUris = GetLinks $pageUri
Write-Host "Found $($linkUris.Count) links on page $pageUri";
Write-Host "Checking $($linkUris.Count) links found on page $pageUri";
$badLinksPerPage = @();
foreach ($linkUri in $linkUris) {
$isLinkValid = CheckLink $linkUri
Expand All @@ -450,6 +453,9 @@ while ($pageUrisToCheck.Count -ne 0)
$badLinks[$pageUri] = $badLinksPerPage
}
}
if ($devOpsLogging) {
Write-Host "##[endgroup]"
}

if ($badLinks.Count -gt 0) {
Write-Host "Summary of broken links:"
Expand All @@ -464,7 +470,7 @@ foreach ($pageLink in $badLinks.Keys) {
$linksChecked = $checkedLinks.Count - $cachedLinksCount

if ($badLinks.Count -gt 0) {
LogError "Checked $linksChecked links with $($badLinks.Count) page(s) broken."
Write-Host "Checked $linksChecked links with $($badLinks.Count) broken link(s) found."
}
else {
Write-Host "Checked $linksChecked links. No broken links found."
Expand Down
4 changes: 2 additions & 2 deletions eng/common/testproxy/test-proxy-tool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ steps:
- pwsh: |
Start-Process $(Build.BinariesDirectory)/test-proxy/test-proxy.exe `
-ArgumentList "--storage-location '${{ parameters.rootFolder }}'" `
-NoNewWindow -PassThru
-NoNewWindow -PassThru -RedirectStandardOutput $(Build.SourcesDirectory)/test-proxy.log
displayName: 'Run the testproxy - windows'
condition: and(succeeded(), eq(variables['Agent.OS'],'Windows_NT'))

# nohup does NOT continue beyond the current session if you use it within powershell
- bash: |
nohup $(Build.BinariesDirectory)/test-proxy/test-proxy &
nohup $(Build.BinariesDirectory)/test-proxy/test-proxy > $(Build.SourcesDirectory)/test-proxy.log &
displayName: "Run the testproxy - linux/mac"
condition: and(succeeded(), ne(variables['Agent.OS'],'Windows_NT'))
workingDirectory: "${{ parameters.rootFolder }}"
17 changes: 16 additions & 1 deletion eng/tools/rush-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,22 @@ const reducedDependencyTestMatrix = {
'@azure/identity-vscode',
'@azure/storage-file-share',
'@azure/template'
]
],
'identity': [
'@azure-rest/core-client',
'@azure-rest/core-client-lro',
'@azure-rest/core-client-paging',
'@azure-rest/purview-account',
'@azure-tests/perf-storage-blob',
'@azure/ai-text-analytics',
'@azure/arm-compute',
'@azure/identity-cache-persistence',
'@azure/identity-vscode',
'@azure/service-bus',
'@azure/storage-blob',
'@azure/template',
'@azure/synapse-monitoring'
],
};

const parseArgs = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"stream": "./node_modules/stream-browserify/index.js",
"./dist-esm/src/credentials/cryptoUtils.js": "./dist-esm/src/credentials/cryptoUtils.browser.js",
"./dist-esm/src/RepeatableContentDownloadResponse.js": "./dist-esm/src/RepeatableContentDownloadResponse.browser.js",
"./dist-esm/src/utils/utils.node.js": "./dist-esm/src/utils/utils.browser.js",
"./dist-esm/test/public/utils/index.js": "./dist-esm/test/public/utils/index.browser.js"
},
"types": "types/communication-calling-server.d.ts",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading