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 src/Elastic.Apm.MongoDb/LICENSE to .gitignore #1300

Merged
merged 2 commits into from
May 13, 2021
Merged

Add src/Elastic.Apm.MongoDb/LICENSE to .gitignore #1300

merged 2 commits into from
May 13, 2021

Conversation

gregkalapos
Copy link
Contributor

@gregkalapos gregkalapos commented May 10, 2021

Often this file is marked as a change after build - this was already mentioned by @russcam previously.

The problem is the line ending - if the file is generated on Windows, then it'll change the line ending to CRLF, if it's generated on macOS/Linux, the line ending changes to LF.

Therefore:

  • Added it to .gitignore - this file is built on the fly and when the package we publish is generated on CI, it'll always contain the latest merge.
  • Change the file to CRLF line ending, so it won't be changed on Windows.

@gregkalapos gregkalapos self-assigned this May 10, 2021
@gregkalapos gregkalapos requested a review from russcam May 10, 2021 20:14
@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 #1300 opened

  • Start Time: 2021-05-10T20:15:04.809+0000

  • Duration: 124 min 53 sec

  • Commit: 8c29a59

Test stats 🧪

Test Results
Failed 312
Passed 18523
Skipped 92
Total 18927

Trends 🧪

Image of Build Times

Image of Tests

Test errors 312

Expand to view the tests failures

> Show only the first 10 test failures

Initializing / Parallel / Windows .NET Framework / Test / CentralConfigFetcherTests.Elastic.Apm.Tests.BackendCommTests.CentralConfig.CentralConfigFetcherTests.Should_Update_IgnoreMessageQueues_Configuration – Elastic.Apm.Tests.BackendCommTests.CentralConfig.CentralConfigFetcherTests
    Expand to view the error details

     Expected collection not to be empty. 
    

    Expand to view the stacktrace

     Expected collection not to be empty.
    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.Collections.CollectionAssertions`2.NotBeEmpty(String because, Object[] becauseArgs)
       at Elastic.Apm.Tests.BackendCommTests.CentralConfig.CentralConfigFetcherTests.Should_Update_IgnoreMessageQueues_Configuration()
    Standard Output:
        Elastic APM .NET Tests> 299> Xunit> [2021-05-10 20:54:54.087 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.Tests.BackendCommTests.CentralConfig.CentralConfigFetcherTests.Should_Update_IgnoreMessageQueues_Configuration...
        Elastic APM .NET Tests> 299> Xunit> [2021-05-10 20:54:54.102 +00:00][Error] - {CentralConfigFetcher} Exception was thrown while fetching configuration from APM Server and parsing it. ETag: `<null>'. URL: `http://localhost:8200/config/v1/agents?service.name=xunit_execution_desktop'. Apm Server base URL: `http://localhost:8200/'. WaitInterval: 5m. dbgIterationsCount: 1.
        Elastic APM .NET Tests> 299> Xunit> +-> Request:
        Elastic APM .NET Tests> 299> Xunit>     Method: GET, RequestUri: 'http://localhost:8200/config/v1/agents?service.name=xunit_execution_desktop', Version: 1.1, Content: <null>, Headers:
        Elastic APM .NET Tests> 299> Xunit>     {
        Elastic APM .NET Tests> 299> Xunit>       User-Agent: elasticapm-dotnet/1.9.0+8c29a59730e58ecff9e105f986abe0cf7650066d
        Elastic APM .NET Tests> 299> Xunit>       User-Agent: System.Net.Http/4.8.3761.0
        Elastic APM .NET Tests> 299> Xunit>       User-Agent: .NET_Framework/4.8.4300.0
        Elastic APM .NET Tests> 299> Xunit>     }
        Elastic APM .NET Tests> 299> Xunit> +-> Response:
        Elastic APM .NET Tests> 299> Xunit>     StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.StringContent, Headers:
        Elastic APM .NET Tests> 299> Xunit>     {
        Elastic APM .NET Tests> 299> Xunit>       ETag: "etag"
        Elastic APM .NET Tests> 299> Xunit>       Content-Type: text/plain; charset=utf-8
        Elastic APM .NET Tests> 299> Xunit>       Content-Length: 34
        Elastic APM .NET Tests> 299> Xunit>     }
        Elastic APM .NET Tests> 299> Xunit> +-> Response body [length: 34]:
        Elastic APM .NET Tests> 299> Xunit>     { "ignore_message_queues": "foo" }
        Elastic APM .NET Tests> 299> Xunit> +-> Exception: System.NullReferenceException: Object reference not set to an instance of an object.
        Elastic APM .NET Tests> 299> Xunit>    at Elastic.Apm.BackendComm.CentralConfig.CentralConfigFetcher.<WorkLoopIteration>d__15.MoveNext() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\src\Elastic.Apm\BackendComm\CentralConfig\CentralConfigFetcher.cs:line 107
        Elastic APM .NET Tests> 299> Xunit> [2021-05-10 20:55:54.202 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.Tests.BackendCommTests.CentralConfig.CentralConfigFetcherTests.Should_Update_IgnoreMessageQueues_Configuration 
    

Initializing / Parallel / Windows .NET Core / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "secret", useOnlyDiagnosticSource: True) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty. 
    

    Expand to view the stacktrace

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty.
    Stack Trace:
       at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\XUnit2TestFramework.cs:line 32
       at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\AssertionScope.cs:line 181
       at FluentAssertions.Collections.SelfReferencingCollectionAssertions`2.ContainSingle(String because, Object[] becauseArgs) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Collections\SelfReferencingCollectionAssertions.cs:line 611
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\test\Elastic.Apm.AspNetCore.Tests\SanitizeFieldNamesTests.cs:line 295
    --- End of stack trace from previous location where exception was thrown --- 
    

Initializing / Parallel / Windows .NET Core / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "usersessionid", useOnlyDiagnosticSource: True) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty. 
    

    Expand to view the stacktrace

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty.
    Stack Trace:
       at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\XUnit2TestFramework.cs:line 32
       at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\AssertionScope.cs:line 181
       at FluentAssertions.Collections.SelfReferencingCollectionAssertions`2.ContainSingle(String because, Object[] becauseArgs) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Collections\SelfReferencingCollectionAssertions.cs:line 611
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\test\Elastic.Apm.AspNetCore.Tests\SanitizeFieldNamesTests.cs:line 295
    --- End of stack trace from previous location where exception was thrown --- 
    

Initializing / Parallel / Windows .NET Core / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "secret", useOnlyDiagnosticSource: False) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute. 
    

    Expand to view the stacktrace

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute.
    Stack Trace:
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
       at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\test\Elastic.Apm.AspNetCore.Tests\SanitizeFieldNamesTests.cs:line 292
    --- End of stack trace from previous location where exception was thrown ---
    ----- Inner Stack Trace -----
       at System.IO.Pipelines.PipeCompletion.ThrowLatchedException()
       at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
       at System.IO.Pipelines.Pipe.GetReadAsyncResult()
       at System.IO.Pipelines.Pipe.DefaultPipeReader.GetResult(Int16 token)
       at Microsoft.AspNetCore.TestHost.ResponseStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
       at System.IO.Stream.CopyToAsyncInternal(Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
       at System.Net.Http.StreamToStreamCopy.<>c.<DisposeSourceWhenCompleteAsync>b__1_0(Task completed, Object innerSource)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
    ----- Inner Stack Trace -----
       at System.Collections.Generic.Dictionary`2.KeyCollection.Enumerator.MoveNext()
       at Elastic.Apm.Filters.HeaderDictionarySanitizerFilter.Filter(ITransaction transaction) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\src\Elastic.Apm\Filters\HeaderDictionarySanitizerFilter.cs:line 25
       at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
       at Elastic.Apm.Tests.Utilities.MockPayloadSender.QueueTransaction(ITransaction transaction) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\test\Elastic.Apm.Tests.Utilities\MockPayloadSender.cs:line 185
       at Elastic.Apm.Model.Transaction.End() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\src\Elastic.Apm\Model\Transaction.cs:line 480
       at Elastic.Apm.AspNetCore.WebRequestTransactionCreator.StopTransaction(Transaction transaction, HttpContext context, IApmLogger logger)
       at Elastic.Apm.AspNetCore.ApmMiddleware.InvokeAsync(HttpContext context) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\src\Elastic.Apm.AspNetCore\ApmMiddleware.cs:line 58
       at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass10_0.<<SendAsync>b__0>d.MoveNext() 
    

Initializing / Parallel / Windows .NET Core / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "password", useOnlyDiagnosticSource: True) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty. 
    

    Expand to view the stacktrace

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty.
    Stack Trace:
       at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\XUnit2TestFramework.cs:line 32
       at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\AssertionScope.cs:line 181
       at FluentAssertions.Collections.SelfReferencingCollectionAssertions`2.ContainSingle(String because, Object[] becauseArgs) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Collections\SelfReferencingCollectionAssertions.cs:line 611
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\test\Elastic.Apm.AspNetCore.Tests\SanitizeFieldNamesTests.cs:line 295
    --- End of stack trace from previous location where exception was thrown --- 
    

Initializing / Parallel / Windows .NET Core / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "pwd", useOnlyDiagnosticSource: False) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute. 
    

    Expand to view the stacktrace

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute.
    Stack Trace:
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
       at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\test\Elastic.Apm.AspNetCore.Tests\SanitizeFieldNamesTests.cs:line 292
    --- End of stack trace from previous location where exception was thrown ---
    ----- Inner Stack Trace -----
       at System.IO.Pipelines.PipeCompletion.ThrowLatchedException()
       at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
       at System.IO.Pipelines.Pipe.GetReadAsyncResult()
       at System.IO.Pipelines.Pipe.DefaultPipeReader.GetResult(Int16 token)
       at Microsoft.AspNetCore.TestHost.ResponseStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
       at System.IO.Stream.CopyToAsyncInternal(Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
       at System.Net.Http.StreamToStreamCopy.<>c.<DisposeSourceWhenCompleteAsync>b__1_0(Task completed, Object innerSource)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
    ----- Inner Stack Trace -----
       at System.Collections.Generic.Dictionary`2.KeyCollection.Enumerator.MoveNext()
       at Elastic.Apm.Filters.HeaderDictionarySanitizerFilter.Filter(ITransaction transaction) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\src\Elastic.Apm\Filters\HeaderDictionarySanitizerFilter.cs:line 25
       at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
       at Elastic.Apm.Tests.Utilities.MockPayloadSender.QueueTransaction(ITransaction transaction) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\test\Elastic.Apm.Tests.Utilities\MockPayloadSender.cs:line 185
       at Elastic.Apm.Model.Transaction.End() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\src\Elastic.Apm\Model\Transaction.cs:line 480
       at Elastic.Apm.AspNetCore.WebRequestTransactionCreator.StopTransaction(Transaction transaction, HttpContext context, IApmLogger logger)
       at Elastic.Apm.AspNetCore.ApmMiddleware.InvokeAsync(HttpContext context) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\src\Elastic.Apm.AspNetCore\ApmMiddleware.cs:line 58
       at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass10_0.<<SendAsync>b__0>d.MoveNext() 
    

Initializing / Parallel / Windows .NET Core / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "usertokensecret", useOnlyDiagnosticSource: True) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty. 
    

    Expand to view the stacktrace

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty.
    Stack Trace:
       at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\XUnit2TestFramework.cs:line 32
       at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\AssertionScope.cs:line 181
       at FluentAssertions.Collections.SelfReferencingCollectionAssertions`2.ContainSingle(String because, Object[] becauseArgs) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Collections\SelfReferencingCollectionAssertions.cs:line 611
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\test\Elastic.Apm.AspNetCore.Tests\SanitizeFieldNamesTests.cs:line 295
    --- End of stack trace from previous location where exception was thrown --- 
    

Initializing / Parallel / Windows .NET Core / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "usertokensecret", useOnlyDiagnosticSource: False) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute. 
    

    Expand to view the stacktrace

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute.
    Stack Trace:
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
       at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\test\Elastic.Apm.AspNetCore.Tests\SanitizeFieldNamesTests.cs:line 292
    --- End of stack trace from previous location where exception was thrown ---
    ----- Inner Stack Trace -----
       at Microsoft.AspNetCore.TestHost.ResponseStream.CheckAborted()
       at Microsoft.AspNetCore.TestHost.ResponseStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
       at System.IO.Stream.CopyToAsyncInternal(Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
    ----- Inner Stack Trace -----
       at System.Collections.Generic.Dictionary`2.KeyCollection.Enumerator.MoveNext()
       at Elastic.Apm.Filters.HeaderDictionarySanitizerFilter.Filter(ITransaction transaction) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\src\Elastic.Apm\Filters\HeaderDictionarySanitizerFilter.cs:line 25
       at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
       at Elastic.Apm.Tests.Utilities.MockPayloadSender.QueueTransaction(ITransaction transaction) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\test\Elastic.Apm.Tests.Utilities\MockPayloadSender.cs:line 185
       at Elastic.Apm.Model.Transaction.End() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\src\Elastic.Apm\Model\Transaction.cs:line 480
       at Elastic.Apm.AspNetCore.WebRequestTransactionCreator.StopTransaction(Transaction transaction, HttpContext context, IApmLogger logger)
       at Elastic.Apm.AspNetCore.ApmMiddleware.InvokeAsync(HttpContext context) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\src\Elastic.Apm.AspNetCore\ApmMiddleware.cs:line 58
       at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass10_0.<<SendAsync>b__0>d.MoveNext() 
    

Initializing / Parallel / Windows .NET Core / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "secretcreditcard", useOnlyDiagnosticSource: True) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty. 
    

    Expand to view the stacktrace

     Expected _capturedPayload.Transactions to contain a single item, but the collection is empty.
    Stack Trace:
       at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\XUnit2TestFramework.cs:line 32
       at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Execution\AssertionScope.cs:line 181
       at FluentAssertions.Collections.SelfReferencingCollectionAssertions`2.ContainSingle(String because, Object[] becauseArgs) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Collections\SelfReferencingCollectionAssertions.cs:line 611
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\test\Elastic.Apm.AspNetCore.Tests\SanitizeFieldNamesTests.cs:line 295
    --- End of stack trace from previous location where exception was thrown --- 
    

Initializing / Parallel / Windows .NET Core / Test / SanitizeFieldNamesTests.Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(headerName: "usersessionid", useOnlyDiagnosticSource: False) – Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests
    Expand to view the error details

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute. 
    

    Expand to view the stacktrace

     System.Net.Http.HttpRequestException : Error while copying content to a stream.
    ---- System.IO.IOException : 
    -------- System.InvalidOperationException : Collection was modified; enumeration operation may not execute.
    Stack Trace:
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
       at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
       at Elastic.Apm.AspNetCore.Tests.SanitizeFieldNamesTests.DefaultsWithHeaders(String headerName, Boolean useOnlyDiagnosticSource) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\test\Elastic.Apm.AspNetCore.Tests\SanitizeFieldNamesTests.cs:line 292
    --- End of stack trace from previous location where exception was thrown ---
    ----- Inner Stack Trace -----
       at Microsoft.AspNetCore.TestHost.ResponseStream.CheckAborted()
       at Microsoft.AspNetCore.TestHost.ResponseStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
       at System.IO.Stream.CopyToAsyncInternal(Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
       at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
    ----- Inner Stack Trace -----
       at System.Collections.Generic.Dictionary`2.KeyCollection.Enumerator.MoveNext()
       at Elastic.Apm.Filters.HeaderDictionarySanitizerFilter.Filter(ITransaction transaction) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\src\Elastic.Apm\Filters\HeaderDictionarySanitizerFilter.cs:line 25
       at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
       at Elastic.Apm.Tests.Utilities.MockPayloadSender.QueueTransaction(ITransaction transaction) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\test\Elastic.Apm.Tests.Utilities\MockPayloadSender.cs:line 185
       at Elastic.Apm.Model.Transaction.End() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\src\Elastic.Apm\Model\Transaction.cs:line 480
       at Elastic.Apm.AspNetCore.WebRequestTransactionCreator.StopTransaction(Transaction transaction, HttpContext context, IApmLogger logger)
       at Elastic.Apm.AspNetCore.ApmMiddleware.InvokeAsync(HttpContext context) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1300\apm-agent-dotnet\src\Elastic.Apm.AspNetCore\ApmMiddleware.cs:line 58
       at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass10_0.<<SendAsync>b__0>d.MoveNext() 
    

Steps errors 7

Expand to view the steps failures

Archive the artifacts
  • Took 0 min 0 sec . View more details on here
  • Description: [2021-05-10T22:18:54.762Z] Archiving artifacts withAzureCredentials: error org.jenkinsci.plugins.wo
Test & coverage
  • Took 2 min 29 sec . View more details on here
  • Description: .ci/windows/testnet461.bat
Archive the artifacts
  • Took 0 min 0 sec . View more details on here
  • Description: [2021-05-10T20:56:17.574Z] Archiving artifacts script returned exit code 1
Build
  • Took 1 min 34 sec . View more details on here
  • Description: .ci/windows/dotnet.bat
Test & coverage
  • Took 103 min 26 sec . View more details on here
  • Description: .ci/windows/test.bat
Archive the artifacts
  • Took 0 min 0 sec . View more details on here
  • Description: [2021-05-10T22:17:06.095Z] Archiving artifacts withAzureCredentials: error hudson.AbortException: s
Error signal
  • Took 0 min 0 sec . View more details on here
  • Description: withAzureCredentials: error org.jenkinsci.plugins.workflow.steps.FlowInterruptedException

Log output

Expand to view the last 100 lines of log output

[2021-05-10T22:18:51.994Z] Copied Helpers/DbgInstanceNameGenerator.cs. 
[2021-05-10T22:18:51.994Z] Starting copy source file Libraries/Ben.Demystifier/ValueTupleResolvedParameter.cs. 
[2021-05-10T22:18:52.067Z] Copied Libraries/Ben.Demystifier/ValueTupleResolvedParameter.cs. 
[2021-05-10T22:18:52.067Z] Starting copy source file Elastic.Apm/Libraries/Newtonsoft.Json/Serialization/JsonContainerContract.cs. 
[2021-05-10T22:18:52.140Z] Copied Elastic.Apm/Libraries/Newtonsoft.Json/Serialization/JsonContainerContract.cs. 
[2021-05-10T22:18:52.140Z] Starting copy source file Elastic.Apm/Filters/HeaderDictionarySanitizerFilter.cs. 
[2021-05-10T22:18:52.214Z] Copied Elastic.Apm/Filters/HeaderDictionarySanitizerFilter.cs. 
[2021-05-10T22:18:52.214Z] Starting copy source file Elastic.Apm.Specification/JsonSchemaExtensions.cs. 
[2021-05-10T22:18:52.293Z] Copied Elastic.Apm.Specification/JsonSchemaExtensions.cs. 
[2021-05-10T22:18:52.293Z] Starting copy source file ServerInfo/ApmServerInfo.cs. 
[2021-05-10T22:18:52.365Z] Copied ServerInfo/ApmServerInfo.cs. 
[2021-05-10T22:18:52.365Z] Starting copy source file Elastic.Apm/Cloud/GcpCloudMetadataProvider.cs. 
[2021-05-10T22:18:52.438Z] Copied Elastic.Apm/Cloud/GcpCloudMetadataProvider.cs. 
[2021-05-10T22:18:52.438Z] Starting copy source file Elastic.Apm/Libraries/Newtonsoft.Json/Linq/JsonPath/ArrayMultipleIndexFilter.cs. 
[2021-05-10T22:18:52.516Z] Copied Elastic.Apm/Libraries/Newtonsoft.Json/Linq/JsonPath/ArrayMultipleIndexFilter.cs. 
[2021-05-10T22:18:52.516Z] Starting copy source file Elastic.Apm/Reflection/ExpressionBuilder.cs. 
[2021-05-10T22:18:52.589Z] Copied Elastic.Apm/Reflection/ExpressionBuilder.cs. 
[2021-05-10T22:18:52.589Z] Starting copy source file Api/Kubernetes/Node.cs. 
[2021-05-10T22:18:52.662Z] Copied Api/Kubernetes/Node.cs. 
[2021-05-10T22:18:52.662Z] Starting copy source file Elastic.Apm/Libraries/Ben.Demystifier/ResolvedParameter.cs. 
[2021-05-10T22:18:52.735Z] Copied Elastic.Apm/Libraries/Ben.Demystifier/ResolvedParameter.cs. 
[2021-05-10T22:18:52.735Z] Starting copy source file Api/User.cs. 
[2021-05-10T22:18:52.807Z] Copied Api/User.cs. 
[2021-05-10T22:18:52.807Z] Starting copy source file Libraries/Newtonsoft.Json/JsonException.cs. 
[2021-05-10T22:18:52.886Z] Copied Libraries/Newtonsoft.Json/JsonException.cs. 
[2021-05-10T22:18:52.886Z] Starting copy source file Elastic.Apm/Libraries/Newtonsoft.Json/Linq/JsonSelectSettings.cs. 
[2021-05-10T22:18:52.961Z] Copied Elastic.Apm/Libraries/Newtonsoft.Json/Linq/JsonSelectSettings.cs. 
[2021-05-10T22:18:52.961Z] Starting copy source file Libraries/Newtonsoft.Json/Schema/JsonSchemaGenerator.cs. 
[2021-05-10T22:18:53.041Z] Copied Libraries/Newtonsoft.Json/Schema/JsonSchemaGenerator.cs. 
[2021-05-10T22:18:53.041Z] Starting copy source file Elastic.Apm/Helpers/PlatformDetection.cs. 
[2021-05-10T22:18:53.117Z] Copied Elastic.Apm/Helpers/PlatformDetection.cs. 
[2021-05-10T22:18:53.117Z] Starting copy source file Libraries/Newtonsoft.Json/Linq/JsonPath/PathFilter.cs. 
[2021-05-10T22:18:53.193Z] Copied Libraries/Newtonsoft.Json/Linq/JsonPath/PathFilter.cs. 
[2021-05-10T22:18:53.194Z] Starting copy source file Elastic.Apm/Libraries/Newtonsoft.Json/JsonSerializerSettings.cs. 
[2021-05-10T22:18:53.274Z] Copied Elastic.Apm/Libraries/Newtonsoft.Json/JsonSerializerSettings.cs. 
[2021-05-10T22:18:53.274Z] Starting copy source file Helpers/AssertionFailedException.cs. 
[2021-05-10T22:18:53.346Z] Copied Helpers/AssertionFailedException.cs. 
[2021-05-10T22:18:53.346Z] Starting copy source file Libraries/Newtonsoft.Json/JsonPosition.cs. 
[2021-05-10T22:18:53.559Z] Copied Libraries/Newtonsoft.Json/JsonPosition.cs. 
[2021-05-10T22:18:53.559Z] Starting copy source file Elastic.Apm/Model/NoopTransaction.cs. 
[2021-05-10T22:18:53.627Z] Copied Elastic.Apm/Model/NoopTransaction.cs. 
[2021-05-10T22:18:53.627Z] Starting copy source file Metrics/MetricsProvider/GcMetricsProvider.cs. 
[2021-05-10T22:18:53.698Z] Copied Metrics/MetricsProvider/GcMetricsProvider.cs. 
[2021-05-10T22:18:53.698Z] Starting copy source file Elastic.Apm/Libraries/Newtonsoft.Json/JsonTextWriter.Async.cs. 
[2021-05-10T22:18:53.788Z] Copied Elastic.Apm/Libraries/Newtonsoft.Json/JsonTextWriter.Async.cs. 
[2021-05-10T22:18:53.788Z] Starting copy source file Elastic.Apm/Libraries/Newtonsoft.Json/JsonPosition.cs. 
[2021-05-10T22:18:53.860Z] Copied Elastic.Apm/Libraries/Newtonsoft.Json/JsonPosition.cs. 
[2021-05-10T22:18:53.860Z] Starting copy source file Elastic.Apm.StackExchange.Redis/ConnectionMultiplexerExtensions.cs. 
[2021-05-10T22:18:53.925Z] Copied Elastic.Apm.StackExchange.Redis/ConnectionMultiplexerExtensions.cs. 
[2021-05-10T22:18:53.925Z] Starting copy source file Elastic.Apm/Libraries/Newtonsoft.Json/Bson/BsonReader.cs. 
[2021-05-10T22:18:54.005Z] Copied Elastic.Apm/Libraries/Newtonsoft.Json/Bson/BsonReader.cs. 
[2021-05-10T22:18:54.005Z] Starting copy source file Elastic.Apm/Agent.cs. 
[2021-05-10T22:18:54.073Z] Copied Elastic.Apm/Agent.cs. 
[2021-05-10T22:18:54.073Z] Starting copy source file Elastic.Apm.Azure.Storage/AzureQueueStorageDiagnosticListener.cs. 
[2021-05-10T22:18:54.146Z] Copied Elastic.Apm.Azure.Storage/AzureQueueStorageDiagnosticListener.cs. 
[2021-05-10T22:18:54.146Z] Starting copy source file Elastic.Apm.Azure.Storage/AzureQueueStorageDiagnosticsSubscriber.cs. 
[2021-05-10T22:18:54.211Z] Copied Elastic.Apm.Azure.Storage/AzureQueueStorageDiagnosticsSubscriber.cs. 
[2021-05-10T22:18:54.211Z] Starting copy source file Libraries/Newtonsoft.Json/Linq/JObject.cs. 
[2021-05-10T22:18:54.288Z] Copied Libraries/Newtonsoft.Json/Linq/JObject.cs. 
[2021-05-10T22:18:54.288Z] Starting copy source file Libraries/Newtonsoft.Json/Serialization/DefaultContractResolver.cs. 
[2021-05-10T22:18:54.386Z] Copied Libraries/Newtonsoft.Json/Serialization/DefaultContractResolver.cs. 
[2021-05-10T22:18:54.386Z] Starting copy source file Libraries/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs. 
[2021-05-10T22:18:54.502Z] Copied Libraries/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs. 
[2021-05-10T22:18:54.502Z] Starting copy source file Libraries/Newtonsoft.Json/Serialization/DefaultReferenceResolver.cs. 
[2021-05-10T22:18:54.567Z] Copied Libraries/Newtonsoft.Json/Serialization/DefaultReferenceResolver.cs. 
[2021-05-10T22:18:54.567Z] Starting copy source file Metrics/Windows/GlobalMemoryStatusEx.cs. 
[2021-05-10T22:18:54.637Z] Copied Metrics/Windows/GlobalMemoryStatusEx.cs. 
[2021-05-10T22:18:54.637Z] Starting copy source file Elastic.Apm/Helpers/DisposableHelper.cs. 
[2021-05-10T22:18:54.701Z] Body did not finish within grace period; terminating with extreme prejudice
[2021-05-10T22:18:54.701Z] Copied Elastic.Apm/Helpers/DisposableHelper.cs. 
[2021-05-10T22:18:54.701Z] Starting copy source file Elastic.Apm/Helpers/DbgInstanceNameGenerator.cs. 
[2021-05-10T22:18:54.719Z] Error when executing always post condition:
[2021-05-10T22:18:54.719Z] org.jenkinsci.plugins.workflow.steps.FlowInterruptedException
[2021-05-10T22:18:54.719Z] 	at org.jenkinsci.plugins.workflow.steps.TimeoutStepExecution.cancel(TimeoutStepExecution.java:165)
[2021-05-10T22:18:54.719Z] 	at org.jenkinsci.plugins.workflow.steps.TimeoutStepExecution.access$100(TimeoutStepExecution.java:38)
[2021-05-10T22:18:54.719Z] 	at org.jenkinsci.plugins.workflow.steps.TimeoutStepExecution$1.run(TimeoutStepExecution.java:139)
[2021-05-10T22:18:54.719Z] 	at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:67)
[2021-05-10T22:18:54.719Z] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[2021-05-10T22:18:54.719Z] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2021-05-10T22:18:54.719Z] 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
[2021-05-10T22:18:54.719Z] 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
[2021-05-10T22:18:54.719Z] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[2021-05-10T22:18:54.719Z] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[2021-05-10T22:18:54.719Z] 	at java.lang.Thread.run(Thread.java:748)
[2021-05-10T22:18:54.719Z] 
[2021-05-10T22:18:54.762Z] Archiving artifacts
[2021-05-10T22:18:55.021Z] Failed in branch Linux
[2021-05-10T22:18:55.412Z] Stage "Release to feedz.io" skipped due to earlier failure(s)
[2021-05-10T22:18:55.540Z] Stage "Release" skipped due to earlier failure(s)
[2021-05-10T22:18:55.593Z] Stage "Release" skipped due to earlier failure(s)
[2021-05-10T22:18:55.718Z] Stage "Release" skipped due to earlier failure(s)
[2021-05-10T22:18:55.913Z] Stage "AfterRelease" skipped due to earlier failure(s)
[2021-05-10T22:18:55.966Z] Stage "AfterRelease" skipped due to earlier failure(s)
[2021-05-10T22:18:56.893Z] Running on Jenkins in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1300
[2021-05-10T22:18:57.022Z] [INFO] getVaultSecret: Getting secrets
[2021-05-10T22:18:57.083Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-05-10T22:18:58.227Z] + chmod 755 generate-build-data.sh
[2021-05-10T22:18:58.227Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1300/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1300/runs/1 FAILURE 7433139
[2021-05-10T22:18:58.227Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1300/runs/1/steps/?limit=10000 -o steps-info.json
[2021-05-10T22:18:59.570Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1300/runs/1/tests/?status=FAILED -o tests-errors.json

Copy link
Contributor

@russcam russcam left a comment

Choose a reason for hiding this comment

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

LGTM

@gregkalapos gregkalapos merged commit 5f7e40d into elastic:master May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants