Skip to content
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

Fix bug where CLI would crash when customers upload an empty functions project #3705

Merged
merged 4 commits into from Sep 4, 2021

Conversation

inlined
Copy link
Member

@inlined inlined commented Aug 25, 2021

Fixes issue in https://twitter.com/bradwestfall/status/1430570730937229312.

Confirmed to work in test project.

The prepare phase previously early exited if there are no functions to deploy. The release phase properly continues as long as functions is initialized instead, which caused it to crash when trying to create a deployment plan using the filters that weren't generated due to prepare's early exit. As a bonus, I cleaned up the upload code a bit to bypass uploads (or even prints that uploads are happening) if there are no functions to deploy.

@google-cla google-cla bot added the cla: yes Manual indication that this has passed CLA. label Aug 25, 2021
@inlined inlined requested a review from taeold August 25, 2021 18:49
@inlined inlined merged commit 37f5cc7 into master Sep 4, 2021
colerogers pushed a commit that referenced this pull request Sep 7, 2021
…s project (#3705)

* Fix bug where CLI would crash when customers upload an empty functions project

* Changelog
colerogers added a commit that referenced this pull request Sep 8, 2021
* PoC initial api calls

* moving list functionality into helper method and added unit tests

* update changelog

* fix lint

* adding jsdoc comment

* Remove HttpsTrigger.allowInsecure (#3733)

* Remove HttpsTrigger.allowInsecure

* Formatter

* Create new endpoint type definition (#3731)

* Create new endpoint type definition

* Fix build breaks

* Remove HttpsTrigger.allowInsecure

* Formatter

* Add type discrimiation functions and fix break

* Fix bug where CLI would crash when customers upload an empty functions project (#3705)

* Fix bug where CLI would crash when customers upload an empty functions project

* Changelog

* Add support for --non-interactive to ext:install, and support updating existing instances (#3710)

* started adding noninteractive support to ext:install

* Refactoring ext-install to support non-interactive runs and offer updates to existing instances

* self review

* pr fixes

* update changelog

* moving list function to backend and table creation to command, added unit tests for comparing functions

* adding listFunctions.ts back and move compare functions to backend

* Update CHANGELOG.md

Co-authored-by: Bryan Kendall <bkend@google.com>

* fixing pr comments

Co-authored-by: Thomas Bouldin <inlined@users.noreply.github.com>
Co-authored-by: joehan <joehanley@google.com>
Co-authored-by: Bryan Kendall <bkend@google.com>
devpeerapong pushed a commit to devpeerapong/firebase-tools that referenced this pull request Dec 14, 2021
…s project (firebase#3705)

* Fix bug where CLI would crash when customers upload an empty functions project

* Changelog
devpeerapong pushed a commit to devpeerapong/firebase-tools that referenced this pull request Dec 14, 2021
* PoC initial api calls

* moving list functionality into helper method and added unit tests

* update changelog

* fix lint

* adding jsdoc comment

* Remove HttpsTrigger.allowInsecure (firebase#3733)

* Remove HttpsTrigger.allowInsecure

* Formatter

* Create new endpoint type definition (firebase#3731)

* Create new endpoint type definition

* Fix build breaks

* Remove HttpsTrigger.allowInsecure

* Formatter

* Add type discrimiation functions and fix break

* Fix bug where CLI would crash when customers upload an empty functions project (firebase#3705)

* Fix bug where CLI would crash when customers upload an empty functions project

* Changelog

* Add support for --non-interactive to ext:install, and support updating existing instances (firebase#3710)

* started adding noninteractive support to ext:install

* Refactoring ext-install to support non-interactive runs and offer updates to existing instances

* self review

* pr fixes

* update changelog

* moving list function to backend and table creation to command, added unit tests for comparing functions

* adding listFunctions.ts back and move compare functions to backend

* Update CHANGELOG.md

Co-authored-by: Bryan Kendall <bkend@google.com>

* fixing pr comments

Co-authored-by: Thomas Bouldin <inlined@users.noreply.github.com>
Co-authored-by: joehan <joehanley@google.com>
Co-authored-by: Bryan Kendall <bkend@google.com>
@bkendall bkendall deleted the inlined.zero-functions branch March 18, 2022 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Manual indication that this has passed CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants