firebase-tools
firebase-tools copied to clipboard
Firebase functions failing to deploy with EXPIRED error
This is basically the same as #7268 as that issue has been closed as fixed. It is NOT fixed.
[REQUIRED] Environment info
firebase-tools: 13.14.2
Platform:
- ubuntu-latest, Github Actions
- macOS 14.5
[REQUIRED] Test case
Try to deploy firebase cloud functions with a large codebase.
[REQUIRED] Steps to reproduce
- Enable
firebase experiments:enable functionsv2deployoptimizations
- Run
firebase deploy --only functions
with a codebase with a significant amount of functions (30+) with a few large third-party libraries (@google-cloud, hubspot-api) and the build stage of the deployments will fail with EXPIRED errors.
[REQUIRED] Expected behavior
Any function deploys, regardless of size should work without failing.
[REQUIRED] Actual behavior
Function deploys fail unpredictably once you hit a difficult to define, arbitrary limit.
I'm also noticing that the "single builds" feature either is disabled again, or isn't working at all. Before this was an issue, a few months ago, for every firebase deploy --only functions
command, we'd have about 4 to 8 builds in the Cloud Build history. After #7268 we'd have the same amount of builds as cloud functions (~30), and they would expire at the queue_ttl
value. After the fix with the experiment enabled, we were back down to 4 to 8 builds. Now, we're back up to the pre-fix numbers and issue has resurfaced for us, and has never been solved for others.