Skip to content

NCBC-4085: Upgrade from net8 to net10 #48

NCBC-4085: Upgrade from net8 to net10

NCBC-4085: Upgrade from net8 to net10 #48

Triggered via pull request December 4, 2025 19:28
Status Failure
Total duration 1m 16s
Artifacts 2

build-and-test.yml

on: pull_request
Matrix: build-and-test
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 20 warnings
Build and Unit Tests (ubuntu-latest)
Process completed with exit code 1.
Build and Unit Tests (windows-latest)
Process completed with exit code 1.
Build and Unit Tests (ubuntu-latest): src/Couchbase.Analytics/Query/QueryMetrics.cs#L55
Non-nullable property 'BufferCacheHitRatio' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
Build and Unit Tests (ubuntu-latest): src/Couchbase.Analytics/Query/QueryWarning.cs#L26
Non-nullable property 'Message' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
Build and Unit Tests (ubuntu-latest): src/Couchbase.Analytics/Certificates/CertificateValidation.cs#L222
Possible null reference argument for parameter 'certificates' in 'void X509Certificate2Collection.AddRange(X509Certificate2Collection certificates)'.
Build and Unit Tests (ubuntu-latest): src/Couchbase.Analytics/Certificates/CertificateValidation.cs#L218
Possible null reference argument for parameter 's' in 'byte[] Encoding.GetBytes(string s)'.
Build and Unit Tests (ubuntu-latest): src/Couchbase.Analytics/Certificates/CertificateValidation.cs#L213
Possible null reference argument for parameter 'fileName' in 'X509Certificate2.X509Certificate2(string fileName)'.
Build and Unit Tests (ubuntu-latest): src/Couchbase.Analytics/Certificates/CertificateValidation.cs#L217
'X509Certificate2.X509Certificate2(byte[])' is obsolete: 'Loading certificate data through the constructor or Import is obsolete. Use X509CertificateLoader instead to load certificates.' (https://aka.ms/dotnet-warnings/SYSLIB0057)
Build and Unit Tests (ubuntu-latest): src/Couchbase.Analytics/Certificates/CertificateValidation.cs#L213
'X509Certificate2.X509Certificate2(string)' is obsolete: 'Loading certificate data through the constructor or Import is obsolete. Use X509CertificateLoader instead to load certificates.' (https://aka.ms/dotnet-warnings/SYSLIB0057)
Build and Unit Tests (ubuntu-latest): src/Couchbase.Analytics/Exceptions/AnalyticsException.cs#L39
'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)
Build and Unit Tests (ubuntu-latest): src/Couchbase.Analytics/Certificates/CertificateValidation.cs#L77
'X509Certificate2.X509Certificate2(byte[], string?)' is obsolete: 'Loading certificate data through the constructor or Import is obsolete. Use X509CertificateLoader instead to load certificates.' (https://aka.ms/dotnet-warnings/SYSLIB0057)
Build and Unit Tests (ubuntu-latest): src/Couchbase.Analytics/Cluster.cs#L108
Cannot convert null literal to non-nullable reference type.
Build and Unit Tests (windows-latest): src/Couchbase.Analytics/Query/QueryMetrics.cs#L55
Non-nullable property 'BufferCacheHitRatio' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
Build and Unit Tests (windows-latest): src/Couchbase.Analytics/Query/QueryWarning.cs#L26
Non-nullable property 'Message' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
Build and Unit Tests (windows-latest): src/Couchbase.Analytics/Certificates/CertificateValidation.cs#L222
Possible null reference argument for parameter 'certificates' in 'void X509Certificate2Collection.AddRange(X509Certificate2Collection certificates)'.
Build and Unit Tests (windows-latest): src/Couchbase.Analytics/Certificates/CertificateValidation.cs#L218
Possible null reference argument for parameter 's' in 'byte[] Encoding.GetBytes(string s)'.
Build and Unit Tests (windows-latest): src/Couchbase.Analytics/Certificates/CertificateValidation.cs#L213
Possible null reference argument for parameter 'fileName' in 'X509Certificate2.X509Certificate2(string fileName)'.
Build and Unit Tests (windows-latest): src/Couchbase.Analytics/Certificates/CertificateValidation.cs#L217
'X509Certificate2.X509Certificate2(byte[])' is obsolete: 'Loading certificate data through the constructor or Import is obsolete. Use X509CertificateLoader instead to load certificates.' (https://aka.ms/dotnet-warnings/SYSLIB0057)
Build and Unit Tests (windows-latest): src/Couchbase.Analytics/Certificates/CertificateValidation.cs#L213
'X509Certificate2.X509Certificate2(string)' is obsolete: 'Loading certificate data through the constructor or Import is obsolete. Use X509CertificateLoader instead to load certificates.' (https://aka.ms/dotnet-warnings/SYSLIB0057)
Build and Unit Tests (windows-latest): src/Couchbase.Analytics/Exceptions/AnalyticsException.cs#L39
'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)
Build and Unit Tests (windows-latest): src/Couchbase.Analytics/Cluster.cs#L108
Cannot convert null literal to non-nullable reference type.
Build and Unit Tests (windows-latest): src/Couchbase.Analytics/Certificates/CertificateValidation.cs#L77
'X509Certificate2.X509Certificate2(byte[], string?)' is obsolete: 'Loading certificate data through the constructor or Import is obsolete. Use X509CertificateLoader instead to load certificates.' (https://aka.ms/dotnet-warnings/SYSLIB0057)

Artifacts

Produced during runtime
Name Size Digest
unit-test-results-ubuntu-latest Expired
26.8 KB
sha256:f47f4feebe2a176925b8de6102f8c1d876a9c685f286042d3e853e49fc2ed007
unit-test-results-windows-latest Expired
27.1 KB
sha256:1c5e8448a2e729d75374ad23a134d6304a7a88d668c3a35dbc0f7f28142c35fc