Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions .github/workflows/daily-it.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ protected static void awaitUntilSuccess(
AtomicReference<SyncConfigNodeIServiceClient> clientRef = new AtomicReference<>(client);
try {
Awaitility.await()
.atMost(2, TimeUnit.MINUTES)
.atMost(4, TimeUnit.MINUTES)
.pollDelay(2, TimeUnit.SECONDS)
.until(
() -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -54,7 +55,7 @@ public void setUp() throws Exception {
.setDataRegionConsensusProtocolClass(ConsensusFactory.IOT_CONSENSUS);
}

// @Test
@Test
public void coordinatorCrashDuringAddPeerTransition() throws Exception {
failTest(
2,
Expand All @@ -66,7 +67,7 @@ public void coordinatorCrashDuringAddPeerTransition() throws Exception {
KillNode.COORDINATOR_DATANODE);
}

// @Test
@Test
public void coordinatorCrashDuringAddPeerDone() throws Exception {
failTest(
2,
Expand All @@ -82,7 +83,7 @@ public void coordinatorCrashDuringAddPeerDone() throws Exception {

// region Original DataNode crash tests

// @Test
@Test
public void originalCrashDuringAddPeerDone() throws Exception {
failTest(
2,
Expand All @@ -98,7 +99,7 @@ public void originalCrashDuringAddPeerDone() throws Exception {

// region Destination DataNode crash tests

// @Test
@Test
public void destinationCrashDuringCreateLocalPeer() throws Exception {
failTest(
2,
Expand All @@ -110,7 +111,7 @@ public void destinationCrashDuringCreateLocalPeer() throws Exception {
KillNode.DESTINATION_DATANODE);
}

// @Test
@Test
public void destinationCrashDuringAddPeerTransition() throws Exception {
failTest(
2,
Expand All @@ -122,7 +123,7 @@ public void destinationCrashDuringAddPeerTransition() throws Exception {
KillNode.DESTINATION_DATANODE);
}

// @Test
@Test
public void destinationCrashDuringAddPeerDone() throws Exception {
failTest(
2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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,
Expand All @@ -53,7 +54,7 @@ public void coordinatorCrashDuringAddPeerTransition() throws Exception {
KillNode.COORDINATOR_DATANODE);
}

// @Test
@Test
public void coordinatorCrashDuringAddPeerDone() throws Exception {
failTest(
2,
Expand All @@ -69,7 +70,7 @@ public void coordinatorCrashDuringAddPeerDone() throws Exception {

// region Original DataNode crash tests

// @Test
@Test
public void originalCrashDuringAddPeerDone() throws Exception {
failTest(
2,
Expand All @@ -85,7 +86,7 @@ public void originalCrashDuringAddPeerDone() throws Exception {

// region Destination DataNode crash tests

// @Test
@Test
public void destinationCrashDuringCreateLocalPeer() throws Exception {
failTest(
2,
Expand All @@ -97,7 +98,7 @@ public void destinationCrashDuringCreateLocalPeer() throws Exception {
KillNode.DESTINATION_DATANODE);
}

// @Test
@Test
public void destinationCrashDuringAddPeerDone() throws Exception {
failTest(
2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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,
Expand All @@ -66,7 +67,7 @@ public void coordinatorCrashDuringAddPeerTransition() throws Exception {
KillNode.COORDINATOR_DATANODE);
}

// @Test
@Test
public void coordinatorCrashDuringAddPeerDone() throws Exception {
failTest(
2,
Expand All @@ -82,7 +83,7 @@ public void coordinatorCrashDuringAddPeerDone() throws Exception {

// region Original DataNode crash tests

// @Test
@Test
public void originalCrashDuringAddPeerDone() throws Exception {
failTest(
2,
Expand All @@ -98,7 +99,7 @@ public void originalCrashDuringAddPeerDone() throws Exception {

// region Destination DataNode crash tests

// @Test
@Test
public void destinationCrashDuringCreateLocalPeer() throws Exception {
failTest(
2,
Expand All @@ -110,7 +111,7 @@ public void destinationCrashDuringCreateLocalPeer() throws Exception {
KillNode.DESTINATION_DATANODE);
}

// @Test
@Test
public void destinationCrashDuringAddPeerDone() throws Exception {
failTest(
2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -56,7 +55,6 @@ public void setUp() throws Exception {
}

@Test
@Ignore
public void cnCrashDuringPreCheckTest() throws Exception {
successTest(
1,
Expand Down
Loading