diff --git a/.github/workflows/core-ci.yml b/.github/workflows/core-ci.yml index 04c9f279d1..16a2ed519e 100644 --- a/.github/workflows/core-ci.yml +++ b/.github/workflows/core-ci.yml @@ -47,11 +47,16 @@ jobs: distribution: 'temurin' cache: maven + - name: Build all module with Maven - run: mvn clean install -pl '!trino' + run: mvn clean install -pl '!trino' -B -X + + - name: debug jacoco EOF problems + if: ${{ always() }} + run: ls -lha /home/runner/work/arctic/arctic/flink/v1.12/flink/target/jacoco.exec - name: Code coverage uses: codecov/codecov-action@v3 with: verbose: true - flags: core \ No newline at end of file + flags: core diff --git a/.github/workflows/trino-ci.yml b/.github/workflows/trino-ci.yml index a50f46b960..d6af2467c5 100644 --- a/.github/workflows/trino-ci.yml +++ b/.github/workflows/trino-ci.yml @@ -46,11 +46,14 @@ jobs: distribution: 'temurin' cache: maven + - name: Run code checkstyle + run: mvn validate + - name: Install dependency with Maven - run: mvn clean install -DskipTests -pl 'ams/ams-api,core,hive' -am + run: mvn clean install -DskipTests -Dcheckstyle.skip=true -pl 'ams/ams-api,core,hive' -am - name: Build with Maven - run: mvn clean test -pl 'trino' + run: mvn clean test -pl 'trino' -Dcheckstyle.skip=true - name: Code coverage uses: codecov/codecov-action@v3 diff --git a/flink/v1.12/flink/src/test/java/com/netease/arctic/flink/FlinkTestBase.java b/flink/v1.12/flink/src/test/java/com/netease/arctic/flink/FlinkTestBase.java index 0439a57610..eaac96c367 100644 --- a/flink/v1.12/flink/src/test/java/com/netease/arctic/flink/FlinkTestBase.java +++ b/flink/v1.12/flink/src/test/java/com/netease/arctic/flink/FlinkTestBase.java @@ -317,13 +317,15 @@ protected static void commit(KeyedTable keyedTable, WriteResult result, boolean } } - protected static TaskWriter createKeyedTaskWriter(KeyedTable keyedTable, RowType rowType, - boolean base) { + protected static TaskWriter createKeyedTaskWriter( + KeyedTable keyedTable, RowType rowType, + boolean base) { return createKeyedTaskWriter(keyedTable, rowType, base, 3); } - protected static TaskWriter createKeyedTaskWriter(KeyedTable keyedTable, RowType rowType, - boolean base, long mask) { + protected static TaskWriter createKeyedTaskWriter( + KeyedTable keyedTable, RowType rowType, + boolean base, long mask) { ArcticRowDataTaskWriterFactory taskWriterFactory = new ArcticRowDataTaskWriterFactory(keyedTable, rowType, base); taskWriterFactory.setMask(mask); @@ -331,4 +333,18 @@ protected static TaskWriter createKeyedTaskWriter(KeyedTable keyedTable return taskWriterFactory.create(); } + static { + Runtime.getRuntime().addShutdownHook(new Thread() { + @Override + public synchronized void start() { + LOG.info("JACOCO SHUTDOWN HOOK START"); + super.start(); + } + + @Override + public void run() { + LOG.info("JACOCO SHUTDOWN HOOK RUN"); + } + }); + } } diff --git a/pom.xml b/pom.xml index 7808ddb620..e0a8c3d09f 100644 --- a/pom.xml +++ b/pom.xml @@ -78,7 +78,7 @@ 3.2.4 4.3.0 4.3 - 3.0.0-M7 + 3.0.0 3.8.1 3.3.0 3.0.0 @@ -522,23 +522,23 @@ .scalafmt.conf - - - pom.xml - - - ${project.build.sourceEncoding} - true - true - 4 - - + + + pom.xml + + + ${project.build.sourceEncoding} + true + true + 4 + + - check + check