diff --git a/.github/workflows/daily-it.yml b/.github/workflows/daily-it.yml index 03e2ae93b1f8b..a7038d6f15997 100644 --- a/.github/workflows/daily-it.yml +++ b/.github/workflows/daily-it.yml @@ -1,9 +1,24 @@ name: Daily IT on: - schedule: - # Run at UTC 19:00 every day (CST 03:00 AM) - - cron: "0 19 * * *" + push: + branches: + - master + - "rel/*" + - "rc/*" + paths-ignore: + - "docs/**" + - "site/**" + pull_request: + branches: + - master + - "rel/*" + - "rc/*" + paths-ignore: + - "docs/**" + - "site/**" + # allow manually run the action: + workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/IoTDBRegionOperationReliabilityITFramework.java b/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/IoTDBRegionOperationReliabilityITFramework.java index 8e2a954dc91ce..fb31828a794a9 100644 --- a/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/IoTDBRegionOperationReliabilityITFramework.java +++ b/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/IoTDBRegionOperationReliabilityITFramework.java @@ -580,7 +580,7 @@ protected static void awaitUntilSuccess( AtomicReference clientRef = new AtomicReference<>(client); try { Awaitility.await() - .atMost(2, TimeUnit.MINUTES) + .atMost(4, TimeUnit.MINUTES) .pollDelay(2, TimeUnit.SECONDS) .until( () -> { diff --git a/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/datanodecrash/iotv1/IoTDBRegionMigrateDataNodeCrashForIoTV1IT.java b/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/datanodecrash/iotv1/IoTDBRegionMigrateDataNodeCrashForIoTV1IT.java index f31e8f27dba14..f70008e99e286 100644 --- a/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/datanodecrash/iotv1/IoTDBRegionMigrateDataNodeCrashForIoTV1IT.java +++ b/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/datanodecrash/iotv1/IoTDBRegionMigrateDataNodeCrashForIoTV1IT.java @@ -28,6 +28,7 @@ import org.apache.iotdb.itbase.category.DailyIT; import org.junit.Before; +import org.junit.Test; import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; @@ -54,7 +55,7 @@ public void setUp() throws Exception { .setDataRegionConsensusProtocolClass(ConsensusFactory.IOT_CONSENSUS); } - // @Test + @Test public void coordinatorCrashDuringAddPeerTransition() throws Exception { failTest( 2, @@ -66,7 +67,7 @@ public void coordinatorCrashDuringAddPeerTransition() throws Exception { KillNode.COORDINATOR_DATANODE); } - // @Test + @Test public void coordinatorCrashDuringAddPeerDone() throws Exception { failTest( 2, @@ -82,7 +83,7 @@ public void coordinatorCrashDuringAddPeerDone() throws Exception { // region Original DataNode crash tests - // @Test + @Test public void originalCrashDuringAddPeerDone() throws Exception { failTest( 2, @@ -98,7 +99,7 @@ public void originalCrashDuringAddPeerDone() throws Exception { // region Destination DataNode crash tests - // @Test + @Test public void destinationCrashDuringCreateLocalPeer() throws Exception { failTest( 2, @@ -110,7 +111,7 @@ public void destinationCrashDuringCreateLocalPeer() throws Exception { KillNode.DESTINATION_DATANODE); } - // @Test + @Test public void destinationCrashDuringAddPeerTransition() throws Exception { failTest( 2, @@ -122,7 +123,7 @@ public void destinationCrashDuringAddPeerTransition() throws Exception { KillNode.DESTINATION_DATANODE); } - // @Test + @Test public void destinationCrashDuringAddPeerDone() throws Exception { failTest( 2, diff --git a/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/datanodecrash/iotv2/batch/IoTDBRegionMigrateDataNodeCrashForIoTV2BatchIT.java b/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/datanodecrash/iotv2/batch/IoTDBRegionMigrateDataNodeCrashForIoTV2BatchIT.java index ad9738144981e..79a5ee3186cd5 100644 --- a/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/datanodecrash/iotv2/batch/IoTDBRegionMigrateDataNodeCrashForIoTV2BatchIT.java +++ b/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/datanodecrash/iotv2/batch/IoTDBRegionMigrateDataNodeCrashForIoTV2BatchIT.java @@ -25,6 +25,7 @@ import org.apache.iotdb.it.framework.IoTDBTestRunner; import org.apache.iotdb.itbase.category.DailyIT; +import org.junit.Test; import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; @@ -41,7 +42,7 @@ public class IoTDBRegionMigrateDataNodeCrashForIoTV2BatchIT private final int configNodeNum = 1; private final int dataNodeNum = 3; - // @Test + @Test public void coordinatorCrashDuringAddPeerTransition() throws Exception { failTest( 2, @@ -53,7 +54,7 @@ public void coordinatorCrashDuringAddPeerTransition() throws Exception { KillNode.COORDINATOR_DATANODE); } - // @Test + @Test public void coordinatorCrashDuringAddPeerDone() throws Exception { failTest( 2, @@ -69,7 +70,7 @@ public void coordinatorCrashDuringAddPeerDone() throws Exception { // region Original DataNode crash tests - // @Test + @Test public void originalCrashDuringAddPeerDone() throws Exception { failTest( 2, @@ -85,7 +86,7 @@ public void originalCrashDuringAddPeerDone() throws Exception { // region Destination DataNode crash tests - // @Test + @Test public void destinationCrashDuringCreateLocalPeer() throws Exception { failTest( 2, @@ -97,7 +98,7 @@ public void destinationCrashDuringCreateLocalPeer() throws Exception { KillNode.DESTINATION_DATANODE); } - // @Test + @Test public void destinationCrashDuringAddPeerDone() throws Exception { failTest( 2, diff --git a/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/datanodecrash/iotv2/stream/IoTDBRegionMigrateDataNodeCrashForIoTV2StreamIT.java b/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/datanodecrash/iotv2/stream/IoTDBRegionMigrateDataNodeCrashForIoTV2StreamIT.java index eeca6dacc1998..f16d31bfb7219 100644 --- a/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/datanodecrash/iotv2/stream/IoTDBRegionMigrateDataNodeCrashForIoTV2StreamIT.java +++ b/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/datanodecrash/iotv2/stream/IoTDBRegionMigrateDataNodeCrashForIoTV2StreamIT.java @@ -28,6 +28,7 @@ import org.apache.iotdb.itbase.category.DailyIT; import org.junit.Before; +import org.junit.Test; import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; @@ -54,7 +55,7 @@ public void setUp() throws Exception { .setIoTConsensusV2Mode(ConsensusFactory.IOT_CONSENSUS_V2_STREAM_MODE); } - // @Test + @Test public void coordinatorCrashDuringAddPeerTransition() throws Exception { failTest( 2, @@ -66,7 +67,7 @@ public void coordinatorCrashDuringAddPeerTransition() throws Exception { KillNode.COORDINATOR_DATANODE); } - // @Test + @Test public void coordinatorCrashDuringAddPeerDone() throws Exception { failTest( 2, @@ -82,7 +83,7 @@ public void coordinatorCrashDuringAddPeerDone() throws Exception { // region Original DataNode crash tests - // @Test + @Test public void originalCrashDuringAddPeerDone() throws Exception { failTest( 2, @@ -98,7 +99,7 @@ public void originalCrashDuringAddPeerDone() throws Exception { // region Destination DataNode crash tests - // @Test + @Test public void destinationCrashDuringCreateLocalPeer() throws Exception { failTest( 2, @@ -110,7 +111,7 @@ public void destinationCrashDuringCreateLocalPeer() throws Exception { KillNode.DESTINATION_DATANODE); } - // @Test + @Test public void destinationCrashDuringAddPeerDone() throws Exception { failTest( 2, diff --git a/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/iotv1/IoTDBRegionMigrateClusterCrashIoTV1IT.java b/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/iotv1/IoTDBRegionMigrateClusterCrashIoTV1IT.java index e914483fa38bf..544c4b568170d 100644 --- a/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/iotv1/IoTDBRegionMigrateClusterCrashIoTV1IT.java +++ b/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/iotv1/IoTDBRegionMigrateClusterCrashIoTV1IT.java @@ -72,8 +72,7 @@ public void clusterCrash6() throws Exception { killClusterTest(buildSet(RemoveRegionPeerState.REMOVE_REGION_PEER), true); } - // TODO: @Yongzao Dan, reopen this CI after discussion with @HxpSerein - // @Test + @Test public void clusterCrash7() throws Exception { killClusterTest(buildSet(RemoveRegionPeerState.DELETE_OLD_REGION_PEER), true); } diff --git a/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/iotv1/IoTDBRegionMigrateConfigNodeCrashIoTV1IT.java b/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/iotv1/IoTDBRegionMigrateConfigNodeCrashIoTV1IT.java index ebda0c36ee327..5ae9241aea714 100644 --- a/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/iotv1/IoTDBRegionMigrateConfigNodeCrashIoTV1IT.java +++ b/integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/iotv1/IoTDBRegionMigrateConfigNodeCrashIoTV1IT.java @@ -31,7 +31,6 @@ import org.apache.iotdb.itbase.category.DailyIT; import org.junit.Before; -import org.junit.Ignore; import org.junit.Test; import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; @@ -56,7 +55,6 @@ public void setUp() throws Exception { } @Test - @Ignore public void cnCrashDuringPreCheckTest() throws Exception { successTest( 1,