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

Use trigger.entryPoint instead of trigger.name #4174

Closed
wants to merge 4 commits into from

Conversation

joehan
Copy link
Contributor

@joehan joehan commented Feb 16, 2022

Description

Fixed the errors that arose when merging in the Function emulator changes from master. PTAL at the second commit by itself here - that is the actual code that I needed to change to get this working.

The problem was that #4149 subtly changed the behavior of the function emulator. Previous, we looked for the functions code at EmulatedTriggerDefinition.entryPoint. After those changes, we started looking for the functions code at EmulatedTriggerDefinition.name. AFAICT these are always the same value for CF3, but for extensions, they are always different.

Scenarios Tested

I can now successfuly execute functions with running into the "Failed to initialize and load trigger. This shouldn't happen: Failed to find function ext.httptest.greetTheWorld in the loaded module" error.

@joehan joehan requested review from elvisun and taeold and removed request for elvisun February 16, 2022 21:49
Copy link
Contributor

@taeold taeold left a comment

Choose a reason for hiding this comment

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

One suggestion since the PR diff is HUGE!

  1. Fix the issue upstream
  2. Merge master into the launch branch

@joehan
Copy link
Contributor Author

joehan commented Feb 17, 2022

Good call!

@joehan joehan closed this Feb 17, 2022
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.

None yet

2 participants