Skip to content

fix(apptesting): display clear quota exhaustion message on 429 error#10824

Draft
lfkellogg wants to merge 2 commits into
mainfrom
fix-apptesting-quota-error
Draft

fix(apptesting): display clear quota exhaustion message on 429 error#10824
lfkellogg wants to merge 2 commits into
mainfrom
fix-apptesting-quota-error

Conversation

@lfkellogg

Copy link
Copy Markdown
Contributor

Description

Intercept 429 HTTP status codes and RESOURCE_EXHAUSTED / QUOTA_EXCEEDED errors when requesting test execution in App Testing, surfacing a human-readable quota error message.

Scenarios Tested

  • Unit test for createReleaseTest handling 429 response.

Sample Commands

firebase apptesting:execute --app 1:123:android:abc

TAG=agy
CONV=107aa4d3-03d0-4299-afcc-27e78b24392e

### Description
Intercept 429 HTTP status codes and RESOURCE_EXHAUSTED / QUOTA_EXCEEDED errors when requesting test execution in App Testing, surfacing a human-readable quota error message.

### Scenarios Tested
- Unit test for createReleaseTest handling 429 response.

### Sample Commands
firebase apptesting:execute --app 1:123:android:abc

TAG=agy
CONV=107aa4d3-03d0-4299-afcc-27e78b24392e

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request improves error handling in the App Distribution client by explicitly catching and reporting quota exhaustion errors (HTTP 429, RESOURCE_EXHAUSTED, QUOTA_EXCEEDED) when creating a release test. The feedback recommends removing the substring check for "429" in the error message to avoid false positives, as the HTTP status check already handles this case sufficiently.

Comment thread src/appdistribution/client.ts
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