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

Update to .NET 8 RTM #2097

Merged
merged 21 commits into from
Dec 4, 2023
Merged

Update to .NET 8 RTM #2097

merged 21 commits into from
Dec 4, 2023

Conversation

adamsitnik
Copy link
Collaborator

@adamsitnik adamsitnik commented Nov 23, 2023

  • all samples got updated to .NET 8
  • all dependencies got updated to latest versions
  • breaking changes got fixed (or worked around)

Some tests are failing, but I believe that these are simply unstable/noisy.

@@ -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());
Copy link
Collaborator Author

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

Copy link
Collaborator

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()));
Copy link
Collaborator Author

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.

@sungam3r
Copy link
Collaborator

sungam3r commented Dec 3, 2023

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
This reverts commit accb278.
@adamsitnik
Copy link
Collaborator Author

Ooops, I did not see this one when making changes in #2104. Sorry.

@sungam3r I've solved the merge conflict, could you please review this PR?

@codecov-commenter
Copy link

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (cb4b321) 66.80% compared to head (d12ef0d) 65.48%.
Report is 2 commits behind head on master.

Files Patch % Lines
src/HealthChecks.UI/Core/UIResourceMapper.cs 0.00% 1 Missing ⚠️

❗ 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     
Flag Coverage Δ
ApplicationStatus 26.66% <ø> (ø)
ArangoDb 26.50% <ø> (ø)
Aws.S3 14.28% <ø> (ø)
Aws.SecretsManager 14.54% <ø> (ø)
Aws.Sns 14.77% <ø> (ø)
Aws.Sqs 15.28% <ø> (ø)
Aws.SystemsManager 14.54% <ø> (ø)
Azure.IoTHub 12.82% <ø> (ø)
AzureApplicationInsights 14.70% <ø> (ø)
AzureBlobStorage 25.17% <ø> (?)
AzureDigitalTwin 35.76% <ø> (ø)
AzureEventHubs 16.54% <ø> (?)
AzureFileStorage 25.17% <ø> (?)
AzureKeyVault 29.24% <ø> (ø)
AzureQueueStorage 25.17% <ø> (?)
AzureSearch 16.10% <ø> (ø)
AzureServiceBus 71.34% <ø> (ø)
AzureTableStorage 26.66% <ø> (?)
Consul 22.58% <ø> (ø)
CosmosDb 28.10% <ø> (ø)
Dapr 14.50% <ø> (?)
DocumentDb 14.64% <ø> (ø)
DynamoDb 12.12% <ø> (ø)
Elasticsearch 39.49% <ø> (ø)
EventStore 62.08% <ø> (ø)
EventStore.gRPC 25.51% <ø> (ø)
Gcp.CloudFirestore 12.10% <ø> (ø)
Gremlin 23.07% <ø> (ø)
Hangfire 10.97% <ø> (ø)
IbmMQ 30.76% <ø> (ø)
InfluxDB 15.00% <ø> (ø)
Kafka 22.03% <ø> (ø)
Kubernetes 41.54% <ø> (ø)
MongoDb 28.86% <ø> (ø)
MySql 33.33% <ø> (ø)
Nats 69.85% <ø> (ø)
Npgsql 41.28% <ø> (ø)
OpenIdConnectServer 39.28% <ø> (ø)
Oracle 60.60% <ø> (ø)
Prometheus.Metrics 29.80% <ø> (ø)
Publisher.ApplicationInsights 14.76% <ø> (ø)
Publisher.CloudWatch 19.02% <ø> (ø)
Publisher.Datadog 15.00% <ø> (ø)
Publisher.Prometheus 18.75% <ø> (ø)
Publisher.Seq 40.30% <ø> (ø)
RabbitMQ 47.67% <100.00%> (-0.22%) ⬇️
RavenDb 70.74% <ø> (ø)
Redis 65.71% <ø> (ø)
SendGrid 11.92% <ø> (ø)
SignalR 24.22% <ø> (ø)
SqlServer 28.57% <ø> (ø)
Sqlite 26.38% <ø> (ø)
System 37.28% <ø> (ø)
UI 65.84% <50.00%> (-0.12%) ⬇️
Uris 0.00% <ø> (-61.87%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sungam3r
Copy link
Collaborator

sungam3r commented Dec 4, 2023

Almost reviewed, one more conflict left.

@adamsitnik
Copy link
Collaborator Author

Almost reviewed, one more conflict left.

@sungam3r Thanks a lot! I've pushed changes to resolve the conflict

@adamsitnik adamsitnik merged commit 81c6697 into Xabaril:master Dec 4, 2023
59 checks passed
@adamsitnik adamsitnik deleted the net80rtm branch December 4, 2023 09:43
@adamsitnik adamsitnik mentioned this pull request Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment