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 EVENTARC_CLOUD_EVENT_SOURCE environment variable was correctly set for some functions. #5597

Merged
merged 2 commits into from
Mar 15, 2023

Conversation

taeold
Copy link
Contributor

@taeold taeold commented Mar 15, 2023

Object containing environment variable was mistakenly shared for all function.

This is usually okay as CF3 doesn't allow user to define per-function environment variable. However, Firebase-defined EVENTARC_CLOUD_EVENT_SOURCE env var is unique per function and due to this bug, all but one function has correct value for it.

Fixes #5333.

@taeold taeold enabled auto-merge (squash) March 15, 2023 01:45
@codecov-commenter
Copy link

Codecov Report

Patch and project coverage have no change.

Comparison is base (b308111) 56.12% compared to head (6cc329c) 56.12%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5597   +/-   ##
=======================================
  Coverage   56.12%   56.12%           
=======================================
  Files         317      317           
  Lines       21510    21510           
  Branches     4391     4391           
=======================================
  Hits        12072    12072           
  Misses       8376     8376           
  Partials     1062     1062           
Impacted Files Coverage Δ
src/deploy/functions/prepare.ts 31.42% <0.00%> (ø)

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.

@@ -0,0 +1 @@
- Fix bug where EVENTARC_CLOUD_EVENT_SOURCE environment variable was correctly set for some functions. (#5597)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Fix bug where EVENTARC_CLOUD_EVENT_SOURCE environment variable was correctly set for some functions. (#5597)
- Fixes bug where EVENTARC_CLOUD_EVENT_SOURCE environment variable was incorrectly set for some functions. (#5597)

@taeold taeold merged commit 493bf6e into master Mar 15, 2023
@joehan
Copy link
Contributor

joehan commented Mar 15, 2023

Ahhh, missed that you had automerge on - mind fixing the CHANGELOG in a separate PR?

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.

New function deployed via CLI had unexpected value for EVENTARC_CLOUD_EVENT_SOURCE
3 participants