Commit Graph

615 Commits

Author SHA1 Message Date
Azure SDK Bot
a7ce0d5ae3
Sync eng/common directory with azure-sdk-tools for PR 7810 (#5412)
* Run publish on failed or succeeded

* Expand agent os string detection

* Check agent job status env var for artifact name detection

* Add sbomEnabled flag to publish template

* Fix image and artifact name conditional

---------

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2024-03-05 17:47:38 -05:00
Azure SDK Bot
59976a3c16
Fix matrix CI tests (#5355)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2024-03-01 11:14:04 -08:00
Azure SDK Bot
afccfb1288
Sync eng/common directory with azure-sdk-tools for PR 7682 (#5381)
* Support resolving environment variable references in matrix config

* Improve type and null handling

* Fix reference bug

* Change behavior on missing env vars to throw

---------

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2024-02-29 13:40:25 -08:00
Azure SDK Bot
ebfb16d10b
Allow relative EmitterPackageJsonPath in New-EmitterPackageLock.ps1 (#5380)
Co-authored-by: Patrick Hallisey <pahallis@microsoft.com>
2024-02-27 14:22:44 -08:00
Azure SDK Bot
213f0a722e
Move emitter-package.json scripts to eng/common (#5353)
Co-authored-by: Patrick Hallisey <pahallis@microsoft.com>
2024-02-14 11:27:26 -08:00
Azure SDK Bot
1497f919a8
Sync eng/common directory with azure-sdk-tools for PR 7630 (#5325)
* Add ContentType header to Update-GitHubIssue

* replaced application/json

* Update eng/common/scripts/Invoke-GitHubAPI.ps1

Co-authored-by: Daniel Jurek <djurek@microsoft.com>

---------

Co-authored-by: Peng Jiahui <804873052@qq.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2024-02-06 00:34:20 -08:00
Azure SDK Bot
02882f9141
Fix issue in Verify-Link.ps1 after PS 7.4 update (#5314)
https://learn.microsoft.com/en-us/powershell/scripting/whats-new/what-s-new-in-powershell-74?view=powershell-7.4
- Add AllowInsecureRedirect switch to Web cmdlets (#18546)

That new option cause a new exception type that exposed
a bug where we assumed if InnerException property existed
that it was not null. This fix verifies that the property
is not null.

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2024-02-02 11:27:55 -08:00
Azure SDK Bot
46fcbbad52
Sync eng/common directory with azure-sdk-tools for PR 7615 (#5313)
* Prepare-Release.ps1: Make dateTime.ToString("MM/dd/yyyy") to work on exotic set-ups

On my machine, I experimented with the registry, and the worst part is that I don't remember/know how to reset it back.

The work items that script produces, do have datetimes for the upcoming releases in the `MM-dd-yyyy` format, and then I have to correct them by hand.

`dateTime.ToString("MM/dd/yyyy")` does produce the date in the format of `MM-dd-yyyy` on my machine. This also happens if I write a corresponding .NET app.

The fix that I am proposing makes it work on my specific setup and hopefully breaks no one else. I understand if you are hesitant to take it. Let me know, I'll see how I can restore my setting.

But on the other hand, I don't think it makes anything worse, it only makes things more robust, so maybe take it?

* Use [CultureInfo]::InvarialtCulture

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Update eng/common/scripts/Prepare-Release.ps1

* Update eng/common/scripts/Prepare-Release.ps1

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2024-02-02 18:26:04 +00:00
Azure SDK Bot
166e46bd8a
Sync eng/common directory with azure-sdk-tools for PR 7585 (#5302)
* Remove package retrieval when verify pkg version

* Modified description of PackageName parameter

---------

Co-authored-by: Ray Chen <raychen@microsoft.com>
2024-01-30 23:49:09 -08:00
Azure SDK Bot
55afd2dd4e
Sync eng/common directory with azure-sdk-tools for PR 7569 (#5289)
* Correct the name of JS package folder

* Uncomment the package verification

* Logging more info for troubleshooting

* Get sdkType and directory from the package info

---------

Co-authored-by: Ray Chen <raychen@microsoft.com>
2024-01-25 01:58:28 -08:00
Azure SDK Bot
6c4e0f776f
Fix typos in ps1 scripts (#5285)
Co-authored-by: Lukasz Kokot <lkokot@kumojin.com>
2024-01-19 10:24:42 -08:00
Azure SDK Bot
2bede63129
Fix Language value for JS (#5283)
Co-authored-by: raychen <raychen@microsoft.com>
2024-01-18 22:05:09 -08:00
Azure SDK Bot
b1796ab919
Add git commit details to stress environment (#5280)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2024-01-18 16:56:19 -05:00
Azure SDK Bot
84f000c7c6
Sync eng/common directory with azure-sdk-tools for PR 7537 (#5278)
* Add ConflictedFile to git-helpers.ps1, add git-helpers.tests.ps1 to exercise basic functionality.
* Add `resolve-asset-conflict.ps1` a script that can autoresolve an assets.json file.

---------

Co-authored-by: Scott Beddall (from Dev Box) <scbedd@microsoft.com>
Co-authored-by: Scott Beddall <45376673+scbedd@users.noreply.github.com>
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2024-01-17 14:08:35 -08:00
Azure SDK Bot
a0f4244136
Sync eng/common directory with azure-sdk-tools for PR 7512 (#5258)
* generate an artifact with the updated files

* bring in Wes's feedback

---------

Co-authored-by: Scott Beddall (from Dev Box) <scbedd@microsoft.com>
2024-01-16 18:10:27 -08:00
Azure SDK Bot
f548d1eabe
Filter packages at verify step (#5275)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2024-01-16 16:06:48 -08:00
Azure SDK Bot
6b23905a7c
Correct the variable name in spec location validation script (#5265)
Co-authored-by: raychen <raychen@microsoft.com>
2024-01-15 01:08:04 -08:00
Azure SDK Bot
535874a085
Sync eng/common directory with azure-sdk-tools for PR 7451 (#5264)
* Added script and pipeline for spec location validation

SDK release pipeline would run this validation to ensure the spec comes from
the main branch of Azure/azure-rest-api-specs repo

* Update parameter

* Use github rest api to validate commit

* Added token parameter

* Support more yaml cases and other languages

* Removed the default setting in yaml template

* Only validate in case of GA package

* Follow APIView to retrieve package version for verification

* Get github token from env variable

* Removed obsolete parameter

---------

Co-authored-by: raychen <raychen@microsoft.com>
2024-01-14 19:37:42 -08:00
Azure SDK Bot
08c5187e36
Sync eng/common directory with azure-sdk-tools for PR 7445 (#5247)
* Add package filter parameter to select recursively found packages in release

* Handle empty value for packageFilter

---------

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2024-01-11 12:43:30 -08:00
Azure SDK Bot
1a6b614049
Fix image tag for multiimage deployments (#5238)
Co-authored-by: Liudmila Molkova <limolkova@microsoft.com>
2024-01-09 16:50:32 -05:00
Azure SDK Bot
cb73bbd62c
Fix spelling (preceeding=> preceding) (#5234)
Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2024-01-05 13:31:23 -08:00
Azure SDK Bot
0fd0109a00
Sync eng/common directory with azure-sdk-tools for PR 7346 (#5203)
* Update Test-SampleMetadata.ps1

* Update Test-SampleMetadata.ps1

---------

Co-authored-by: YUTONG_ZHAI <32332316+zhaiyutong@users.noreply.github.com>
2023-12-01 09:06:13 -08:00
Azure SDK Bot
5e6a21a0e4
Lets not treat https code 401 as broken link (#5216)
Http Status code 401 just be unauthorized and not necessarily that the link isn't valid. Removing this from the list of codes to error from.

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2023-11-30 14:44:27 -08:00
Azure SDK Bot
87ec5e9652
Sync eng/common directory with azure-sdk-tools for PR 7334 (#5206)
* Fix typo

* Update TypeSpec-Project-Generate.ps1

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2023-11-29 10:18:04 -08:00
Azure SDK Bot
94fc220f77
Sync eng/common directory with azure-sdk-tools for PR 7322 (#5176)
* Create new pipeline to create package work item

* Update powershell script to pass tag

* Fixes as per review comments

* Update as per review comments

* Login as az devops

* Create new entry point script to create package work item

* Load common ps module

* Add devops login step

* Pipe login token to devops login

* Pipe login token to devops login

* Add looging

* more logging

* Remove duplicate login from new script and add more logging

* More logging to debug create work item

* Remove script added for debugging

* Skip az interactive login when PAT is passed

* Remove debug logging

---------

Co-authored-by: praveenkuttappan <praveenkuttappan@gmail.com>
2023-11-21 14:08:14 -08:00
Azure SDK Bot
4d25b88970
Update Test-SampleMetadata.ps1 for "document-intelligence" (#5165)
Co-authored-by: Sameeksha Vaity <savaity@microsoft.com>
2023-11-14 11:15:01 -08:00
Azure SDK Bot
cc4f390a85
Avoid unnecessary CHANGELOG release date prompt (#5161)
Resolves #7261

Co-authored-by: Heath Stewart <heaths@microsoft.com>
2023-11-13 11:44:35 -08:00
Azure SDK Bot
e5a9ff95ec
ensure that empty package properties are not honored when dumping them to json (#5081)
Co-authored-by: Scott Beddall (from Dev Box) <scbedd@microsoft.com>
2023-10-30 12:22:51 -07:00
Azure SDK Bot
6aec2a3807
Update to using new azcopy auto-login (#5080)
azcopy login is going to be deprecated soon in version 10.22 so
we need to move to the new auto-login model that is documented at
https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-authorize-azure-active-directory#authorize-a-service-principal-by-using-a-client-secret

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2023-10-27 14:12:31 -07:00
Azure SDK Bot
71416d73b1
Sync eng/common directory with azure-sdk-tools for PR 7181 (#5057)
* Update branch deletion code

- Update to use the gh cli for github operations
- Switch to using graphql for pulling branches as the rest api
  starts to fail after a certain number of branches and we can
  also pull back all the associated data like pull request info
  and commit date all in one query.
- switc to running on ubuntu 1ES pool

Improve query error handling

Fix condition

Fix slash escaping on the command line

clean-up pipeline

* Update eng/common/scripts/Delete-RemoteBranches.ps1

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

* Update eng/common/scripts/Delete-RemoteBranches.ps1

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

---------

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
Co-authored-by: Ben Broderick Phillips <ben@benbp.net>
2023-10-27 13:48:04 -07:00
Azure SDK Bot
5174503dc3
Check az login for target subscription in stress deploy login (#5054)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2023-10-24 16:23:34 -04:00
Azure SDK Bot
81d1143a43
Set product as parent of package work item. (#5020)
Co-authored-by: praveenkuttappan <prmarott@microsoft.com>
2023-10-16 09:41:26 -07:00
Azure SDK Bot
436c0905e2
Use url version spec for autorest.* packages (#5017)
Co-authored-by: Patrick Hallisey <pahallis@microsoft.com>
2023-10-11 13:46:07 -07:00
Azure SDK Bot
35e42b99cf
Sync eng/common directory with azure-sdk-tools for PR 7040 (#4997)
* Remove codeowners resolution logic from docs scripts

* Remove parameters that aren't needed

* Remove auth information from update-docsms-metadata.yml

---------

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2023-10-02 14:58:21 -07:00
Azure SDK Bot
402f4ed94e
Change prod maintenance day. Fix stress watcher deploy (#4989)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2023-09-26 18:22:10 -07:00
Azure SDK Bot
744450472d
Sync eng/common directory with azure-sdk-tools for PR 6919 (#4988)
* Add autorest-preview pipeline

* Add emitternpminstall

* Always install

* Use shorter leg name

* Add short circuiting to emitter install

* Use language matrix function

* Don't look for subfolders in the matrix package folders

* Revert unnecessary eng/common changes

* Rewrite GetPullRequestUrl to Get-BuildSourceDescription

* Remove alias from Invoke-LoggedCommand

* Use invoke-expression instead of shelling out

* Add better job splitting

* Replace Folder with Directory

---------

Co-authored-by: Patrick Hallisey <pahallis@microsoft.com>
2023-09-25 12:35:11 -07:00
Azure SDK Bot
e8b968fea0
Sync eng/common directory with azure-sdk-tools for PR 7002 (#4984)
* Add LockDeletionForDays parameter to set PodDisruptionBudget and cleanup job

* Use matrix for parallel tests. PDB improvements+docs.

* Fix kubectl namespace context preservation on login

---------

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2023-09-22 17:36:39 -04:00
Azure SDK Bot
f04b7164eb
Serilaize with depth (#4960)
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2023-09-18 10:43:30 -07:00
Azure SDK Bot
309cab82a0
Sync eng/common directory with azure-sdk-tools for PR 6895 (#4948)
* Add legacy moniker migration logic

* Add functionality from Java testing

---------

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2023-09-13 13:28:58 -07:00
Azure SDK Bot
9d97c40d3f
Sync eng/common directory with azure-sdk-tools repository (#4937) 2023-09-11 16:10:01 +00:00
Azure SDK Bot
129a36dbc9
Sync eng/common directory with azure-sdk-tools for PR 6903 (#4926)
* fixes

* ongoing

* ongoing

* add top-level throw/catches showing exception info

* fix handling of cases when there is 1 link and when there is no RetryAfter.Delta

* handle lack of Exception.Headers property

* handle gracefully obtaining status code from $_.Exception.InnerException.ErrorCode

---------

Co-authored-by: Konrad Jamrozik <kojamroz@microsoft.com>
2023-09-07 14:12:30 -07:00
Azure SDK Bot
dd23631119
Use emitter-package-lock.json and @local feed view (#4910)
Co-authored-by: Patrick Hallisey <pahallis@microsoft.com>
2023-08-23 16:33:32 -07:00
Azure SDK Bot
97845b77eb
Sync eng/common directory with azure-sdk-tools for PR 6632 (#4912)
* Docs Onboarding 2 - Add eng/common changes

* Dictionary Syntax

* Remove $UpdatePackageMetadata, it can be handled in other places

* Set exit code to 0 on success. The last executable to run (pip or docker or other) may be passed through

* Add optional _DocsOnboardingOrdinal sorting to work around onboarding sequence problems

* Update-DocsMsPackages2.ps1 -> Update-DocsMsPackages.ps1

---------

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2023-08-23 14:53:33 -07:00
Azure SDK Bot
518d9d26d3
Sync eng/common directory with azure-sdk-tools for PR 6782 (#4891)
* Create Epic work item type as Service or product when running prepare release script

* Updated epic type field name

* Additional change to create release plan work item

* Exclude work items created from release planner test

* Fix issue in params

* Updated as per review comments

---------

Co-authored-by: praveenkuttappan <prmarott@microsoft.com>
2023-08-23 11:15:33 -07:00
Azure SDK Bot
cd2edf266e
Used ScheduledPurgeDate for both KV, MHSM (#4866)
The previous property was calculated so didn't exist from the REST-based
call. Also updated the api-version to the latest stable control plane
version.

Co-authored-by: Heath Stewart <heaths@microsoft.com>
2023-08-09 16:29:58 -07:00
Azure SDK Bot
b7e6719046
Make x509 certificate script from azure-sdk-for-net common to repos (#4817)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2023-07-24 13:34:08 -07:00
Azure SDK Bot
848d30ef21
Set DOCKER_BUILDKIT to 1 in stress deploy image build (#4815)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2023-07-24 15:01:23 -04:00
Azure SDK Bot
a65df8475c
Sync eng/common directory with azure-sdk-tools for PR 6544 (#4808)
* Only save package properties for track 2 packages (prevents overwrites of track 2 package info by track 1 packages)

* Only overwrite if the package is track 2

---------

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2023-07-19 21:05:34 -07:00
Azure SDK Bot
cdfabe3cc5
Sync eng/common directory with azure-sdk-tools for PR 6530 (#4801)
* Update-DocsMsMetadata.ps1 can fail the build on invalid packages

* Better error handling and logging

* Review feedback

---------

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2023-07-18 21:33:10 -07:00
Azure SDK Bot
3c1ed52f3e
Sync eng/common directory with azure-sdk-tools for PR 6521 (#4793)
* Use System.Threading.Mutex to make threadsafe

* Rename test, add comments

---------

Co-authored-by: Mike Harder <mharder@microsoft.com>
2023-07-14 17:19:22 -07:00
Azure SDK Bot
25f3b9a228
Sync eng/common directory with azure-sdk-tools for PR 6468 (#4780)
* Update typespec common scripts

* Revert change of specCloneDir variable

---------

Co-authored-by: raychen <raychen@microsoft.com>
2023-07-11 11:41:45 +08:00
Azure SDK Bot
ce35bd1146
Updates for Codeowneers changes (#4745)
Co-authored-by: James Suplizio <jasupliz@microsoft.com>
2023-06-29 14:52:15 -07:00
Azure SDK Bot
3bce2fa45c
Sync eng/common directory with azure-sdk-tools for PR 6305 (#4709)
* Added switch to skip sync and generate script call

* output switch

* support forked spec repo in regex

---------

Co-authored-by: raychen <raychen@microsoft.com>
2023-06-08 19:10:00 -07:00
Azure SDK Bot
a07447b08c
Sync common script changes from azure-sdk repo (#4704)
Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2023-06-07 19:35:59 -07:00
Azure SDK Bot
4727da95f4
Sync eng/common directory with azure-sdk-tools for PR 6293 (#4703)
* Use local HEAD commit to create tsp-location.yaml

* Set default repo value in tsp-location

* Update eng/common/scripts/TypeSpec-Project-Process.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Update eng/common/scripts/TypeSpec-Project-Process.ps1

Co-authored-by: Konrad Jamrozik <kojamroz@microsoft.com>

* Resolve feedback

* Fixed git remote repo parsing

---------

Co-authored-by: raychen <raychen@microsoft.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
Co-authored-by: Konrad Jamrozik <kojamroz@microsoft.com>
2023-06-07 16:07:16 -07:00
Azure SDK Bot
2a4d1835b8
Sync eng/common directory with azure-sdk-tools for PR 6272 (#4698)
* Support localspecrepo if pass in this parameter

* Support regen sdk code based on local typespecs

* Added reference doc to error message

---------

Co-authored-by: raychen <raychen@microsoft.com>
2023-06-05 18:12:43 -07:00
Azure SDK Bot
72cdbaa0fe
Make Json files the source of truth for DocsMS (#4681)
Co-authored-by: James Suplizio <jasupliz@microsoft.com>
2023-06-01 10:14:06 -07:00
Azure SDK Bot
1cda5b99f5
Sync eng/common directory with azure-sdk-tools for PR 6250 (#4675)
* Revert the change and return tsplocation folder

* Out null for the new-item command

* exit if return failure when call sync script

* Added repo assignment in local path scenario

* Added more output

* Fix path processing in windows

* exit when run generate script with error

---------

Co-authored-by: raychen <raychen@microsoft.com>
2023-05-31 01:50:29 -07:00
Azure SDK Bot
c3f8bccd27
Sync eng/common directory with azure-sdk-tools for PR 6222 (#4674)
* Updated typespec common script

* Updated per the review comment

---------

Co-authored-by: raychen <raychen@microsoft.com>
2023-05-31 15:41:25 +08:00
Azure SDK Bot
b9d83aa5b8
Use test registry in npmrc for alpha packages (#4666)
Co-authored-by: Patrick Hallisey <pahallis@microsoft.com>
2023-05-30 14:58:50 -07:00
Azure SDK Bot
65a90e4afb
Sync eng/common directory with azure-sdk-tools for PR 6202 (#4651)
* Adding initial commit of TypeSpecE2E common script

* add TODO comment

* Updated per feedback

---------

Co-authored-by: raychen <raychen@microsoft.com>
2023-05-24 15:50:42 -07:00
Azure SDK Bot
8f2375dad5
Handle docker hangs and subscription mismatch on acr login (#4653)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2023-05-24 18:45:14 -04:00
Azure SDK Bot
b8e6aa1fbd
move the cleanup config to -SaveInputs parameter on the cli (#4646)
Co-authored-by: m-nash <prognash@gmail.com>
2023-05-22 14:18:52 -07:00
Azure SDK Bot
b32fccd303
Add Azure OpenAI (#4644)
Co-authored-by: Shawn Fang <45607042+mssfang@users.noreply.github.com>
2023-05-19 19:42:49 +00:00
Azure SDK Bot
5a348b6766
Swap defaults: -Login and -PushImages to -SkipLogin and -SkipPushImages (#4626)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2023-05-11 13:29:04 -07:00
Azure SDK Bot
e08c281cac
Eng workflows sync and branch cleanup additions (#4611)
Co-authored-by: James Suplizio <jasupliz@microsoft.com>
2023-05-04 15:16:36 -07:00
Azure SDK Bot
4d898ffa59
Add script to verify that our docs metadata json files. (#4581)
Co-authored-by: James Suplizio <jasupliz@microsoft.com>
2023-04-25 15:26:03 -07:00
Azure SDK Bot
26e3b35c17
Sync eng/common directory with azure-sdk-tools for PR 5911 (#4563)
* stress test warning against breaking helm versions

* import

* pr update

* Update eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>

---------

Co-authored-by: Albert Cheng <albertcheng@microsoft.com>
Co-authored-by: Albert Cheng <38804567+ckairen@users.noreply.github.com>
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2023-04-20 14:16:14 -07:00
Azure SDK Bot
fbf20bf8b9
update sparse checkout path (#4558)
Co-authored-by: chunyu3 <chunyu@microsoft.com>
2023-04-19 11:37:32 +08:00
Azure SDK Bot
18fb2de089
Sync eng/common directory with azure-sdk-tools for PR 5951 (#4537)
* Switch to using standard PAT tokens instead of base 64

For most of these we can use the standard System.AccessToken given to
the build instead of maintaining a specific token. However that
token isn't base 64 encoded so we need to encode it.

With this we can stop explicitly passing PAT's unless we need to
access another DevOps org and we also don't have to remember
to keep the PAT's in KV base 64 encoded.

Add error detection for queue build script to fail if we get login response.

* PR Feedback

---------

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2023-04-11 18:32:39 -07:00
Azure SDK Bot
6999572809
Sync eng/common directory with azure-sdk-tools for PR 5608 (#4411)
* ongoing

* Move get-codeowners scripts and tests to their own dirs

* address PR remarks

* Fix CodeOwnerFileLocation path, fix casing, and dedup param defaults

* fix param names

* add todos on needed changes in cpp repo

* Add CodeownersFileLocation to Get-Codeowners and use $null for default param values

* move get-codeowners back to scripts/ and rename -functions to .lib

* fix: use empty string as defaults instead of $nulls, to fix invocation

* fix bug with invocation of Get-Codeowners + add support for passing IncludeNonUserAliases as switch

* fix path iin Metadata-Helpers.ps1

* fix typo

* Update archetype-cpp-release.yml

---------

Co-authored-by: Konrad Jamrozik <kojamroz@microsoft.com>
2023-03-30 23:55:52 -07:00
Azure SDK Bot
97c7630c2d
Sync eng/common directory with azure-sdk-tools for PR 5726 (#4488)
* rerun flag

* rerun failed stress test

* naming & commenting

* update

* function and var renaming for better readability

* readability & exit on error

---------

Co-authored-by: Albert Cheng <albertcheng@microsoft.com>
2023-03-28 09:37:59 -07:00
Azure SDK Bot
e9f900f7d2
Explicitly set PSNativeCommandArgumentPassing to Legacy for git push script (#4481)
https://learn.microsoft.com/en-us/powershell/scripting/learn/experimental-features?view=powershell-7.3#psnativecommandargumentpassing
Do to that breaking change in PS 7.3 we need to opt into the legacy arg parsing.

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2023-03-24 11:12:14 -07:00
Azure SDK Bot
bd98ee06ec
Sync eng/common directory with azure-sdk-tools for PR 5742 (#4465)
* add some default output to see about minimizing any occurrence of the task failing for no reason. perhaps having some output will allow devops to have an easier time with the invocation

* update message

* Update eng/common/scripts/trust-proxy-certificate.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2023-03-21 16:14:28 -07:00
Azure SDK Bot
f8ae5d9d8b
Sync eng/common directory with azure-sdk-tools for PR 5691 (#4450)
* typespec renaming

* add back scripts for cadl

* support .cadl and .tsp

* rename

* add newline at the end of file

---------

Co-authored-by: FAREAST\chunyu <chunyu@microsoft.com>
2023-03-16 11:21:39 +08:00
Azure SDK Bot
6f2e39a5c5
Sync eng/common directory with azure-sdk-tools for PR 5702 (#4453)
* add healthinsights to Test-SampleMetadata script

* spacing

* update productSlug to azure-health-insights

---------

Co-authored-by: Asaf Levi <asaflevi@microsoft.com>
2023-03-15 11:31:48 -07:00
Azure SDK Bot
6706c20b26
Add product slug for Web PubSub (#4415)
To make sample script use correct product slug.

Related PR: https://github.com/Azure/azure-sdk-for-net/pull/34618

Co-authored-by: JialinXin <jixin@microsoft.com>
2023-03-07 16:34:17 -05:00
Azure SDK Bot
ecb5f3db1c
logging api post request body (#4404)
Co-authored-by: Albert Cheng <albertcheng@microsoft.com>
2023-03-02 14:21:41 -08:00
Azure SDK Bot
4c22ce6ab0
Sync eng/common directory with azure-sdk-tools for PR 5540 (#4396)
* add parameter to set cadl emitter options

* remove emitter name in the additional parameter

---------

Co-authored-by: chunyu3 <chunyu@microsoft.com>
2023-03-01 11:54:03 +08:00
Azure SDK Bot
1df70cb104
Sync eng/common directory with azure-sdk-tools for PR 5562 (#4384)
* Add todos to update packages to pick up the newest CODEOWNERS interpreter

* update

---------

Co-authored-by: Konrad Jamrozik <kojamroz@microsoft.com>
2023-02-23 20:49:29 -05:00
Azure SDK Bot
77a849ffac
Sync eng/common directory with azure-sdk-tools for PR 5431 #2501
Co-authored-by: Konrad Jamrozik <kojamroz@microsoft.com>
2023-02-23 13:54:22 -08:00
Azure SDK Bot
0fc14a7464
Sync eng/common directory with azure-sdk-tools for PR 5103 (#4367)
* - improve $commandOutput processing - capitalization fixups + some naming refactoring - update ToolVersion to 1.0.0-dev.20230213.7 - fix param: --codeowners-file-path -> --codeowners-file-path-or-url; minor fixes - update Azure.Sdk.Tools.RetrieveCodeOwners package ver to 20230213.2 - document params + add TargetPath

* update ToolVersion to 1.0.0-dev.20230214.3

* Add diag output + tests

* replace sima-zhu with konrad-jamrozik

---------

Co-authored-by: Konrad Jamrozik <kojamroz@microsoft.com>
2023-02-16 13:40:53 -08:00
Azure SDK Bot
f8a1e7fc5c
remove obsolete tests (#4357)
Co-authored-by: Konrad Jamrozik <kojamroz@microsoft.com>
2023-02-14 14:34:41 -08:00
Azure SDK Bot
466c82a361
Sync eng/common directory with azure-sdk-tools for PR 5427 (#4356)
Co-authored-by: archerzz <archerzz@gmail.com>
2023-02-14 10:54:18 +08:00
Azure SDK Bot
5e0159d8fa
Improve diagnostics for copy-docs-to-blobstorage script (#4351)
Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2023-02-13 11:01:48 -08:00
Azure SDK Bot
57072c8af3
Temporarily disable error handling for Get-AzKeyVault -InRemovedState (#4329)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2023-02-02 15:20:59 -05:00
Azure SDK Bot
1b2378be73
Enable nodepool update via bicep and update node SKUs (#4322)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2023-02-02 11:03:30 -08:00
Azure SDK Bot
b8ddcc616f
Consume cosmos emulator from install path on agent (#4316)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2023-01-31 21:33:57 -08:00
Azure SDK Bot
75e91ce668
Sync eng/common directory with azure-sdk-tools for PR 5272 (#4309)
* add documentation for cadl sync and generate

* move the file to doc/common and link to it from each script

* update links after file rename

---------

Co-authored-by: m-nash <prognash@gmail.com>
2023-01-31 14:44:23 -08:00
Azure SDK Bot
d6a2fedb88
Sync eng/common directory with azure-sdk-tools for PR 5231 (#4288)
* move scripts to common

* add reference to common script

* address feedback

* couple tweaks to relative path updates

* update copy paste issue with emitter path

* updates to make scripts more generic

---------

Co-authored-by: m-nash <prognash@gmail.com>
2023-01-30 12:43:04 -08:00
Azure SDK Bot
ed2732dd80
ongoing (#4249)
Co-authored-by: Konrad Jamrozik <kojamroz@microsoft.com>
2023-01-13 17:12:04 -08:00
Azure SDK Bot
90a4316ae5
Update on existing metadata json file. (#4247)
Co-authored-by: Sima Zhu <sizhu@microsoft.com>
2023-01-13 12:41:51 -08:00
Azure SDK Bot
d0c2234be4
Fix Github to GitHub (#4243)
Co-authored-by: Sima Zhu <sizhu@microsoft.com>
2023-01-12 15:27:06 -08:00
Azure SDK Bot
42e91a5c91
fix paths + add diagnostic output on failure (#4231)
Co-authored-by: Konrad Jamrozik <kojamroz@microsoft.com>
2023-01-09 19:14:15 -08:00
Azure SDK Bot
aec83d672b
update package versions (#4229)
Co-authored-by: Konrad Jamrozik <kojamroz@microsoft.com>
2023-01-09 14:24:13 -08:00
Azure SDK Bot
f2201b1d8d
Hyperlink from eng/common job-matrix README to matrix_generator.md (#4227)
Co-authored-by: Konrad Jamrozik <kojamroz@microsoft.com>
2023-01-07 04:35:16 -08:00
Azure SDK Bot
bf5e9bb757
Sync eng/common directory with azure-sdk-tools for PR 5027 (#4221)
* move things out from eng/common/scripts/job-matrix

* fix broken link for CI/CD verification

Co-authored-by: Konrad Jamrozik <kojamroz@microsoft.com>
2023-01-04 22:05:53 -05:00
Azure SDK Bot
b67b46b059
Sync eng/common directory with azure-sdk-tools for PR 4985 (#4209) 2022-12-21 09:42:17 -08:00
Azure SDK Bot
c2e6607f0b
Sync eng/common directory with azure-sdk-tools for PR 4880 (#4203) 2022-12-20 11:15:36 -08:00
Azure SDK Bot
37f197c383
Sync eng/common directory with azure-sdk-tools for PR 4988 (#4202)
Mirror of https://github.com/Azure/azure-sdk-tools/pull/4988
2022-12-20 00:16:22 +00:00
Azure SDK Bot
ffbafa165e
Add load-testing to list of valid sample slugs (#4192)
Co-authored-by: Harshan B <Harshan01@gmail.com>
2022-12-16 14:39:01 -05:00
Azure SDK Bot
ceeda9c7b4
Update the regex to embrace more image names (#4190)
Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-12-15 11:31:59 -08:00
Azure SDK Bot
111776e6af
Sync eng/common directory with azure-sdk-tools for PR 4944 (#4191)
* Helm template for deploy script

* Update eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>

* fixing helm upgrade command

Co-authored-by: Albert Cheng <albertcheng@microsoft.com>
Co-authored-by: Albert Cheng <38804567+ckairen@users.noreply.github.com>
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-12-14 12:48:57 -08:00
Azure SDK Bot
066db23d4d
Sync eng/common directory with azure-sdk-tools repository (#4186) 2022-12-12 22:01:05 -08:00
Azure SDK Bot
ae19ecafd6
fix grammar (#4175)
Co-authored-by: Feng Zhou <fenzhou@microsoft.com>
2022-12-08 19:19:56 -08:00
Azure SDK Bot
4d4dfc8c51
Sync eng/common directory with azure-sdk-tools for PR 4713 (#4135)
* stress matrix docker args

* github pr update

Co-authored-by: Albert Cheng <albertcheng@microsoft.com>
2022-11-29 02:06:51 -05:00
Azure SDK Bot
90fc46693f
Fix push script passing in optional argument (#4125)
With new PS command line parsing update in 7.3 they explicitly
pass "" to the native commands which in our usage here we don't
want. However setting the variable to null instead works for our
scenario with both command line parsing strategies so using it here.

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2022-11-18 15:34:32 -05:00
Azure SDK Bot
a9efb5ad56
Use the new audience field (#4124)
Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-11-17 13:59:23 -05:00
Azure SDK Bot
385492999d
Sync eng/common directory with azure-sdk-tools for PR 4628 (#4111)
* Add new check in APIView to verify and enforce package name approval

* Changes as per review feedback

* Apply suggestions from code review

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

Co-authored-by: praveenkuttappan <praveen.kuttappan@gmail.com>
Co-authored-by: Praven Kuttappan <55455725+praveenkuttappan@users.noreply.github.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2022-11-17 12:42:22 -05:00
Azure SDK Bot
852c07d16b
Fix minor issue getting stress secret labels with quoting and error handling (#4122)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-11-16 17:41:02 -05:00
Azure SDK Bot
dd8a5ef542
Sync eng/common directory with azure-sdk-tools for PR 4701 (#4119)
* Make the env variable upper case

* Adding debug messages.

* Log out the link

Co-authored-by: sima-zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
2022-11-15 15:40:04 -05:00
Azure SDK Bot
801452f6b9
Sync eng/common directory with azure-sdk-tools for PR 4632 (#4117)
* Service readme index table stays the same even the table content needs to update

* adjust the edge cases tests

* change the helper function to helper folder

* add missing files

* Fixed the service name

Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-11-14 18:56:13 -05:00
Azure SDK Bot
1488aa8df7
Warn user when helm fails due to large files not being ignored (#4107)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-11-10 17:27:54 -05:00
Azure SDK Bot
6426e9d901
Handle possible strict mode bugs (#4106)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-11-10 16:48:56 -05:00
Azure SDK Bot
296fdbcd23
Set default LimitRange for stress container resource requests (#4092)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-11-08 12:46:34 -05:00
Azure SDK Bot
f4bea88a51
Add package source override to toc script. (#4081)
Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-11-02 13:17:27 -04:00
Azure SDK Bot
ce1d5837e5
Handle helm version modifiers in stress test min version check (#4085)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-11-01 22:41:45 -04:00
Azure SDK Bot
5d64990678
Sync eng/common directory with azure-sdk-tools for PR 4544 (#4080)
* Fix contains method in stress generate function

* Update stress examples to addons 0.2.0. Script QOL fixes.

* Skip CI print for stress matrix. Minor improvements.

* Fix non-matching Chart.yaml files being evaluated too soon

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-11-01 15:27:14 -04:00
Azure SDK Bot
214f4a364e
Sync eng/common directory with azure-sdk-tools for PR 4543 (#4071)
* stress test addons version check

* cleanup

Co-authored-by: Albert Cheng <albertcheng@microsoft.com>
2022-10-27 18:07:33 -07:00
Azure SDK Bot
f174d97e8a
Improve scenario matrix edge case handling (#4065)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-10-26 12:51:22 -07:00
Azure SDK Bot
17a0ad5419
Sync eng/common directory with azure-sdk-tools for PR 4480 (#4046)
* Add extra parameters for .net readme path

* Use another way for default value

* Remove custom source

Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-10-23 21:03:56 -07:00
Azure SDK Bot
90f1ff9364
Sync eng/common directory with azure-sdk-tools for PR 3790 (#4041)
* Added yaml support for job matrix creation

* autogen scenario matrix for stress test

* Temporary Working State

* update to default sparse

* pr comments and some error handling

* custom matrixfilename and ordering of generatedValues.yaml

* common module import

* JobMatrix write host

Co-authored-by: Albert Cheng <albertcheng@microsoft.com>
2022-10-20 16:30:02 -07:00
Azure SDK Bot
083a88e884
Bump the code owner retriver version. (#4020)
Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-10-12 16:31:36 -04:00
Azure SDK Bot
96984bd204
Fix 50x errors while loading page links (#4001)
We have hit a few 50x errors while pulling a page to get
links and that has caused the rest of the link checking to
terminate early. To fix that we switching to LogError which will
output an error in devops instead of Write-Error which terminates
immediately. We also add some retry count to the page retrieval
and cache file retrieval to help with these transitent 50x issues.

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2022-10-06 14:24:20 -07:00
Azure SDK Bot
b809bf9883
Sync the devops helper scripts between azure-sdk repo and tools repo (#3949)
This should fix https://github.com/Azure/azure-sdk-tools/issues/3538
as it will now upgrade the devops extension to the latest version
which has the auth fix needed.

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2022-09-20 11:04:28 -07:00
Azure SDK Bot
e8906ca3b4
Sync eng/common directory with azure-sdk-tools for PR 3826 (#3863)
* Add link checking for stress CI

* Remove region segment from stress testing links

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-08-03 15:42:00 -07:00
Azure SDK Bot
9a0463849a
Fix bad path to sample matrix json (#3860)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-08-02 14:01:54 -07:00
Azure SDK Bot
f2efcedd1d
Sync eng/common directory with azure-sdk-tools for PR 3753 (#3857)
* Bump MacOs version to macos-11

* Update eng/common/scripts/job-matrix/tests/job-matrix-functions.tests.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Update eng/common/scripts/job-matrix/tests/job-matrix-functions.tests.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

Co-authored-by: sima-zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2022-07-27 15:52:01 -07:00
Azure SDK Bot
ea2d3adb91
Sync eng/common directory with azure-sdk-tools for PR 3735 (#3845)
* Detect API changes using new snadboxinx approach

* Added strictmode

* Remove unset variable

* Changes as per strict mode 3

* Rervert strict mode to allow language level fixes to merge first

Co-authored-by: praveenkuttappan <prmarott@microsoft.com>
2022-07-25 14:50:31 -07:00
Azure SDK Bot
584f83c7bd
Sync eng/common directory with azure-sdk-tools for PR 3702 (#3843)
* Add language-service to list of valid sample slugs

* Update link to taxonomies

Co-authored-by: Heath Stewart <heaths@microsoft.com>
2022-07-19 17:21:08 -07:00
Azure SDK Bot
c3ecbcddad
Update casing for 'verison' (#3821)
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2022-07-19 13:34:32 -07:00
Azure SDK Bot
a3926d6437
Fixed the metadata for better handling (#3824)
Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-07-13 15:00:25 -07:00
Azure SDK Bot
12f52838c7
Sync eng/common directory with azure-sdk-tools for PR 3578 (#3819)
* Fixed the common contract.

* Fix for current regex

* Add new line

* Update eng/common/scripts/Service-Level-Readme-Automation.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* move compare and merge into gerenerate function

* Fix on new lines

Co-authored-by: sima-zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2022-07-12 15:23:31 -07:00
Azure SDK Bot
9ec257d9dd
Update set-test-pipeline-version.yml to handle one or more packages (#3814)
Co-authored-by: James Suplizio <jasupliz@microsoft.com>
2022-07-07 17:46:37 -07:00
Azure SDK Bot
ef2f8d92c9
Fix null errors in SetTestPipelineVersion, Update Package Upload step name. (#3813)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2022-07-07 14:17:16 -07:00
Azure SDK Bot
0456c58298
Sync eng/common directory with azure-sdk-tools for PR 3568 (#3804)
* Skip yml files for which parsing failed

* Update eng/common/scripts/Verify-Resource-Ref.ps1

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2022-07-06 14:00:13 -07:00
Azure SDK Bot
b59bc3628b
Only update/override powershell module path when in CI on module script import (#3791)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-07-06 13:29:33 -07:00
Azure SDK Bot
4a0e339563
Improve matrix config include docs (#3801)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-07-06 13:27:02 -07:00
Azure SDK Bot
803dfb5938
Update mgmt toc structure and modify the service readme (#3798)
Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-07-05 14:31:13 -07:00
Azure SDK Bot
3d62767b5e
Sync eng/common directory with azure-sdk-tools for PR 3491 (#3781)
* stress test script and docs migration from test to pg cluster

* comments for stress-test-deployment-lib script

Co-authored-by: Albert Cheng <albertcheng@microsoft.com>
2022-06-29 16:52:10 -07:00
Azure SDK Bot
6ab413955c
Sync eng/common directory with azure-sdk-tools for PR 3510 (#3778)
* Update verify-readme to take a single or multiple paths

* chance ScanPaths to a comma delimited list and coalesce ScanPath/ScanPaths into a single variable for the script

* VS Code was nice enough to add an extra single quote when adding a quote to the end of the line'

* Capture ScanPaths.Split into an array so we don't have to call Split again

Co-authored-by: James Suplizio <jasupliz@microsoft.com>
2022-06-28 15:52:10 -07:00
Azure SDK Bot
98d4502d3a
Sync eng/common directory with azure-sdk-tools for PR 3481 (#3764)
* Support local addons path override in stress test deployment

* Support username based deployId in local stress deployment

* Support WhatIf in stress infrastructure provision script

* Simplify stress user detection

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Run helm plugin add with helper

* Add WhatIf support to ps module install helper function

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2022-06-24 11:23:53 -07:00
Azure SDK Bot
3174833951
Fix Bug in Resource Ref Verifier (#3758)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2022-06-20 13:53:26 -07:00
Azure SDK Bot
164a2d6a9a
Sync eng/common directory with azure-sdk-tools for PR 3267 (#3655)
* Use seperate scripts

* address comments.

* do compare and update

* save on the service level readme

* have the helper for reuse function

* remove mgmt table

* changes

* fix

* no return on error

* return if no contents

* Address comments

* change the table

* address wes comments.

* address wes comments.

* address more comments.

Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-06-14 08:36:00 -07:00
Azure SDK Bot
48ef687a8f
Fix issue where matrix replace was not using imported display names (#3694)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-06-02 13:18:44 -07:00
Azure SDK Bot
a401ac937a
Sync eng/common directory with azure-sdk-tools for PR 3378 (#3679)
* Create json package property parent directory

* Fix the issue in script

Co-authored-by: praveenkuttappan <prmarott@microsoft.com>
2022-05-26 09:45:27 -07:00
Azure SDK Bot
644ab3e0b7
Sync eng/common directory with azure-sdk-tools for PR 3342 (#3664)
* Delete PR and branch which central PR is closed

* more logging changes

* resume the delete operations.

* Change the pr link directly

* fix the regex

* Refactor on regex name

* change the function to inline logic

* change typo

* delete on branch

* make changes on comments

* add commnets

* Update eng/common/scripts/Delete-RemoteBranches.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Update eng/common/scripts/Delete-RemoteBranches.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Update eng/common/scripts/Delete-RemoteBranches.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Update eng/common/scripts/Delete-RemoteBranches.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

Co-authored-by: sima-zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2022-05-23 14:47:48 -07:00
Azure SDK Bot
f3e2f6f2a5
Add Language product slug (#3665)
Co-authored-by: Deyaaeldeen Almahallawi <dealmaha@microsoft.com>
2022-05-23 12:30:39 -07:00
Azure SDK Bot
e010b9176b
Update the version tool to the latest (#3616)
Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-05-04 10:10:09 -07:00
Azure SDK Bot
e788cf6303
Sync eng/common directory with azure-sdk-tools for PR 3250 (#3595)
* Change the direction of the commit date

* Log on right place

* remove auth

* fix typo

* Add auth token back

* add delete back

* Update eng/common/scripts/Delete-RemoteBranches.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Update Delete-RemoteBranches.ps1

* Update Delete-RemoteBranches.ps1

* Update Delete-RemoteBranches.ps1

* Update Delete-RemoteBranches.ps1

* Update Delete-RemoteBranches.ps1

Co-authored-by: sima-zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2022-04-28 12:51:29 -07:00
Azure SDK Bot
d1be7c8bfd
Remove the daily branch before date (#3593)
Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-04-28 08:23:06 -07:00
Azure SDK Bot
637def0979
Sync eng/common directory with azure-sdk-tools for PR 3221 (#3591)
* Make docs.ms link relative link

* Update Update-DocsMsMetadata.ps1

* Update eng/common/scripts/Update-DocsMsMetadata.ps1

Co-authored-by: Daniel Jurek <djurek@microsoft.com>

Co-authored-by: sima-zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2022-04-27 13:26:09 -07:00
Azure SDK Bot
c90ffacb92
Sync eng/common directory with azure-sdk-tools for PR 3169 (#3572)
* Use the batch version of ValidateDocsMsPackagesFn

* Use proper pipelining for GetPackageInfoJson function

Co-authored-by: Patrick Hallisey <pahallis@microsoft.com>
2022-04-20 15:33:16 -07:00
Azure SDK Bot
ce2c8db501
Sync eng/common directory with azure-sdk-tools for PR 2963 (#3542)
* Verify changelog like a release is about to take place if a vlaid date is present

* Update eng/common/scripts/ChangeLog-Operations.ps1

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

* Update eng/common/scripts/ChangeLog-Operations.ps1

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

* Update eng/common/scripts/ChangeLog-Operations.ps1

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

* Update eng/common/scripts/ChangeLog-Operations.ps1

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

* Update eng/common/scripts/ChangeLog-Operations.ps1

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

* Remove strict date verification

* Add function for sorting changelog entries

* Minor cleanups

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
Co-authored-by: Chidozie Ononiwu (His Righteousness) <31145988+chidozieononiwu@users.noreply.github.com>
Co-authored-by: Ben Broderick Phillips <ben@benbp.net>
2022-04-08 20:37:20 -07:00
Azure SDK Bot
fde9966734
Sync eng/common directory with azure-sdk-tools for PR 2967 (#3499)
* Fix bug where job matrices with leading numbers generated duplicate job names

* Fail matrix generation when config path or import paths are not found

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-04-01 18:31:31 -04:00
Azure SDK Bot
cb291def7c
Clean up on cspell (#3487)
Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-03-30 09:51:18 -07:00
Azure SDK Bot
6f426df9f3
fix the target branch checking (#3474) 2022-03-24 14:52:26 -07:00
Azure SDK Bot
300612ca4e
Sync eng/common directory with azure-sdk-tools for PR 2861 (#3425)
* Use common script for git diff changes

* remove extra files

* suppress spell check

* suppress false positive cspelling

* Address comments

* make changes to cspell

* Suppress to right values

* More fix

Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-03-23 16:59:07 -07:00
Azure SDK Bot
ac9d97ddd0
Add support for service names containing a forward slash (#3472)
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2022-03-23 13:19:29 -07:00
Azure SDK Bot
d3a0dd98b6
Sync eng/common directory with azure-sdk-tools for PR 2939 (#3468)
* Remove extra files

* Update common.ps1

* Update Update-DocsMsToc.ps1

Co-authored-by: sima-zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
2022-03-23 11:13:15 -07:00
Azure SDK Bot
aa1751f3c0
Fix the duplicates and revert the unique checking (#3458)
Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-03-22 10:38:56 -07:00
Azure SDK Bot
077d6c97be
Sync eng/common directory with azure-sdk-tools for PR 2847 (#3455)
* Add extra group conditions, template consolidation

* Module fixes. Enable provisioner identity permissions via opensource api.

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-03-21 12:38:56 -07:00
Azure SDK Bot
1f8234059d
Fix several places which needs to add group id property (#3441)
Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-03-16 14:47:02 -07:00
Azure SDK Bot
c930b56100
Sync eng/common directory with azure-sdk-tools for PR 2913 (#3433)
* archetype-sdk-tests-generate.yml now provides an opportunity for additional steps after the target has been cloned but before matrix generation is invoked

Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
2022-03-15 13:21:23 -07:00
Azure SDK Bot
a46b15c8af
Sync eng/common directory with azure-sdk-tools for PR 2910 (#3423)
* Read the ms.service value from csv metadata

* Update eng/common/scripts/Update-DocsMsMetadata.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Update eng/common/scripts/Update-DocsMsMetadata.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Update Update-DocsMsMetadata.ps1

Co-authored-by: sima-zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2022-03-14 14:35:04 -07:00
Azure SDK Bot
812ba555fc
Revert "Verify ChangeLog as ForRelease (#2836)" (#3419)
This reverts commit 6d04c81f6dd95123fd53b5f75bd0849ed9c30da5.

Co-authored-by: Chidozie Ononiwu (His Righteousness) <31145988+chidozieononiwu@users.noreply.github.com>
2022-03-09 16:39:02 -08:00
Azure SDK Bot
ceee07cfa1
Sync eng/common directory with azure-sdk-tools for PR 2836 (#3388)
* Verify changelog like a release is about to take place if a vlaid date is present

* Update eng/common/scripts/ChangeLog-Operations.ps1

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

* Update eng/common/scripts/ChangeLog-Operations.ps1

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

* Update eng/common/scripts/ChangeLog-Operations.ps1

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

* Update eng/common/scripts/ChangeLog-Operations.ps1

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

* Update eng/common/scripts/ChangeLog-Operations.ps1

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
Co-authored-by: Chidozie Ononiwu (His Righteousness) <31145988+chidozieononiwu@users.noreply.github.com>
Co-authored-by: Ben Broderick Phillips <ben@benbp.net>
2022-03-09 14:40:43 -08:00
Azure SDK Bot
3fc8cc0530
Support namespace override for local stress test deployments (#3416)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-03-09 14:09:00 -08:00
Azure SDK Bot
7af1e39c27
Sync eng/common directory with azure-sdk-tools for PR 2875 (#3396)
* Support staging URl to run detect API changes in test env

* Remove empty line

Co-authored-by: praveenkuttappan <prmarott@microsoft.com>
2022-03-07 17:02:52 -08:00
Azure SDK Bot
cd2e916296
Sync eng/common directory with azure-sdk-tools for PR 2824 (#3389)
* Common scripts for git diff changes

* Remove the localizer.

* Check not PR triggered case

* Pretty print

Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-03-03 10:42:41 -08:00
Azure SDK Bot
f3c3d5fa0b
Sync eng/common directory with azure-sdk-tools for PR 2830 (#3383)
* Improve Cosmos Emulator logic

* Run cosmos db emulator in two steps

* Using povershell < core for emulator

* add retry logic to cosmosdb-emulator launch

* Add Retry step fir cosmos emulator launch

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2022-03-02 16:18:16 -08:00
Azure SDK Bot
59e620318e
Check API changes only if package is modified (#3385)
Co-authored-by: praveenkuttappan <prmarott@microsoft.com>
2022-03-02 09:03:02 -08:00
Azure SDK Bot
2a57a72e50
Sync eng/common directory with azure-sdk-tools for PR 2778 (#3384)
* Clean up unused codes and dependencies

* fix the only deleted files

Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-03-01 21:41:40 -08:00
Azure SDK Bot
f07a8e2656
Sync eng/common directory with azure-sdk-tools for PR 2771 (#3377)
* Fix up parameters

* Update general azcopy tool for copying from blobstorage

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2022-02-25 13:05:55 -08:00
Azure SDK Bot
4a72b62e39
Enable API change detection for track2 management package (#3372)
Co-authored-by: praveenkuttappan <prmarott@microsoft.com>
2022-02-25 07:23:04 -08:00
Azure SDK Bot
3674bef659
Move Set-StrictMode to run after PSModule-Helpers.ps1 operations which violate strict mode and cause a falure as in https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1389880&view=logs&j=dc056dfc-c0cf-5958-c8c4-8da4f91a3739&t=61cf404c-fb38-582c-ffd7-16eb9e7ec7ac&l=97 (#3370)
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2022-02-24 11:16:35 -08:00
Azure SDK Bot
3060f0a777
Add timeout on Invoke-request call (#3361)
Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-02-17 22:48:12 -08:00
Azure SDK Bot
473b7c301d
Add logic to generate docs.ms ToC (#3348)
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2022-02-17 14:11:45 -08:00
Azure SDK Bot
a5a65bce1b
Print example docker commands after building stress image (#3332)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-02-08 17:30:51 -08:00
Azure SDK Bot
5157acbf6c
Sync eng/common directory with azure-sdk-tools for PR 2691 (#3324)
* Update prepare-release parameter documentation

* Apply suggestions from code review

Co-authored-by: Cala Zubair <60439897+czubair@users.noreply.github.com>

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
Co-authored-by: Cala Zubair <60439897+czubair@users.noreply.github.com>
2022-02-07 13:53:09 -08:00
Azure SDK Bot
7ae6d82a65
Sync eng/common directory with azure-sdk-tools for PR 2685 (#3317)
* Fixed the no IsPrerelease property issue and retry 3 times on API call.

* check null

Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-02-04 14:20:19 -08:00
Azure SDK Bot
4e67da9775
Support github user namespaces for codespaces environments (#3316)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-02-04 15:04:23 -05:00
Azure SDK Bot
514080fa0c
Send authenticated request to query release tags (#3309)
Co-authored-by: Praveen Kuttappan <praveen.kuttappan@gmail.com>
2022-02-04 08:56:19 -08:00
Azure SDK Bot
dddfbaf296
Sync eng/common directory with azure-sdk-tools for PR 2673 (#3310)
* Fixed the failures from strict mode.

* Update Metadata-Helpers.ps1

Co-authored-by: sima-zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
2022-02-03 16:44:57 -08:00
Azure SDK Bot
e7c81831e1
Sync eng/common directory with azure-sdk-tools for PR 2605 (#3302)
* Non stop on readme checking

* Print the right variable name

Co-authored-by: sima-zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
2022-02-02 16:58:32 -08:00
Azure SDK Bot
213608b951
Sync eng/common directory with azure-sdk-tools for PR 2608 (#3303)
* Get ms alias from github identity.

* Update Update-DocsMsMetadata.ps1

Co-authored-by: sima-zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
2022-02-02 10:54:58 -08:00
Azure SDK Bot
b265366d30
Update matrix doc header titles for replace/modify/append (#3292)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-01-28 18:48:12 -05:00
Azure SDK Bot
1a83513ff1
Syncing eng/common (#3271)
Co-authored-by: Albert Cheng <albertcheng@microsoft.com>
2022-01-24 16:30:35 -08:00
Azure SDK Bot
f15372a7d1
Sync eng/common directory with azure-sdk-tools for PR 2581 (#3272) 2022-01-24 15:52:37 -08:00
Azure SDK Bot
dd40de0606
Sync eng/common directory with azure-sdk-tools for PR 2578 (#3268)
* excluding duplicated env:USER in image tag

* NIT

* removing default repo name

Co-authored-by: Albert Cheng <albertcheng@microsoft.com>
2022-01-21 16:57:41 -08:00
Azure SDK Bot
118e598e3e
Sync eng/common directory with azure-sdk-tools for PR 2596 (#3267)
- Fix bug in Add-ReleaseLease helper script
- Enable better local logging for handling token
- Enable strict mode to help catch issues like this in the future
2022-01-21 15:19:23 -08:00
Azure SDK Bot
34e5d9277b
fix: body is too long when create github release (#3249)
Co-authored-by: tadelesh <tadelesh.shi@live.cn>
2022-01-18 08:54:00 -08:00
Azure SDK Bot
12bae6e64b
Handle skipping docker build when PushImages is set and there is no dockerfile (#3174)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2022-01-06 17:25:52 -05:00
Azure SDK Bot
f937eae89c
Preserve kubectl context namespace if set for active stress cluster (#3187)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2021-12-17 11:41:13 -08:00
Azure SDK Bot
f73c9626fa
Increase github get issues fetch limit (#3183)
Co-authored-by: Praveen Kuttappan <praveen.kuttappan@gmail.com>
2021-12-14 20:19:18 -05:00
Azure SDK Bot
11e625596f
Sync eng/common directory with azure-sdk-tools for PR 2417 (#3176)
* Add logic for retrieving package infro from DevOps feed

* Add template for docwarden

* Remove Invoke-DevOpsAPI changes

* Update verify readme logic

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2021-12-09 17:37:19 -08:00
Azure SDK Bot
8daec30172
Added more parameter for JS use (#3175)
Co-authored-by: sima-zhu <sizhu@microsoft.com>
2021-12-09 16:10:58 -08:00
Azure SDK Bot
8e66a46e71
Use named parameter arguments and explicitly set switch argument values (#3171)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2021-12-08 16:42:51 -08:00
Azure SDK Bot
ccb435daa8
Added new API to get list of github issues (#3170)
Co-authored-by: Praveen Kuttappan <praveen.kuttappan@gmail.com>
2021-12-08 13:55:26 -08:00
Azure SDK Bot
f758b5917a
Taking the parameter literally (#3166)
Co-authored-by: sima-zhu <sizhu@microsoft.com>
2021-12-07 21:57:30 -08:00
Azure SDK Bot
1ae6ecd0a5
Sync eng/common directory with azure-sdk-tools for PR 2363 (#3159)
* Use stress test environment defaults for group and subscription

* Fix parameter passing from deploy-stress-tests.ps1 script

* Redact stress deployment logs and simplify image handling

* Use DevopsLogging parameter to prevent secret logging in non-devops CI environments

* Use switch type for DevopsLogging parameter

* Remove boolean parameter usage in favor of [switch]

* Add default parameter set usage comment

* Throw when clusterGroup and/or subscription is not specified for custom environments

* Add helper function for logging azure pipelines vso commands

* Invert SuppressVsoCommands binary default value

* Vso command fixes

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2021-12-07 13:45:51 -08:00
Azure SDK Bot
2520b2b359
Sync eng/common directory with azure-sdk-tools for PR 2381 (#3162)
* Add disk metrics script and template

* Support linux disk matrics

* Add continueOnError to write-filesystemmetrics.yml

Co-authored-by: Patrick Hallisey <pahallis@microsoft.com>
2021-12-07 12:52:30 -08:00
Azure SDK Bot
68c7e28523
Sync eng/common directory with azure-sdk-tools for PR 2327 (#3158)
* Use docker validation on release pipeline

* format

* Update Update-DocsMsMetadata.ps1

* Update Update-DocsMsMetadata.ps1

* Update Update-DocsMsMetadata.ps1

* For testing null purpose

* Update eng/common/scripts/Update-DocsMsMetadata.ps1

* Update eng/common/scripts/Update-DocsMsMetadata.ps1

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

Co-authored-by: sima-zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
Co-authored-by: Ben Broderick Phillips <ben@benbp.net>
2021-12-06 13:29:33 -08:00
Azure SDK Bot
aa324ab9f5
Sync eng/common directory with azure-sdk-tools for PR 2380 (#3155)
* Add PowerShell Script for Validating READMEs

* Remember my VSCode doesn't use autosave

Co-authored-by: Alan Zimmer <48699787+alzimmermsft@users.noreply.github.com>
2021-12-02 19:07:07 -08:00
Azure SDK Bot
18300fa13c
Sync eng/common directory with azure-sdk-tools for PR 2352 (#3145)
* Add spell check pin changes

* Apply suggestions from code review

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Add package-lock.json

* Set node version and upgrade npm in check-spelling.yml

* Do not mutate local NPM environment

* Remove unnecessary comment, we no longer use npm exec

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2021-12-02 08:39:07 -08:00
Azure SDK Bot
6ed5696c7c
Pipeline auto-discover stress test (#3142)
Co-authored-by: Albert Cheng <albertcheng@microsoft.com>
2021-11-30 14:33:34 -08:00
Azure SDK Bot
38e42875a1
Sync eng/common directory with azure-sdk-tools for PR 2348 (#3144) 2021-11-29 16:41:23 -08:00
Azure SDK Bot
f0a743e02b
Sync eng/common directory with azure-sdk-tools for PR 2086 (#3138) 2021-11-23 18:13:48 -08:00
Azure SDK Bot
1a5c3f7f30
Sync eng/common directory with azure-sdk-tools for PR 2322 (#3133)
* Install and Run code owner tools in get-codeowner.ps1

* return command when exists

* Update eng/common/scripts/get-codeowners.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Update eng/common/scripts/get-codeowners.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Address comments

* Added test to script

* change return type

* change wrong params

* default to toolpath

* typo

* correct exit on Test

* change to right function name

* Fixed log message

* log message

* Added more test cases

* Correct the parameters

* Update eng/common/scripts/get-codeowners.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Update eng/common/scripts/get-codeowners.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Update eng/common/scripts/get-codeowners.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Remove exit 0 in test function

* change the path delimiter

* More changes on var

* Hide error behind

* Comment back all tests

* exit 0

* Update eng/common/scripts/get-codeowners.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* remove default value

* changes for new get-codeowners

* Update eng/common/scripts/get-codeowners.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* update version and parameter

* add user

* more fix

* add messages

* Added real cases

* fixed typo

* Make program work

Co-authored-by: sima-zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2021-11-22 16:29:47 -08:00
Azure SDK Bot
1c357e7781
Sync eng/common directory with azure-sdk-tools for PR 2306 (#3125)
* Declare transitive dependency on Az.KeyVault 3.4.1

* Resolve PR feedback

Co-authored-by: Heath Stewart <heaths@microsoft.com>
2021-11-19 14:06:20 -08:00
Azure SDK Bot
688d36587a
Make sure clean-up scripts return collections (#3110)
Co-authored-by: Heath Stewart <heaths@microsoft.com>
2021-11-16 14:26:51 -08:00
Azure SDK Bot
ec139ab073
fix bug in prepare relaease for new packages that have never been released (#3109)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2021-11-16 12:58:05 -08:00
Azure SDK Bot
57e7a4e4f3
Sync eng/common directory with azure-sdk-tools for PR 2265 (#3104)
* Improve devops logging for link checker

* Update eng/common/scripts/Verify-Links.ps1

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2021-11-15 11:18:47 -08:00
Azure SDK Bot
cd607842db
Re-add get-codeowners.ps1 (#3088)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2021-11-09 22:06:22 +00:00
Azure SDK Bot
a583bc293b
updating chart.yaml for stress-test-addons (#3081)
Co-authored-by: Albert Cheng <albertcheng@microsoft.com>
2021-11-08 16:35:06 -08:00
Azure SDK Bot
9043580dbf
Add prompt before replasing latest release title on prepare release run (#3036)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2021-11-03 19:22:15 -07:00
Azure SDK Bot
35c4a7eb32
Stress test usability feedback (#3032)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2021-11-03 15:29:02 -07:00
Azure SDK Bot
10861b3c3d
Use docker to do package validation. (#3020)
Co-authored-by: Sima Zhu <sizhu@microsoft.com>
2021-11-01 23:04:13 -07:00
Azure SDK Bot
fbe38f7fb3
Sync eng/common directory with azure-sdk-tools for PR 2177 (#3016)
* Create an issue template

* rename the function

* Add description

* Update eng/common/scripts/Invoke-GitHubAPI.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

Co-authored-by: Sima Zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2021-11-01 13:40:53 -07:00
Azure SDK Bot
fe42c0f831
Sync eng/common directory with azure-sdk-tools for PR 2152 (#2999) 2021-10-27 14:19:48 -07:00
Azure SDK Bot
1055ff8c14
Add latest released version to prepare prerelease (#2998)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2021-10-26 14:10:46 -07:00
Azure SDK Bot
3fdf66bb55
Fully automate cluster buildout. Add azure file share mount to stress tests. (#2989)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2021-10-22 18:05:57 -04:00
Azure SDK Bot
24b34875ff
Sync eng/common directory with azure-sdk-tools for PR 2093 (#2984)
* Consume Codeowners parser library, ceperate users from teams in codeownerse

* Update get-pr-owners and related logic

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2021-10-20 12:07:56 -07:00
Azure SDK Bot
ebe9a75a68
Sync eng/common directory with azure-sdk-tools for PR 2100 (#2972)
* Add group id into metadata for java use

* Update Update-DocsMsPackages.ps1

* Update Update-DocsMsPackages.ps1

* Update eng/common/scripts/Update-DocsMsPackages.ps1

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

* Update eng/common/scripts/Update-DocsMsPackages.ps1

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

Co-authored-by: Sima Zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
Co-authored-by: Ben Broderick Phillips <ben@benbp.net>
2021-10-18 16:10:59 -07:00
Azure SDK Bot
51e569e110
Sync eng/common directory with azure-sdk-tools for PR 2095 (#2960)
* Mitigate relative path calculation error on multiple iterations

* Revert "Mitigate relative path calculation error on multiple iterations"

This reverts commit 45baedd990c6a3085742a38a4891d8706a93be77.

* GetRelativePath should check if path is already relative before calling [IO.Path]::GetRelativePath

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2021-10-13 10:43:44 -07:00
Azure SDK Bot
eb2fab16a0
Avoid overwriting package info properties when dev version is added (#2957)
Co-authored-by: Praveen Kuttappan <praveen.kuttappan@gmail.com>
2021-10-08 14:50:22 -07:00
Azure SDK Bot
975ad22708
Sync eng/common directory with azure-sdk-tools for PR 2064 (#2953) 2021-10-06 09:30:57 -07:00
Azure SDK Bot
cde679782a
Sync eng/common directory with azure-sdk-tools for PR 2046 (#2931)
* Pass package name from calling pipeline to uniquely identify pull request review

* Update log summary

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

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

Co-authored-by: praveenkuttappan <prmarott@microsoft.com>
Co-authored-by: praveenkuttappan <55455725+praveenkuttappan@users.noreply.github.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2021-09-29 07:05:08 -07:00
Azure SDK Bot
02be9fc757
Use stress-test-resources file naming to avoid live test auto-discovery (#2919)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2021-09-27 11:32:19 -07:00
Azure SDK Bot
6785c17149
Sync eng/common directory with azure-sdk-tools for PR 2027 (#2915)
* Handle assembly already loaded errors in deploy stress test script

* Add dependency checks and installation links to deploy-stress-tests.ps1

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2021-09-27 10:47:37 -07:00
Azure SDK Bot
9ffa5c06cd
Sync eng/common directory with azure-sdk-tools for PR 2035 (#2918)
* Add

* Add more description to docs of where the variable is consumed

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2021-09-24 13:10:58 -07:00
Azure SDK Bot
b02dec3cf5
Clean-up changelog scripts (#2913)
Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2021-09-21 19:58:11 -07:00
Azure SDK Bot
0646d2ddfe
Sync eng/common directory with azure-sdk-tools for PR 2010 (#2907)
* Remove empty sections in changelog entry as part of prepare release

* Update SECTIONS_HEADER_REGEX to accomodate various header levels

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2021-09-17 10:20:51 -07:00
Azure SDK Bot
d0991c71d2
Sync eng/common directory with azure-sdk-tools for PR 2011 (#2903)
* Common pipeline template and script to detect API changes

* Cahnges as per review comments

* Review comment changes

* CCahgnes as per review comments

* Show warning for list of failed packages to detect API changes

* Apply suggestions from code review

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

Co-authored-by: praveenkuttappan <prmarott@microsoft.com>
Co-authored-by: praveenkuttappan <55455725+praveenkuttappan@users.noreply.github.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2021-09-16 12:33:40 -07:00
Azure SDK Bot
818cab9a2a
Add for multiple levels of Atx Headers in the CHANGELOG.md (#2900)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2021-09-14 16:56:12 -07:00
Azure SDK Bot
9088500ec6
Sync eng/common directory with azure-sdk-tools for PR 1979 (#2864)
* Move logic for removing empty sections to ChangeLog-Operations.ps1

* Refactor sections regex

* Add SanitizeEntry parameter

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2021-09-13 13:50:35 -07:00
Azure SDK Bot
34cb6c76ae
Fix SemVer.ToString to handle v0 case (#2863)
Since we are treating v0 versions as prerelease we need to make sure
we don't accidently start to add the bogus prerelease label in cases where
we call ToString() on the version.

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2021-09-13 13:06:08 -07:00
Azure SDK Bot
4aacb5f59f
Sync eng/common directory with azure-sdk-tools for PR 1946 (#2862)
* Add ability to exit gracefully when all files in the diff are excluded

* Address case where cspell exits with an error when all files from the 'files' config list are excluded by the expressions in 'ignorePaths'

* Add tests

* Review feedback: impl goes at the bottom and should be treated as a script, logic for testing should happen above that and exit appropriately if running tests

* Import common instead of logging

* Enable strict mode

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2021-09-13 13:04:47 -07:00
Azure SDK Bot
99ff3b04bd
Install az module if not installed in deploy-stress-tests.ps1 (#2857)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2021-09-09 14:01:10 -07:00
Azure SDK Bot
517902128f
Explicitly exit 0 so a failed inner command (like mvn) doesn't propagate up to a failure of the pipeline (#2859)
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2021-09-09 11:03:45 -07:00
Azure SDK Bot
19205045d2
Support v0 versions as prerelease beta versions (#2821)
Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2021-09-02 08:55:43 -07:00
Azure SDK Bot
cfda7f00fa
Stip empty changelog sections before release (#2804)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2021-08-26 16:11:00 -07:00
Azure SDK Bot
93d1f83ee7
Sync eng/common directory with azure-sdk-tools for PR 1918 (#2768)
* Stress test deployment script resiliency fixes

* Use PSModule-Helpers to install powershell-yaml

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2021-08-24 14:18:21 -07:00
Azure SDK Bot
8db9c0b223
Fix query batch processing (#2769)
Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2021-08-18 14:22:20 -07:00
Azure SDK Bot
8a2c551230
Sync eng/common directory with azure-sdk-tools for PR 1912 (#2767)
* Attempt to purge all vaults, managed HSMs

Reverts #1910. Vaults and managed HSMs are automatically purged on their purge date. The point was to purge them daily to preserve capacity. The default purge date is +90 days.

* Add timeout and more logging

* Pass required -Resource

* Fix log message

* Ensure the $Resource is correctly captured

Added comment to new code explaining why, since ScriptBlock.GetNewClosure() is not working as expected.

* Add -ErrorAction to Receive-Job

Worked without terminating when run locally, but failed on the first error in the AzDO agent.

* Use $using:r instead of creating ScriptBlock

More idiomatic for passing ScriptBlocks to jobs.

* Resolve PR feedback

* Change default DeleteAfterHours to 120

Resolves #1917

* Use the Az cmdlets built-in -AsJob

Co-authored-by: Heath Stewart <heaths@microsoft.com>
2021-08-18 13:23:31 -07:00
Azure SDK Bot
43c5ce5470
Removing C:\Git\azure-sdk-tools\eng\common\scripts\FilterPoliCheckResults.ps1 as it was no longer used (#2762)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2021-08-17 16:46:39 -07:00
Azure SDK Bot
0bc420af0a
Enable API review approval check for Java spring packages (#2759)
Co-authored-by: praveenkuttappan <prmarott@microsoft.com>
2021-08-17 09:50:47 -07:00
Azure SDK Bot
ff367d641a
Sync eng/common directory with azure-sdk-tools for PR 1909 (#2757)
* add test-proxy invocations to eng/common folder

Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
2021-08-16 16:19:39 -07:00
Azure SDK Bot
8d0e4dfd1c
Add support for 'files' configuration (#2746)
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2021-08-16 08:43:11 -07:00
Azure SDK Bot
45e48d3be5
Fix resource clean-up script (#2747)
- Fix rg.Name to rg.ResourceGroupName
- Add more verbose logging for better debugging
- Handle deleted resource groups when gathering puragable resource
- Remove coerce now that we are collecting in functions

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2021-08-13 16:03:04 -07:00