Skip to content

Ensure word alpha is present in dev build#16089

Merged
praveenkuttappan merged 8 commits intoAzure:mainfrom
praveenkuttappan:verify_alpha_release
Jul 1, 2021
Merged

Ensure word alpha is present in dev build#16089
praveenkuttappan merged 8 commits intoAzure:mainfrom
praveenkuttappan:verify_alpha_release

Conversation

@praveenkuttappan
Copy link
Copy Markdown
Member

Added alpha in file name filtering for dev version

@praveenkuttappan
Copy link
Copy Markdown
Member Author

Comment thread eng/pipelines/templates/stages/archetype-js-release.yml Outdated
@praveenkuttappan
Copy link
Copy Markdown
Member Author

I have made the change as discussed to add a check at release time. There are few packages that doesn't get alpha build and so we shouldn't fail the build but release stage is skipped for these packages using artifact flag.

- ${{if ne(artifact.skipPublishDevFeed, 'true')}}:
- pwsh: |
$detectedPackageName=Get-ChildItem $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}/*.tgz
if ($detectedPackageName -notmatch "-alpha")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets add this check in the build stage as well if SetDevVersion is set to true.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if this will happen but if the package name ends up with "-alpha" in it, this will no catch that case but I suspect that is not likely.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not build alpha version of private packages so adding this check at build time will fail for them without more checks to skip them as well.

$detectedPackageName=Get-ChildItem $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}/*.tgz
if ($detectedPackageName -notmatch "-alpha")
{
Write-Error "Found non alpha version artifact to publish as dev version. Failing publish step."
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably worth dumping out the detectedPackageName as well so we have a little more information about what we found.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@praveenkuttappan praveenkuttappan merged commit e93bfac into Azure:main Jul 1, 2021
@praveenkuttappan praveenkuttappan deleted the verify_alpha_release branch July 1, 2021 17:53
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-js that referenced this pull request Sep 30, 2021
[Hub Generated] Review request for Microsoft.Media to add version preview/2021-11-01-preview (Azure#16089)

* Adds base for updating Microsoft.Media from version preview/2021-05-01-preview to version 2021-11-01-preview

* Updates readme

* Updates API version in new specs and examples

* Update to use 2021-11-01 version of the swaggers and examples

* Remove unused examples and fix prettier errors.

* fix patch  where required is empty.

* fix some lint errors

* fix a json parse issue.

* fix enum casing

* fix missing 204 on endpointconnections delete

* create entities for Patch operation

* updating descriptions

* fixed a bad commit.

* fix validation errors

* fix few more validation issues.

* fix sample validaitons

* fix examples

* Update PrivateEndpoints to use v3 version of commonTypes to use systemData

* change all commontypes to v3

* add long running operation to operations

* update missing descriptions

* fix a parameter name to operationId

* Update few more descriptions

* adding supressions for few failed validations

* fix suppreesions

* add few more descriptions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants