Skip to content

fix: improve deploy error message when default app engine service acc…#10835

Open
IzaakGough wants to merge 4 commits into
mainfrom
@invertase/fix-issue-4524
Open

fix: improve deploy error message when default app engine service acc…#10835
IzaakGough wants to merge 4 commits into
mainfrom
@invertase/fix-issue-4524

Conversation

@IzaakGough

@IzaakGough IzaakGough commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Fixes #4524

@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 introduces a fast-fail check during the deployment of 1st generation Cloud Functions to ensure that the default App Engine service account exists and is enabled when needed, preventing generic internal errors later in the deployment pipeline. The changes include the implementation of checkDefaultServiceAccountEnabled in checkIam.ts, its integration into the deployment flow in deploy.ts, and comprehensive unit tests in checkIam.spec.ts. The review feedback suggests a minor optimization in checkIam.ts to remove redundant array spreading when calling flattenArray.

Comment thread src/deploy/functions/checkIam.ts
@IzaakGough
IzaakGough marked this pull request as ready for review July 21, 2026 16:02
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.

Specific error message on firebase function deploy failure due to missing/deactivated app engine service account

2 participants