-
Notifications
You must be signed in to change notification settings - Fork 798
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
Update to .NET 8 RTM #2097
Update to .NET 8 RTM #2097
Conversation
… in Test projects
… and removed (it was unused), see rabbitmq/rabbitmq-dotnet-client#846 for more details
…tions, as they can cause deadlocks.
…extension type since it remains in the same namespace, it should not break the users (they typically don't type full type name that provides the extensions)
@@ -6,7 +6,7 @@ public class applicationstatus_healthcheck_should | |||
public async Task be_healthy_if_application_is_not_stopped() | |||
{ | |||
using var sut = new ApplicationStatusHealthCheck(new TestHostApplicationLifeTime()); | |||
var result = await sut.CheckHealthAsync(new HealthCheckContext()).ConfigureAwait(false); | |||
var result = await sut.CheckHealthAsync(new HealthCheckContext()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix xUnit1030 in the whole solution: don't use .GetAwaiter in Test projects
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be a part of another PR but I'm fine to review all these changes in single PR.
@@ -42,7 +42,7 @@ void beforeOpen(SqlConnection connection) | |||
var registration = options.Value.Registrations.First(); | |||
var check = registration.Factory(serviceProvider); | |||
|
|||
Record.ExceptionAsync(() => check.CheckHealthAsync(new HealthCheckContext())).GetAwaiter().GetResult(); | |||
await Record.ExceptionAsync(() => check.CheckHealthAsync(new HealthCheckContext())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xUnit1031: Test methods should not use blocking task operations, as they can cause deadlocks.
…on does not support EF Core 8.0
Ooops, I did not see this one when making changes in #2104. Sorry. |
# Conflicts: # build/docker-images/HealthChecks.UI.Image/HealthChecks.UI.Image.csproj # src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj # src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj # src/HealthChecks.Aws.Sns/HealthChecks.Aws.Sns.csproj # src/HealthChecks.Aws.Sqs/HealthChecks.Aws.Sqs.csproj # src/HealthChecks.Aws.SystemsManager/HealthChecks.Aws.SystemsManager.csproj # src/HealthChecks.Azure.Data.Tables/HealthChecks.Azure.Data.Tables.csproj # src/HealthChecks.Azure.Messaging.EventHubs/HealthChecks.Azure.Messaging.EventHubs.csproj # src/HealthChecks.Azure.Storage.Blobs/HealthChecks.Azure.Storage.Blobs.csproj # src/HealthChecks.Azure.Storage.Files.Shares/HealthChecks.Azure.Storage.Files.Shares.csproj # src/HealthChecks.Azure.Storage.Queues/HealthChecks.Azure.Storage.Queues.csproj # src/HealthChecks.AzureSearch/HealthChecks.AzureSearch.csproj # src/HealthChecks.AzureServiceBus/HealthChecks.AzureServiceBus.csproj # src/HealthChecks.CosmosDb/HealthChecks.CosmosDb.csproj # src/HealthChecks.Dapr/HealthChecks.Dapr.csproj # src/HealthChecks.DynamoDb/HealthChecks.DynamoDb.csproj # src/HealthChecks.Gcp.CloudFirestore/HealthChecks.Gcp.CloudFirestore.csproj # src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj # src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj # src/HealthChecks.InfluxDB/HealthChecks.InfluxDB.csproj # src/HealthChecks.Kafka/HealthChecks.Kafka.csproj # src/HealthChecks.Kubernetes/HealthChecks.Kubernetes.csproj # src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj # src/HealthChecks.MySql/HealthChecks.MySql.csproj # src/HealthChecks.Nats/HealthChecks.Nats.csproj # src/HealthChecks.NpgSql/HealthChecks.NpgSql.csproj # src/HealthChecks.Oracle/HealthChecks.Oracle.csproj # src/HealthChecks.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj # src/HealthChecks.Publisher.Prometheus/HealthChecks.Publisher.Prometheus.csproj # src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj # src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj # src/HealthChecks.Redis/HealthChecks.Redis.csproj # src/HealthChecks.SignalR/HealthChecks.SignalR.csproj # src/HealthChecks.UI.K8s.Operator/HealthChecks.UI.K8s.Operator.csproj # src/HealthChecks.UI/HealthChecks.UI.csproj # test/HealthChecks.Azure.Messaging.EventHubs.Tests/HealthChecks.Azure.Messaging.EventHubs.Tests.csproj # test/HealthChecks.AzureDigitalTwin.Tests/HealthChecks.AzureDigitalTwin.Tests.csproj # test/HealthChecks.AzureServiceBus.Tests/HealthChecks.AzureServiceBus.Tests.csproj # test/HealthChecks.UI.Client.Tests/HealthChecks.UI.Client.Tests.csproj # test/HealthChecks.UI.Data.Tests/HealthChecks.UI.Data.Tests.csproj # test/HealthChecks.UI.Tests/HealthChecks.UI.Tests.csproj
…ing the extension type" This reverts commit 948072c.
This reverts commit accb278.
# Conflicts: # Directory.Build.props
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #2097 +/- ##
==========================================
- Coverage 66.80% 65.48% -1.32%
==========================================
Files 254 270 +16
Lines 8591 8774 +183
Branches 612 634 +22
==========================================
+ Hits 5739 5746 +7
- Misses 2693 2868 +175
- Partials 159 160 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Almost reviewed, one more conflict left. |
@sungam3r Thanks a lot! I've pushed changes to resolve the conflict |
Some tests are failing, but I believe that these are simply unstable/noisy.