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 eagerly initializing UA failed function deployment that imported firebase-tools as a library. #5666

Merged
merged 2 commits into from
Apr 7, 2023

Conversation

taeold
Copy link
Contributor

@taeold taeold commented Apr 6, 2023

Instead, we lazily initialize the UA agent to prevent CF3 deploy from failing when building function source that uses firebase-tools as a library.

Not sure why this suddenly became a problem in nodejs18 - my guess is that the builder image for nodejs18 runtime have stricter permission on filesystem directories that configstore needs.

Fixes #5631.

… imported firebase-tools as a library.

We will lazily initialize the UA agent to prevent CF3 deploy from failing when building function source that uses firebase-tools as a library.

Not sure why this suddenly became a problem in nodejs18 - my guess is that the builder image for nodejs18 runtime have stricter permission on filesystem directories that configstore needs.
@taeold taeold requested review from joehan and yuchenshi April 6, 2023 22:07
@codecov-commenter
Copy link

Codecov Report

Patch coverage: 76.92% and no project coverage change.

Comparison is base (b0798fb) 55.92% compared to head (5235cc1) 55.93%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5666   +/-   ##
=======================================
  Coverage   55.92%   55.93%           
=======================================
  Files         322      322           
  Lines       21706    21708    +2     
  Branches     4427     4429    +2     
=======================================
+ Hits        12140    12142    +2     
+ Misses       8501     8500    -1     
- Partials     1065     1066    +1     
Impacted Files Coverage Δ
src/track.ts 37.17% <76.92%> (+1.65%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@taeold taeold enabled auto-merge (squash) April 6, 2023 22:45
@taeold taeold merged commit 63c9bd8 into master Apr 7, 2023
33 checks passed
@taeold taeold deleted the dl-node18-import branch April 7, 2023 02:31
ProfHercules pushed a commit to ProfHercules/firebase-tools that referenced this pull request May 5, 2023
… imported firebase-tools as a library. (firebase#5666)

Instead, we lazily initialize the UA agent to prevent CF3 deploy from failing when building function source that uses firebase-tools as a library.

Not sure why this suddenly became a problem in nodejs18 - my guess is that the builder image for nodejs18 runtime have stricter permission on filesystem directories that configstore needs.

Fixes firebase#5631.
tonyjhuang pushed a commit that referenced this pull request May 22, 2023
… imported firebase-tools as a library. (#5666)

Instead, we lazily initialize the UA agent to prevent CF3 deploy from failing when building function source that uses firebase-tools as a library.

Not sure why this suddenly became a problem in nodejs18 - my guess is that the builder image for nodejs18 runtime have stricter permission on filesystem directories that configstore needs.

Fixes #5631.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Functions deployment fails with firebase-tools import on Node 18
3 participants