Skip to content

During publishing, "Download Latest Image Info" step can fail with 429 too many requests #1737

@lbussell

Description

@lbussell

- script: >
curl -fSL
--output $(imageInfoHostDir)/full-image-info-orig.json
https://raw.githubusercontent.com/$(gitHubVersionsRepoInfo.org)/$(gitHubVersionsRepoInfo.repo)/refs/heads/$(gitHubVersionsRepoInfo.branch)/$(gitHubImageInfoVersionsPath)
condition: and(succeeded(), eq(variables['publishImageInfo'], 'true'))
displayName: Download Latest Image Info

This pipeline step is just a raw curl command which can fail sometimes causing our publish pipeline to be unreliable. In the example below it fails with a 403 unauthorized. Things to consider:

  • At a minimum we should wrap this request in an exponential backoff retry
  • Do we need to authenticate for this request? As our GitHub bot account?

Example pipeline where this is failing: https://dev.azure.com/dnceng/internal/_build/results?buildId=2746286&view=logs&j=739bb7ec-7296-5b40-7dff-ee3297bfdaa4&t=bf6a5b93-88b0-5310-04fe-dec22ee32d0e&s=380ab8c6-4139-55ff-15c4-fb48260f4dca

Metadata

Metadata

Assignees

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions