Skip to content

Commit

Permalink
Always build fuzz and jmh modules
Browse files Browse the repository at this point in the history
  • Loading branch information
electrum committed Aug 26, 2024
1 parent 88b8da3 commit 9ab2185
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 29 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,9 @@ jobs:
java-version: '${{ matrix.version }}'
cache: maven
- name: Check Style
run: mvn -B spotless:check -Pbenchmarks -Pfuzz
run: mvn -B spotless:check
- name: Test Java
run: mvn -B clean install
- name: Verify that nightly fuzz compiles
run: mvn -B test -DskipTests -Pfuzz -pl fuzz

readme-ci:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
# Build everything
mvn -B install -DskipTests
# Run only the fuzz tests
mvn -B clean verify -Pfuzz -pl fuzz -Dfuzz.test.numeric=10 -Dfuzz.test.table=10
mvn -B clean verify -pl fuzz -DskipTests=false -Dfuzz.test.numeric=10 -Dfuzz.test.table=10
- name: Create Pull Request with the crash repro
uses: peter-evans/create-pull-request@v6
Expand Down
4 changes: 0 additions & 4 deletions fuzz/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,3 @@ export CHICORY_FUZZ_TYPES=numeric,table
mvn install -Pfuzz -pl fuzz -Dtest="com.dylibso.chicory.fuzz.SingleReproTest#singleReproducer"
```

## Import in IntelliJ

Right click on `/fuzz/pom.xml` -> "Add as a Maven Project"
7 changes: 7 additions & 0 deletions fuzz/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
<name>Chicory - Fuzz</name>
<description>Fuzzying Chicory</description>

<properties>
<skipTests>true</skipTests>

<fuzz.test.numeric>10</fuzz.test.numeric>
<fuzz.test.table>10</fuzz.test.table>
</properties>

<dependencies>
<dependency>
<groupId>com.dylibso.chicory</groupId>
Expand Down
6 changes: 3 additions & 3 deletions jmh/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
<artifactId>runtime</artifactId>
</dependency>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-core</artifactId>
<groupId>com.dylibso.chicory</groupId>
<artifactId>wasm</artifactId>
</dependency>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-generator-annprocess</artifactId>
<artifactId>jmh-core</artifactId>
</dependency>
</dependencies>

Expand Down
18 changes: 2 additions & 16 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
<module>aot</module>
<module>bom</module>
<module>cli</module>
<module>fuzz</module>
<module>jmh</module>
<module>log</module>
<module>runtime</module>
<module>runtime-tests</module>
Expand Down Expand Up @@ -651,16 +653,6 @@
</build>
</profile>

<profile>
<id>fuzz</id>
<modules>
<module>fuzz</module>
</modules>
<properties>
<fuzz.test.numeric>10</fuzz.test.numeric>
<fuzz.test.table>10</fuzz.test.table>
</properties>
</profile>
<profile>
<id>release</id>
<distributionManagement>
Expand Down Expand Up @@ -704,11 +696,5 @@
</plugins>
</build>
</profile>
<profile>
<id>benchmarks</id>
<modules>
<module>jmh</module>
</modules>
</profile>
</profiles>
</project>
2 changes: 1 addition & 1 deletion scripts/build-jmh-main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "${SCRIPT_DIR}/.."
rm -rf main
git clone --depth 1 --branch main https://github.com/dylibso/chicory.git main
mvn -Dquickly -Pbenchmarks
mvn -Dquickly
)
2 changes: 1 addition & 1 deletion scripts/build-jmh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

(
cd "${SCRIPT_DIR}/.."
mvn -Dquickly -Pbenchmarks
mvn -Dquickly
)

0 comments on commit 9ab2185

Please sign in to comment.