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

[TEST] AzureFunctionsInProcessTests failing on CI #2501

Open
stevejgordon opened this issue Nov 25, 2024 · 0 comments
Open

[TEST] AzureFunctionsInProcessTests failing on CI #2501

stevejgordon opened this issue Nov 25, 2024 · 0 comments

Comments

@stevejgordon
Copy link
Contributor

[xUnit.net 00:02:01.68]     Elastic.Apm.Azure.Functions.Tests.AzureFunctionsInProcessTests.Invoke_Http_NotFound [FAIL]
 ⚡️ FAIL  Elastic.Apm.Azure.Functions.Tests.AzureFunctionsInProcessTests.Invoke_Http_NotFound [59.1 s]

Error: Expected attempt to be less than 60 because Could not connect to function running on http://localhost:17073/api/HttpTriggerWithNotFound, but found 60.

  Failed Elastic.Apm.Azure.Functions.Tests.AzureFunctionsInProcessTests.Invoke_Http_NotFound [59 s]
  Error Message:
   Expected attempt to be less than 60 because Could not connect to function running on http://localhost:17073/api/HttpTriggerWithNotFound, but found 60.
  Stack Trace:
     at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
   at FluentAssertions.Numeric.NumericAssertions`1.BeLessThan(T expected, String because, Object[] becauseArgs)
   at Elastic.Apm.Azure.Functions.Tests.AzureFunctionTestContextBase.InvokeFunction(ITestOutputHelper output, Uri uri) in /home/runner/work/apm-agent-dotnet/apm-agent-dotnet/test/azure/Elastic.Apm.Azure.Functions.Tests/AzureFunctionsTestFixture.cs:line 145
   at Elastic.Apm.Azure.Functions.Tests.AzureFunctionsTestBase.InvokeAndAssertFunction(String functionName) in /home/runner/work/apm-agent-dotnet/apm-agent-dotnet/test/azure/Elastic.Apm.Azure.Functions.Tests/AzureFunctionsTestBase.cs:line 35
   at Elastic.Apm.Azure.Functions.Tests.AzureFunctionsInProcessTests.Invoke_Http_NotFound() in /home/runner/work/apm-agent-dotnet/apm-agent-dotnet/test/azure/Elastic.Apm.Azure.Functions.Tests/AzureFunctionsInProcessTests.cs:line 55
--- End of stack trace from previous location ---
  Standard Output Messages:
 === START SUT Log ===
 Starting APM Server on port: 23479
 func working directory: /home/runner/work/apm-agent-dotnet/apm-agent-dotnet/test/azure/applications/Elastic.AzureFunctionApp.InProcess
 11/25/2024 10:57:15: Starting func tool
 [func]   Determining projects to restore...
 [func]   All projects are up-to-date for restore.
 [func]   Elastic.Apm -> /home/runner/work/apm-agent-dotnet/apm-agent-dotnet/test/azure/applications/Elastic.AzureFunctionApp.InProcess/bin/output/Elastic.Apm.dll
 [func]   Elastic.Apm.Azure.Functions -> /home/runner/work/apm-agent-dotnet/apm-agent-dotnet/test/azure/applications/Elastic.AzureFunctionApp.InProcess/bin/output/Elastic.Apm.Azure.Functions.dll
 [func]   Elastic.Apm.AzureFunctionApp.Core -> /home/runner/work/apm-agent-dotnet/apm-agent-dotnet/test/azure/applications/Elastic.AzureFunctionApp.InProcess/bin/output/Elastic.Apm.AzureFunctionApp.Core.dll
 [func]   Elastic.Apm -> /home/runner/work/apm-agent-dotnet/apm-agent-dotnet/test/azure/applications/Elastic.AzureFunctionApp.InProcess/bin/output/Elastic.Apm.dll
 [func]   Elastic.AzureFunctionApp.InProcess -> /home/runner/work/apm-agent-dotnet/apm-agent-dotnet/test/azure/applications/Elastic.AzureFunctionApp.InProcess/bin/output/Elastic.AzureFunctionApp.InProcess.dll
 [func] 
 [func] Build succeeded.
 [func]     0 Warning(s)
 [func]     0 Error(s)
 [func] 
 [func] Time Elapsed 00:00:08.47
 [func] 
 === END SUT Log ===
 Invoking http://localhost:17073/api/HttpTriggerWithNotFound ...


 ✅️ PASS  Elastic.Apm.Azure.ServiceBus.Tests.AzureMessagingServiceBusDiagnosticListenerTests.Capture_Transaction_When_ProcessMessage_From_Queue [1 m 3 s]
 ✅️ PASS  Elastic.Apm.Azure.ServiceBus.Tests.AzureMessagingServiceBusDiagnosticListenerTests.Capture_Transaction_When_Receive_From_Topic_Subscription [2.44 s]
 ✅️ PASS  Elastic.Apm.Azure.ServiceBus.Tests.AzureMessagingServiceBusDiagnosticListenerTests.Capture_Span_When_Receive_From_Queue_Inside_Transaction [2.23 s]
 ✅️ PASS  Elastic.Apm.Azure.ServiceBus.Tests.AzureMessagingServiceBusDiagnosticListenerTests.Capture_Span_When_Schedule_To_Queue [2.27 s]
 ✅️ PASS  Elastic.Apm.Azure.ServiceBus.Tests.AzureMessagingServiceBusDiagnosticListenerTests.Capture_Transaction_When_ReceiveDeferred_From_Topic_Subscription [2.63 s]
 ✅️ PASS  Elastic.Apm.Azure.ServiceBus.Tests.AzureMessagingServiceBusDiagnosticListenerTests.Capture_Transaction_When_Receive_From_Queue [2.21 s]
[xUnit.net 00:03:00.70]     Elastic.Apm.Azure.Functions.Tests.AzureFunctionsInProcessTests.Invoke_Http_InternalServerError [FAIL]
 ⚡️ FAIL  Elastic.Apm.Azure.Functions.Tests.AzureFunctionsInProcessTests.Invoke_Http_InternalServerError [59 s]

Error: Expected attempt to be less than 60 because Could not connect to function running on http://localhost:17073/api/HttpTriggerWithInternalServerError, but found 60.

  Failed Elastic.Apm.Azure.Functions.Tests.AzureFunctionsInProcessTests.Invoke_Http_InternalServerError [59 s]
  Error Message:
   Expected attempt to be less than 60 because Could not connect to function running on http://localhost:17073/api/HttpTriggerWithInternalServerError, but found 60.
  Stack Trace:
     at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
   at FluentAssertions.Numeric.NumericAssertions`1.BeLessThan(T expected, String because, Object[] becauseArgs)
   at Elastic.Apm.Azure.Functions.Tests.AzureFunctionsTestBase.InvokeAndAssertFunction(String functionName) in /home/runner/work/apm-agent-dotnet/apm-agent-dotnet/test/azure/Elastic.Apm.Azure.Functions.Tests/AzureFunctionsTestBase.cs:line 35
   at Elastic.Apm.Azure.Functions.Tests.AzureFunctionsInProcessTests.Invoke_Http_FunctionThrowsException() in /home/runner/work/apm-agent-dotnet/apm-agent-dotnet/test/azure/Elastic.Apm.Azure.Functions.Tests/AzureFunctionsInProcessTests.cs:line 44
--- End of stack trace from previous location ---
  Standard Output Messages:
 === START SUT Log ===
 Starting APM Server on port: 23479
 func working directory: /home/runner/work/apm-agent-dotnet/apm-agent-dotnet/test/azure/applications/Elastic.AzureFunctionApp.InProcess
 11/25/2024 10:57:15: Starting func tool
 [func]   Determining projects to restore...
 [func]   All projects are up-to-date for restore.
 [func]   Elastic.Apm -> /home/runner/work/apm-agent-dotnet/apm-agent-dotnet/test/azure/applications/Elastic.AzureFunctionApp.InProcess/bin/output/Elastic.Apm.dll
 [func]   Elastic.Apm.Azure.Functions -> /home/runner/work/apm-agent-dotnet/apm-agent-dotnet/test/azure/applications/Elastic.AzureFunctionApp.InProcess/bin/output/Elastic.Apm.Azure.Functions.dll
 [func]   Elastic.Apm.AzureFunctionApp.Core -> /home/runner/work/apm-agent-dotnet/apm-agent-dotnet/test/azure/applications/Elastic.AzureFunctionApp.InProcess/bin/output/Elastic.Apm.AzureFunctionApp.Core.dll
 [func]   Elastic.Apm -> /home/runner/work/apm-agent-dotnet/apm-agent-dotnet/test/azure/applications/Elastic.AzureFunctionApp.InProcess/bin/output/Elastic.Apm.dll
 [func]   Elastic.AzureFunctionApp.InProcess -> /home/runner/work/apm-agent-dotnet/apm-agent-dotnet/test/azure/applications/Elastic.AzureFunctionApp.InProcess/bin/output/Elastic.AzureFunctionApp.InProcess.dll
 [func] 
 [func] Build succeeded.
 [func]     0 Warning(s)
 [func]     0 Error(s)
 [func] 
 [func] Time Elapsed 00:00:08.47
 [func] 
 === END SUT Log ===
 Invoking http://localhost:17073/api/HttpTriggerWithException ...


   Finished:    Elastic.Apm.Azure.ServiceBus.Tests

                                                      
  🌈  SUMMARY: Elastic.Apm.Azure.ServiceBus.Tests 🌈  
                                                      
     🧪 TOTAL: 24   
     ✅  PASS: 24   
     🐢  SLOW: 23   
     ⏳  TIME: 5 m 25 s   



Passed!  - Failed:     0, Passed:    24, Skipped:     0, Total:    24, Duration: 2 m 59 s - Elastic.Apm.Azure.ServiceBus.Tests.dll (net8.0)
   Finished:    Elastic.Apm.Azure.Functions.Tests

                                                        
     ⚡️FAILURES: Elastic.Apm.Azure.Functions.Tests  4  
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

1 participant