yugabyte / yugabyte-db

YugabyteDB - the cloud native distributed SQL database for mission-critical applications.
https://www.yugabyte.com
Other
8.98k stars 1.07k forks source link

[Platform] JUnit tests became very slow #8826

Open SergeyPotachev opened 3 years ago

SergeyPotachev commented 3 years ago

After commit https://github.com/yugabyte/yugabyte-db/commit/65199e1c71653adc2f9a610ee1a44bcc62c43626 junit tests became very-very slow. The reason is in the next line added to application.common.conf:

play.modules.enabled += "play.modules.swagger.SwaggerModule" It is included into application.test.conf so this module is loaded and works when executing junit tests. Here is a part of logs when this module is DISABLED:

[info] Test run started
[info] Test com.yugabyte.yw.common.kms.services.SmartKeyEARServiceTest.testCreateAndRetrieveEncryptionKeySuccess started
[info] Test com.yugabyte.yw.common.kms.services.SmartKeyEARServiceTest.testCreateAndRetrieveEncryptionKeyFailure started
[info] Test run finished: 0 failed, 0 ignored, 2 total, 6.742s
[info] Test run started
[info] Test com.yugabyte.yw.models.AlertReceiverTest.testGetSetTargetType started
[info] Test com.yugabyte.yw.models.AlertReceiverTest.testList started
[info] Test com.yugabyte.yw.models.AlertReceiverTest.testGetSetParams started
[info] Test com.yugabyte.yw.models.AlertReceiverTest.testGetOrBadRequest started
[info] Test com.yugabyte.yw.models.AlertReceiverTest.testCreateAndGet started
[info] Test run finished: 0 failed, 0 ignored, 5 total, 2.585s
[info] Test run started
[info] Test com.yugabyte.yw.commissioner.tasks.DestroyKubernetesUniverseTest.testDestoryKubernetesUniverseWithUpdateInProgress started
[info] Test com.yugabyte.yw.commissioner.tasks.DestroyKubernetesUniverseTest.testDestroyKubernetesHelm2UniverseSuccess started
[info] Test com.yugabyte.yw.commissioner.tasks.DestroyKubernetesUniverseTest.testForceDestroyKubernetesUniverseWithUpdateInProgress started
[info] Test com.yugabyte.yw.commissioner.tasks.DestroyKubernetesUniverseTest.testDestroyKubernetesUniverseSuccessMultiAZ started
[info] Test com.yugabyte.yw.commissioner.tasks.DestroyKubernetesUniverseTest.testDestroyKubernetesUniverseSuccess started
[info] Test com.yugabyte.yw.commissioner.tasks.DestroyKubernetesUniverseTest.testDestroyKubernetesUniverseSuccessMultiAZWithNamespace started
[info] Test run finished: 0 failed, 0 ignored, 6 total, 9.12s
[info] Test run started
[info] Test com.yugabyte.yw.common.AlertManagerTest.testSendEmail_OwnAlertGenerated started
[info] Test com.yugabyte.yw.common.AlertManagerTest.testSendEmail_OwnAlertsReseted started
[info] Test com.yugabyte.yw.common.AlertManagerTest.testResolveAlerts_ExactErrorCode started
[info] Test com.yugabyte.yw.common.AlertManagerTest.testSendNotification_TwoEmailRoutes started
[info] Test com.yugabyte.yw.common.AlertManagerTest.testSendEmail_UniverseExists started
[info] Test com.yugabyte.yw.common.AlertManagerTest.testSendNotification_AlertWoDefinition_SendEmailOldManner started
[info] Test com.yugabyte.yw.common.AlertManagerTest.testSendNotification_NoRoutes started
[info] Test com.yugabyte.yw.common.AlertManagerTest.testResolveAlerts_AllErrorCodes started
[info] Test com.yugabyte.yw.common.AlertManagerTest.testSendEmail_DoesntFail_UniverseRemoved started
[info] Test run finished: 0 failed, 0 ignored, 9 total, 3.917s
[info] Test run started
[info] Test com.yugabyte.yw.common.ConfigHelperTest.testloadSoftwareVersiontoDB started
[info] Test com.yugabyte.yw.common.ConfigHelperTest.testGetRegionMetadata started
[info] Test com.yugabyte.yw.common.ConfigHelperTest.testGetConfigWithNullValue started
[info] Test com.yugabyte.yw.common.ConfigHelperTest.testLoadConfigToDB started
[info] Test com.yugabyte.yw.common.ConfigHelperTest.testLoadConfigsToDBWithoutFile started
[info] Test com.yugabyte.yw.common.ConfigHelperTest.testLoadConfigsToDBWithFile started
[info] Test com.yugabyte.yw.common.ConfigHelperTest.testGetConfigWithoutData started
[info] Test com.yugabyte.yw.common.ConfigHelperTest.testGetConfigWithData started
[info] Test run finished: 0 failed, 0 ignored, 8 total, 3.267s
[info] Test run started
[info] Test com.yugabyte.yw.controllers.CustomerTaskControllerTest.testTaskHistoryEmptyList started
[info] Test com.yugabyte.yw.controllers.CustomerTaskControllerTest.testTaskHistoryUniverseList started
[info] Test com.yugabyte.yw.controllers.CustomerTaskControllerTest.testTaskHistoryProgressCompletes started
[info] Test com.yugabyte.yw.controllers.CustomerTaskControllerTest.testTaskHistoryLimit started
[info] Test com.yugabyte.yw.controllers.CustomerTaskControllerTest.testFetchTaskWithFailedSubtasks started
[info] Test com.yugabyte.yw.controllers.CustomerTaskControllerTest.testTaskStatusWithInvalidTaskUUID started
[info] Test com.yugabyte.yw.controllers.CustomerTaskControllerTest.testTaskStatusWithInvalidCustomerUUID started
[info] Test com.yugabyte.yw.controllers.CustomerTaskControllerTest.testTaskHistoryList started
[info] Test com.yugabyte.yw.controllers.CustomerTaskControllerTest.testTaskCompletionTime started
[info] Test com.yugabyte.yw.controllers.CustomerTaskControllerTest.testTaskStatusWithValidUUID started
[info] Test run finished: 0 failed, 0 ignored, 10 total, 18.02s
[info] Test run started
[info] Test com.yugabyte.yw.common.alerts.impl.AlertReceiverEmailTest.testSendNotification_SendFailed started
[info] Test com.yugabyte.yw.common.alerts.impl.AlertReceiverEmailTest.testSendNotification_HappyPath started
[info] Test run finished: 0 failed, 0 ignored, 2 total, 0.785s
[info] Test run started
[info] Test com.yugabyte.yw.metrics.MetricQueryHelperTest.testQuerySingleMetricWithoutEndTime started
[info] Test com.yugabyte.yw.metrics.MetricQueryHelperTest.testQuerySingleMetricWithEndTime started
[info] Test com.yugabyte.yw.metrics.MetricQueryHelperTest.testDirectQuerySingleValue started
[info] Test com.yugabyte.yw.metrics.MetricQueryHelperTest.testQueryWithInvalidFilterParams started
[info] Test com.yugabyte.yw.metrics.MetricQueryHelperTest.testQueryWithInvalidParams started
[info] Test com.yugabyte.yw.metrics.MetricQueryHelperTest.testDirectQueryMultipleValues started
[info] Test com.yugabyte.yw.metrics.MetricQueryHelperTest.testQueryMultipleMetrics started
[info] Test run finished: 0 failed, 0 ignored, 7 total, 2.53s
[info] Test run started
[info] Test com.yugabyte.yw.models.InstanceTypeTest.testGetDefaultInstanceTypeDetails started
[info] Test com.yugabyte.yw.models.InstanceTypeTest.testDeleteByProvider started
[info] Test com.yugabyte.yw.models.InstanceTypeTest.testFindByProvider started
[info] Test com.yugabyte.yw.models.InstanceTypeTest.testFindByProviderOnprem started
[info] Test com.yugabyte.yw.models.InstanceTypeTest.testFindByProviderWithEmptyInstanceTypeDetails started
[info] Test com.yugabyte.yw.models.InstanceTypeTest.testCreate started
[info] Test com.yugabyte.yw.models.InstanceTypeTest.testFindByProviderWithUnSupportedInstances started
[info] Test com.yugabyte.yw.models.InstanceTypeTest.testCreateWithValidMetadata started
[info] Test com.yugabyte.yw.models.InstanceTypeTest.testFindByProviderWithNullInstanceTypeDetails started
[info] Test com.yugabyte.yw.models.InstanceTypeTest.testGetNonDefaultInstanceTypeDetails started
[info] Test run finished: 0 failed, 0 ignored, 10 total, 3.874s
[info] Test run started
[info] Test com.yugabyte.yw.commissioner.tasks.CreateKubernetesUniverseTest.testCreateKubernetesUniverseSingleAZWithoutYedis started
[info] Test com.yugabyte.yw.commissioner.tasks.CreateKubernetesUniverseTest.testCreateKubernetesUniverseSuccessMultiAZ started
[info] Test com.yugabyte.yw.commissioner.tasks.CreateKubernetesUniverseTest.testCreateKubernetesUniverseSuccessMultiAZWithNamespace started
[info] Test com.yugabyte.yw.commissioner.tasks.CreateKubernetesUniverseTest.testCreateKubernetesUniverseSuccessSingleAZ started
[info] Test com.yugabyte.yw.commissioner.tasks.CreateKubernetesUniverseTest.testCreateKubernetesUniverseSuccessSingleAZWithNamespace started
[info] Test com.yugabyte.yw.commissioner.tasks.CreateKubernetesUniverseTest.testCreateKubernetesUniverseFailure started
[info] Test com.yugabyte.yw.commissioner.tasks.CreateKubernetesUniverseTest.testCreateKubernetesUniverseMultiAZWithoutYedis started
[info] Test run finished: 0 failed, 0 ignored, 7 total, 10.155s
[info] Test run started
[info] Test com.yugabyte.yw.commissioner.tasks.ManipulateDnsRecordTaskTest.testSimpleTaskSuccess started
[info] Test run finished: 0 failed, 0 ignored, 1 total, 1.395s
[info] Test run started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sGetConfigPerAZ started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testGetUniversePerNodeStatusAllHealthy started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sGetDomainPerAZ started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testGetUniversePerNodeStatusManyTserversDead started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testReplicationFactorAndNodesMismatch started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testGetUniversePerNodeStatusOneMasterDead started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testReplicationFactorFive started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testPerAZShrinkPlacement started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testReplicationFactorAllowedForReadOnly started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testReplicationFactorOne started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testGetUniversePerNodeStatusOneTserverDead started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testSelectMasters started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testEditInstanceTagsWithFullMove started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sGetMastersPerAZ started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testExpandPlacement started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testReplicationFactorNotAllowed started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testNumNodesChangeDuringReadOnlyClusterCreate started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testCreateInstanceType started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testGetKubernetesNamespace started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testEditAZShrinkPlacement started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testGetUniversePerNodeStatusManyMastersDead started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testReplicationFactor started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testEditInstanceTagsWithExpand started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testGetUniversePerNodeStatusAllDead started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testUpdateUniverseDefinitionForCreate started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testPerAZExpandPlacement started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sGetTServersPerAZ started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testGetUniversePerNodeStatusError started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testRemoveNodeByName started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testEditPlacement started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sSelectMastersMultiZone(1, 2, 3, 1, 2) [0] started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sSelectMastersMultiZone(2, 2, 3, 2, 1) [1] started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sSelectMastersMultiZone(5, 5, 5, 3, 2) [2] started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sSelectMastersMultiZone(3, 3, 3, 2, 1) [3] started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testPopulateClusterIndices started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testUpdateUniverseDefinitionForEdit started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testPerAzReplicationFactor started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sSelectMastersMultiRegion(1, 1, 1, 3, 1, 1, 1) [0] started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sSelectMastersMultiRegion(2, 2, 3, 3, 1, 1, 1) [1] started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sSelectMastersMultiRegion(5, 5, 5, 5, 2, 2, 1) [2] started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sSelectMastersMultiRegion(3, 3, 3, 7, 3, 2, 2) [3] started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testIsMultiAz started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testUniverseDefinitionClone started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sSelectMastersSingleZone started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testShrinkPlacement started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testActiveTserverSelection started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testAffinitizedPlacement started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testEditInstanceTags started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testEditInstanceType started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sGetConfigPerNamespace started
[info] Test run finished: 0 failed, 0 ignored, 50 total, 17.219s

And when it is ENABLED:

[info] Test run started
[info] Test com.yugabyte.yw.common.kms.services.SmartKeyEARServiceTest.testCreateAndRetrieveEncryptionKeySuccess started
[info] Test com.yugabyte.yw.common.kms.services.SmartKeyEARServiceTest.testCreateAndRetrieveEncryptionKeyFailure started
[info] Test run finished: 0 failed, 0 ignored, 2 total, 8.943s
[info] Test run started
[info] Test com.yugabyte.yw.models.AlertReceiverTest.testGetSetTargetType started
[info] Test com.yugabyte.yw.models.AlertReceiverTest.testList started
[info] Test com.yugabyte.yw.models.AlertReceiverTest.testGetSetParams started
[info] Test com.yugabyte.yw.models.AlertReceiverTest.testGetOrBadRequest started
[info] Test com.yugabyte.yw.models.AlertReceiverTest.testCreateAndGet started
[info] Test run finished: 0 failed, 0 ignored, 5 total, 7.223s
[info] Test run started
[info] Test com.yugabyte.yw.commissioner.tasks.DestroyKubernetesUniverseTest.testDestoryKubernetesUniverseWithUpdateInProgress started
[info] Test com.yugabyte.yw.commissioner.tasks.DestroyKubernetesUniverseTest.testDestroyKubernetesHelm2UniverseSuccess started
[info] Test com.yugabyte.yw.commissioner.tasks.DestroyKubernetesUniverseTest.testForceDestroyKubernetesUniverseWithUpdateInProgress started
[info] Test com.yugabyte.yw.commissioner.tasks.DestroyKubernetesUniverseTest.testDestroyKubernetesUniverseSuccessMultiAZ started
[info] Test com.yugabyte.yw.commissioner.tasks.DestroyKubernetesUniverseTest.testDestroyKubernetesUniverseSuccess started
[info] Test com.yugabyte.yw.commissioner.tasks.DestroyKubernetesUniverseTest.testDestroyKubernetesUniverseSuccessMultiAZWithNamespace started
[info] Test run finished: 0 failed, 0 ignored, 6 total, 14.346s
[info] Test run started
[info] Test com.yugabyte.yw.common.AlertManagerTest.testSendEmail_OwnAlertGenerated started
[info] Test com.yugabyte.yw.common.AlertManagerTest.testSendEmail_OwnAlertsReseted started
[info] Test com.yugabyte.yw.common.AlertManagerTest.testResolveAlerts_ExactErrorCode started
[info] Test com.yugabyte.yw.common.AlertManagerTest.testSendNotification_TwoEmailRoutes started
[info] Test com.yugabyte.yw.common.AlertManagerTest.testSendEmail_UniverseExists started
[info] Test com.yugabyte.yw.common.AlertManagerTest.testSendNotification_AlertWoDefinition_SendEmailOldManner started
[info] Test com.yugabyte.yw.common.AlertManagerTest.testSendNotification_NoRoutes started
[info] Test com.yugabyte.yw.common.AlertManagerTest.testResolveAlerts_AllErrorCodes started
[info] Test com.yugabyte.yw.common.AlertManagerTest.testSendEmail_DoesntFail_UniverseRemoved started
[info] Test run finished: 0 failed, 0 ignored, 9 total, 11.64s
[info] Test run started
[info] Test com.yugabyte.yw.common.ConfigHelperTest.testloadSoftwareVersiontoDB started
[info] Test com.yugabyte.yw.common.ConfigHelperTest.testGetRegionMetadata started
[info] Test com.yugabyte.yw.common.ConfigHelperTest.testGetConfigWithNullValue started
[info] Test com.yugabyte.yw.common.ConfigHelperTest.testLoadConfigToDB started
[info] Test com.yugabyte.yw.common.ConfigHelperTest.testLoadConfigsToDBWithoutFile started
[info] Test com.yugabyte.yw.common.ConfigHelperTest.testLoadConfigsToDBWithFile started
[info] Test com.yugabyte.yw.common.ConfigHelperTest.testGetConfigWithoutData started
[info] Test com.yugabyte.yw.common.ConfigHelperTest.testGetConfigWithData started
[info] Test run finished: 0 failed, 0 ignored, 8 total, 10.008s
[info] Test run started
[info] Test com.yugabyte.yw.controllers.CustomerTaskControllerTest.testTaskHistoryEmptyList started
[info] Test com.yugabyte.yw.controllers.CustomerTaskControllerTest.testTaskHistoryUniverseList started
[info] Test com.yugabyte.yw.controllers.CustomerTaskControllerTest.testTaskHistoryProgressCompletes started
[info] Test com.yugabyte.yw.controllers.CustomerTaskControllerTest.testTaskHistoryLimit started
[info] Test com.yugabyte.yw.controllers.CustomerTaskControllerTest.testFetchTaskWithFailedSubtasks started
[info] Test com.yugabyte.yw.controllers.CustomerTaskControllerTest.testTaskStatusWithInvalidTaskUUID started
[info] Test com.yugabyte.yw.controllers.CustomerTaskControllerTest.testTaskStatusWithInvalidCustomerUUID started
[info] Test com.yugabyte.yw.controllers.CustomerTaskControllerTest.testTaskHistoryList started
[info] Test com.yugabyte.yw.controllers.CustomerTaskControllerTest.testTaskCompletionTime started
[info] Test com.yugabyte.yw.controllers.CustomerTaskControllerTest.testTaskStatusWithValidUUID started
[info] Test run finished: 0 failed, 0 ignored, 10 total, 26.567s
[info] Test run started
[info] Test com.yugabyte.yw.common.alerts.impl.AlertReceiverEmailTest.testSendNotification_SendFailed started
[info] Test com.yugabyte.yw.common.alerts.impl.AlertReceiverEmailTest.testSendNotification_HappyPath started
[info] Test run finished: 0 failed, 0 ignored, 2 total, 2.439s
[info] Test run started
[info] Test com.yugabyte.yw.metrics.MetricQueryHelperTest.testQuerySingleMetricWithoutEndTime started
[info] Test com.yugabyte.yw.metrics.MetricQueryHelperTest.testQuerySingleMetricWithEndTime started
[info] Test com.yugabyte.yw.metrics.MetricQueryHelperTest.testDirectQuerySingleValue started
[info] Test com.yugabyte.yw.metrics.MetricQueryHelperTest.testQueryWithInvalidFilterParams started
[info] Test com.yugabyte.yw.metrics.MetricQueryHelperTest.testQueryWithInvalidParams started
[info] Test com.yugabyte.yw.metrics.MetricQueryHelperTest.testDirectQueryMultipleValues started
[info] Test com.yugabyte.yw.metrics.MetricQueryHelperTest.testQueryMultipleMetrics started
[info] Test run finished: 0 failed, 0 ignored, 7 total, 8.686s
[info] Test run started
[info] Test com.yugabyte.yw.models.InstanceTypeTest.testGetDefaultInstanceTypeDetails started
[info] Test com.yugabyte.yw.models.InstanceTypeTest.testDeleteByProvider started
[info] Test com.yugabyte.yw.models.InstanceTypeTest.testFindByProvider started
[info] Test com.yugabyte.yw.models.InstanceTypeTest.testFindByProviderOnprem started
[info] Test com.yugabyte.yw.models.InstanceTypeTest.testFindByProviderWithEmptyInstanceTypeDetails started
[info] Test com.yugabyte.yw.models.InstanceTypeTest.testCreate started
[info] Test com.yugabyte.yw.models.InstanceTypeTest.testFindByProviderWithUnSupportedInstances started
[info] Test com.yugabyte.yw.models.InstanceTypeTest.testCreateWithValidMetadata started
[info] Test com.yugabyte.yw.models.InstanceTypeTest.testFindByProviderWithNullInstanceTypeDetails started
[info] Test com.yugabyte.yw.models.InstanceTypeTest.testGetNonDefaultInstanceTypeDetails started
[info] Test run finished: 0 failed, 0 ignored, 10 total, 12.24s
[info] Test run started
[info] Test com.yugabyte.yw.commissioner.tasks.CreateKubernetesUniverseTest.testCreateKubernetesUniverseSingleAZWithoutYedis started
[info] Test com.yugabyte.yw.commissioner.tasks.CreateKubernetesUniverseTest.testCreateKubernetesUniverseSuccessMultiAZ started
[info] Test com.yugabyte.yw.commissioner.tasks.CreateKubernetesUniverseTest.testCreateKubernetesUniverseSuccessMultiAZWithNamespace started
[info] Test com.yugabyte.yw.commissioner.tasks.CreateKubernetesUniverseTest.testCreateKubernetesUniverseSuccessSingleAZ started
[info] Test com.yugabyte.yw.commissioner.tasks.CreateKubernetesUniverseTest.testCreateKubernetesUniverseSuccessSingleAZWithNamespace started
[info] Test com.yugabyte.yw.commissioner.tasks.CreateKubernetesUniverseTest.testCreateKubernetesUniverseFailure started
[info] Test com.yugabyte.yw.commissioner.tasks.CreateKubernetesUniverseTest.testCreateKubernetesUniverseMultiAZWithoutYedis started
[info] Test run finished: 0 failed, 0 ignored, 7 total, 16.052s
[info] Test run started
[info] Test com.yugabyte.yw.commissioner.tasks.ManipulateDnsRecordTaskTest.testSimpleTaskSuccess started
[info] Test run finished: 0 failed, 0 ignored, 1 total, 2.356s
[info] Test run started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sGetConfigPerAZ started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testGetUniversePerNodeStatusAllHealthy started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sGetDomainPerAZ started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testGetUniversePerNodeStatusManyTserversDead started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testReplicationFactorAndNodesMismatch started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testGetUniversePerNodeStatusOneMasterDead started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testReplicationFactorFive started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testPerAZShrinkPlacement started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testReplicationFactorAllowedForReadOnly started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testReplicationFactorOne started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testGetUniversePerNodeStatusOneTserverDead started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testSelectMasters started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testEditInstanceTagsWithFullMove started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sGetMastersPerAZ started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testExpandPlacement started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testReplicationFactorNotAllowed started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testNumNodesChangeDuringReadOnlyClusterCreate started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testCreateInstanceType started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testGetKubernetesNamespace started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testEditAZShrinkPlacement started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testGetUniversePerNodeStatusManyMastersDead started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testReplicationFactor started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testEditInstanceTagsWithExpand started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testGetUniversePerNodeStatusAllDead started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testUpdateUniverseDefinitionForCreate started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testPerAZExpandPlacement started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sGetTServersPerAZ started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testGetUniversePerNodeStatusError started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testRemoveNodeByName started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testEditPlacement started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sSelectMastersMultiZone(1, 2, 3, 1, 2) [0] started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sSelectMastersMultiZone(2, 2, 3, 2, 1) [1] started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sSelectMastersMultiZone(5, 5, 5, 3, 2) [2] started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sSelectMastersMultiZone(3, 3, 3, 2, 1) [3] started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testPopulateClusterIndices started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testUpdateUniverseDefinitionForEdit started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testPerAzReplicationFactor started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sSelectMastersMultiRegion(1, 1, 1, 3, 1, 1, 1) [0] started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sSelectMastersMultiRegion(2, 2, 3, 3, 1, 1, 1) [1] started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sSelectMastersMultiRegion(5, 5, 5, 5, 2, 2, 1) [2] started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sSelectMastersMultiRegion(3, 3, 3, 7, 3, 2, 2) [3] started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testIsMultiAz started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testUniverseDefinitionClone started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sSelectMastersSingleZone started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testShrinkPlacement started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testActiveTserverSelection started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testAffinitizedPlacement started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testEditInstanceTags started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testEditInstanceType started
[info] Test com.yugabyte.yw.common.PlacementInfoUtilTest.testK8sGetConfigPerNamespace started
[info] Test run finished: 0 failed, 0 ignored, 50 total, 66.52s

As a result - before this change the whole duration of tests was ~700 sec, after the change - ~2000 sec (on Mac with Core i9).

sb-yb commented 3 years ago

This is probably due to a paranoia check I added when debugging play plugin. I removed that and the time was reduced by 75%. Will send a PR.