Skip to content

Multilevel function declaration deployment failed - this stoped working #6419

Description

@vincekruger

Environment info

firebase-tools: 12.6.1

Platform: macOS 14

Test case

Steps to reproduce

I've discovered something very strange.
This issue started yesterday after upgrading to 12.6.1, however, it shouldn't be related, but it's the only thing that changed.

Fail

Deploying functions deploy --only functions

index.js example

export const codebase = {
  httpFunc,
  trigger: {
    trigger1,
    trigger2,
  },
}
Could not create or update Cloud Run service {function_name}, Container Healthcheck failed. Revision '{archive}' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information.

The logs are unhelpful and don't provide any clues.

now if I go and shuffle the index file around and have only one level of exports everything works perfectly. Zero problems.

export const codebase = {
  httpFunc,
  trigger1,
  trigger2,
}

This is weird behaviour.

Expected behavior

Deployment successful.

Actual behavior

Deployment fails.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions