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

Integration tests failed with exception "The Functions Host Runtime did not start properly after 180 seconds" #4190

Open
hejingkan2005 opened this issue Nov 13, 2024 · 3 comments

Comments

@hejingkan2005
Copy link

hejingkan2005 commented Nov 13, 2024

Version

Dotnet Version: 8.0.403/8.0.404
Azure Function Core Tools Version: 4.0.6594

Description

Hit below exception in Onebranch pipeline, we don't meet this error before, and reverting to version 4.0.6543 seems mitigate the issue:

[xUnit.net 00:03:02.80] Learn.VectorSearch.API.IntegrationTests.RelevanceApiTest.TestGetRelevantItemByText(category: QnA, input: "What is the best programming language", count: 0, expectedItemId: "", score: "") [FAIL]
Failed Learn.VectorSearch.API.IntegrationTests.ItemSpecApiTest.TestGetItemSpecByItemId_NotExistingItem(category: QnA, contentId: "invalidId") [1 ms]
Error Message:
System.Exception : The Functions Host Runtime did not start properly after 180 seconds.
Stack Trace:
at Microsoft.Learn.AzureFunctionsTesting.FunctionFixture1.InitializeAsync() at Microsoft.Docs.FunctionsIntegrationTesting.DocsFunctionFixture1.InitializeAsync()

Steps to reproduce

  • Install Azure Function Core Tools version: 4.0.6594
  • Run a pipeline relying on this version of Azure Function Core Tools
  • Repro the exception in description.
  • Revert to version: 4.0.6543 will resolve this.
@liliankasem
Copy link
Member

@aishwaryabh could this be related to the other ADO issue you were looking at? #4156 (comment)

@hejingkan2005
Copy link
Author

@liliankasem , thank you for reference. Btw, I just verified with the latest release version 4.0.6610, unfortunately it looks the same issue.

@ksgopal4
Copy link

ksgopal4 commented Nov 19, 2024

We have same issue, integration tests fail as func start no longer works. Output seems to indicate that func start needs more information

 Select a number for worker runtime:
1. dotnet (isolated worker model)
2. dotnet (in-process model)
3. node
4. python
5. powershell
6. custom

It seems that func start now requires the following as part of local.setting.json
"FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated"
local.setting.json file is not available on my build server as its not checked in to source control. This value is being passed in via environment variables, but it appears func start no longer looks at environment variables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants