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

fix: throw underlying API error when the manifest fetch commits when determining the latest released version #1571

Merged
merged 4 commits into from
Aug 11, 2022

Conversation

chingor13
Copy link
Contributor

@chingor13 chingor13 commented Aug 11, 2022

Occasionally, GitHub's GraphQL endpoint throws 502s when it takes too long to execute a query. We usually silently retry these requests (with exponential backoff). Previously, if too many attempts are made, we return an empty response. We introduce a new requireResponse option which will tell our GraphQL executor to throw the underlying API error if a response is required.

Fixes #1567

@product-auto-label product-auto-label bot added size: s Pull request size is small. size: m Pull request size is medium. and removed size: s Pull request size is small. labels Aug 11, 2022
@chingor13 chingor13 changed the title test: add failing test for Manifest.fromConfig when graphQL fails fix: throw underlying API error when the manifest cannot determine the latest released version Aug 11, 2022
@chingor13 chingor13 marked this pull request as ready for review August 11, 2022 18:20
@chingor13 chingor13 requested a review from a team as a code owner August 11, 2022 18:20
@chingor13 chingor13 requested review from a team and bcoe August 11, 2022 18:20
@chingor13 chingor13 changed the title fix: throw underlying API error when the manifest cannot determine the latest released version fix: throw underlying API error when the manifest fetch commits when determining the latest released version Aug 11, 2022
src/github.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@bcoe bcoe left a comment

Choose a reason for hiding this comment

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

LGTM.

@chingor13 chingor13 merged commit 0944bde into main Aug 11, 2022
@chingor13 chingor13 deleted the fix-1567 branch August 11, 2022 22:12
gcf-merge-on-green bot pushed a commit that referenced this pull request Aug 11, 2022
🤖 I have created a release *beep* *boop*
---


## [13.21.0](v13.20.0...v13.21.0) (2022-08-11)


### Features

* parse versioning type from the manifest config ([#1572](#1572)) ([8a7bfc1](8a7bfc1)), closes [#1569](#1569)


### Bug Fixes

* throw underlying API error when the manifest fetch commits when determining the latest released version ([#1571](#1571)) ([0944bde](0944bde))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Version occasionally reverting to initial versions
2 participants