Commit Graph

395 Commits

Author SHA1 Message Date
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