-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Java] Refactor integration tests (#845)
* refactor into jdk_compatibility_tests and perftests * lint code * add integration_tests readme * Fix headers * add logs integration_tests * add logs integration_tests * fxi groupId * remove java version * suppress maven download logs by --no-transfer-progress * suppress maven download logs by --no-transfer-progress * fix path * fix integration_tests
- Loading branch information
1 parent
6e53f9c
commit 9cd196f
Showing
26 changed files
with
107 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,5 @@ | ||
Module sued to proto/flatbuffers benchmark without pollute core codebase and serve as integration_tests to | ||
ensure java maven shade work and so on. | ||
# Protobuffers/Flatbuffers benchmark | ||
Generate code manually: | ||
```bash | ||
flatc -o src/main/java -j src/main/java/io/fury/integration_tests/state/bench.fbs | ||
protoc -I=src/main/java/io/fury/integration_tests/state --java_out=src/main/java/ bench.proto | ||
``` | ||
proto code can be generated by maven plugin. | ||
Flatbuffers generated is short, just add generated files to repo directly. | ||
Integration tests for fury: | ||
- [jdk_compatibility_tests](jdk_compatibility_tests): test fury compatibility across multiple jdk versions. | ||
- [perftests](perftests): benchmark with protobuf/flatbuffers directly. | ||
|
||
# Run tests | ||
```bash | ||
cd java && mvn -T10 install -DskipTests -Dcheckstyle.skip -Dlicense.skip -Dmaven.javadoc.skip && cd ../integration_tests | ||
mvn -T10 compile | ||
#mvn exec:java -Dexec.mainClass="io.fury.integration_tests.UserTypeSerializeSuite" -Dexec.args="-f 1 -wi 0 -i 1 -t 1 -w 1s -r 1s -rf csv" | ||
mvn exec:java -Dexec.mainClass="io.fury.integration_tests.UserTypeSerializeSuite" | ||
``` | ||
> Note that this integration_tests is not designed as a maven multi-module project on purpose, so we can introduce features of higher jdk version without breaking compilation for lower jdk, and add integration tests for other languages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2023 The Fury Authors | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>org.furyio</groupId> | ||
<artifactId>jdk_compatibility_tests</artifactId> | ||
<version>0.2.0-SNAPSHOT</version> | ||
|
||
<properties> | ||
<maven.compiler.source>8</maven.compiler.source> | ||
<maven.compiler.target>8</maven.compiler.target> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.furyio</groupId> | ||
<artifactId>fury-benchmark</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>com.diffplug.spotless</groupId> | ||
<artifactId>spotless-maven-plugin</artifactId> | ||
<version>2.5.0</version> | ||
<configuration> | ||
<java> | ||
<googleJavaFormat> | ||
<version>1.7</version> | ||
<style>GOOGLE</style> | ||
</googleJavaFormat> | ||
<excludes> | ||
<exclude>**/generated/*.java</exclude> | ||
</excludes> | ||
</java> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Module sued to proto/flatbuffers benchmark without pollute core codebase and serve as integration_tests to | ||
ensure java maven shade work and so on. | ||
# Protobuffers/Flatbuffers benchmark | ||
Generate code manually: | ||
```bash | ||
flatc -o src/main/java -j src/main/java/io/fury/integration_tests/state/bench.fbs | ||
protoc -I=src/main/java/io/fury/integration_tests/state --java_out=src/main/java/ bench.proto | ||
``` | ||
proto code can be generated by maven plugin. | ||
Flatbuffers generated is short, just add generated files to repo directly. | ||
|
||
# Run tests | ||
```bash | ||
cd java && mvn -T10 install -DskipTests -Dcheckstyle.skip -Dlicense.skip -Dmaven.javadoc.skip && cd ../integration_tests/perftests | ||
mvn -T10 compile | ||
#mvn exec:java -Dexec.mainClass="io.fury.integration_tests.UserTypeSerializeSuite" -Dexec.args="-f 1 -wi 0 -i 1 -t 1 -w 1s -r 1s -rf csv" | ||
mvn exec:java -Dexec.mainClass="io.fury.integration_tests.UserTypeSerializeSuite" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters