Skip to content

Failed App Hosting rollout prints "Deploy complete!" #8866

Closed

Description

@jhuleatt

[REQUIRED] Environment info

firebase-tools: 14.11.0

Platform: macOS

[REQUIRED] Test case

Run firebase deploy --only apphosting of a web app with a broken build.

[REQUIRED] Steps to reproduce

  1. npm init -y
  2. npm pkg set scripts.build="node file-does-not-exist.js"
  3. 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

Activity

  1. added
    api: apphosting
    on Jul 18, 2025
  2. FranRiadigos commented on Aug 4, 2025

    @FranRiadigos

    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.

    Thanks,
    Fran

  3. nathan-logan commented on Feb 19, 2026

    @nathan-logan

    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.

  4. marked CLI deploy issue #9973 as a duplicate of this issue on Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: apphostingtype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions