fix functions deployment blocking firebaseextensions.googleapis.com by checking for extensions only when not needed#9988
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a critical issue that was blocking Firebase Functions deployments due to an outage or permission error with the firebaseextensions.googleapis.com API. The change introduces a more robust check to determine if dynamic extensions are truly present and utilized within the codebase before attempting to interact with the extensions API. This ensures that deployments for functions not using extensions are no longer hindered by external service availability or permission problems related to the extensions API. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request addresses an issue where function deployments were failing due to an outage in the Firebase Extensions service, even when no extensions were being deployed. The change modifies the condition for preparing dynamic extensions to check not only for the existence of an extensions object in the build, but also to ensure that this object is not empty. This prevents an unnecessary API call to firebaseextensions.googleapis.com when no extensions are part of the deployment, effectively unblocking function deployments that do not use extensions. The fix is correct and directly addresses the problem described.
Description
Today there was an issue (outage) with firebase extension due to some kind of permissions issue resuting in all firebase function deployments failing
I'm sure a root fix for this will be coming soon, however, for functions that don't use dynamic extensions this check is not needed and there is no reason to block deployments with it. A simple workaround that has unblocked us is to do a proper check for id extensions are needed before checking. this appears to be a bug in the code.
Scenarios Tested
deployed our firebase functions, and we no longer are blocked by the firebaseextensions regression / outage.
Sample Commands
firebase deploy --only functions