-
Couldn't load subscription status.
- Fork 1.1k
fix: revert logic to abort function deploys in non-interactive mode when secrets are missing #9378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Summary of ChangesHello @taeold, 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 bug in the Firebase CLI's secret handling during non-interactive deployments. Previously, the system would incorrectly assume a secret was missing and fail early, without first checking if the secret was already provisioned in Google Cloud Secret Manager. The change refactors the validation logic to ensure that the existence of a secret is verified against the cloud before any failure is triggered in non-interactive scenarios, providing a more robust and accurate deployment experience. Highlights
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request correctly fixes an issue where deployments would fail in non-interactive mode for missing secrets without first checking Secret Manager. The logic is moved to handleSecret to perform the check after querying the API, which is the right approach. The changes are sound and include new tests.
I've added a suggestion to further improve the user experience in non-interactive mode by restoring the previous behavior of listing all missing secrets at once, rather than failing on the first one. This makes it easier for users to fix all missing secrets in one go.
|
I've wasted about 5 hours today on this until I realized by CI is getting the latest firebase-tools version and that the problem is not with our secrets. Thanks. |
|
@Enrico2 sorry for the troubles. we'll do better. |
Fixes #9368.
Partially rolls back #9335
Secrets should be handled in
handleSecretfunction. The check for missing secret was incorrectly being done too early.