Commit Graph

431 Commits

Author SHA1 Message Date
Azure SDK Bot
94cba7934b
Handle the failures when package work item is unassigned (#5551)
Co-authored-by: Praveen Kuttappan <prmarott@microsoft.com>
2024-04-18 13:43:14 -04:00
Azure SDK Bot
e28ac6cdb1
Sync eng/common directory with azure-sdk-tools for PR 8110 (#5540)
* Show review link in logs and set DevOps project name based on the pipeline run
2024-04-16 23:22:13 -04:00
Azure SDK Bot
ff62f2f548
Sync eng/common directory with azure-sdk-tools for PR 8053 (#5507)
* Pass flag to suppress errors correctly when verifying release change log

* Changes as per review comments

---------

Co-authored-by: Praveen Kuttappan <prmarott@microsoft.com>
2024-04-09 19:42:54 -07:00
Azure SDK Bot
88c6e1dc0c
Sync eng/common directory with azure-sdk-tools for PR 7989 (#5480)
* Remove soft errors in validation step from Devops pipeline
2024-04-02 16:08:31 -04:00
Azure SDK Bot
6450530bd8
Sync eng/common directory with azure-sdk-tools for PR 7988 (#5479)
* Pass valid original artifact file name in request to APIView
2024-04-02 15:27:31 -04:00
Azure SDK Bot
1ba6be47e4
pshell 7.4 somehow caused git show to stop working. this update resolves the problem (#5478)
Co-authored-by: Scott Beddall (from Dev Box) <scbedd@microsoft.com>
2024-04-01 18:40:13 -07:00
Azure SDK Bot
c4f36de705
Sync eng/common directory with azure-sdk-tools for PR 7975 (#5471)
* Pass Group in request to get package name approval status
2024-04-01 11:49:57 -04:00
Azure SDK Bot
c2dfe277bf
Sync eng/common directory with azure-sdk-tools for PR 7977 (#5470)
* Skip API review package name approval for management plane packages
2024-03-29 12:48:13 -04:00
Azure SDK Bot
7fa626d47c
Sync eng/common directory with azure-sdk-tools for PR 7855 (#5459)
* Pipeline template to validate package and update package work item

* Changes to restructure validations

* Additional fixes as per comments

* Remove explicit exit code

* Set erroractionpreference for change log check

---------

Co-authored-by: Praveen Kuttappan <prmarott@microsoft.com>
2024-03-27 15:01:11 -04:00
Azure SDK Bot
6cabca1743
Call GetDocsMsDevLanguageSpecificPackageInfoFn if it's defined (#5468)
Co-authored-by: James Suplizio <jasupliz@microsoft.com>
2024-03-26 15:50:34 -04:00
Azure SDK Bot
de372fdaba
Create api review script changes to add a param to set release tag (#5453)
Co-authored-by: Praveen Kuttappan <prmarott@microsoft.com>
2024-03-18 10:54:28 -04:00
Azure SDK Bot
d390750361
Sync eng/common directory with azure-sdk-tools for PR 7892 (#5451)
* Move git check for changes to script

* Minor fixes for 1es migration

---------

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2024-03-15 17:24:05 -04:00
Azure SDK Bot
2b1b8af3f6
APIView - send package version param for automatic API review request (#5444)
Co-authored-by: Praveen Kuttappan <prmarott@microsoft.com>
2024-03-13 15:41:24 -04:00
Azure SDK Bot
4affaf7b6a
Skip env processing on matrix import step (#5435)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2024-03-11 17:07:08 -04:00
Azure SDK Bot
95e85b6025
Update Prepare-Release.ps1 to handle only one previous release (#5429)
In the case there is exactly one previous release PS will return the single object and thus the Count property will not exist. Instead this change ensures that we always have a list.

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2024-03-08 11:04:09 -08:00
Azure SDK Bot
f4442ede76
Add dotnet-api product slug to sample metadata script (#5428)
Co-authored-by: Anne Thompson <annelo@microsoft.com>
2024-03-08 13:12:28 -05:00
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