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

Implement Error exception cause #1277

Merged
merged 2 commits into from
Apr 29, 2021
Merged

Conversation

russcam
Copy link
Contributor

@russcam russcam commented Apr 28, 2021

This commit implements the cause property on the exception of an APM error. Cause can capture chained exceptions, which are the chain of inner exceptions for .NET.

Avoid array allocation and copying of frames when stacktrace limit is greater than 0.

Closes #1267

russcam added 2 commits April 28, 2021 14:05
This commit implements the cause property on
the exception of an APM error. Cause can capture
chained exceptions, which are the chain of
inner exceptions for .NET.

Closes elastic#1267
This commit avoids the allocation of an array and
copying of stacktrace framew when a stacktrace limit
> 0 is specified.
@russcam russcam added enhancement New feature or request v1.10.0 labels Apr 28, 2021
@apmmachine
Copy link
Contributor

💔 Tests Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #1277 opened

  • Start Time: 2021-04-28T04:40:38.437+0000

  • Duration: 44 min 7 sec

  • Commit: 538c080

Test stats 🧪

Test Results
Failed 109
Passed 19147
Skipped 85
Total 19341

Trends 🧪

Image of Build Times

Image of Tests

Test errors 109

Expand to view the tests failures

> Show only the first 10 test failures

Initializing / Parallel / Linux / Test / SqlClientListenerTests.Elastic.Apm.SqlClient.Tests.SqlClientListenerTests.SqlClientDiagnosticListener_ShouldCaptureSpan – Elastic.Apm.SqlClient.Tests.SqlClientListenerTests
    Expand to view the error details

     System.ArgumentException : An item with the same key has already been added. Key: 1433 
    

    Expand to view the stacktrace

     System.ArgumentException : An item with the same key has already been added. Key: 1433
    Stack Trace:
       at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
       at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](List`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
       at TestEnvironment.Docker.Container.RunContainerSafely(String[] environmentVariables, CancellationToken token)
       at TestEnvironment.Docker.Container.Run(IDictionary`2 environmentVariables, CancellationToken token)
       at TestEnvironment.Docker.DockerEnvironment.Up(CancellationToken token)
       at Elastic.Apm.DatabaseTests.Common.DatabaseFixture.InitializeAsync() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1277/apm-agent-dotnet/test/Elastic.Apm.DatabaseTests.Common/DatabaseFixture.cs:line 27 
    

Initializing / Parallel / Linux / Test / EfCoreWithMsSqlTests.Elastic.Apm.SqlClient.Tests.EfCoreWithMsSqlTests.BothEfCoreAndSqlClientCapturingActive – Elastic.Apm.SqlClient.Tests.EfCoreWithMsSqlTests
    Expand to view the error details

     System.ArgumentException : An item with the same key has already been added. Key: 1433 
    

    Expand to view the stacktrace

     System.ArgumentException : An item with the same key has already been added. Key: 1433
    Stack Trace:
       at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
       at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](List`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
       at TestEnvironment.Docker.Container.RunContainerSafely(String[] environmentVariables, CancellationToken token)
       at TestEnvironment.Docker.Container.Run(IDictionary`2 environmentVariables, CancellationToken token)
       at TestEnvironment.Docker.DockerEnvironment.Up(CancellationToken token)
       at Elastic.Apm.DatabaseTests.Common.DatabaseFixture.InitializeAsync() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1277/apm-agent-dotnet/test/Elastic.Apm.DatabaseTests.Common/DatabaseFixture.cs:line 27 
    

Initializing / Parallel / Linux / Test / SqlClientListenerTests.Elastic.Apm.SqlClient.Tests.SqlClientListenerTests.SqlClientDiagnosticListener_ShouldCaptureSpan – Elastic.Apm.SqlClient.Tests.SqlClientListenerTests
    Expand to view the error details

     System.ArgumentException : An item with the same key has already been added. Key: 1433 
    

    Expand to view the stacktrace

     System.ArgumentException : An item with the same key has already been added. Key: 1433
    Stack Trace:
       at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
       at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](List`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
       at TestEnvironment.Docker.Container.RunContainerSafely(String[] environmentVariables, CancellationToken token)
       at TestEnvironment.Docker.Container.Run(IDictionary`2 environmentVariables, CancellationToken token)
       at TestEnvironment.Docker.DockerEnvironment.Up(CancellationToken token)
       at Elastic.Apm.DatabaseTests.Common.DatabaseFixture.InitializeAsync() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1277/apm-agent-dotnet/test/Elastic.Apm.DatabaseTests.Common/DatabaseFixture.cs:line 27 
    

Initializing / Parallel / Linux / Test / SqlClientListenerTests.Elastic.Apm.SqlClient.Tests.SqlClientListenerTests.SqlClientDiagnosticListener_ShouldCaptureErrorFromSystemSqlClient – Elastic.Apm.SqlClient.Tests.SqlClientListenerTests
    Expand to view the error details

     System.ArgumentException : An item with the same key has already been added. Key: 1433 
    

    Expand to view the stacktrace

     System.ArgumentException : An item with the same key has already been added. Key: 1433
    Stack Trace:
       at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
       at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](List`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
       at TestEnvironment.Docker.Container.RunContainerSafely(String[] environmentVariables, CancellationToken token)
       at TestEnvironment.Docker.Container.Run(IDictionary`2 environmentVariables, CancellationToken token)
       at TestEnvironment.Docker.DockerEnvironment.Up(CancellationToken token)
       at Elastic.Apm.DatabaseTests.Common.DatabaseFixture.InitializeAsync() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1277/apm-agent-dotnet/test/Elastic.Apm.DatabaseTests.Common/DatabaseFixture.cs:line 27 
    

Initializing / Parallel / Linux / Test / SqlClientListenerTests.Elastic.Apm.SqlClient.Tests.SqlClientListenerTests.SqlClientDiagnosticListener_ShouldCaptureErrorFromSystemSqlClient – Elastic.Apm.SqlClient.Tests.SqlClientListenerTests
    Expand to view the error details

     System.ArgumentException : An item with the same key has already been added. Key: 1433 
    

    Expand to view the stacktrace

     System.ArgumentException : An item with the same key has already been added. Key: 1433
    Stack Trace:
       at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
       at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](List`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
       at TestEnvironment.Docker.Container.RunContainerSafely(String[] environmentVariables, CancellationToken token)
       at TestEnvironment.Docker.Container.Run(IDictionary`2 environmentVariables, CancellationToken token)
       at TestEnvironment.Docker.DockerEnvironment.Up(CancellationToken token)
       at Elastic.Apm.DatabaseTests.Common.DatabaseFixture.InitializeAsync() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1277/apm-agent-dotnet/test/Elastic.Apm.DatabaseTests.Common/DatabaseFixture.cs:line 27 
    

Initializing / Parallel / Linux / Test / EfCoreWithMsSqlTests.Elastic.Apm.SqlClient.Tests.EfCoreWithMsSqlTests.BothEfCoreAndSqlClientCapturingActive – Elastic.Apm.SqlClient.Tests.EfCoreWithMsSqlTests
    Expand to view the error details

     System.ArgumentException : An item with the same key has already been added. Key: 1433 
    

    Expand to view the stacktrace

     System.ArgumentException : An item with the same key has already been added. Key: 1433
    Stack Trace:
       at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
       at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](List`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
       at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
       at TestEnvironment.Docker.Container.RunContainerSafely(String[] environmentVariables, CancellationToken token)
       at TestEnvironment.Docker.Container.Run(IDictionary`2 environmentVariables, CancellationToken token)
       at TestEnvironment.Docker.DockerEnvironment.Up(CancellationToken token)
       at Elastic.Apm.DatabaseTests.Common.DatabaseFixture.InitializeAsync() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1277/apm-agent-dotnet/test/Elastic.Apm.DatabaseTests.Common/DatabaseFixture.cs:line 27 
    

Initializing / Parallel / Linux / Test / SqlClientListenerTests.Elastic.Apm.SqlClient.Tests.SqlClientListenerTests.SqlClientDiagnosticListener_ShouldCaptureSpan – Elastic.Apm.SqlClient.Tests.SqlClientListenerTests
    Expand to view the error details

     System.ArgumentException : An item with the same key has already been added. Key: 1433 
    

    Expand to view the stacktrace

     System.ArgumentException : An item with the same key has already been added. Key: 1433
    Stack Trace:
       at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
       at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](List`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
       at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
       at TestEnvironment.Docker.Container.RunContainerSafely(String[] environmentVariables, CancellationToken token)
       at TestEnvironment.Docker.Container.Run(IDictionary`2 environmentVariables, CancellationToken token)
       at TestEnvironment.Docker.DockerEnvironment.Up(CancellationToken token)
       at Elastic.Apm.DatabaseTests.Common.DatabaseFixture.InitializeAsync() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1277/apm-agent-dotnet/test/Elastic.Apm.DatabaseTests.Common/DatabaseFixture.cs:line 27 
    

Initializing / Parallel / Linux / Test / SqlClientListenerTests.Elastic.Apm.SqlClient.Tests.SqlClientListenerTests.SqlClientDiagnosticListener_ShouldCaptureSpan – Elastic.Apm.SqlClient.Tests.SqlClientListenerTests
    Expand to view the error details

     System.ArgumentException : An item with the same key has already been added. Key: 1433 
    

    Expand to view the stacktrace

     System.ArgumentException : An item with the same key has already been added. Key: 1433
    Stack Trace:
       at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
       at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](List`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
       at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
       at TestEnvironment.Docker.Container.RunContainerSafely(String[] environmentVariables, CancellationToken token)
       at TestEnvironment.Docker.Container.Run(IDictionary`2 environmentVariables, CancellationToken token)
       at TestEnvironment.Docker.DockerEnvironment.Up(CancellationToken token)
       at Elastic.Apm.DatabaseTests.Common.DatabaseFixture.InitializeAsync() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1277/apm-agent-dotnet/test/Elastic.Apm.DatabaseTests.Common/DatabaseFixture.cs:line 27 
    

Initializing / Parallel / Linux / Test / SqlClientListenerTests.Elastic.Apm.SqlClient.Tests.SqlClientListenerTests.SqlClientDiagnosticListener_ShouldCaptureErrorFromSystemSqlClient – Elastic.Apm.SqlClient.Tests.SqlClientListenerTests
    Expand to view the error details

     System.ArgumentException : An item with the same key has already been added. Key: 1433 
    

    Expand to view the stacktrace

     System.ArgumentException : An item with the same key has already been added. Key: 1433
    Stack Trace:
       at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
       at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](List`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
       at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
       at TestEnvironment.Docker.Container.RunContainerSafely(String[] environmentVariables, CancellationToken token)
       at TestEnvironment.Docker.Container.Run(IDictionary`2 environmentVariables, CancellationToken token)
       at TestEnvironment.Docker.DockerEnvironment.Up(CancellationToken token)
       at Elastic.Apm.DatabaseTests.Common.DatabaseFixture.InitializeAsync() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1277/apm-agent-dotnet/test/Elastic.Apm.DatabaseTests.Common/DatabaseFixture.cs:line 27 
    

Initializing / Parallel / Linux / Test / SqlClientListenerTests.Elastic.Apm.SqlClient.Tests.SqlClientListenerTests.SqlClientDiagnosticListener_ShouldCaptureErrorFromSystemSqlClient – Elastic.Apm.SqlClient.Tests.SqlClientListenerTests
    Expand to view the error details

     System.ArgumentException : An item with the same key has already been added. Key: 1433 
    

    Expand to view the stacktrace

     System.ArgumentException : An item with the same key has already been added. Key: 1433
    Stack Trace:
       at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
       at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](List`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
       at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
       at TestEnvironment.Docker.Container.RunContainerSafely(String[] environmentVariables, CancellationToken token)
       at TestEnvironment.Docker.Container.Run(IDictionary`2 environmentVariables, CancellationToken token)
       at TestEnvironment.Docker.DockerEnvironment.Up(CancellationToken token)
       at Elastic.Apm.DatabaseTests.Common.DatabaseFixture.InitializeAsync() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1277/apm-agent-dotnet/test/Elastic.Apm.DatabaseTests.Common/DatabaseFixture.cs:line 27 
    

Steps errors 1

Expand to view the steps failures

Test IIS
  • Took 6 min 7 sec . View more details on here
  • Description: .ci/windows/test-iis.bat

Log output

Expand to view the last 100 lines of log output

[2021-04-28T05:24:32.646Z] info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
[2021-04-28T05:24:32.646Z]       Request starting HTTP/1.1 POST http://localhost:23508/intake/v2/events application/x-ndjson; charset=utf-8 1238
[2021-04-28T05:24:32.646Z] info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[3]
[2021-04-28T05:24:32.646Z]       Route matched with {action = "Post", controller = "IntakeV2Events"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Post() on controller Elastic.Apm.Tests.MockApmServer.Controllers.IntakeV2EventsController (Elastic.Apm.Tests.MockApmServer).
[2021-04-28T05:24:32.646Z] info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1]
[2021-04-28T05:24:32.646Z]       Executing action method Elastic.Apm.Tests.MockApmServer.Controllers.IntakeV2EventsController.Post (Elastic.Apm.Tests.MockApmServer) - Validation state: Valid
[2021-04-28T05:24:32.646Z] info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
[2021-04-28T05:24:32.646Z]       Executed action method Elastic.Apm.Tests.MockApmServer.Controllers.IntakeV2EventsController.Post (Elastic.Apm.Tests.MockApmServer), returned result Microsoft.AspNetCore.Mvc.OkObjectResult in 1.7267ms.
[2021-04-28T05:24:32.646Z] info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1]
[2021-04-28T05:24:32.646Z]       Executing ObjectResult, writing value of type 'System.String'.
[2021-04-28T05:24:32.646Z] info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
[2021-04-28T05:24:32.646Z]       Executed action Elastic.Apm.Tests.MockApmServer.Controllers.IntakeV2EventsController.Post (Elastic.Apm.Tests.MockApmServer) in 2.0665ms
[2021-04-28T05:24:32.646Z] info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
[2021-04-28T05:24:32.646Z]       Request finished in 6.3208ms 200 text/plain; charset=utf-8
[2021-04-28T05:24:32.646Z] Calling6764
[2021-04-28T05:24:32.646Z] dotnet
[2021-04-28T05:24:32.646Z] success: 0
[2021-04-28T05:24:32.646Z] [xUnit.net 00:06:00.20]   Finished:    Elastic.Apm.StartupHook.Tests
[2021-04-28T05:24:32.646Z]   Passed Elastic.Apm.StartupHook.Tests.StartupHookTests.Auto_Instrument_With_StartupHook_Should_Capture_Transaction(targetFramework: "net5.0") [21 s]
[2021-04-28T05:24:32.646Z] 
[2021-04-28T05:24:32.646Z] JunitXML Logger - Results File: C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1277\apm-agent-dotnet\test\Elastic.Apm.StartupHook.Tests\junit-NETCoreApp21-Elastic.Apm.StartupHook.Tests.xml
[2021-04-28T05:24:32.646Z] 
[2021-04-28T05:24:32.646Z] Test Run Successful.
[2021-04-28T05:24:32.646Z] Total tests: 15
[2021-04-28T05:24:32.646Z]      Passed: 15
[2021-04-28T05:24:32.646Z]  Total time: 6.0174 Minutes
[2021-04-28T05:24:32.646Z] 
[2021-04-28T05:24:32.646Z] Build succeeded.
[2021-04-28T05:24:32.646Z]     0 Warning(s)
[2021-04-28T05:24:32.646Z]     0 Error(s)
[2021-04-28T05:24:32.646Z] 
[2021-04-28T05:24:32.646Z] Time Elapsed 00:06:01.93
[2021-04-28T05:24:33.913Z] Post stage
[2021-04-28T05:24:33.937Z] Running in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1277\apm-agent-dotnet
[2021-04-28T05:24:33.987Z] Archiving artifacts
[2021-04-28T05:24:34.502Z] Recording test results
[2021-04-28T05:24:36.435Z] [Checks API] No suitable checks publisher found.
[2021-04-28T05:24:36.555Z] Archiving artifacts
[2021-04-28T05:24:36.799Z] java.lang.InterruptedException: no matches found within 10000
[2021-04-28T05:24:36.799Z] 	at hudson.FilePath$ValidateAntFileMask.hasMatch(FilePath.java:3069)
[2021-04-28T05:24:36.799Z] 	at hudson.FilePath$ValidateAntFileMask.invoke(FilePath.java:2978)
[2021-04-28T05:24:36.799Z] 	at hudson.FilePath$ValidateAntFileMask.invoke(FilePath.java:2929)
[2021-04-28T05:24:36.799Z] 	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3317)
[2021-04-28T05:24:36.799Z] Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from apm-ci-immutable-windows-2019-1619585016299434874.c.elastic-ci-prod.internal/10.224.0.40:49732
[2021-04-28T05:24:36.799Z] 		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1800)
[2021-04-28T05:24:36.799Z] 		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
[2021-04-28T05:24:36.799Z] 		at hudson.remoting.Channel.call(Channel.java:1001)
[2021-04-28T05:24:36.799Z] 		at hudson.FilePath.act(FilePath.java:1159)
[2021-04-28T05:24:36.799Z] 		at hudson.FilePath.act(FilePath.java:1148)
[2021-04-28T05:24:36.799Z] 		at hudson.FilePath.validateAntFileMask(FilePath.java:2927)
[2021-04-28T05:24:36.799Z] 		at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:270)
[2021-04-28T05:24:36.799Z] 		at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:99)
[2021-04-28T05:24:36.799Z] 		at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69)
[2021-04-28T05:24:36.799Z] 		at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
[2021-04-28T05:24:36.799Z] 		at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[2021-04-28T05:24:36.799Z] 		at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2021-04-28T05:24:36.799Z] 		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[2021-04-28T05:24:36.799Z] 		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[2021-04-28T05:24:36.799Z] Caused: hudson.FilePath$TunneledInterruptedException
[2021-04-28T05:24:36.799Z] 	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3319)
[2021-04-28T05:24:36.799Z] 	at hudson.remoting.UserRequest.perform(UserRequest.java:211)
[2021-04-28T05:24:36.799Z] 	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
[2021-04-28T05:24:36.799Z] 	at hudson.remoting.Request$2.run(Request.java:375)
[2021-04-28T05:24:36.799Z] 	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
[2021-04-28T05:24:36.799Z] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2021-04-28T05:24:36.799Z] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[2021-04-28T05:24:36.799Z] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[2021-04-28T05:24:36.799Z] 	at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:118)
[2021-04-28T05:24:36.799Z] Caused: java.lang.InterruptedException: java.lang.InterruptedException: no matches found within 10000
[2021-04-28T05:24:36.799Z] 	at hudson.FilePath.act(FilePath.java:1161)
[2021-04-28T05:24:36.799Z] 	at hudson.FilePath.act(FilePath.java:1148)
[2021-04-28T05:24:36.799Z] 	at hudson.FilePath.validateAntFileMask(FilePath.java:2927)
[2021-04-28T05:24:36.799Z] 	at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:270)
[2021-04-28T05:24:36.799Z] 	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:99)
[2021-04-28T05:24:36.799Z] 	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69)
[2021-04-28T05:24:36.799Z] 	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
[2021-04-28T05:24:36.799Z] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[2021-04-28T05:24:36.799Z] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2021-04-28T05:24:36.799Z] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[2021-04-28T05:24:36.799Z] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[2021-04-28T05:24:36.799Z] 	at java.lang.Thread.run(Thread.java:748)
[2021-04-28T05:24:36.799Z] No artifacts found that match the file pattern "C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1277/**/MSBuild_*.failure.txt". Configuration error?
[2021-04-28T05:24:36.872Z] Post stage
[2021-04-28T05:24:36.899Z] [WS-CLEANUP] Deleting project workspace...
[2021-04-28T05:24:36.899Z] [WS-CLEANUP] Deferred wipeout is disabled by the job configuration...
[2021-04-28T05:24:42.708Z] [WS-CLEANUP] done
[2021-04-28T05:24:43.255Z] Stage "Release to feedz.io" skipped due to earlier failure(s)
[2021-04-28T05:24:43.363Z] Stage "Release" skipped due to earlier failure(s)
[2021-04-28T05:24:43.406Z] Stage "Release" skipped due to earlier failure(s)
[2021-04-28T05:24:43.507Z] Stage "Release" skipped due to earlier failure(s)
[2021-04-28T05:24:43.669Z] Stage "AfterRelease" skipped due to earlier failure(s)
[2021-04-28T05:24:43.714Z] Stage "AfterRelease" skipped due to earlier failure(s)
[2021-04-28T05:24:44.112Z] Running on Jenkins in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1277
[2021-04-28T05:24:44.229Z] [INFO] getVaultSecret: Getting secrets
[2021-04-28T05:24:44.283Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-04-28T05:24:45.264Z] + chmod 755 generate-build-data.sh
[2021-04-28T05:24:45.264Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1277/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1277/runs/1 FAILURE 2646556
[2021-04-28T05:24:45.264Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1277/runs/1/steps/?limit=10000 -o steps-info.json
[2021-04-28T05:24:45.514Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1277/runs/1/tests/?status=FAILED -o tests-errors.json
[2021-04-28T05:24:46.425Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1277/runs/1/log/ -o pipeline-log.txt

Copy link
Contributor

@gregkalapos gregkalapos left a comment

Choose a reason for hiding this comment

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

LGTM

@russcam
Copy link
Contributor Author

russcam commented Apr 29, 2021

Failing tests pass locally and are failing on other PRs, so it looks like there's a general issue with them on CI. #1272 is open for SQL server integration tests and I've opened https://github.com/elastic/apm-agent-dotnet/issues/1281 for ASP.NET Full Framework tests.

Merging this in

@russcam russcam merged commit b9ce335 into elastic:master Apr 29, 2021
@russcam russcam deleted the feature/error-cause branch April 29, 2021 00:47
russcam added a commit to russcam/apm-agent-dotnet that referenced this pull request May 6, 2021
This commit fixes a bug introduced in elastic#1277
russcam added a commit that referenced this pull request May 6, 2021
This commit fixes a bug introduced in #1277
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Capture Inner Exceptions on Error cause
3 participants