Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
473dde2
add managed network and regenerate restclient
Jan 5, 2023
47f5c51
update managednetworksettings outboundrules
Jan 17, 2023
013e4d9
fix test failure, add network id
Feb 4, 2023
5bfd95d
add managed network tests
Feb 6, 2023
7e6dd19
implement outbound rule operations
Feb 7, 2023
5956580
move constants to constants._workspace
Feb 7, 2023
0319aee
add experimental tags
Feb 7, 2023
3e9138b
add experimental tags to network schema
Feb 7, 2023
d0a9e5a
add workspace outbound rule tests
Feb 7, 2023
a197aea
update to spark enabled
Feb 9, 2023
d473f6d
fix pylint
Feb 9, 2023
2878c05
fix
Feb 9, 2023
cbe5861
fix swagger file
Feb 13, 2023
2cd9cf4
update constant args to handle camel case
Feb 14, 2023
ca2d499
update changelog
Feb 14, 2023
011e4cc
App Configuration Provider Async Support (#28497)
mrm9084 Feb 14, 2023
5944f7d
Apply `black` to `core` (#28782)
scbedd Feb 14, 2023
dae619a
remove obsolete tests (#28803)
azure-sdk Feb 14, 2023
02dda02
`archetype-sdk-tests` analysis stage needs renaming (#28810)
scbedd Feb 14, 2023
2f7c5c1
add pyproject.toml where necessary to honor the existing environment …
scbedd Feb 14, 2023
ca7e98f
[TA] move import inside code snippet (#28716)
kristapratico Feb 15, 2023
340d2ff
[Monitor][Ingestion] Add additional tests (#28746)
pvaneck Feb 15, 2023
93c72bd
disable_instance_discovery (#28816)
xiangyan99 Feb 15, 2023
92f5938
[ML][Pipeline] Fix primitive pipeline component output (#28808)
brynn-code Feb 15, 2023
9bf9f9c
[ML][Pipelines] Support output setting copy in SDK (#28806)
D-W- Feb 15, 2023
00c8336
[AutoRelease] t2-servicebus-2023-02-15-06435(can only be merged by SD…
azure-sdk Feb 15, 2023
d7c4d29
[AutoRelease] t2-appconfiguration-2023-02-15-06407(can only be merged…
azure-sdk Feb 15, 2023
e4a3019
[AutoRelease] t2-iothub-2023-02-15-80373(can only be merged by SDK ow…
azure-sdk Feb 15, 2023
3f45758
Sync eng/common directory with azure-sdk-tools for PR 5456 (#28828)
azure-sdk Feb 15, 2023
f035fee
[AutoRelease] t2-authorization-2023-02-15-06375(can only be merged by…
azure-sdk Feb 15, 2023
b23e71b
feat: support use a single output node as sub-pipeline input (#28834)
elliotzh Feb 15, 2023
f939e96
Add Tags Support to Compute (#28752)
nthandeMS Feb 15, 2023
acebcbc
Register Data Asset data storage online deployment (#28813)
TajiHarrisMicrosoft Feb 15, 2023
155cb23
[Perf] Add parameter TimeoutInMinutes, Increase timeout for storage-b…
mikeharder Feb 15, 2023
e06f84a
update cached preparer call with kwargs (#28814)
swathipil Feb 15, 2023
8f80b68
Disable pylint in azure-template (#28829)
mikeharder Feb 15, 2023
675e8a4
[ML] Apply `black` to `ml` (#28817)
kdestin Feb 15, 2023
4a36d56
[tooling] Add exclusions to black for auto generated code (#28835)
kdestin Feb 15, 2023
27d3b46
Resolve `black` not running properly in CI (#28756)
scbedd Feb 15, 2023
e4b5b45
[Monitor][Query] Update tests for better coverage (#28788)
pvaneck Feb 15, 2023
b18e18a
[ACR] Add OCI manifest and blob upload/download samples (#28403)
Feb 15, 2023
393ea48
Fix typo (#28815)
vincenttran-msft Feb 15, 2023
a61769a
Enable CodeQL for scheduled CI jobs (#28751)
kurtzeborn Feb 15, 2023
e914226
[Monitor][Ingestion] Remove unnecessary typing overloads (#28811)
pvaneck Feb 15, 2023
2fe6e3d
App Config Min Feature Flags + Change Log and Readme Updated (#28812)
mrm9084 Feb 15, 2023
d9b4435
[ml] support model next version for registry assets (#28786)
banibrata-de Feb 16, 2023
6b84a36
[Tables] Update method type hints to Python3 syntax (#28095)
Feb 16, 2023
4b217fe
[AutoRelease] t2-cosmosdb-2023-02-10-65537(can only be merged by SDK …
azure-sdk Feb 16, 2023
d0b5df6
[release helper] compatible for more kinds of readme link (#28852)
msyyc Feb 16, 2023
39f1db9
[AutoRelease] t2-search-2023-02-10-86091(can only be merged by SDK ow…
azure-sdk Feb 16, 2023
f2c4ea0
[AutoRelease] t2-storagecache-2023-02-10-73952(can only be merged by …
azure-sdk Feb 16, 2023
09438f1
update version (#28598)
azure-sdk Feb 16, 2023
75897ac
[AutoRelease] t2-recoveryservices-2023-02-01-17082(can only be merged…
azure-sdk Feb 16, 2023
50ca50d
[AutoRelease] t2-kusto-2023-01-30-92826(can only be merged by SDK own…
azure-sdk Feb 16, 2023
6a8077d
[AutoRelease] t2-workloads-2023-01-31-84958(can only be merged by SDK…
azure-sdk Feb 16, 2023
7fe1f66
[AutoRelease] t2-cognitiveservices-2023-01-23-44734(can only be merge…
azure-sdk Feb 16, 2023
ed9ab59
[AutoRelease] t2-reservations-2023-01-19-32561(can only be merged by …
azure-sdk Feb 16, 2023
0eb3407
[AutoRelease] t2-synapse-2023-01-18-47765(can only be merged by SDK o…
azure-sdk Feb 16, 2023
c9bd68f
[LOADTESTSERVICE] Adding Changes as per APIView recommendations (#28570)
Feb 16, 2023
f03f9d6
[Monitor][Ingestion] Rename error class name (#28840)
pvaneck Feb 16, 2023
c65a013
[AutoRelease] t2-resourcehealth-2023-02-16-48068(can only be merged b…
azure-sdk Feb 16, 2023
3e39270
[AutoRelease] t2-security-2023-02-16-27614(can only be merged by SDK …
azure-sdk Feb 16, 2023
19b908e
[AutoRelease] t2-resource-2023-02-16-84532(can only be merged by SDK …
azure-sdk Feb 16, 2023
2bdf40b
[AutoRelease] t2-digitaltwins-2023-02-16-80156(can only be merged by …
azure-sdk Feb 16, 2023
c70a602
[AutoRelease] t2-redhatopenshift-2023-02-16-22233(can only be merged …
azure-sdk Feb 16, 2023
a991d82
[AutoRelease] t2-msi-2023-02-16-74257(can only be merged by SDK owner…
azure-sdk Feb 16, 2023
b265c7f
[AutoRelease] t2-netapp-2022-12-27-30795(can only be merged by SDK ow…
azure-sdk Feb 16, 2023
f79ef47
rename sdk folder `loadtestservice` to `loadtesting` (#28855)
msyyc Feb 16, 2023
a534418
[AutoRelease] t2-datalake-store-2023-02-16-99155(can only be merged b…
azure-sdk Feb 16, 2023
ac12f80
fix: avoid OSError in LocalPathField deserialization (#28804)
elliotzh Feb 16, 2023
9990cf5
Remove internal import from pipeline builder (#28857)
brynn-code Feb 16, 2023
373fb8c
azure-communication-identity comment fix (#28854)
petrsvihlik Feb 16, 2023
18b1e38
Increment version for appconfiguration releases (#28861)
azure-sdk Feb 16, 2023
5340f38
[Storage] Document deprecated methods on StorageStreamDownloader (#28…
jalauzon-msft Feb 16, 2023
ef94151
[Monitor][Ingestion] Add sample links to readme (#28868)
pvaneck Feb 16, 2023
7457154
Sync eng/common directory with azure-sdk-tools for PR 5103 (#28870)
azure-sdk Feb 16, 2023
afc812d
remove outbound rule set operation
Feb 16, 2023
95a573a
[Monitor][Ingestion] Prepare release (#28872)
pvaneck Feb 16, 2023
785fc1c
add managed network and regenerate restclient
Jan 5, 2023
8ffb07a
update managednetworksettings outboundrules
Jan 17, 2023
a7ad563
fix test failure, add network id
Feb 4, 2023
98507bb
add managed network tests
Feb 6, 2023
a263e87
implement outbound rule operations
Feb 7, 2023
274f135
move constants to constants._workspace
Feb 7, 2023
3ee409c
add experimental tags
Feb 7, 2023
38cfca5
add experimental tags to network schema
Feb 7, 2023
ad5cc2a
add workspace outbound rule tests
Feb 7, 2023
c4f04f0
update to spark enabled
Feb 9, 2023
4e66e45
fix pylint
Feb 9, 2023
2682258
fix
Feb 9, 2023
cf734e8
fix swagger file
Feb 13, 2023
867be98
update constant args to handle camel case
Feb 14, 2023
c34015e
update changelog
Feb 14, 2023
fab42a0
remove outbound rule set operation
Feb 16, 2023
e9f1005
Merge branch 'joharrington/managed-network-private-preview' of https:…
Feb 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
7 changes: 7 additions & 0 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,13 @@
"Phong"
]
},
{
"filename": "sdk/core/azure-core/tests/test_serialization.py",
"words": [
"Rlcw",
"Jwcmlud"
]
},
{
"filename": "sdk/tables/azure-data-tables/tests/**/*.py",
"words": [
Expand Down
8 changes: 8 additions & 0 deletions eng/black-pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[tool.black]
line-length = 120
extend-exclude = '''
# Exclude some directories from formatting (note the slashes surrounding the pattern)
/(
azure/ai/ml/_restclient
)/
'''
22 changes: 6 additions & 16 deletions eng/common/pipelines/templates/jobs/perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,15 @@ parameters:
- name: JobName
type: string
default: 'Perf'
- name: TimeoutInMinutes
type: number
default: '360'
- name: LinuxPool
type: string
default: 'azsdk-pool-mms-ubuntu-2004-perf'
- name: LinuxVmImage
type: string
default: 'MMSUbuntu20.04'
default: 'azsdk-pool-mms-ubuntu-2204-perf'
- name: WindowsPool
type: string
default: 'azsdk-pool-mms-win-2019-perf'
- name: WindowsVmImage
type: string
default: 'MMS2019'
default: 'azsdk-pool-mms-win-2022-perf'
- name: Language
type: string
default: ''
Expand Down Expand Up @@ -65,18 +62,16 @@ parameters:

jobs:
- job: ${{ parameters.JobName }}
timeoutInMinutes: 360
timeoutInMinutes: ${{ parameters.TimeoutInMinutes }}
strategy:
matrix:
${{ if contains(parameters.OperatingSystems, 'Linux') }}:
Linux:
Pool: ${{ parameters.LinuxPool }}
OsVmImage: ${{ parameters.LinuxVmImage }}
MatrixName: 'Linux'
${{ if contains(parameters.OperatingSystems, 'Windows') }}:
Windows:
Pool: ${{ parameters.WindowsPool }}
OsVmImage: ${{ parameters.WindowsVmImage }}
MatrixName: 'Windows'
variables:
- ${{ parameters.Variables }}
Expand All @@ -87,7 +82,6 @@ jobs:
value: ''
pool:
name: $(Pool)
vmImage: $(OSVmImage)
steps:

- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
Expand All @@ -106,10 +100,6 @@ jobs:
Commitish: ${{ parameters.ToolsRepoCommitish }}
WorkingDirectory: $(System.DefaultWorkingDirectory)/azure-sdk-tools

- template: /eng/common/pipelines/templates/steps/verify-agent-os.yml
parameters:
AgentImage: $(OSVmImage)

- ${{ parameters.InstallLanguageSteps }}

- template: /eng/common/TestResources/deploy-test-resources.yml
Expand Down
176 changes: 129 additions & 47 deletions eng/common/scripts/get-codeowners.ps1
Original file line number Diff line number Diff line change
@@ -1,72 +1,151 @@
<#
.SYNOPSIS
A script that given as input $TargetPath param, returns the owners
of that path, as determined by CODEOWNERS file passed in $CodeOwnersFileLocation
param.

.PARAMETER TargetPath
Required*. Path to file or directory whose owners are to be determined from a
CODEOWNERS file. e.g. sdk/core/azure-amqp/ or sdk/core/foo.txt.

*for backward compatibility, you might provide $TargetDirectory instead.

.PARAMETER TargetDirectory
Obsolete. Replaced by $TargetPath. Kept for backward-compatibility.
If both $TargetPath and $TargetDirectory are provided, $TargetDirectory is
ignored.

.PARAMETER CodeOwnerFileLocation
Optional. An absolute path to the CODEOWNERS file against which the $TargetPath param
will be checked to determine its owners.

.PARAMETER ToolVersion
Optional. The NuGet package version of the package containing the "retrieve-codeowners"
tool, around which this script is a wrapper.

.PARAMETER ToolPath
Optional. The place to check the "retrieve-codeowners" tool existence.

.PARAMETER DevOpsFeed
Optional. The NuGet package feed from which the "retrieve-codeowners" tool is to be installed.

NuGet feed:
https://dev.azure.com/azure-sdk/public/_artifacts/feed/azure-sdk-for-net/NuGet/Azure.Sdk.Tools.RetrieveCodeOwners

Pipeline publishing the NuGet package to the feed, "tools - code-owners-parser":
https://dev.azure.com/azure-sdk/internal/_build?definitionId=3188

.PARAMETER VsoVariable
Optional. If provided, the determined owners, based on $TargetPath matched against CODEOWNERS file at $CodeOwnerFileLocation,
will be output to Azure DevOps pipeline log as variable named $VsoVariable.

Reference:
https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch
https://learn.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands?view=azure-devops&tabs=bash#logging-command-format

.PARAMETER IncludeNonUserAliases
Optional. Whether to include in the returned owners list aliases that are team aliases, e.g. Azure/azure-sdk-team

.PARAMETER Test
Optional. Whether to run the script against hard-coded tests.

#>
param (
[string]$TargetDirectory = "", # Code path to code owners. e.g sdk/core/azure-amqp
[string]$CodeOwnerFileLocation = (Resolve-Path $PSScriptRoot/../../../.github/CODEOWNERS), # The absolute path of CODEOWNERS file.
[string]$ToolVersion = "1.0.0-dev.20230108.6",
[string]$ToolPath = (Join-Path ([System.IO.Path]::GetTempPath()) "codeowners-tool-path"), # The place to check the tool existence. Put temp path as default
[string]$DevOpsFeed = "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json", # DevOp tool feeds.
[string]$VsoVariable = "", # Option of write code owners into devop variable
[switch]$IncludeNonUserAliases, # Option to filter out the team alias in code owner list. e.g. Azure/azure-sdk-team
[switch]$Test #Run test functions against the script logic
[string]$TargetPath = "",
[string]$TargetDirectory = "",
# The path used assumes the script is located in azure-sdk-tools/eng/common/scripts/get-codeowners.ps1
[string]$CodeOwnerFileLocation = (Resolve-Path $PSScriptRoot/../../../.github/CODEOWNERS),
# The $ToolVersion 1.0.0-dev.20230214.3 includes following PR:
# Use CodeownersFile.UseRegexMatcherDefault everywhere where applicable + remove obsolete tests
# https://github.com/Azure/azure-sdk-tools/pull/5437
#
# but not this one:
# Remove the obsolete, prefix-based CODEOWNERS matcher & related tests
# https://github.com/Azure/azure-sdk-tools/pull/5431
[string]$ToolVersion = "1.0.0-dev.20230214.3",
[string]$ToolPath = (Join-Path ([System.IO.Path]::GetTempPath()) "codeowners-tool-path"),
[string]$DevOpsFeed = "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json",
[string]$VsoVariable = "",
[switch]$IncludeNonUserAliases,
[switch]$Test
)

function Get-CodeOwnersTool()
function Get-CodeownersTool()
{
$command = Join-Path $ToolPath "retrieve-codeowners"
# Check if the retrieve-codeowners tool exsits or not.
if (Get-Command $command -errorAction SilentlyContinue) {
return $command
$codeownersToolCommand = Join-Path $ToolPath "retrieve-codeowners"
# Check if the retrieve-codeowners tool exists or not.
if (Get-Command $codeownersToolCommand -errorAction SilentlyContinue) {
return $codeownersToolCommand
}
if (!(Test-Path $ToolPath)) {
New-Item -ItemType Directory -Path $ToolPath | Out-Null
}
Write-Host "Installing the retrieve-codeowners tool under $ToolPath... "
Write-Host "Installing the retrieve-codeowners tool under tool path: $ToolPath ..."

# Run command under tool path to avoid dotnet tool install command checking .csproj files.
# This is a bug for dotnet tool command. Issue: https://github.com/dotnet/sdk/issues/9623
Push-Location $ToolPath
dotnet tool install --tool-path $ToolPath --add-source $DevOpsFeed --version $ToolVersion "Azure.Sdk.Tools.RetrieveCodeOwners" | Out-Null
Pop-Location
# Test to see if the tool properly installed.
if (!(Get-Command $command -errorAction SilentlyContinue)) {
Write-Error "The retrieve-codeowners tool is not properly installed. Please check your tool path. $ToolPath"
if (!(Get-Command $codeownersToolCommand -errorAction SilentlyContinue)) {
Write-Error "The retrieve-codeowners tool is not properly installed. Please check your tool path: $ToolPath"
return
}
return $command
return $codeownersToolCommand
}

function Get-CodeOwners ([string]$targetDirectory, [string]$codeOwnerFileLocation, [bool]$includeNonUserAliases = $false)
function Get-Codeowners(
[string]$targetPath,
[string]$targetDirectory,
[string]$codeownersFileLocation,
[bool]$includeNonUserAliases = $false)
{
$command = Get-CodeOwnersTool
# Filter out the non user alias from code owner list.
if($includeNonUserAliases) {
$codeOwnersString = & $command --target-directory $targetDirectory --code-owner-file-path $codeOwnerFileLocation 2>&1
}
else {
$codeOwnersString = & $command --target-directory $targetDirectory --code-owner-file-path $codeOwnerFileLocation --filter-out-non-user-aliases 2>&1
# Backward compaitiblity: if $targetPath is not provided, fall-back to the legacy $targetDirectory
if ([string]::IsNullOrWhiteSpace($targetPath)) {
$targetPath = $targetDirectory
}
# Failed at the command of fetching code owners.
if ($LASTEXITCODE -ne 0) {
Write-Host $codeOwnersString
if ([string]::IsNullOrWhiteSpace($targetPath)) {
Write-Error "TargetPath (or TargetDirectory) parameter must be neither null nor whitespace."
return ,@()
}

$codeOwnersJson = $codeOwnersString | ConvertFrom-Json
if (!$codeOwnersJson) {
Write-Host "No code owners returned from the path: $targetDirectory"

$codeownersToolCommand = Get-CodeownersTool
Write-Host "Executing: & $codeownersToolCommand --target-path $targetPath --codeowners-file-path-or-url $codeownersFileLocation --exclude-non-user-aliases:$(!$includeNonUserAliases)"
$commandOutput = & $codeownersToolCommand `
--target-path $targetPath `
--codeowners-file-path-or-url $codeownersFileLocation `
--exclude-non-user-aliases:$(!$includeNonUserAliases) `
2>&1

if ($LASTEXITCODE -ne 0) {
Write-Host "Command $codeownersToolCommand execution failed (exit code = $LASTEXITCODE). Output string: $commandOutput"
return ,@()
} else
{
Write-Host "Command $codeownersToolCommand executed successfully (exit code = 0). Output string length: $($commandOutput.length)"
}

# Assert: $commandOutput is a valid JSON representing:
# - a single CodeownersEntry, if the $targetPath was a single path
# - or a dictionary of CodeownerEntries, keyes by each path resolved from a $targetPath glob path.
#
# For implementation details, see Azure.Sdk.Tools.RetrieveCodeOwners.Program.Main

$codeownersJson = $commandOutput | ConvertFrom-Json

if ($VsoVariable) {
$codeOwners = $codeOwnersJson.Owners -join ","
Write-Host "##vso[task.setvariable variable=$VsoVariable;]$codeOwners"
$codeowners = $codeownersJson.Owners -join ","
Write-Host "##vso[task.setvariable variable=$VsoVariable;]$codeowners"
}

return ,@($codeOwnersJson.Owners)
return ,@($codeownersJson.Owners)
}

function TestGetCodeOwner([string]$targetDirectory, [string]$codeOwnerFileLocation, [bool]$includeNonUserAliases = $false, [string[]]$expectReturn) {
Write-Host "Testing on $targetDirectory..."
$actualReturn = Get-CodeOwners -targetDirectory $targetDirectory -codeOwnerFileLocation $codeOwnerFileLocation -includeNonUserAliases $IncludeNonUserAliases
function TestGetCodeowners([string]$targetPath, [string]$codeownersFileLocation, [bool]$includeNonUserAliases = $false, [string[]]$expectReturn) {
Write-Host "Test: find owners matching '$targetPath' ..."

$actualReturn = Get-Codeowners -targetPath $targetPath -codeownersFileLocation $codeownersFileLocation -includeNonUserAliases $IncludeNonUserAliases

if ($actualReturn.Count -ne $expectReturn.Count) {
Write-Error "The length of actual result is not as expected. Expected length: $($expectReturn.Count), Actual length: $($actualReturn.Count)."
Expand All @@ -80,16 +159,19 @@ function TestGetCodeOwner([string]$targetDirectory, [string]$codeOwnerFileLocati
}
}

if($Test) {
$testFile = (Resolve-Path $PSScriptRoot/../../../tools/code-owners-parser/Azure.Sdk.Tools.RetrieveCodeOwners.Tests/TestData/simple_path_CODEOWNERS)
TestGetCodeOwner -targetDirectory "sdk" -codeOwnerFileLocation $testFile -includeNonUserAliases $true -expectReturn @("person1", "person2")
TestGetCodeOwner -targetDirectory "sdk/noPath" -codeOwnerFileLocation $testFile -includeNonUserAliases $true -expectReturn @("person1", "person2")
TestGetCodeOwner -targetDirectory "/sdk/azconfig" -codeOwnerFileLocation $testFile -includeNonUserAliases $true -expectReturn @("person3", "person4")
TestGetCodeOwner -targetDirectory "/sdk/azconfig/package" -codeOwnerFileLocation $testFile -includeNonUserAliases $true $testFile -expectReturn @("person3", "person4")
TestGetCodeOwner -targetDirectory "/sd" -codeOwnerFileLocation $testFile -includeNonUserAliases $true -expectReturn @()
TestGetCodeOwner -targetDirectory "/sdk/testUser/" -codeOwnerFileLocation $testFile -expectReturn @("azure-sdk")
if ($Test) {
# Most of tests here have been removed; now instead we should run tests from RetrieveCodeOwnersProgramTests, and in a way as explained in:
# https://github.com/Azure/azure-sdk-tools/issues/5434
# https://github.com/Azure/azure-sdk-tools/pull/5103#discussion_r1068680818
Write-Host "Running reduced test suite at `$PSScriptRoot of $PSSCriptRoot. Please see https://github.com/Azure/azure-sdk-tools/issues/5434 for more."

$azSdkToolsCodeowners = (Resolve-Path "$PSScriptRoot/../../../.github/CODEOWNERS")
TestGetCodeowners -targetPath "eng/common/scripts/get-codeowners.ps1" -codeownersFileLocation $azSdkToolsCodeowners -includeNonUserAliases $true -expectReturn @("konrad-jamrozik", "weshaggard", "benbp")

$testCodeowners = (Resolve-Path "$PSScriptRoot/../../../tools/code-owners-parser/Azure.Sdk.Tools.RetrieveCodeOwners.Tests/TestData/glob_path_CODEOWNERS")
TestGetCodeowners -targetPath "tools/code-owners-parser/Azure.Sdk.Tools.RetrieveCodeOwners.Tests/TestData/InputDir/a.txt" -codeownersFileLocation $testCodeowners -includeNonUserAliases $true -expectReturn @("2star")
exit 0
}
else {
return Get-CodeOwners -targetDirectory $TargetDirectory -codeOwnerFileLocation $CodeOwnerFileLocation -includeNonUserAliases $IncludeNonUserAliases
return Get-Codeowners -targetPath $TargetPath -targetDirectory $TargetDirectory -codeownersFileLocation $CodeOwnerFileLocation -includeNonUserAliases $IncludeNonUserAliases
}
7 changes: 3 additions & 4 deletions eng/pipelines/templates/jobs/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ jobs:
- job: 'Build'
timeoutInMinutes: 90
variables:
- template: ../variables/globals.yml
Codeql.Enabled: true
Codeql.BuildIdentifier: ${{ parameters.ServiceDirectory }}
Codeql.SkipTaskAutoInjection: false

pool:
name: azsdk-pool-mms-ubuntu-2004-general
Expand Down Expand Up @@ -96,9 +98,6 @@ jobs:

timeoutInMinutes: ${{ parameters.TestTimeoutInMinutes }}

variables:
- template: ../variables/globals.yml

dependsOn:
- 'Build'

Expand Down
8 changes: 6 additions & 2 deletions eng/pipelines/templates/jobs/perf.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
parameters:
- name: TimeoutInMinutes
type: number
default: '360'
- name: LanguageVersion
type: string
default: '3.11'
Expand Down Expand Up @@ -27,12 +30,13 @@ parameters:
extends:
template: /eng/common/pipelines/templates/jobs/perf.yml
parameters:
TimeoutInMinutes: ${{ parameters.TimeoutInMinutes }}
Language: Python
LanguageVersion: ${{ parameters.LanguageVersion }}
Variables:
- template: /eng/pipelines/templates/variables/globals.yml
- name: PythonVersion
value: ${{ parameters.LanguageVersion }}
Language: Python
LanguageVersion: ${{ parameters.LanguageVersion }}
InstallLanguageSteps:
- task: UsePythonVersion@0
displayName: "Use Python $(PythonVersion)"
Expand Down
3 changes: 3 additions & 0 deletions eng/pipelines/templates/stages/archetype-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ parameters:
type: boolean
default: false

variables:
- template: /eng/pipelines/templates/variables/globals.yml

stages:
- stage: Build
jobs:
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/templates/stages/archetype-sdk-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,13 @@ stages:
Cloud: ${{ cloud.key }}

- ${{ if contains(variables['Build.DefinitionName'], 'tests-weekly') }}:
- stage: Analysis
- stage:
displayName: 'Analyze_${{ parameters.JobName }}'
dependsOn: []
jobs:
- job: 'Analyze'
timeoutInMinutes: 90


variables:
PythonVersion: '3.9'

Expand Down
16 changes: 8 additions & 8 deletions eng/pipelines/templates/stages/cosmos-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ parameters:
type: boolean
default: false

stages:
- template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
# Skip emulator tests in the CI run
TestMarkArgument: not cosmosEmulator
InjectedPackages: ${{parameters.InjectedPackages}}
Artifacts: ${{parameters.Artifacts}}
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
# Skip emulator tests in the CI run
TestMarkArgument: not cosmosEmulator
InjectedPackages: ${{parameters.InjectedPackages}}
Artifacts: ${{parameters.Artifacts}}

# - stage: Test_Emulator
# dependsOn: []
Expand Down
Loading