You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary of changes
The CouchBase and CouchBase3 tests are failing rarely in the CI due to
authentication errors. All of them seem to be due to Authorization
issues, not related to our instrumentation. That's why it has been
decided to skip these results when the flakiness occurs.
In the case of the CouchBase tests, we are getting these stacktraces
depending on the package version:
```
Unhandled exception. System.AggregateException: Could not bootstrap - check inner exceptions for details. (One or more errors occurred. (Authentication failed for bucket 'default')) (Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'Couchbase.Configuration.Server.Serialization.Settings' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.
To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.
Path 'settings', line 1, position 88.)
```
or
```
Unhandled exception. Couchbase.Configuration.Server.Serialization.BootstrapException: Could not bootstrap - check inner exceptions for details. (Authentication failed for bucket 'default') (Could not bootstrap with CCCP. (Authentication failed for bucket 'default')) (Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'Couchbase.Configuration.Server.Serialization.Settings' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.
To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.
Path 'settings', line 1, position 88.)
```
Couchbase.Configuration.Server.Serialization.BootstrapException inherits
from System.AggregateException.
In the case of Couuchbase3, we are getting this exception:
```
Unhandled exception. Couchbase.AuthenticationFailureException: Cannot authenticate the user. Reason: AuthenticationError
at Couchbase.Core.IO.Authentication.SaslMechanismBase.SendAsync[T](IOperation`1 op, IConnection connection, CancellationToken cancellationToken)
at Couchbase.Core.IO.Authentication.SaslMechanismBase.SaslStep(IConnection connection, String message, IRequestSpan span, CancellationToken token)
at Couchbase.Core.IO.Authentication.ScramShaMechanism.AuthenticateAsync(IConnection connection, CancellationToken cancellationToken)
at Couchbase.Core.ClusterNode.Couchbase.Core.IO.Connections.IConnectionInitializer.InitializeConnectionAsync(IConnection connection, CancellationToken cancellationToken)
at Couchbase.Core.IO.Connections.ConnectionPoolBase.CreateConnectionAsync(CancellationToken cancellationToken)
```
By returning a 13 return code, we communicate the test framework that
the text can be skipped. This code is processed in
\tracer\test\Datadog.Trace.TestHelpers.AutoInstrumentation\ErrorHelpers.cs
## Reason for change
## Implementation details
## Test coverage
## Other details
<!-- Fixes #{issue} -->
<!-- ⚠️ Note: where possible, please obtain 2 approvals prior to
merging. Unless CODEOWNERS specifies otherwise, for external teams it is
typically best to have one review from a team member, and one review
from apm-dotnet. Trivial changes do not require 2 reviews. -->
0 commit comments