MartijnVisser opened a new pull request, #128:
URL: https://github.com/apache/flink-benchmarks/pull/128
## Purpose of the change
Passing `-Dbenchmarks=<pattern>` alongside `-P test` or `-P test-java17`
also activates the `benchmark` / `benchmark-java17` profiles (which trigger on
the `benchmarks` property). Because all four profiles declare
`exec-maven-plugin` configuration at the plugin level, `benchmark` /
`benchmark-java17` overwrites the `test` / `test-java17` configuration,
dropping `-Xmx6g` and `-f 1 -i 1 -wi 0` in favor of full 3-fork / 20-iteration
runs (and leaking `<skip>${skipTests}</skip>` into `run-benchmarks`).
## Brief change log
- Move `exec-maven-plugin` `<configuration>` inside the `test-benchmarks`
execution with `combine.self="override"` in both `test` and `test-java17`
profiles in `pom.xml`, keeping plugin-level configuration in `benchmark` /
`benchmark-java17` intact for `mvn exec:exec` (`default-cli`).
- Replace the deprecated `${build.directory}` expression in
`profilerOutputDir` with `${project.build.directory}`.
## Verifying this change
- Inspected `mvn help:effective-pom` with `-P test-java17
-Dbenchmarks=org.apache.flink.benchmark.WatermarkAggregationBenchmark`, `-P
test -Dbenchmarks=org.apache.flink.benchmark.WatermarkAggregationBenchmark`,
and `-Dbenchmarks=org.apache.flink.benchmark.WatermarkAggregationBenchmark`
(Maven 3.8.6, Temurin JDK 17.0.20, macOS aarch64).
- Ran `mvn verify -P test-java17
-Dbenchmarks=org.apache.flink.benchmark.WatermarkAggregationBenchmark -B`:
passed in 31.2s with `Fork: 1 of 1`, `Warmup: <none>`, `Measurement: 1
iterations`, 0 Checkstyle/Spotless/RAT violations, and no `${build.directory}`
deprecation warning.
## Impact and documentation
Not applicable — no benchmark behavior or result comparability changes.
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes (please specify the tool below)
Generated-by: Antigravity (Gemini 4 Neon)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]