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

Add env var check for worker runtime in StartHostAction #4198

Open
wants to merge 2 commits into
base: v4.x
Choose a base branch
from

Conversation

Zemfm
Copy link

@Zemfm Zemfm commented Nov 21, 2024

Adds a check to StartHostAction to use the environment variable "FUNCTIONS_WORKER_RUNTIME" if available, before displaying the Wizard Prompt.

This enables setting the runtime through environment variables as was the case in the past.

Issue describing the changes in this PR

resolves #4193

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • I have added all required tests (Unit tests, E2E tests)

Note: I was unable to run or write unit tests and only validated manually by running the tool against a function with/without environment variables set:
https://github.com/Azure/azure-functions-core-tools/blob/v4.x/CONTRIBUTING.md#running-the-test-suite

I was able to run the tests and added a unit test. It would be helpful if the link above was updated.

@Zemfm Zemfm requested a review from a team as a code owner November 21, 2024 19:58
@Zemfm
Copy link
Author

Zemfm commented Nov 22, 2024

@microsoft-github-policy-service agree

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.

@4 version broken by a patch release
1 participant