Skip to content

fix(ci): Restore qa module build in clients/java to fix migration test failures#2430

Merged
kthoms merged 2 commits into
mainfrom
copilot/fix-database-migration-tests
Feb 23, 2026
Merged

fix(ci): Restore qa module build in clients/java to fix migration test failures#2430
kthoms merged 2 commits into
mainfrom
copilot/fix-database-migration-tests

Conversation

Copilot AI commented Feb 20, 2026

Copy link
Copy Markdown
Contributor

Commit 1328399049 moved clients/java/qa into a distro profile to exclude it from snapshot deployments, but omitted activeByDefault=true. This caused a mismatch: clients/java/client's distro profile (which has activeByDefault=true) always declares a dependency on engine-variable-test, but the module providing it was never included in the reactor.

Changes

  • clients/java/pom.xml: Add activeByDefault=true to the distro profile so the qa module is included in all standard builds (including migration tests running with -PskipFrontendBuild).
  • clients/java/qa/pom.xml: Add maven.deploy.skip=true to prevent QA artifacts from being published to Maven Central — preserving the original intent of the Feb 15 refactor.

The snapshot deployment job already passes -Psonatype-oss-snapshot,-distro, which explicitly deactivates distro (overriding activeByDefault), so QA artifacts remain excluded from deployments.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • repository.jboss.org
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java -classpath /home/REDACTED/.m2/wrapper/dists/apache-maven-3.9.9/3477a4f1/boot/plexus-classworlds-2.8.0.jar -Dclassworlds.conf=/home/REDACTED/.m2/wrapper/dists/apache-maven-3.9.9/3477a4f1/bin/m2.conf -Dmaven.home=/home/REDACTED/.m2/wrapper/dists/apache-maven-3.9.9/3477a4f1 -Dlibrary.jansi.path=/home/REDACTED/.m2/wrapper/dists/apache-maven-3.9.9/3477a4f1/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/operaton/operaton org.codehaus.plexus.classworlds.launcher.Launcher help:active-profiles -pl clients/java -PskipFrontendBuild -q e.previous t/distro/pom.xml /home/REDACTED/.config/composer/vendor/bin/grep (dns block)
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java -classpath /home/REDACTED/.m2/wrapper/dists/apache-maven-3.9.9/3477a4f1/boot/plexus-classworlds-2.8.0.jar -Dclassworlds.conf=/home/REDACTED/.m2/wrapper/dists/apache-maven-3.9.9/3477a4f1/bin/m2.conf -Dmaven.home=/home/REDACTED/.m2/wrapper/dists/apache-maven-3.9.9/3477a4f1 -Dlibrary.jansi.path=/home/REDACTED/.m2/wrapper/dists/apache-maven-3.9.9/3477a4f1/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/operaton/operaton org.codehaus.plexus.classworlds.launcher.Launcher dependency:resolve -pl clients/java/qa/engine-variable-test -PskipFrontendBuild -q e.previous om.xml rgo/bin/grep aton 17/pom.xml ndor/bin/git grep (dns block)
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java -classpath /home/REDACTED/.m2/wrapper/dists/apache-maven-3.9.9/3477a4f1/boot/plexus-classworlds-2.8.0.jar -Dclassworlds.conf=/home/REDACTED/.m2/wrapper/dists/apache-maven-3.9.9/3477a4f1/bin/m2.conf -Dmaven.home=/home/REDACTED/.m2/wrapper/dists/apache-maven-3.9.9/3477a4f1 -Dlibrary.jansi.path=/home/REDACTED/.m2/wrapper/dists/apache-maven-3.9.9/3477a4f1/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/operaton/operaton org.codehaus.plexus.classworlds.launcher.Launcher validate -f clients/java/pom.xml -PskipFrontendBuild -l e.previous odules/webapps/pom.xml grep (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Database Migration Tests broken</issue_title>
<issue_description>What needs to be done?

The database migration tests are failing since Feb 16th (example build).

Error: 0,719 [ERROR] Failed to execute goal on project operaton-external-task-client: Could not resolve dependencies for project org.operaton.bpm:operaton-external-task-client:jar:1.1.0-SNAPSHOT
Error: 0,719 [ERROR] dependency: org.operaton.bpm.qa:engine-variable-test:jar:classes:1.1.0-SNAPSHOT (test)
Error: 0,719 [ERROR] 	Could not find artifact org.operaton.bpm.qa:engine-variable-test:jar:classes:1.1.0-SNAPSHOT in JBoss public (https://repository.jboss.org/nexus/content/groups/public/)
Error: 0,719 [ERROR] dependency: org.operaton.bpm.qa:engine-variable-test:war:1.1.0-SNAPSHOT (test)
Error: 0,719 [ERROR] 	Could not find artifact org.operaton.bpm.qa:engine-variable-test:war:1.1.0-SNAPSHOT in JBoss public (https://repository.jboss.org/nexus/content/groups/public/)
Error: 0,719 [ERROR] -> [Help 1]

Additional context

Log</issue_description>

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

… built

The database migration tests have been failing since Feb 16th because
commit 1328399 moved the `qa` module in `clients/java/pom.xml` into
a `distro` profile without adding `activeByDefault=true`.

Root cause:
- `clients/java/pom.xml`'s `distro` profile lacked `activeByDefault=true`,
  so the `qa` module (providing `engine-variable-test`) was never included
  in the build reactor.
- `clients/java/client/pom.xml`'s `distro` profile HAS `activeByDefault=true`,
  so it always declared a dependency on `engine-variable-test`, causing a
  dependency resolution error.

Fix:
- Added `activeByDefault=true` to the `distro` profile in `clients/java/pom.xml`
  so `qa` is included in normal and migration test builds.
- Added `maven.deploy.skip=true` to `clients/java/qa/pom.xml` to prevent
  QA artifacts from being deployed to Maven Central (preserving the original
  intent of excluding QA from snapshot deployments).

The snapshot deployment workflow already uses `-Psonatype-oss-snapshot,-distro`
which explicitly deactivates `distro`, so QA modules remain excluded from
snapshot deployments.

Fixes #2421

Co-authored-by: kthoms <265597+kthoms@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix broken database migration tests fix(ci): Restore qa module build in clients/java to fix migration test failures Feb 20, 2026
Copilot AI requested a review from kthoms February 20, 2026 18:28
@sonarqubecloud

Copy link
Copy Markdown

@kthoms kthoms marked this pull request as ready for review February 23, 2026 04:44
Copilot AI review requested due to automatic review settings February 23, 2026 04:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Restores the clients/java/qa module to the default Maven reactor build so that migration/database upgrade tests can resolve engine-variable-test from the local reactor again, while still preventing QA artifacts from being deployed.

Changes:

  • Activate the clients/java distro profile by default so the qa module is built in standard builds.
  • Set maven.deploy.skip=true for clients/java/qa to avoid publishing QA artifacts during mvn deploy.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
clients/java/pom.xml Activates the distro profile by default to include the qa module in normal reactor builds.
clients/java/qa/pom.xml Skips deployment of QA artifacts to preserve the intent of excluding them from snapshot/publication workflows.

@kthoms kthoms merged commit 318f365 into main Feb 23, 2026
22 checks passed
@kthoms kthoms deleted the copilot/fix-database-migration-tests branch February 23, 2026 04:51
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.

Database Migration Tests broken

3 participants