Azure / azure-functions-core-tools

Command line tools for Azure Functions
MIT License
1.32k stars 435 forks source link

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

Open hejingkan2005 opened 3 days ago

hejingkan2005 commented 3 days ago

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

liliankasem commented 3 days ago

@aishwaryabh could this be related to the other ADO issue you were looking at? https://github.com/Azure/azure-functions-core-tools/issues/4156#issuecomment-2469230570

hejingkan2005 commented 2 days ago

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