-
Notifications
You must be signed in to change notification settings - Fork 67
fix local development with the Pub/Sub emulator #98
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
37320bc to
176b4b7
Compare
eamonnmcmanus
left a comment
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.
Looks like the conformance tests are failing?
|
That's weird. It looks like it is using the wrong version of the conformance tests. The declared version of the action is v0.3.9 but it is actually using v0.3.12. My guess is this is a bug with using different version of the same action in a single workflow. I needed to put up fix for these conversions anyway... |
176b4b7 to
9b94843
Compare
|
rebase seems to have fixed the issue |
eamonnmcmanus
left a comment
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.
This looks fine, apart from some style nits.
invoker/core/src/main/java/com/google/cloud/functions/invoker/Event.java
Outdated
Show resolved
Hide resolved
...er/core/src/test/java/com/google/cloud/functions/invoker/BackgroundFunctionExecutorTest.java
Outdated
Show resolved
Hide resolved
...er/core/src/test/java/com/google/cloud/functions/invoker/BackgroundFunctionExecutorTest.java
Outdated
Show resolved
Hide resolved
...er/core/src/test/java/com/google/cloud/functions/invoker/BackgroundFunctionExecutorTest.java
Outdated
Show resolved
Hide resolved
Currently, the functions frameworks are dependent on some private dataplane event marshalling logic in order to correctly pass PubSub events to background functions. This commit implements the same marshalling logic in the FF in order to enable local development using the PubSub emulator. We have already made this change in other languages: GoogleCloudPlatform/functions-framework-nodejs#272 GoogleCloudPlatform/functions-framework-ruby#100 GoogleCloudPlatform/functions-framework-python#121 GoogleCloudPlatform/functions-framework-go#70
9b94843 to
dec93ac
Compare

Currently, the functions frameworks are dependent on some private
dataplane event marshalling logic in order to correctly pass PubSub
events to background functions. This commit implements the same
marshalling logic in the FF in order to enable local development using
the PubSub emulator.
We have already implemented this change in other function frameworks:
GoogleCloudPlatform/functions-framework-nodejs#272
GoogleCloudPlatform/functions-framework-ruby#100
GoogleCloudPlatform/functions-framework-python#121
GoogleCloudPlatform/functions-framework-go#70