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

Move test recordings #19974

Closed
wants to merge 108 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
be2ad65
Add azcore aasets.json
RickWinter Feb 8, 2023
f09340a
Move azidentity recordings
RickWinter Feb 8, 2023
2ef60ab
Increment version for containers/azcontainerregistry releases (#19975)
azure-sdk Feb 8, 2023
b9cc6e5
[azquery] Release prep and final updates (#19946)
gracewilcox Feb 8, 2023
afa7fca
[azquery] Change MetricsClientQueryResourceOptions.Aggregation from t…
gracewilcox Feb 8, 2023
2708bfb
Increment version for monitor/azquery releases (#19982)
azure-sdk Feb 9, 2023
eda441f
Add 1.20 to the matrix (#19952)
RickWinter Feb 9, 2023
1155bce
fix wrong order of require.Equal arguments (#19977)
tadelesh Feb 9, 2023
6c17ae4
Adjust order of params (#19985)
RickWinter Feb 9, 2023
6a0646d
Update package regex to detect arbitrary length directory trees (#19971)
benbp Feb 9, 2023
dd6cb8b
Copy keyvault/internal to security/keyvault/internal (#19879)
chlowell Feb 9, 2023
a47082f
Sync eng/common directory with azure-sdk-tools for PR 5083 (#19993)
azure-sdk Feb 10, 2023
e6e1faf
Added a few service client tests (#19924)
gapra-msft Feb 10, 2023
d5b4c95
Key Vault troubleshooting guide (#19997)
chlowell Feb 13, 2023
acf9938
Improve diagnostics for copy-docs-to-blobstorage script (#19998)
azure-sdk Feb 13, 2023
4f7ac15
Update `CODEOWNERS` paths: fix invalid paths (#19994)
Feb 13, 2023
ea7cedd
Sync eng/common directory with azure-sdk-tools for PR 5427 (#20006)
azure-sdk Feb 14, 2023
db5f45b
fix changelog function filter (#20001)
Alancere Feb 14, 2023
5523511
[azservicebus] Validate that credits are within limits (not over or u…
richardpark-msft Feb 14, 2023
6f4b9e3
remove obsolete tests (#20008)
azure-sdk Feb 14, 2023
b19ab71
[azservicebus] Remove old stress testing batch file (#20014)
richardpark-msft Feb 15, 2023
a9e3d56
AzQueue (#20013)
tasherif-msft Feb 15, 2023
679027e
Trigger `aztables` when proxy files are updated (#19969)
scbedd Feb 15, 2023
a079d71
[Release] sdk/resourcemanager/liftrqumulo/armqumulo/0.1.0 (#19960)
Alancere Feb 15, 2023
7e7d2a8
Sync eng/common directory with azure-sdk-tools for PR 5456 (#20020)
azure-sdk Feb 15, 2023
fab2a5a
Increment package version after release of storage/azqueue (#20025)
azure-sdk Feb 15, 2023
3909a45
Null Partition Key for Cosmos (#20002)
karunmotorq Feb 15, 2023
a8700a4
[azeventhubs] Fix credit requesting errors (#20015)
richardpark-msft Feb 16, 2023
d38c486
Sync eng/common directory with azure-sdk-tools for PR 5103 (#20030)
azure-sdk Feb 16, 2023
193ab96
changelog generator tool add `PageableFilter` and `type to any change…
Alancere Feb 17, 2023
176dfa5
MMS2022 -> windows-2022 (#20032)
azure-sdk Feb 17, 2023
236a89a
show SDK log for CI test (#20028)
tadelesh Feb 17, 2023
dfbe352
func typeToAny bug fix (#20033)
Alancere Feb 17, 2023
479c04a
[Release] sdk/resourcemanager/dataprotection/armdataprotection/2.0.0 …
azure-sdk Feb 20, 2023
8000b7a
Bump golang.org/x/net from 0.5.0 to 0.7.0 in /sdk/azcore (#20038)
dependabot[bot] Feb 21, 2023
8297762
Add vmImage back to common perf.yml - Fixes #5466 - Partially reverts…
azure-sdk Feb 21, 2023
33d689e
Add GenerateAlphaNumericID for test-proxy to recording package (#20009)
tadelesh Feb 22, 2023
bdcf648
Temporarily pin Node 18 to 18.13.0 - Fixes #5536 (#20047)
azure-sdk Feb 22, 2023
0398386
[Release] sdk/resourcemanager/synapse/armsynapse/0.6.0 generation fro…
azure-sdk Feb 22, 2023
75ed7bc
[Release] sdk/resourcemanager/reservations/armreservations/2.0.0 (#19…
azure-sdk Feb 22, 2023
c085139
[Release] sdk/resourcemanager/cognitiveservices/armcognitiveservices/…
azure-sdk Feb 22, 2023
6fc41ca
[Release] sdk/resourcemanager/workloads/armworkloads/0.3.0 generation…
azure-sdk Feb 22, 2023
8e6339d
[Release] sdk/resourcemanager/kusto/armkusto/1.2.0 generation from sp…
azure-sdk Feb 22, 2023
39eb624
[azeventhubs] Adding in network chaos to a few tests #20050
richardpark-msft Feb 22, 2023
7495dec
Bump golang.org/x/text from 0.3.7 to 0.3.8 in /sdk/azidentity (#20055)
dependabot[bot] Feb 23, 2023
96d7f70
Bump golang.org/x/text in /sdk/security/keyvault/internal (#20284)
dependabot[bot] Feb 23, 2023
56bc1ff
Favor custom PollingHandler when rehydrating a poller (#20286)
jhendrixMSFT Feb 23, 2023
f8091f5
Sync eng/common directory with azure-sdk-tools for PR 5431 #2501
azure-sdk Feb 23, 2023
e4d6d58
Sync eng/common directory with azure-sdk-tools for PR 5562 (#20287)
azure-sdk Feb 24, 2023
3ec1f08
[Release] sdk/resourcemanager/recoveryservices/armrecoveryservices/1.…
azure-sdk Feb 24, 2023
a2d8b02
[Release] sdk/resourcemanager/servicebus/armservicebus/2.0.0-beta.2 g…
azure-sdk Feb 24, 2023
12fa54a
[Release] sdk/resourcemanager/containerregistry/armcontainerregistry/…
azure-sdk Feb 24, 2023
9f4515f
[Release] sdk/resourcemanager/datafactory/armdatafactory/3.1.0 (#19917)
Alancere Feb 24, 2023
c418435
[Release] sdk/resourcemanager/storagemover/armstoragemover/0.1.0 gene…
Alancere Feb 24, 2023
0893006
[Release] sdk/resourcemanager/storagecache/armstoragecache/3.0.0 (#20…
Alancere Feb 24, 2023
09b540e
[Release] sdk/resourcemanager/cosmos/armcosmos/2.2.0 (#20018)
Alancere Feb 24, 2023
15aa35d
Sync eng/common directory with azure-sdk-tools for PR 5568 (#20290)
azure-sdk Feb 24, 2023
29ba214
Add `Clone()` method for `arm/policy.ClientOptions` (#20288)
tadelesh Feb 27, 2023
dae8ab4
add changelog for https://github.com/Azure/azure-sdk-for-go/pull/2000…
tadelesh Feb 27, 2023
2877174
Some minor refactoring of azcore (#20291)
jhendrixMSFT Feb 27, 2023
80187b3
[azeventhubs] Client identifier support (#20045)
richardpark-msft Feb 28, 2023
330be67
[Release] sdk/resourcemanager/voiceservices/armvoiceservices/0.1.0 ge…
Alancere Feb 28, 2023
834001a
update proxy version to include Info/Active against individual sessio…
azure-sdk Mar 1, 2023
a698b9b
Sync eng/common directory with azure-sdk-tools for PR 5540 (#20309)
azure-sdk Mar 1, 2023
988beb5
Prepare azcore v1.4.0 for release (#20310)
chlowell Mar 1, 2023
adb14ea
[azeventhubs] Adding a section to the migration guide that shows how …
richardpark-msft Mar 1, 2023
841cc37
Prepare sdk/internal for release (#20321)
jhendrixMSFT Mar 2, 2023
a940075
Increment version for azcore releases (#20326)
azure-sdk Mar 2, 2023
a9a59f1
Increment version for internal releases (#20324)
azure-sdk Mar 2, 2023
d85e5c3
logging api post request body (#20327)
azure-sdk Mar 2, 2023
d772b7c
Fix test failure because of "CONTENT_LEN_INVALID" (#20034)
tadelesh Mar 2, 2023
3faac1c
deprecate two function, the replacement could be found in github.com/…
tadelesh Mar 3, 2023
1296440
Increment version for resourcemanager/internal releases (#20332)
azure-sdk Mar 3, 2023
4ba48a3
Sync eng/common directory with azure-sdk-tools for PR 5595 (#20322)
azure-sdk Mar 3, 2023
9926a2d
Migrate all test recording file to assets repo (#20000)
Alancere Mar 6, 2023
9286c60
[Release] sdk/resourcemanager/storagemover/armstoragemover/1.0.0 (#20…
Alancere Mar 7, 2023
ba84713
[azservicebus,azeventhubs] Fixing issue where $cbs link being incompl…
richardpark-msft Mar 7, 2023
381a909
Add product slug for Web PubSub (#20351)
azure-sdk Mar 7, 2023
4456030
Support profile directory as top level directory for package properti…
benbp Mar 8, 2023
944765c
[azservicebus,azeventhubs] Updating the chaos-mesh policies #20366
richardpark-msft Mar 8, 2023
3e67097
Increment version for messaging/azeventhubs releases (#20353)
azure-sdk Mar 8, 2023
c6730ca
Increment version for messaging/azservicebus releases (#20354)
azure-sdk Mar 8, 2023
c0c5082
Increment version for containers/azcontainerregistry releases (#20345)
azure-sdk Mar 8, 2023
7c989a9
Added some additional LRO terminal state values (#20370)
jhendrixMSFT Mar 8, 2023
14d22b0
Prepare security/keyvault/internal v0.8.0 for release (#20375)
chlowell Mar 8, 2023
b43109e
Increment version for security/keyvault/internal releases (#20376)
azure-sdk Mar 9, 2023
ace19e8
Blob Batch API Surface (#19896)
souravgupta-msft Mar 9, 2023
ca7a1b0
Switch to Service Version (#20381)
RickWinter Mar 9, 2023
8aa9682
Update assignment mentions for Cosmos (#20024)
RickWinter Mar 9, 2023
8552d80
[keyvault] azadmin module (#20296)
gracewilcox Mar 13, 2023
f487530
enable true version override so that other tools also have a shot at …
azure-sdk Mar 13, 2023
17feb23
Increment version for security/keyvault/azadmin releases (#20400)
azure-sdk Mar 14, 2023
cc6a2e5
Adding checks during SAS creation (#20379)
souravgupta-msft Mar 14, 2023
9045a53
genertor tool add --original-commit flag (#20403)
Alancere Mar 14, 2023
c96d93d
Update CODEOWNERS (#20378)
souravgupta-msft Mar 14, 2023
22e6ca1
[Azservicebus][Readme] Edit pass (#20037)
dlepow Mar 14, 2023
e2feee0
Updating to use the latest nhooyr.io/websocket package in both servic…
richardpark-msft Mar 14, 2023
e6c93bb
Update dependencies in the template package (#20407)
RickWinter Mar 14, 2023
85c9662
update keyvault code owners (#20408)
gracewilcox Mar 14, 2023
e33d49d
3rd Party Libs in Samples (#20343)
ronniegeraghty Mar 15, 2023
38d786c
Sync eng/common directory with azure-sdk-tools for PR 5702 (#20415)
azure-sdk Mar 15, 2023
0e71c85
Append Blob Tests (#20399)
siminsavani-msft Mar 15, 2023
c341474
Document using standalone test proxy (#20417)
benbp Mar 15, 2023
0dd2599
Use underlying error when checking for context errors (#20404)
jhendrixMSFT Mar 15, 2023
2077f5e
Update dependencies (#20416)
RickWinter Mar 15, 2023
57dc403
Add azcore aasets.json
RickWinter Feb 8, 2023
5f05378
Move azidentity recordings
RickWinter Feb 8, 2023
e4a4bb6
Merge branch 'recording' of https://github.com/RickWinter/azure-sdk-f…
RickWinter Mar 15, 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
  •  
  •  
  •  
30 changes: 14 additions & 16 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
# Instructions for CODEOWNERS file format and automatic build failure notifications:
# https://github.com/Azure/azure-sdk/blob/master/docs/policies/opensource.md#codeowners

################
# Automation
################

# Git Hub integration and bot rules
/.github/ @jsquire @jhendrixMSFT @rickwinter @ronniegeraghty

#############
# SDK (track2)
#############

# Catch all for non-code project files and unowned files | folders
* @rickwinter @jhendrixMSFT
/** @rickwinter @jhendrixMSFT
/sdk/ @rickwinter @chlowell @richardpark-msft

# Samples
Expand All @@ -40,14 +33,14 @@
# PRLabel: %KeyVault
/sdk/keyvault/ @chlowell @jhendrixMSFT

# PRLabel: %KeyVault
/sdk/security/keyvault/ @chlowell @jhendrixMSFT @gracewilcox

# PRLabel: %Service Bus
/sdk/messaging/azservicebus @richardpark-msft @jhendrixMSFT
/sdk/messaging/azservicebus/ @richardpark-msft @jhendrixMSFT

# PRLabel: %Event Hubs
/sdk/messaging/azeventhubs @richardpark-msft @jhendrixMSFT

# PRLabel: %Service Bus
/sdk/messaging/internal @richardpark-msft @jhendrixMSFT
/sdk/messaging/azeventhubs/ @richardpark-msft @jhendrixMSFT

# PRLabel: %Monitor
/sdk/monitor/ @gracewilcox @chlowell @jhendrixMSFT
Expand All @@ -56,14 +49,19 @@
/sdk/resourcemanager/ @ArcturusZhang @lirenhe @tadelesh

# PRLabel: %Storage
/sdk/storage/ @siminsavani-msft @souravgupta-msft @tasherif-msft @jhendrixMSFT @gapra-msft
/sdk/storage/ @siminsavani-msft @souravgupta-msft @tasherif-msft @jhendrixMSFT @gapra-msft @vibhansa-msft

################
# Automation
################

# Git Hub integration and bot rules
/.github/ @benbp @jsquire @jhendrixMSFT @rickwinter @ronniegeraghty

###########
# Eng Sys
###########
/eng/ @benbp @weshaggard
/**/ci.yml @benbp
/**/tests.yml @benbp

# PRLabel: %EngSys
/sdk/template/ @benbp @weshaggard
4 changes: 2 additions & 2 deletions .github/fabricbot.json
Original file line number Diff line number Diff line change
Expand Up @@ -1776,8 +1776,8 @@
"Cosmos"
],
"mentionees": [
"pjohari-ms",
"MehaKaushik"
"markjbrown",
"carjackson-msft"
]
},
{
Expand Down
20 changes: 20 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,23 @@ There currently is not a repository wide way to build or regenerate code.
#### Testing

To test, run 'go test' from the respective directory.

## Samples

### Third-party dependencies

Third party libraries should only be included in samples when necessary to demonstrate usage of an Azure SDK package; they should not be suggested or endorsed as alternatives to the Azure SDK.

When code samples take dependencies, readers should be able to use the material without significant license burden or research on terms. This goal requires restricting dependencies to certain types of open source or commercial licenses.

Samples may take the following categories of dependencies:

- **Open-source** : Open source offerings that use an [Open Source Initiative (OSI) approved license](https://opensource.org/licenses). Any component whose license isn't OSI-approved is considered a commercial offering. Prefer OSS projects that are members of any of the [OSS foundations that Microsoft is part of](https://opensource.microsoft.com/ecosystem/). Prefer permissive licenses for libraries, like [MIT](https://opensource.org/licenses/MIT) and [Apache 2](https://opensource.org/licenses/Apache-2.0). Copy-left licenses like [GPL](https://opensource.org/licenses/gpl-license) are acceptable for tools, and OSs. [Kubernetes](https://github.com/kubernetes/kubernetes), [Linux](https://github.com/torvalds/linux), and [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) are examples of this license type. Links to open source components should be to where the source is hosted, including any applicable license, such as a GitHub repository (or similar).

- **Commercial**: Commercial offerings that enable readers to learn from our content without unnecessary extra costs. Typically, the offering has some form of a community edition, or a free trial sufficient for its use in content. A commercial license may be a form of dual-license, or tiered license. Links to commercial components should be to the commercial site for the software, even if the source software is hosted publicly on GitHub (or similar).

- **Dual licensed**: Commercial offerings that enable readers to choose either license based on their needs. For example, if the offering has an OSS and commercial license, readers can choose between them. [MySql](https://github.com/mysql/mysql-server) is an example of this license type.

- **Tiered licensed**: Offerings that enable readers to use the license tier that corresponds to their characteristics. For example, tiers may be available for students, hobbyists, or companies with defined revenue thresholds. For offerings with tiered licenses, strive to limit our use in tutorials to the features available in the lowest tier. This policy enables the widest audience for the article. [Docker](https://www.docker.com/), [IdentityServer](https://duendesoftware.com/products/identityserver), [ImageSharp](https://sixlabors.com/products/imagesharp/), and [Visual Studio](https://visualstudio.com) are examples of this license type.

In general, we prefer taking dependencies on licensed components in the order of the listed categories. In cases where the category may not be well known, we'll document the category so that readers understand the choice that they're making by using that dependency.
5 changes: 2 additions & 3 deletions documentation/developer_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,7 @@ Testing is built into the Go toolchain as well with the `testing` library. The t
| playback | `$ENV:AZURE_RECORD_MODE="playback"` | Running tests against recording HTTP interactiosn |
| live | `$ENV:AZURE_RECORD_MODE="live"` | Bypassing test proxy, running against live service, and not recording HTTP interactions (used by live pipelines) |

To get started first install [`docker`][get_docker]. Then to start the proxy, from the root of the repository, run the command `./eng/common/testproxy/docker-start-proxy.ps1 start`. This command will take care of pulling the pinned docker image and running it in the background.

It is not required to run the test-proxy from within the docker container, but this is how the proxy is run in the Azure DevOps pipelines. If you would like to run the test-proxy in a different manner the [documentation][test_proxy_docs] has more information.
To get started first [install test-proxy][test_proxy_install] via the standalone executable. Then to start the proxy, from the root of the repository, run the command `test-proxy start`.

### Test Mode Options

Expand Down Expand Up @@ -367,6 +365,7 @@ This creates the pipelines that will verify future PRs. The `azure-sdk-for-go` i
[go_download]: https://golang.org/dl/
[require_package]: https://pkg.go.dev/github.com/stretchr/testify/require
[test_proxy_docs]: https://github.com/Azure/azure-sdk-tools/tree/main/tools/test-proxy
[test_proxy_install]: https://github.com/Azure/azure-sdk-tools/blob/main/tools/test-proxy/Azure.Sdk.Tools.TestProxy/README.md#via-standalone-executable
[workspace_setup]: https://www.digitalocean.com/community/tutorials/how-to-install-go-and-set-up-a-local-programming-environment-on-windows-10
[directory_structure]: https://azure.github.io/azure-sdk/golang_introduction.html
[module_design]: https://azure.github.io/azure-sdk/golang_introduction.html#azure-sdk-module-design
Expand Down
34 changes: 16 additions & 18 deletions eng/common/pipelines/templates/jobs/perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,27 @@ parameters:
- name: JobName
type: string
default: 'Perf'
- name: TimeoutInMinutes
type: number
default: '360'
- name: LinuxPool
type: string
default: 'azsdk-pool-mms-ubuntu-2004-perf'
default: 'azsdk-pool-mms-ubuntu-2204-perf'
- name: LinuxVmImage
type: string
default: 'MMSUbuntu20.04'
default: 'ubuntu-22.04'
- name: WindowsPool
type: string
default: 'azsdk-pool-mms-win-2019-perf'
default: 'azsdk-pool-mms-win-2022-perf'
- name: WindowsVmImage
type: string
default: 'MMS2019'
default: 'windows-2022'
- name: Language
type: string
default: ''
- name: LanguageVersion
type: string
default: ''
- name: LanguageRepoName
type: string
default: $(Build.Repository.Name)
Expand All @@ -38,9 +44,6 @@ parameters:
- name: ServiceDirectory
type: string
default: ''
- name: Services
type: string
default: ''
- name: PackageVersions
type: string
default: '.*'
Expand All @@ -65,7 +68,7 @@ parameters:

jobs:
- job: ${{ parameters.JobName }}
timeoutInMinutes: 360
timeoutInMinutes: ${{ parameters.TimeoutInMinutes }}
strategy:
matrix:
${{ if contains(parameters.OperatingSystems, 'Linux') }}:
Expand Down Expand Up @@ -109,7 +112,7 @@ jobs:
- template: /eng/common/pipelines/templates/steps/verify-agent-os.yml
parameters:
AgentImage: $(OSVmImage)

- ${{ parameters.InstallLanguageSteps }}

- template: /eng/common/TestResources/deploy-test-resources.yml
Expand All @@ -118,17 +121,12 @@ jobs:
Location: westus
ResourceType: perf

- pwsh: |
set-content -path config.yml -value "WorkingDirectories:"
add-content -path config.yml -value " ${{ parameters.Language }}: $(Agent.BuildDirectory)/s"
workingDirectory: azure-sdk-tools/tools/perf-automation/Azure.Sdk.Tools.PerfAutomation
displayName: Create config.yml

- script: >-
dotnet run -- run
--no-sync
--languages ${{ parameters.Language }}
--services "${{ parameters.Services }}"
--language ${{ parameters.Language }}
--language-version ${{ parameters.LanguageVersion }}
--repo-root $(System.DefaultWorkingDirectory)
--tests-file $(System.DefaultWorkingDirectory)/sdk/${{ parameters.ServiceDirectory }}/perf-tests.yml
--package-versions "${{ parameters.PackageVersions }}"
--tests "${{ parameters.Tests }}"
--arguments "${{ parameters.Arguments }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ stages:
matrix:
Windows:
Pool: 'azsdk-pool-mms-win-2022-general'
Image: 'MMS2022'
Image: 'windows-2022'
Linux:
Pool: azsdk-pool-mms-ubuntu-2204-general
Image: MMSUbuntu22.04
Expand Down
4 changes: 2 additions & 2 deletions eng/common/pipelines/templates/steps/check-spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ steps:
- task: NodeTool@0
condition: and(succeededOrFailed(), ne(variables['Skip.SpellCheck'],'true'))
inputs:
versionSpec: 18.x
displayName: Use Node.js 18.x
versionSpec: 18.13.0
displayName: Use Node.js 18.13.0

- task: PowerShell@2
displayName: Check spelling (cspell)
Expand Down
10 changes: 9 additions & 1 deletion eng/common/scripts/Cadl-Project-Generate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
param (
[Parameter(Position=0)]
[ValidateNotNullOrEmpty()]
[string] $ProjectDirectory
[string] $ProjectDirectory,
[Parameter(Position=1)]
[string] $CadlAdditionalOptions ## addtional cadl emitter options, separated by semicolon if more than one, e.g. option1=value1;option2=value2
)

$ErrorActionPreference = "Stop"
Expand Down Expand Up @@ -78,6 +80,12 @@ try {
}
}
$cadlCompileCommand = "npx cadl compile $mainCadlFile --emit $emitterName$emitterAdditionalOptions"
if ($CadlAdditionalOptions) {
$options = $CadlAdditionalOptions.Split(";");
foreach ($option in $options) {
$cadlCompileCommand += " --option $emitterName.$option"
}
}
Write-Host($cadlCompileCommand)
Invoke-Expression $cadlCompileCommand

Expand Down
4 changes: 2 additions & 2 deletions eng/common/scripts/Cadl-Project-Sync.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ function GetGitRemoteValue([string]$repo) {
$gitRemotes = (git remote -v)
foreach ($remote in $gitRemotes) {
if ($remote.StartsWith("origin")) {
if ($remote -match 'https://github.com/\S+[\.git]') {
if ($remote -match 'https://github.com/\S+') {
$result = "https://github.com/$repo.git"
break
} elseif ($remote -match "[email protected]:\S+[\.git]"){
} elseif ($remote -match "[email protected]:\S+"){
$result = "[email protected]:$repo.git"
break
} else {
Expand Down
2 changes: 2 additions & 0 deletions eng/common/scripts/Test-SampleMetadata.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ begin {
"azure-genomics",
"azure-hdinsight",
"azure-hdinsight-rserver",
"azure-health-insights",
"azure-hpc-cache",
"azure-immersive-reader",
"azure-information-protection",
Expand Down Expand Up @@ -321,6 +322,7 @@ begin {
"azure-vpn-gateway",
"azure-web-application-firewall",
"azure-web-apps",
"azure-web-pubsub",
"azure-webapp-containers",
"blazor-server",
"blazor-webassembly",
Expand Down
3 changes: 3 additions & 0 deletions eng/common/scripts/artifact-metadata-parsing.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ function CreateReleases($pkgList, $releaseApiUrl, $releaseSha) {
body = $releaseNotes
}

Write-Host "Post Request Body:"
Write-Host $body

$headers = @{
"Content-Type" = "application/json"
"Authorization" = "token $($env:GH_TOKEN)"
Expand Down
25 changes: 16 additions & 9 deletions eng/common/scripts/copy-docs-to-blobstorage.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Note, due to how `Expand-Archive` is leveraged in this script,
# powershell core is a requirement for successful execution.
[CmdletBinding()]
param (
$AzCopy,
$DocLocation,
Expand Down Expand Up @@ -199,32 +200,32 @@ function Upload-Blobs
LogDebug "Final Dest $($DocDest)/$($PkgName)/$($DocVersion)"
LogDebug "Release Tag $($ReleaseTag)"

# Use the step to replace default branch link to release tag link
# Use the step to replace default branch link to release tag link
if ($ReleaseTag) {
foreach ($htmlFile in (Get-ChildItem $DocDir -include *.html -r))
foreach ($htmlFile in (Get-ChildItem $DocDir -include *.html -r))
{
$fileContent = Get-Content -Path $htmlFile -Raw
$updatedFileContent = $fileContent -replace $RepoReplaceRegex, "`${1}$ReleaseTag"
if ($updatedFileContent -ne $fileContent) {
Set-Content -Path $htmlFile -Value $updatedFileContent -NoNewLine
}
}
}
}
else {
LogWarning "Not able to do the default branch link replacement, since no release tag found for the release. Please manually check."
}
}

LogDebug "Uploading $($PkgName)/$($DocVersion) to $($DocDest)..."
& $($AzCopy) cp "$($DocDir)/**" "$($DocDest)/$($PkgName)/$($DocVersion)$($SASKey)" --recursive=true --cache-control "max-age=300, must-revalidate"

LogDebug "Handling versioning files under $($DocDest)/$($PkgName)/versioning/"
$versionsObj = (Update-Existing-Versions -PkgName $PkgName -PkgVersion $DocVersion -DocDest $DocDest)
$latestVersion = $versionsObj.LatestGAPackage
$latestVersion = $versionsObj.LatestGAPackage
if (!$latestVersion) {
$latestVersion = $versionsObj.LatestPreviewPackage
$latestVersion = $versionsObj.LatestPreviewPackage
}
LogDebug "Fetching the latest version $latestVersion"

if ($UploadLatest -and ($latestVersion -eq $DocVersion))
{
LogDebug "Uploading $($PkgName) to latest folder in $($DocDest)..."
Expand All @@ -243,3 +244,9 @@ else
See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure"
}

# If we hit a failure then dump out the azcopy logs to help with debugging
if ($LASTEXITCODE)
{
Write-Host "Copying failed with error code [$LASTEXITCODE]. Dumping the logs to help diagnose."
Get-ChildItem $env:UserProfile\.azcopy -Filter *.log | ForEach-Object { "LOG: " + $_; Get-Content $_; }
}
Loading