Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Retries for InstallationCheck #23792

Merged
merged 5 commits into from
Sep 8, 2021
Merged

Adding Retries for InstallationCheck #23792

merged 5 commits into from
Sep 8, 2021

Conversation

ckairen
Copy link
Member

@ckairen ckairen commented Sep 3, 2021

This enables InstallationCheck to rerun for 30 minutes, in case of when multiple packages are released from the same pipeline.

Pipeline Reference:
This one retries for 3 times before getting the correct version:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1081546&view=logs&j=3c922a7d-1305-5297-ba3f-884e0ad84366&t=ad177618-4778-5c7a-f9e0-5bf485085f93&l=920

This is a successful run:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1081550&view=logs&j=3c922a7d-1305-5297-ba3f-884e0ad84366&t=ad177618-4778-5c7a-f9e0-5bf485085f93&l=922

All SDK Contribution checklist:

This checklist is used to make sure that common guidelines for a pull request are followed.

  • Please open PR in Draft mode if it is:
    • Work in progress or not intended to be merged.
    • Encountering multiple pipeline failures and working on fixes.
  • If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
  • I have read the contribution guidelines.
  • The pull request does not introduce breaking changes.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

SDK Generation Guidelines

  • The generate.cmd file for the SDK has been updated with the version of AutoRest, as well as the commitid of your swagger spec or link to the swagger spec, used to generate the code. (Track 2 only)
  • The *.csproj and AssemblyInfo.cs files have been updated with the new version of the SDK. Please double check nuget.org current release version.

Additional management plane SDK specific contribution checklist:

Note: Only applies to Microsoft.Azure.Management.[RP] or Azure.ResourceManager.[RP]

  • Include updated management metadata.
  • Update AzureRP.props to add/remove version info to maintain up to date API versions.

Management plane SDK Troubleshooting

  • If this is very first SDK for a services and you are adding new service folders directly under /SDK, please add new service label and/or contact assigned reviewer.

  • If the check fails at the Verify Code Generation step, please ensure:

    • Do not modify any code in generated folders.
    • Do not selectively include/remove generated files in the PR.
    • Do use generate.ps1/cmd to generate this PR instead of calling autorest directly.
      Please pay attention to the @microsoft.csharp version output after running generate.ps1. If it is lower than current released version (2.3.82), please run it again as it should pull down the latest version.

    Note: We have recently updated the PSH module called by generate.ps1 to emit additional data. This would help reduce/eliminate the Code Verification check error. Please run following command:

      `dotnet msbuild eng/mgmt.proj /t:Util /p:UtilityName=InstallPsModules`
    

Old outstanding PR cleanup

Please note:
If PRs (including draft) has been out for more than 60 days and there are no responses from our query or followups, they will be closed to maintain a concise list for our reviewers.

@ckairen ckairen linked an issue Sep 3, 2021 that may be closed by this pull request
@ckairen ckairen marked this pull request as ready for review September 3, 2021 23:24
@@ -80,6 +70,10 @@ stages:
PackageName: ${{artifact.name}}
ServiceName: ${{parameters.ServiceDirectory}}
ForRelease: true
- pwsh: |
Copy link
Member

Choose a reason for hiding this comment

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

Given this is just calling a single script lets switch it to using the powershell tasks instead of the pwsh shortcut. See https://dev.azure.com/azure-sdk/internal/_wiki/wikis/internal.wiki/2/Azure-DevOps-Pipeline-Guidance?anchor=devops-tasks-vs-pwsh-script-shortcut for more info.

@@ -6,27 +6,39 @@ param (
[string] $Artifact,

[Parameter()]
[string] $PipelineWorkspace
[string] $PipelineWorkspace,
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't look like we need or use the PipelineWorkspace variable any longer so we should remove it.

Copy link
Member

@weshaggard weshaggard left a comment

Choose a reason for hiding this comment

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

One last clean-up but otherwise looks good.

@@ -80,6 +70,14 @@ stages:
PackageName: ${{artifact.name}}
ServiceName: ${{parameters.ServiceDirectory}}
ForRelease: true
- task: PowerShell@2
inputs:
Copy link
Member

Choose a reason for hiding this comment

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

You will also want to add pwsh: true so that it uses powershell core instead of windows powershell.

@ckairen ckairen enabled auto-merge (squash) September 8, 2021 00:21
@ckairen ckairen merged commit 19a3a3a into main Sep 8, 2021
@ckairen ckairen deleted the albertcheng/ic-retry branch September 8, 2021 01:17
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-net that referenced this pull request Jun 25, 2023
Release microsoft.api management 2023 03 01 preview (Azure#23792)

* Adds base for updating Microsoft.ApiManagement from version preview/2022-09-01-preview to version 2023-03-01-preview

* Updates readme

* Updates API version in new specs and examples

* feat(apim): Provide capability to use custom hostname for Configuration API v2 (Azure#23785)

Signed-off-by: Tom Kerkhove <[email protected]>

* feat(rp): Added flags to enable/disable portals (Azure#23799)

* feat(rp): Added flags to enable/disable portals

* update default

* feat(apim): Provide capability to disable legacy configuration API  (Azure#23786)

* feat(apim): Provide capability to disable legacy configuration API

Signed-off-by: Tom Kerkhove <[email protected]>

* Update sample

Signed-off-by: Tom Kerkhove <[email protected]>

* Fix type definition

Signed-off-by: Tom Kerkhove <[email protected]>

* Switch to enum

Signed-off-by: Tom Kerkhove <[email protected]>

* Update samples

Signed-off-by: Tom Kerkhove <[email protected]>

---------

Signed-off-by: Tom Kerkhove <[email protected]>

* feat(apim): Add new tracing API (Azure#23800)

* Add new tracing api

* Remove TODOs descriptions

* Improve descriptions

* Fix dot

* Add missing examples

* prettier fixes

* Fix model and semantic problems

* Remove get prefix in post operations

* Use list prefix

* Fix PR comments

* feat(apim): Add ability to create and update new OData api (Azure#23849)

* Add odata api definitions

* add api usage example

* fix file reference

* address comments

---------

Co-authored-by: rkolesnikov <[email protected]>

* migration contract (Azure#23983)

* 2023 03 cred scan fix - Examples Only (Azure#24357)

* remove-sas-signature

* update example

* 2023-03-01-preview arm review feedback (Azure#24404)

* move to v5 subscription contract

* move to v5 for rg and api-version

* cred scan

* default is true

* uuid in examples

* change from boolean to enums

* fix default value

---------

Signed-off-by: Tom Kerkhove <[email protected]>
Co-authored-by: Tom Kerkhove <[email protected]>
Co-authored-by: Harun Reşit <[email protected]>
Co-authored-by: Rafał Mielowski <[email protected]>
Co-authored-by: Roman Kolesnikov <[email protected]>
Co-authored-by: rkolesnikov <[email protected]>
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.

Installation check should do retries
3 participants