Skip to content

4 out of 13 builds fail with: Build failed with status: EXPIRED and message: An unexpected error occurred #7430

@berengamble

Description

@berengamble

Environment info

firebase-tools: 13.13.1

Platform: Mac OS Sonoma 14.0

Test cases

1.
firebase experiments:disable functionsv2deployoptimizations
firebase deploy --only functions:main with a codebase containing 13 2nd generation Cloud Functions.
2
firebase experiments:enable functionsv2deployoptimizations
firebase deploy --only functions:main with a codebase containing 13 2nd generation Cloud Functions.

Steps to reproduce

Same as test cases

Expected behavior

All functions successfully deployed.

Actual behavior

In both cases, after running the above commands and waiting about 10 minutes, 4-5 of the functions will complete successfully fairly early in the build, then after a few more minutes, the rest fail with errors like this, then the messages saying a couple more successfully deployed, all together in one big chunk of logs at the end.:

Build failed with status: EXPIRED and message: An unexpected error occurred. Refer to build logs: https://console.cloud.google.com/cloud-build/builds;region=us-central1/90e2bdef-d529-4dbe-be9e-355a18fc835e?project=1033623241793. For more details see the logs at https://console.cloud.google.com/cloud-build/builds;region=us-central1/90e2bdef-d529-4dbe-be9e-355a18fc835e?project=1033623241793.

The confusing thing is, in GCP Console, there's a ⚠️ sign on each function that errored and this is shown: Function is active, but the last deployment failed.

There is nothing useful in the build logs, as outlined in these two tickets: #5967 & #5969 #7268

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions