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 Functions emulator not starting for frameworks. #5090

Merged
merged 3 commits into from Oct 10, 2022
Merged

Conversation

yuchenshi
Copy link
Member

Description

Fix regression introduced by #5083 where code block with side effects were moved.

Scenarios Tested

Started a project with no functions but with frameworks, and the Functions emulator now start correctly.

Sample Commands

@@ -324,29 +324,9 @@ export async function startAll(
}

const emulatableBackends: EmulatableBackend[] = [];
const projectDir = (options.extDevDir || options.config.projectDir) as string;
Copy link
Member Author

Choose a reason for hiding this comment

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

This block has been moved back to where it was

@codecov-commenter
Copy link

codecov-commenter commented Oct 7, 2022

Codecov Report

Base: 56.06% // Head: 56.19% // Increases project coverage by +0.13% 🎉

Coverage data is based on head (69176ae) compared to base (8f18fba).
Patch coverage: 7.31% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5090      +/-   ##
==========================================
+ Coverage   56.06%   56.19%   +0.13%     
==========================================
  Files         307      307              
  Lines       20635    20738     +103     
  Branches     4166     4201      +35     
==========================================
+ Hits        11568    11654      +86     
- Misses       8066     8084      +18     
+ Partials     1001     1000       -1     
Impacted Files Coverage Δ
src/emulator/controller.ts 12.93% <0.00%> (-0.33%) ⬇️
src/emulator/portUtils.ts 49.60% <30.00%> (-2.50%) ⬇️
src/hosting/runTags.ts 85.18% <0.00%> (+0.97%) ⬆️
src/gcp/run.ts 77.86% <0.00%> (+2.57%) ⬆️
src/deploy/functions/release/fabricator.ts 86.36% <0.00%> (+2.81%) ⬆️
src/deploy/hosting/convertConfig.ts 71.81% <0.00%> (+3.19%) ⬆️

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 at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@TheIronDev
Copy link
Contributor

Any chance you can write some tests to reduce further regression opportunities?

@yuchenshi yuchenshi enabled auto-merge (squash) October 10, 2022 16:48
@yuchenshi
Copy link
Member Author

Any chance you can write some tests to reduce further regression opportunities?

I have some ideas -- I think we need something like the existing emulator integration tests for the web frameworks in general, but that is a bigger ask. Happy to discuss more offline.

@yuchenshi yuchenshi merged commit 49f87e4 into master Oct 10, 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

4 participants