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

Fix SanitizeFieldNamesTests #1299

Merged
merged 2 commits into from
May 26, 2021
Merged

Fix SanitizeFieldNamesTests #1299

merged 2 commits into from
May 26, 2021

Conversation

gregkalapos
Copy link
Contributor

@gregkalapos gregkalapos commented May 10, 2021

One of the tests seemed to fail - relaxing one less-relevant assert.

Also found another issue where we changed the dictionary during enumeration.

@gregkalapos gregkalapos self-assigned this May 10, 2021
@apmmachine
Copy link
Contributor

apmmachine commented May 10, 2021

💔 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: Branch indexing

  • Start Time: 2021-05-26T02:20:37.888+0000

  • Duration: 42 min 35 sec

  • Commit: 13f672a

Test stats 🧪

Test Results
Failed 12
Passed 17593
Skipped 74
Total 17679

Trends 🧪

Image of Build Times

Image of Tests

Test errors 12

Expand to view the tests failures

> Show only the first 10 test failures

Initializing / Parallel / Windows .NET Core / Test / ElasticsearchTests.Elastic.Apm.Elasticsearch.Tests.ElasticsearchTests.Elasticsearch_Span_Does_Not_Have_Http_Child_Span – Elastic.Apm.Elasticsearch.Tests.ElasticsearchTests
    Expand to view the error details

     System.TypeInitializationException : The type initializer for 'DotNet.Testcontainers.Client.DockerApiClient' threw an exception.
    ---- System.TimeoutException : The operation has timed out. 
    

    Expand to view the stacktrace

     System.TypeInitializationException : The type initializer for 'DotNet.Testcontainers.Client.DockerApiClient' threw an exception.
    ---- System.TimeoutException : The operation has timed out.
    Stack Trace:
       at DotNet.Testcontainers.Client.DockerApiClientImage.ByPropertyAsync(String property, String value)
       at DotNet.Testcontainers.Client.DockerApiClientImage.ByNameAsync(String name)
       at DotNet.Testcontainers.Client.AbstractContainerImageClient`1.ExistsWithNameAsync(String name)
       at DotNet.Testcontainers.Client.TestcontainersClient.RunAsync(TestcontainersConfiguration config, CancellationToken ct)
       at DotNet.Testcontainers.Containers.Modules.TestcontainersContainer.Create()
       at DotNet.Testcontainers.Containers.Modules.TestcontainersContainer.StartAsync()
       at Elastic.Apm.Elasticsearch.Tests.ElasticsearchFixture.InitializeAsync() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1299\apm-agent-dotnet\test\Elastic.Apm.Elasticsearch.Tests\ElasticsearchFixture.cs:line 30
    ----- Inner Stack Trace -----
       at System.IO.Pipes.NamedPipeClientStream.ConnectInternal(Int32 timeout, CancellationToken cancellationToken, Int32 startTime)
       at System.IO.Pipes.NamedPipeClientStream.<>c__DisplayClass20_0.<ConnectAsync>b__0()
       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 Docker.DotNet.DockerClient.<>c__DisplayClass6_0.<<-ctor>b__0>d.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at Microsoft.Net.Http.Client.ManagedHandler.ProcessRequestAsync(HttpRequestMessage request, CancellationToken cancellationToken)
       at Microsoft.Net.Http.Client.ManagedHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
       at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
       at Docker.DotNet.DockerClient.PrivateMakeRequestAsync(TimeSpan timeout, HttpCompletionOption completionOption, HttpMethod method, String path, IQueryString queryString, IDictionary`2 headers, IRequestContent data, CancellationToken cancellationToken)
       at Docker.DotNet.DockerClient.PrivateMakeRequestAsync(TimeSpan timeout, HttpCompletionOption completionOption, HttpMethod method, String path, IQueryString queryString, IDictionary`2 headers, IRequestContent data, CancellationToken cancellationToken)
       at Docker.DotNet.DockerClient.MakeRequestAsync(IEnumerable`1 errorHandlers, HttpMethod method, String path, IQueryString queryString, IRequestContent body, IDictionary`2 headers, TimeSpan timeout, CancellationToken token)
       at Docker.DotNet.SystemOperations.GetSystemInfoAsync(CancellationToken cancellationToken)
       at DotNet.Testcontainers.Client.DockerApiClient..cctor() 
    

Initializing / Parallel / Linux / Test / ElasticsearchTests.Elastic.Apm.Elasticsearch.Tests.ElasticsearchTests.Elasticsearch_Span_Does_Not_Have_Http_Child_Span – Elastic.Apm.Elasticsearch.Tests.ElasticsearchTests
    Expand to view the error details

     Expected searchResponse.Success to be true, but found False. 
    

    Expand to view the stacktrace

     Expected searchResponse.Success to be true, but found False.
    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.Primitives.BooleanAssertions.BeTrue(String because, Object[] becauseArgs) in C:\projects\fluentassertions-vf06b\Src\FluentAssertions\Primitives\BooleanAssertions.cs:line 59
       at Elastic.Apm.Elasticsearch.Tests.ElasticsearchTests.Elasticsearch_Span_Does_Not_Have_Http_Child_Span() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1299/apm-agent-dotnet/test/Elastic.Apm.Elasticsearch.Tests/ElasticsearchTests.cs:line 39
    --- End of stack trace from previous location where exception was thrown --- 
    

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

     Microsoft.Data.SqlClient.SqlException : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server) 
    

    Expand to view the stacktrace

     Microsoft.Data.SqlClient.SqlException : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server)
    Stack Trace:
       at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlInternalConnection.cs:line 615
       at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\TdsParser.cs:line 1183
       at Microsoft.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover, SqlAuthenticationMethod authType, SqlAuthenticationProviderManager sqlAuthProviderManager) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\TdsParser.cs:line 373
       at Microsoft.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlInternalConnectionTds.cs:line 1741
       at Microsoft.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlInternalConnectionTds.cs:line 1408
       at Microsoft.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlInternalConnectionTds.cs:line 1311
       at Microsoft.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken, DbConnectionPool pool, SqlAuthenticationProviderManager sqlAuthProviderManager) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlInternalConnectionTds.cs:line 439
       at Microsoft.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlConnectionFactory.cs:line 135
       at Microsoft.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Common\src\Microsoft\Data\ProviderBase\DbConnectionFactory.cs:line 111
       at Microsoft.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\ProviderBase\DbConnectionPool.cs:line 695
       at Microsoft.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\ProviderBase\DbConnectionPool.cs:line 1643
       at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\ProviderBase\DbConnectionPool.cs:line 1102
       at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\ProviderBase\DbConnectionPool.cs:line 1069
       at Microsoft.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\ProviderBase\DbConnectionFactory.cs:line 154
       at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Common\src\Microsoft\Data\ProviderBase\DbConnectionInternal.cs:line 328
       at Microsoft.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlConnection.cs:line 1467
       at Microsoft.Data.SqlClient.SqlConnection.Open() in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlConnection.cs:line 981
       at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenDbConnection(Boolean errorsExpected)
       at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected)
       at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerDatabaseCreator.<>c__DisplayClass18_0.<Exists>b__0(DateTime giveUp)
       at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.<>c__DisplayClass12_0`2.<Execute>b__0(DbContext c, TState s)
       at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
       at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.Execute[TState,TResult](IExecutionStrategy strategy, TState state, Func`2 operation, Func`2 verifySucceeded)
       at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerDatabaseCreator.Exists(Boolean retryOnNotExists)
       at Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator.EnsureCreated()
       at Elastic.Apm.SqlClient.Tests.EfCoreWithMsSqlTests.BothEfCoreAndSqlClientCapturingActive() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1299/apm-agent-dotnet/test/Elastic.Apm.SqlClient.Tests/EfCoreWithMsSqlTests.cs:line 53
    Standard Output:
        [2021-05-26 02:38:02.114 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service name. The service name will be automatically discovered.
        [2021-05-26 02:38:02.142 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service name. The automatically discovered service name is xunit_execution_dotnet
        [2021-05-26 02:38:02.151 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service version. The service version will be automatically discovered.
        [2021-05-26 02:38:02.155 +00:00][Warning] - {AbstractConfigurationReader (MockConfigSnapshot)} Failed to discover service version, the service version will be omitted. 
    

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

     System.Data.SqlClient.SqlException : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server) 
    

    Expand to view the stacktrace

     System.Data.SqlClient.SqlException : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server)
    Stack Trace:
       at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
       at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
       at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
       at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
       at System.Data.ProviderBase.DbConnectionPool.WaitForPendingOpen()
    --- End of stack trace from previous location where exception was thrown ---
       at Elastic.Apm.SqlClient.Tests.SqlClientListenerTests.<>c__DisplayClass8_0.<<SqlClientDiagnosticListener_ShouldCaptureSpan>b__0>d.MoveNext() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1299/apm-agent-dotnet/test/Elastic.Apm.SqlClient.Tests/SqlClientListenerTests.cs:line 75
    --- End of stack trace from previous location where exception was thrown ---
       at Elastic.Apm.SqlClient.Tests.SqlClientListenerTests.SqlClientDiagnosticListener_ShouldCaptureSpan(String providerName, Func`2 connectionCreator) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1299/apm-agent-dotnet/test/Elastic.Apm.SqlClient.Tests/SqlClientListenerTests.cs:line 85
    --- End of stack trace from previous location where exception was thrown ---
    Standard Output:
        [2021-05-26 02:38:18.534 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service name. The service name will be automatically discovered.
        [2021-05-26 02:38:18.535 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service name. The automatically discovered service name is xunit_execution_dotnet
        [2021-05-26 02:38:18.535 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service version. The service version will be automatically discovered.
        [2021-05-26 02:38:18.535 +00:00][Warning] - {AbstractConfigurationReader (MockConfigSnapshot)} Failed to discover service version, the service version will be omitted.
        System.Data.SqlClient 
    

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

     Microsoft.Data.SqlClient.SqlException : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server) 
    

    Expand to view the stacktrace

     Microsoft.Data.SqlClient.SqlException : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server)
    Stack Trace:
       at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlInternalConnection.cs:line 615
       at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\TdsParser.cs:line 1183
       at Microsoft.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover, SqlAuthenticationMethod authType, SqlAuthenticationProviderManager sqlAuthProviderManager) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\TdsParser.cs:line 373
       at Microsoft.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlInternalConnectionTds.cs:line 1741
       at Microsoft.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlInternalConnectionTds.cs:line 1408
       at Microsoft.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlInternalConnectionTds.cs:line 1311
       at Microsoft.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken, DbConnectionPool pool, SqlAuthenticationProviderManager sqlAuthProviderManager) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlInternalConnectionTds.cs:line 439
       at Microsoft.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlConnectionFactory.cs:line 135
       at Microsoft.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Common\src\Microsoft\Data\ProviderBase\DbConnectionFactory.cs:line 111
       at Microsoft.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\ProviderBase\DbConnectionPool.cs:line 695
       at Microsoft.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\ProviderBase\DbConnectionPool.cs:line 1643
       at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\ProviderBase\DbConnectionPool.cs:line 1102
       at Microsoft.Data.ProviderBase.DbConnectionPool.WaitForPendingOpen() in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\ProviderBase\DbConnectionPool.cs:line 1011
    --- End of stack trace from previous location where exception was thrown ---
       at Elastic.Apm.SqlClient.Tests.SqlClientListenerTests.<>c__DisplayClass8_0.<<SqlClientDiagnosticListener_ShouldCaptureSpan>b__0>d.MoveNext() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1299/apm-agent-dotnet/test/Elastic.Apm.SqlClient.Tests/SqlClientListenerTests.cs:line 75
    --- End of stack trace from previous location where exception was thrown ---
       at Elastic.Apm.SqlClient.Tests.SqlClientListenerTests.SqlClientDiagnosticListener_ShouldCaptureSpan(String providerName, Func`2 connectionCreator) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1299/apm-agent-dotnet/test/Elastic.Apm.SqlClient.Tests/SqlClientListenerTests.cs:line 85
    --- End of stack trace from previous location where exception was thrown ---
    Standard Output:
        [2021-05-26 02:38:33.387 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service name. The service name will be automatically discovered.
        [2021-05-26 02:38:33.388 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service name. The automatically discovered service name is xunit_execution_dotnet
        [2021-05-26 02:38:33.388 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service version. The service version will be automatically discovered.
        [2021-05-26 02:38:33.388 +00:00][Warning] - {AbstractConfigurationReader (MockConfigSnapshot)} Failed to discover service version, the service version will be omitted.
        Microsoft.Data.SqlClient 
    

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

     System.Data.SqlClient.SqlException : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server) 
    

    Expand to view the stacktrace

     System.Data.SqlClient.SqlException : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server)
    Stack Trace:
       at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
       at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
       at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
       at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
       at System.Data.ProviderBase.DbConnectionPool.WaitForPendingOpen()
    --- End of stack trace from previous location where exception was thrown ---
       at Elastic.Apm.SqlClient.Tests.SqlClientListenerTests.<>c__DisplayClass9_0.<<SqlClientDiagnosticListener_ShouldCaptureErrorFromSystemSqlClient>b__0>d.MoveNext() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1299/apm-agent-dotnet/test/Elastic.Apm.SqlClient.Tests/SqlClientListenerTests.cs:line 130
    --- End of stack trace from previous location where exception was thrown ---
       at Elastic.Apm.SqlClient.Tests.SqlClientListenerTests.SqlClientDiagnosticListener_ShouldCaptureErrorFromSystemSqlClient(String providerName, Func`2 connectionCreator) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1299/apm-agent-dotnet/test/Elastic.Apm.SqlClient.Tests/SqlClientListenerTests.cs:line 147
    --- End of stack trace from previous location where exception was thrown ---
    Standard Output:
        [2021-05-26 02:38:47.938 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service name. The service name will be automatically discovered.
        [2021-05-26 02:38:47.939 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service name. The automatically discovered service name is xunit_execution_dotnet
        [2021-05-26 02:38:47.939 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service version. The service version will be automatically discovered.
        [2021-05-26 02:38:47.939 +00:00][Warning] - {AbstractConfigurationReader (MockConfigSnapshot)} Failed to discover service version, the service version will be omitted.
        System.Data.SqlClient 
    

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

     Microsoft.Data.SqlClient.SqlException : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server) 
    

    Expand to view the stacktrace

     Microsoft.Data.SqlClient.SqlException : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server)
    Stack Trace:
       at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlInternalConnection.cs:line 615
       at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\TdsParser.cs:line 1183
       at Microsoft.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover, SqlAuthenticationMethod authType, SqlAuthenticationProviderManager sqlAuthProviderManager) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\TdsParser.cs:line 373
       at Microsoft.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlInternalConnectionTds.cs:line 1741
       at Microsoft.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlInternalConnectionTds.cs:line 1408
       at Microsoft.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlInternalConnectionTds.cs:line 1311
       at Microsoft.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken, DbConnectionPool pool, SqlAuthenticationProviderManager sqlAuthProviderManager) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlInternalConnectionTds.cs:line 439
       at Microsoft.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\SqlClient\SqlConnectionFactory.cs:line 135
       at Microsoft.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Common\src\Microsoft\Data\ProviderBase\DbConnectionFactory.cs:line 111
       at Microsoft.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\ProviderBase\DbConnectionPool.cs:line 695
       at Microsoft.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\ProviderBase\DbConnectionPool.cs:line 1643
       at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\ProviderBase\DbConnectionPool.cs:line 1102
       at Microsoft.Data.ProviderBase.DbConnectionPool.WaitForPendingOpen() in E:\SqlClientInternal\agent-1\_work\5\s\src\Microsoft.Data.SqlClient\netcore\src\Microsoft\Data\ProviderBase\DbConnectionPool.cs:line 1011
    --- End of stack trace from previous location where exception was thrown ---
       at Elastic.Apm.SqlClient.Tests.SqlClientListenerTests.<>c__DisplayClass9_0.<<SqlClientDiagnosticListener_ShouldCaptureErrorFromSystemSqlClient>b__0>d.MoveNext() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1299/apm-agent-dotnet/test/Elastic.Apm.SqlClient.Tests/SqlClientListenerTests.cs:line 130
    --- End of stack trace from previous location where exception was thrown ---
       at Elastic.Apm.SqlClient.Tests.SqlClientListenerTests.SqlClientDiagnosticListener_ShouldCaptureErrorFromSystemSqlClient(String providerName, Func`2 connectionCreator) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1299/apm-agent-dotnet/test/Elastic.Apm.SqlClient.Tests/SqlClientListenerTests.cs:line 147
    --- End of stack trace from previous location where exception was thrown ---
    Standard Output:
        [2021-05-26 02:39:02.492 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service name. The service name will be automatically discovered.
        [2021-05-26 02:39:02.492 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service name. The automatically discovered service name is xunit_execution_dotnet
        [2021-05-26 02:39:02.492 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service version. The service version will be automatically discovered.
        [2021-05-26 02:39:02.493 +00:00][Warning] - {AbstractConfigurationReader (MockConfigSnapshot)} Failed to discover service version, the service version will be omitted.
        Microsoft.Data.SqlClient 
    

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

     Microsoft.Data.SqlClient.SqlException : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server) 
    

    Expand to view the stacktrace

     Microsoft.Data.SqlClient.SqlException : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server)
    Stack Trace:
       at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
       at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
       at Microsoft.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover, SqlAuthenticationMethod authType, SqlAuthenticationProviderManager sqlAuthProviderManager)
       at Microsoft.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
       at Microsoft.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
       at Microsoft.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
       at Microsoft.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken, DbConnectionPool pool, SqlAuthenticationProviderManager sqlAuthProviderManager)
       at Microsoft.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
       at Microsoft.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
       at Microsoft.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
       at Microsoft.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
       at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
       at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
       at Microsoft.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
       at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at Microsoft.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at Microsoft.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
       at Microsoft.Data.SqlClient.SqlConnection.Open()
       at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenDbConnection(Boolean errorsExpected)
       at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected)
       at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerDatabaseCreator.<>c__DisplayClass18_0.<Exists>b__0(DateTime giveUp)
       at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.<>c__DisplayClass12_0`2.<Execute>b__0(DbContext c, TState s)
       at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
       at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.Execute[TState,TResult](IExecutionStrategy strategy, TState state, Func`2 operation, Func`2 verifySucceeded)
       at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.Execute[TState,TResult](IExecutionStrategy strategy, TState state, Func`2 operation)
       at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerDatabaseCreator.Exists(Boolean retryOnNotExists)
       at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerDatabaseCreator.Exists()
       at Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator.EnsureCreated()
       at Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade.EnsureCreated()
       at Elastic.Apm.SqlClient.Tests.EfCoreWithMsSqlTests.BothEfCoreAndSqlClientCapturingActive() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1299/apm-agent-dotnet/test/Elastic.Apm.SqlClient.Tests/EfCoreWithMsSqlTests.cs:line 52
    Standard Output:
        [2021-05-26 02:39:42.883 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service name. The service name will be automatically discovered.
        [2021-05-26 02:39:42.928 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service name. The automatically discovered service name is xunit_execution_dotnet
        [2021-05-26 02:39:42.930 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service version. The service version will be automatically discovered.
        [2021-05-26 02:39:42.930 +00:00][Warning] - {AbstractConfigurationReader (MockConfigSnapshot)} Failed to discover service version, the service version will be omitted. 
    

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

     System.Data.SqlClient.SqlException : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server) 
    

    Expand to view the stacktrace

     System.Data.SqlClient.SqlException : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server)
    Stack Trace:
       at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
       at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
       at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
       at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
       at System.Data.ProviderBase.DbConnectionPool.WaitForPendingOpen()
    --- End of stack trace from previous location ---
       at Elastic.Apm.SqlClient.Tests.SqlClientListenerTests.<>c__DisplayClass8_0.<<SqlClientDiagnosticListener_ShouldCaptureSpan>b__0>d.MoveNext() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1299/apm-agent-dotnet/test/Elastic.Apm.SqlClient.Tests/SqlClientListenerTests.cs:line 74
    --- End of stack trace from previous location ---
       at Elastic.Apm.SqlClient.Tests.SqlClientListenerTests.SqlClientDiagnosticListener_ShouldCaptureSpan(String providerName, Func`2 connectionCreator) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1299/apm-agent-dotnet/test/Elastic.Apm.SqlClient.Tests/SqlClientListenerTests.cs:line 71
    --- End of stack trace from previous location ---
    Standard Output:
        [2021-05-26 02:39:59.008 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service name. The service name will be automatically discovered.
        [2021-05-26 02:39:59.009 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service name. The automatically discovered service name is xunit_execution_dotnet
        [2021-05-26 02:39:59.009 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service version. The service version will be automatically discovered.
        [2021-05-26 02:39:59.009 +00:00][Warning] - {AbstractConfigurationReader (MockConfigSnapshot)} Failed to discover service version, the service version will be omitted.
        System.Data.SqlClient 
    

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

     Microsoft.Data.SqlClient.SqlException : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server) 
    

    Expand to view the stacktrace

     Microsoft.Data.SqlClient.SqlException : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server)
    Stack Trace:
       at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
       at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
       at Microsoft.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover, SqlAuthenticationMethod authType, SqlAuthenticationProviderManager sqlAuthProviderManager)
       at Microsoft.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
       at Microsoft.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
       at Microsoft.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
       at Microsoft.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken, DbConnectionPool pool, SqlAuthenticationProviderManager sqlAuthProviderManager)
       at Microsoft.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
       at Microsoft.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
       at Microsoft.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
       at Microsoft.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
       at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
       at Microsoft.Data.ProviderBase.DbConnectionPool.WaitForPendingOpen()
    --- End of stack trace from previous location ---
       at Elastic.Apm.SqlClient.Tests.SqlClientListenerTests.<>c__DisplayClass8_0.<<SqlClientDiagnosticListener_ShouldCaptureSpan>b__0>d.MoveNext() in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1299/apm-agent-dotnet/test/Elastic.Apm.SqlClient.Tests/SqlClientListenerTests.cs:line 74
    --- End of stack trace from previous location ---
       at Elastic.Apm.SqlClient.Tests.SqlClientListenerTests.SqlClientDiagnosticListener_ShouldCaptureSpan(String providerName, Func`2 connectionCreator) in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1299/apm-agent-dotnet/test/Elastic.Apm.SqlClient.Tests/SqlClientListenerTests.cs:line 71
    --- End of stack trace from previous location ---
    Standard Output:
        [2021-05-26 02:40:13.880 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service name. The service name will be automatically discovered.
        [2021-05-26 02:40:13.881 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service name. The automatically discovered service name is xunit_execution_dotnet
        [2021-05-26 02:40:13.881 +00:00][Info] - {AbstractConfigurationReader (MockConfigSnapshot)} The agent was started without a service version. The service version will be automatically discovered.
        [2021-05-26 02:40:13.881 +00:00][Warning] - {AbstractConfigurationReader (MockConfigSnapshot)} Failed to discover service version, the service version will be omitted.
        Microsoft.Data.SqlClient 
    

Steps errors 6

Expand to view the steps failures

Windows Batch Script
  • Took 0 min 4 sec . View more details on here
  • Description: .ci/windows/msbuild.bat
Archive the artifacts
  • Took 0 min 1 sec . View more details on here
  • Description: [2021-05-26T02:36:15.944Z] Archiving artifacts script returned exit code 1
Build
  • Took 1 min 36 sec . View more details on here
  • Description: .ci/windows/dotnet.bat
Test & coverage
  • Took 14 min 8 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-26T02:53:31.565Z] Archiving artifacts withAzureCredentials: error hudson.AbortException: s
Error signal
  • Took 0 min 0 sec . View more details on here
  • Description: withAzureCredentials: error hudson.AbortException: script returned exit code 1

Log output

Expand to view the last 100 lines of log output

[2021-05-26T03:01:22.831Z] Copied Elastic.Apm/Libraries/Newtonsoft.Json/Schema/ValidationEventArgs.cs. 
[2021-05-26T03:01:22.831Z] Starting copy source file Elastic.Apm/Libraries/Newtonsoft.Json/Converters/StringEnumConverter.cs. 
[2021-05-26T03:01:22.903Z] Copied Elastic.Apm/Libraries/Newtonsoft.Json/Converters/StringEnumConverter.cs. 
[2021-05-26T03:01:22.903Z] Starting copy source file Elastic.Apm/Libraries/Newtonsoft.Json/Utilities/DynamicProxyMetaObject.cs. 
[2021-05-26T03:01:22.975Z] Copied Elastic.Apm/Libraries/Newtonsoft.Json/Utilities/DynamicProxyMetaObject.cs. 
[2021-05-26T03:01:22.975Z] Starting copy source file Libraries/Newtonsoft.Json/Converters/StringEnumConverter.cs. 
[2021-05-26T03:01:23.049Z] Copied Libraries/Newtonsoft.Json/Converters/StringEnumConverter.cs. 
[2021-05-26T03:01:23.049Z] Starting copy source file Libraries/Newtonsoft.Json/Serialization/JsonPrimitiveContract.cs. 
[2021-05-26T03:01:23.116Z] Copied Libraries/Newtonsoft.Json/Serialization/JsonPrimitiveContract.cs. 
[2021-05-26T03:01:23.116Z] Starting copy source file Elastic.Apm/Config/AbstractConfigurationReader.cs. 
[2021-05-26T03:01:23.200Z] Copied Elastic.Apm/Config/AbstractConfigurationReader.cs. 
[2021-05-26T03:01:23.201Z] Starting copy source file Elastic.Apm/Filters/SpanStackTraceCapturingFilter.cs. 
[2021-05-26T03:01:23.266Z] Copied Elastic.Apm/Filters/SpanStackTraceCapturingFilter.cs. 
[2021-05-26T03:01:23.266Z] Starting copy source file Elastic.Apm/Helpers/ContractExtensions.cs. 
[2021-05-26T03:01:23.331Z] Copied Elastic.Apm/Helpers/ContractExtensions.cs. 
[2021-05-26T03:01:23.331Z] Starting copy source file Libraries/Newtonsoft.Json/Schema/JsonSchemaBuilder.cs. 
[2021-05-26T03:01:23.409Z] Copied Libraries/Newtonsoft.Json/Schema/JsonSchemaBuilder.cs. 
[2021-05-26T03:01:23.409Z] Starting copy source file Report/Serialization/MetricSetConverter.cs. 
[2021-05-26T03:01:23.476Z] Copied Report/Serialization/MetricSetConverter.cs. 
[2021-05-26T03:01:23.476Z] Starting copy source file Libraries/Newtonsoft.Json/Utilities/DynamicProxy.cs. 
[2021-05-26T03:01:23.543Z] Copied Libraries/Newtonsoft.Json/Utilities/DynamicProxy.cs. 
[2021-05-26T03:01:23.543Z] Starting copy source file Cloud/AzureCloudMetadataProvider.cs. 
[2021-05-26T03:01:23.611Z] Copied Cloud/AzureCloudMetadataProvider.cs. 
[2021-05-26T03:01:23.611Z] Starting copy source file Api/Context.cs. 
[2021-05-26T03:01:23.683Z] Copied Api/Context.cs. 
[2021-05-26T03:01:23.683Z] Starting copy source file Elastic.Apm/Libraries/Newtonsoft.Json/Serialization/DefaultContractResolver.cs. 
[2021-05-26T03:01:23.775Z] Copied Elastic.Apm/Libraries/Newtonsoft.Json/Serialization/DefaultContractResolver.cs. 
[2021-05-26T03:01:23.775Z] Starting copy source file Elastic.Apm/Logging/LogValuesFormatter.cs. 
[2021-05-26T03:01:23.841Z] Copied Elastic.Apm/Logging/LogValuesFormatter.cs. 
[2021-05-26T03:01:23.841Z] Starting copy source file Config/AbstractConfigurationReader.cs. 
[2021-05-26T03:01:23.927Z] Copied Config/AbstractConfigurationReader.cs. 
[2021-05-26T03:02:07.869Z] [Checks API] No suitable checks publisher found.
[2021-05-26T03:02:08.051Z] [INFO] getVaultSecret: Getting secrets
[2021-05-26T03:02:08.143Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-05-26T03:02:09.040Z] Running in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1299/apm-agent-dotnet
[2021-05-26T03:02:09.069Z] [INFO] Codecov: Getting branch ref...
[2021-05-26T03:02:09.254Z] Masking supported pattern matches of $GITHUB_TOKEN
[2021-05-26T03:02:09.818Z] [INFO] Codecov: Sending data...
[2021-05-26T03:02:10.357Z] + echo curl -sSLo codecov.sh https://codecov.io/bash
[2021-05-26T03:02:10.357Z] curl -sSLo codecov.sh https://codecov.io/bash
[2021-05-26T03:02:10.704Z] + echo bash codecov.sh
[2021-05-26T03:02:10.704Z] bash codecov.sh
[2021-05-26T03:02:10.973Z] Archiving artifacts
[2021-05-26T03:02:11.056Z] java.lang.InterruptedException: no matches found within 10000
[2021-05-26T03:02:11.056Z] 	at hudson.FilePath$ValidateAntFileMask.hasMatch(FilePath.java:3069)
[2021-05-26T03:02:11.056Z] 	at hudson.FilePath$ValidateAntFileMask.invoke(FilePath.java:2978)
[2021-05-26T03:02:11.056Z] 	at hudson.FilePath$ValidateAntFileMask.invoke(FilePath.java:2929)
[2021-05-26T03:02:11.056Z] 	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3317)
[2021-05-26T03:02:11.056Z] Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to apm-ci-immutable-ubuntu-1804-1621995654930562231
[2021-05-26T03:02:11.056Z] 		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1800)
[2021-05-26T03:02:11.056Z] 		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
[2021-05-26T03:02:11.056Z] 		at hudson.remoting.Channel.call(Channel.java:1001)
[2021-05-26T03:02:11.056Z] 		at hudson.FilePath.act(FilePath.java:1159)
[2021-05-26T03:02:11.056Z] 		at hudson.FilePath.act(FilePath.java:1148)
[2021-05-26T03:02:11.056Z] 		at hudson.FilePath.validateAntFileMask(FilePath.java:2927)
[2021-05-26T03:02:11.056Z] 		at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:270)
[2021-05-26T03:02:11.056Z] 		at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:99)
[2021-05-26T03:02:11.056Z] 		at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69)
[2021-05-26T03:02:11.056Z] 		at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
[2021-05-26T03:02:11.056Z] 		at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[2021-05-26T03:02:11.056Z] 		at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2021-05-26T03:02:11.056Z] 		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[2021-05-26T03:02:11.056Z] 		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[2021-05-26T03:02:11.056Z] Caused: hudson.FilePath$TunneledInterruptedException
[2021-05-26T03:02:11.056Z] 	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3319)
[2021-05-26T03:02:11.056Z] 	at hudson.remoting.UserRequest.perform(UserRequest.java:211)
[2021-05-26T03:02:11.056Z] 	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
[2021-05-26T03:02:11.056Z] 	at hudson.remoting.Request$2.run(Request.java:375)
[2021-05-26T03:02:11.056Z] 	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
[2021-05-26T03:02:11.056Z] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2021-05-26T03:02:11.056Z] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[2021-05-26T03:02:11.056Z] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[2021-05-26T03:02:11.056Z] 	at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:118)
[2021-05-26T03:02:11.056Z] Caused: java.lang.InterruptedException: java.lang.InterruptedException: no matches found within 10000
[2021-05-26T03:02:11.056Z] 	at hudson.FilePath.act(FilePath.java:1161)
[2021-05-26T03:02:11.056Z] 	at hudson.FilePath.act(FilePath.java:1148)
[2021-05-26T03:02:11.056Z] 	at hudson.FilePath.validateAntFileMask(FilePath.java:2927)
[2021-05-26T03:02:11.056Z] 	at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:270)
[2021-05-26T03:02:11.056Z] 	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:99)
[2021-05-26T03:02:11.056Z] 	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69)
[2021-05-26T03:02:11.056Z] 	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
[2021-05-26T03:02:11.056Z] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[2021-05-26T03:02:11.056Z] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2021-05-26T03:02:11.056Z] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[2021-05-26T03:02:11.056Z] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[2021-05-26T03:02:11.056Z] 	at java.lang.Thread.run(Thread.java:748)
[2021-05-26T03:02:11.056Z] No artifacts found that match the file pattern "/var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1299/**/MSBuild_*.failure.txt". Configuration error?
[2021-05-26T03:02:11.442Z] Stage "Release to feedz.io" skipped due to earlier failure(s)
[2021-05-26T03:02:11.511Z] Stage "Release" skipped due to earlier failure(s)
[2021-05-26T03:02:11.564Z] Stage "Release" skipped due to earlier failure(s)
[2021-05-26T03:02:11.651Z] Stage "Release" skipped due to earlier failure(s)
[2021-05-26T03:02:11.829Z] Stage "AfterRelease" skipped due to earlier failure(s)
[2021-05-26T03:02:11.862Z] Stage "AfterRelease" skipped due to earlier failure(s)
[2021-05-26T03:02:12.342Z] Running on worker-854309 in /var/lib/jenkins/workspace/net_apm-agent-dotnet-mbp_PR-1299
[2021-05-26T03:02:12.417Z] [INFO] getVaultSecret: Getting secrets
[2021-05-26T03:02:12.495Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-05-26T03:02:15.407Z] + chmod 755 generate-build-data.sh
[2021-05-26T03:02:15.407Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1299/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1299/runs/5 FAILURE 2495390
[2021-05-26T03:02:15.407Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1299/runs/5/steps/?limit=10000 -o steps-info.json
[2021-05-26T03:02:18.580Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-dotnet/apm-agent-dotnet-mbp/PR-1299/runs/5/tests/?status=FAILED -o tests-errors.json

@@ -320,7 +320,7 @@ public async Task SanitizeHeadersOnError(string headerName, bool useOnlyDiagnost
_capturedPayload.FirstTransaction.Context.Request.Headers[headerName].Should().Be("[REDACTED]");

_capturedPayload.WaitForErrors();
_capturedPayload.Errors.Should().ContainSingle();
_capturedPayload.Errors.Should().NotBeEmpty();
Copy link
Contributor

Choose a reason for hiding this comment

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

Is capturing more than one error now expected?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is capturing more than one error now expected?

I debugged it and I saw a failing outgoing HTTP request into some resource which looked like part of the sample app. Below we specifically assert that the first error must contain the header and the value must be [REDACTED], so I thought the easiest is to just relax this part and make sure there is at least 1 error.

@@ -22,7 +22,7 @@ public IError Filter(IError error)
{
if (realError.Context.Request?.Headers != null && realError.ConfigSnapshot != null)
{
foreach (var key in realError.Context?.Request?.Headers?.Keys)
foreach (var key in realError.Context?.Request?.Headers?.Keys.ToList())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need .ToList() here, otherwise we can't change the dictionary within the foreach. Same in HeaderDictionarySanitizerFilter.cs

@gregkalapos gregkalapos requested a review from russcam May 25, 2021 21:29
@gregkalapos
Copy link
Contributor Author

I see some failing tests, they seem to be related to the docker issue we have, e.g.:

System.TypeInitializationException : The type initializer for 'DotNet.Testcontainers.Client.DockerApiClient' threw an exception.
---- System.TimeoutException : The operation has timed out.

@gregkalapos gregkalapos merged commit 4591f02 into elastic:master May 26, 2021
@gregkalapos gregkalapos deleted the FixSanitizeFieldNames branch May 26, 2021 09:04
v1v added a commit to v1v/apm-agent-dotnet that referenced this pull request Jun 8, 2021
…u-20

* upstream/master: (21 commits)
  Prefer W3C traceparent over elastic-apm-traceparent (elastic#1302)
  fix spacing and cross references in docs (elastic#1328)
  Update README (elastic#1325)
  Mark MicrosoftAzureBlobStorageTracer internal (elastic#1326)
  Update docs (elastic#1327)
  Update context.destination.address (elastic#1324)
  synchronize json schema specs (elastic#1320)
  Don't package Elastic.Apm.Specification (elastic#1316)
  Update setup.asciidoc (elastic#1318)
  Prepare release v.1.10.0 (elastic#1314)
  Fix nullref in Elastic.Apm.Extensions.Logging (elastic#1311)
  Capture errors with startup hook auto instrumentation (elastic#1298)
  Use Logger to log exception in AgentComponents initialization (elastic#1305)
  fix: use .NET native SDK for build and test (elastic#1301)
  Skip running Elasticsearch docker test when docker not available (elastic#1312)
  Use TraceLogger as default logger in ASP.NET Full Framework (elastic#1288)
  Create receive messaging span when inside transaction (elastic#1308)
  Fix SanitizeFieldNamesTests (elastic#1299)
  Do not capture HTTP child spans for Elasticsearch (elastic#1306)
  Use storage account in destination.service.resource (elastic#1284)
  ...
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