Skip to content

Fix ci-benchmarks.yml: activate perf-tests profile - #6641

Merged
line-o merged 1 commit into
eXist-db:developfrom
duncdrum:fix/jmh-benchmarks-perf-tests-profile
Aug 17, 2026
Merged

Fix ci-benchmarks.yml: activate perf-tests profile#6641
line-o merged 1 commit into
eXist-db:developfrom
duncdrum:fix/jmh-benchmarks-perf-tests-profile

Conversation

@duncdrum

Copy link
Copy Markdown
Contributor

Summary

Every run of the JMH Benchmarks workflow (added in #6608) has failed since merge — all three runs (2 scheduled, 1 manual dispatch) fail identically at the first build step:

[ERROR] Could not find the selected project in the reactor: exist-core-jmh

exist-core-jmh / exist-indexes-jmh are gated behind the perf-tests Maven profile in the root pom.xml, not part of the default reactor — mvn -pl <module> can't find them without -Pperf-tests active.

Fix

Add -Pperf-tests to all three mvn -pl invocations that select these modules: both install -am build steps, and the exec:exec step for exist-indexes-jmh. The java -jar step for exist-core-jmh needs no change — it runs the already-built jar directly, no reactor lookup involved.

Test plan

  • mvn install -Pperf-tests -pl exist-core-jmh -am -DskipTests — builds clean
  • mvn install -Pperf-tests -pl exist-indexes-jmh -am -DskipTests — builds clean
  • mvn exec:exec -Pperf-tests -pl exist-indexes-jmh -Dbenchmark.args="RangeEqWhereClauseBenchmark -wi 1 -i 1 -f 1 -w 3s -r 3s -p termCount=5" — runs end to end
  • Live workflow_dispatch run pending after merge

🤖 Generated with Claude Code

exist-core-jmh and exist-indexes-jmh are gated behind the perf-tests
Maven profile in the root pom.xml, not part of the default reactor. Every
run of the JMH Benchmarks workflow (eXist-db#6608) has failed since it merged,
all three runs erroring identically at the first build step:

  [ERROR] Could not find the selected project in the reactor: exist-core-jmh

Add -Pperf-tests to all three mvn invocations that select these modules
via -pl (both `install -am` build steps, and the `exec:exec` step for
exist-indexes-jmh). The `java -jar` step for exist-core-jmh needs no
change - it invokes the already-built jar directly, no reactor lookup.

Verified locally: `mvn install -Pperf-tests -pl exist-core-jmh -am` and
`-pl exist-indexes-jmh -am` both build clean; `mvn exec:exec -Pperf-tests
-pl exist-indexes-jmh -Dbenchmark.args="RangeEqWhereClauseBenchmark ..."`
runs end to end.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@duncdrum
duncdrum requested a review from a team as a code owner August 17, 2026 11:55
@dizzzz
dizzzz requested review from a team, line-o and reinhapa August 17, 2026 17:15
@line-o
line-o merged commit 225680c into eXist-db:develop Aug 17, 2026
9 checks passed
@duncdrum
duncdrum deleted the fix/jmh-benchmarks-perf-tests-profile branch August 19, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants