You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Failed App Hosting rollout prints "Deploy complete!" #8866
Run firebase deploy --only apphosting of a web app with a broken build.
[REQUIRED] Steps to reproduce
npm init -y
npm pkg set scripts.build="node file-does-not-exist.js"
firebase deploy --only apphosting
[REQUIRED] Expected behavior
Rollout fails, CLI says deploy failed.
[REQUIRED] Actual behavior
Rollout starts, CLI logs "rollout failed", then logs "Deploy Complete!"
=== Deploying to 'frameworks-blog-test'...
i deploying apphosting
i apphosting: Found backend(s) firebase-dot-blog
i apphosting: Uploading source code at /Users/jhuleatt/projects/first-class-blog for backend firebase-dot-blog...
i apphosting: Source code uploaded at gs://<redacted>/firebase-dot-blog--5539-WtMJaqIba6mm-.zip
i apphosting: You may also track the rollout(s) at:
https://console.firebase.google.com/project/frameworks-blog-test/apphosting
⠼ Starting rollout(s) for backend(s) firebase-dot-blog; this may take a few minutes. It's safe to exit now.
⚠ apphosting: Rollout for backend firebase-dot-blog failed.
⬢ apphosting: Failed to build your app. Please inspect the build logs at https://console.cloud.google.com/cloud-buil
✔ Deploy complete!
Project Console: https://console.firebase.google.com/project/frameworks-blog-test/overview
Since this ticket is open I will avoid creating a new one.
Pretty much any error that could happen during the deployment is not propagated, and does not fail with exit 1 or similar.
The CLI simply ends with a successful process.
For instance, the Service Account we were using via Workload Identity Federation lacked setIamXXX permission, so the deployment just failed, but still returned successfully with Deploy complete! as the OP mentioned.
It is not easy to patch such problems from the CLI on our end while waiting for a fix, since it would require checking randomly strings like "Error", "failed", etc.
The impact of this bug is that if the deployment fails but silently returns a success, our pipeline also succeeds, generating a new release tag, several other internal processes, and finally not notifying the team about any error.
That's really critical.
I really appreciate the team provided an option in the CLI to tailor our specific processes, instead of relying on GitHub connected repositories pushes, but I hope the context I provided helps prioritize this issue.
I am running into this same issue which makes my CI more fragile as the pipeline is succeeding when the rollout fails, resulting in me having to hack around it by using grep to match rollout failed|complete from the command output to determine if it failed or succeeded which is not ideal.
Activity
FranRiadigos commentedon Aug 4, 2025
Since this ticket is open I will avoid creating a new one.
Pretty much any error that could happen during the deployment is not propagated, and does not fail with
exit 1or similar.The CLI simply ends with a successful process.
For instance, the Service Account we were using via Workload Identity Federation lacked
setIamXXXpermission, so the deployment just failed, but still returned successfully withDeploy complete!as the OP mentioned.It is not easy to patch such problems from the CLI on our end while waiting for a fix, since it would require checking randomly strings like "Error", "failed", etc.
The impact of this bug is that if the deployment fails but silently returns a success, our pipeline also succeeds, generating a new release tag, several other internal processes, and finally not notifying the team about any error.
That's really critical.
I really appreciate the team provided an option in the CLI to tailor our specific processes, instead of relying on GitHub connected repositories pushes, but I hope the context I provided helps prioritize this issue.
Thanks,
Fran
nathan-logan commentedon Feb 19, 2026
I am running into this same issue which makes my CI more fragile as the pipeline is succeeding when the rollout fails, resulting in me having to hack around it by using grep to match
rollout failed|completefrom the command output to determine if it failed or succeeded which is not ideal.ci: add Firebase App Hosting rollout safety net
ci: add Firebase App Hosting rollout safety net (#155)