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: Pass statusCode to fix retry in cloud function deploy #5577

Closed
wants to merge 3 commits into from

Conversation

wreulicke
Copy link

@wreulicke wreulicke commented Mar 7, 2023

Description

Pass statusCode to fix retry handling in function deploy.

Fix #5474

Details

In FirebaseError, the status field will be 500 when don't pass status.
https://github.com/firebase/firebase-tools/blob/master/src/error.ts#L32

Then, this executor doesn't rethrow here.
It causes that retry handling doesn't works.
https://github.com/firebase/firebase-tools/blob/master/src/deploy/functions/release/executor.ts#L33-L35

Scenarios Tested

Sample Commands

@google-cla
Copy link

google-cla bot commented Mar 7, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@wreulicke
Copy link
Author

The issue related to this PR is fixed by #5601 .
I closed this PR.

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.

Firebase deploy --only functions does not retry deployment after a quota exceeded error.
1 participant