Skip to content

fix: properly implement IHealthCheckProvider.Check in MongoDB adapter #4964

fix: properly implement IHealthCheckProvider.Check in MongoDB adapter

fix: properly implement IHealthCheckProvider.Check in MongoDB adapter #4964

GitHub Actions / Test - ubuntu-latest Common/tests failed Jan 24, 2025 in 1s

6781 passed, 2 failed and 1 skipped

Tests failed

❌ Common/tests/TestResults/test-results.trx

6784 tests were completed in 133s with 6781 passed, 2 failed and 1 skipped.

Test suite Passed Failed Skipped Time
ArmoniK.Core.Common.Tests.AdapterLoading.AdapterLoadingTest 10✅ 523ms
ArmoniK.Core.Common.Tests.ApplicationRawTests 2✅ 12ms
ArmoniK.Core.Common.Tests.Auth.AuthenticationCacheTest 10✅ 14ms
ArmoniK.Core.Common.Tests.Auth.AuthenticationIntegrationTest(DefaultAuth) 1144✅ 3s
ArmoniK.Core.Common.Tests.Auth.AuthenticationIntegrationTest(NoAuthentication) 1144✅ 2s
ArmoniK.Core.Common.Tests.Auth.AuthenticationIntegrationTest(NoAuthorization) 1144✅ 1s
ArmoniK.Core.Common.Tests.Auth.AuthenticationIntegrationTest(NoImpersonation) 1144✅ 979ms
ArmoniK.Core.Common.Tests.Auth.AuthenticationIntegrationTest(NoImpersonationNoAuthorization) 1144✅ 1s
ArmoniK.Core.Common.Tests.Auth.CheckAuthenticationAttributes 59✅ 2ms
ArmoniK.Core.Common.Tests.Auth.PermissionTest 10✅ 1⚪ 20ms
ArmoniK.Core.Common.Tests.ExceptionManagerTests 16✅ 4s
ArmoniK.Core.Common.Tests.Grpc.TaskStatusConversionTests 2✅ 2ms
ArmoniK.Core.Common.Tests.GrpcHealthChecksServiceTest 1✅ 10ms
ArmoniK.Core.Common.Tests.GrpcTasksServiceTests 4✅ 3s
ArmoniK.Core.Common.Tests.HealthChecks.HealthCheckTest 9✅ 44ms
ArmoniK.Core.Common.Tests.HealthChecks.HowHealthCheckWorkTest 2✅ 25ms
ArmoniK.Core.Common.Tests.ListApplicationsRequestExt.ToApplicationFieldTest 5✅ 3ms
ArmoniK.Core.Common.Tests.ListApplicationsRequestExt.ToApplicationFilterTest 12✅ 8ms
ArmoniK.Core.Common.Tests.ListPartitionsRequestExt.ToPartitionDataFieldTest 6✅ 2ms
ArmoniK.Core.Common.Tests.ListPartitionsRequestExt.ToPartitionDataFilterTest 13✅ 6ms
ArmoniK.Core.Common.Tests.ListResultsRequestExt.ToResultFieldTest 8✅ 3ms
ArmoniK.Core.Common.Tests.ListResultsRequestExt.ToResultFilterTest 15✅ 7ms
ArmoniK.Core.Common.Tests.ListSessionsRequestExt.ToSessionDataFieldTest 12✅ 4ms
ArmoniK.Core.Common.Tests.ListSessionsRequestExt.ToSessionDataFilterTest 16✅ 13ms
ArmoniK.Core.Common.Tests.ListTasksRequestExt.ToTaskDataFieldTest 33✅ 10ms
ArmoniK.Core.Common.Tests.ListTasksRequestExt.ToTaskDataFilterTest 38✅ 16ms
ArmoniK.Core.Common.Tests.LoggerExtTest 2✅ 66ms
ArmoniK.Core.Common.Tests.Pollster.AgentTest 15✅ 6s
ArmoniK.Core.Common.Tests.Pollster.DataPrefetcherTest 3✅ 22ms
ArmoniK.Core.Common.Tests.Pollster.PollsterTest 10✅ 2❌ 13s
ArmoniK.Core.Common.Tests.Pollster.TaskHandlerTest 56✅ 36s
ArmoniK.Core.Common.Tests.RendezvousChannelTest 40✅ 33s
ArmoniK.Core.Common.Tests.RpcExtTests 36✅ 4ms
ArmoniK.Core.Common.Tests.StateMachines.ProcessReplyCreateLargeTaskStateMachineTest 12✅ 57ms
ArmoniK.Core.Common.Tests.Submitter.ExceptionInterceptorTests 3✅ 184ms
ArmoniK.Core.Common.Tests.Submitter.GrpcSubmitterServiceTests 47✅ 118ms
ArmoniK.Core.Common.Tests.Submitter.IntegrationGrpcSubmitterServiceTest 94✅ 1s
ArmoniK.Core.Common.Tests.Submitter.SubmitterTests 21✅ 7s
ArmoniK.Core.Common.Tests.TaskFilterExtTests 14✅ 15ms
ArmoniK.Core.Common.Tests.TaskLifeCycleHelperTest 3✅ 1s
ArmoniK.Core.Common.Tests.TaskOptionsTests 2✅ 2ms
ArmoniK.Core.Common.Tests.TestBase.AuthenticationTableTestBase 32✅ 6ms
ArmoniK.Core.Common.Tests.TestBase.ObjectStorageTestBase 15✅ 8ms
ArmoniK.Core.Common.Tests.TestBase.PartitionTableTestBase 22✅ 7ms
ArmoniK.Core.Common.Tests.TestBase.QueueStorageTestsBase 5✅ 6ms
ArmoniK.Core.Common.Tests.TestBase.ResultTableTestBase 26✅ 16ms
ArmoniK.Core.Common.Tests.TestBase.ResultWatcherTestBase 4✅ 5ms
ArmoniK.Core.Common.Tests.TestBase.SessionTableTestBase 24✅ 24ms
ArmoniK.Core.Common.Tests.TestBase.TaskTableTestBase 135✅ 43ms
ArmoniK.Core.Common.Tests.TestBase.TaskWatcherTestBase 4✅ 5ms
ArmoniK.Core.Common.Tests.Validators.CancelTasksRequestValidatorTest 3✅ 1ms
ArmoniK.Core.Common.Tests.Validators.CreateLargeTaskRequestValidatorTest 9✅ 5ms
ArmoniK.Core.Common.Tests.Validators.CreateSessionRequestValidatorTest 4✅ 1ms
ArmoniK.Core.Common.Tests.Validators.CreateSmallTaskRequestValidatorTest 16✅ 5ms
ArmoniK.Core.Common.Tests.Validators.EventSubscriptionRequestValidatorTest 44✅ 6ms
ArmoniK.Core.Common.Tests.Validators.ListApplicationsRequestValidatorTest 8✅ 11ms
ArmoniK.Core.Common.Tests.Validators.ListPartitionsRequestValidatorTest 8✅ 9ms
ArmoniK.Core.Common.Tests.Validators.ListResultsRequestValidatorTest 8✅ 3ms
ArmoniK.Core.Common.Tests.Validators.ListSessionsRequestValidatorTest 8✅ 3ms
ArmoniK.Core.Common.Tests.Validators.ListTasksRequestValidatorTest 8✅ 9ms
ArmoniK.Core.Common.Tests.Validators.SessionFilterValidatorTest 2✅ 2ms
ArmoniK.Core.Common.Tests.Validators.SessionServiceCreateSessionRequestValidatorTest 4✅ 1ms
ArmoniK.Core.Common.Tests.Validators.SubmitTasksRequestValidatorTest 2✅ 0ms
ArmoniK.Core.Common.Tests.Validators.TaskFilterValidatorTest 13✅ 4ms
ArmoniK.Core.Common.Tests.Validators.TaskOptionsValidatorTest 11✅ 2ms
ArmoniK.Core.Common.Tests.WatchToGrpcTests 5✅ 14s

❌ ArmoniK.Core.Common.Tests.Pollster.PollsterTest

✅ CancelLongTaskShouldSucceed
✅ ExecuteTaskShouldSucceed
✅ ExecuteTaskThatExceedsGraceDelayShouldResubmit
✅ ExecuteTaskTimeoutAcquire
✅ ExecuteTooManyErrorShouldFail(AgentHandler)
✅ ExecuteTooManyErrorShouldFail(PullQueueStorage)
✅ ExecuteTooManyErrorShouldFail(WorkerStreamHandler)
✅ InitializePollster
❌ InitShouldFail
	  Expected string length 5 but was 232. Strings differ at index 5.
	  Expected: "desc\n"
	  But was:  "desc\nResultTable is not initializedMongo Collection<TData> no..."
	  -----------------^
	
❌ InitShouldSucceed
	  Expected: Healthy
	  But was:  Unhealthy
	
✅ RunThenCancelPollster
✅ UnavailableWorkerShouldFail

Annotations

Check failure on line 359 in Common/tests/Pollster/PollsterTest.cs

See this annotation in the file changed.

@github-actions github-actions / Test - ubuntu-latest Common/tests

ArmoniK.Core.Common.Tests.Pollster.PollsterTest ► InitShouldFail

Failed test found in:
  Common/tests/TestResults/test-results.trx
Error:
    Expected string length 5 but was 232. Strings differ at index 5.
    Expected: "desc\n"
    But was:  "desc\nResultTable is not initializedMongo Collection<TData> no..."
    -----------------^
  
Raw output
  Expected string length 5 but was 232. Strings differ at index 5.
  Expected: "desc\n"
  But was:  "desc\nResultTable is not initializedMongo Collection<TData> no..."
  -----------------^

   at ArmoniK.Core.Common.Tests.Pollster.PollsterTest.InitShouldFail() in /home/runner/work/ArmoniK.Core/ArmoniK.Core/Common/tests/Pollster/PollsterTest.cs:line 359
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.GetResult()
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand.<>c__DisplayClass1_0.<Execute>b__0()
   at NUnit.Framework.Internal.Commands.DelegatingTestCommand.RunTestMethodInThreadAbortSafeZone(TestExecutionContext context, Action action)

1)    at ArmoniK.Core.Common.Tests.Pollster.PollsterTest.InitShouldFail() in /home/runner/work/ArmoniK.Core/ArmoniK.Core/Common/tests/Pollster/PollsterTest.cs:line 359
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at ArmoniK.Core.Common.Tests.Pollster.PollsterTest.InitShouldFail()

Check failure on line 306 in Common/tests/Pollster/PollsterTest.cs

See this annotation in the file changed.

@github-actions github-actions / Test - ubuntu-latest Common/tests

ArmoniK.Core.Common.Tests.Pollster.PollsterTest ► InitShouldSucceed

Failed test found in:
  Common/tests/TestResults/test-results.trx
Error:
    Expected: Healthy
    But was:  Unhealthy
  
Raw output
  Expected: Healthy
  But was:  Unhealthy

   at ArmoniK.Core.Common.Tests.Pollster.PollsterTest.InitShouldSucceed() in /home/runner/work/ArmoniK.Core/ArmoniK.Core/Common/tests/Pollster/PollsterTest.cs:line 306
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.GetResult()
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand.<>c__DisplayClass1_0.<Execute>b__0()
   at NUnit.Framework.Internal.Commands.DelegatingTestCommand.RunTestMethodInThreadAbortSafeZone(TestExecutionContext context, Action action)

1)    at ArmoniK.Core.Common.Tests.Pollster.PollsterTest.InitShouldSucceed() in /home/runner/work/ArmoniK.Core/ArmoniK.Core/Common/tests/Pollster/PollsterTest.cs:line 306
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at ArmoniK.Core.Common.Tests.Pollster.PollsterTest.InitShouldSucceed()