Skip to content

[Port] fix(migration): honor skipTests property#4700

Merged
smcvb merged 1 commit into
mainfrom
port-pr-4631-to-main
Jun 30, 2026
Merged

[Port] fix(migration): honor skipTests property#4700
smcvb merged 1 commit into
mainfrom
port-pr-4631-to-main

Conversation

@MateuszNaKodach

Copy link
Copy Markdown
Contributor

Problem

The migration module binds surefire's skipTests to the dedicated skipAf4RecipeTests flag:

<skipTests>${skipAf4RecipeTests}</skipTests>

Because skipAf4RecipeTests had no default, a plain -DskipTests (or the IntelliJ "Skip Tests" toggle, which passes -DskipTests) had no effect on this module -- the AF4 recipe tests kept running while every other module's tests were skipped.

Change

Default skipAf4RecipeTests to ${skipTests} so the standard flag also skips these tests, while keeping -DskipAf4RecipeTests=true as a dedicated switch to skip only these tests (and the AF4 stub download).

Behavior

Invocation migration recipe tests other modules
normal build run run
-DskipTests=true / IDE "Skip Tests" skipped skipped
-DskipAf4RecipeTests=true skipped run
release (-DskipAf4RecipeTests=true) skipped run

The release path is unchanged: it passes -DskipAf4RecipeTests=true explicitly (which overrides the new default), so it still skips only the migration tests, not the whole build.

When skipTests is unset, ${skipTests} stays an unresolved literal and parses as false, so the default of running tests is preserved.

Note

This ports #4631 (originally merged to axon-5.1.x) onto main. The rewrite-recipe-bom.version conflict during cherry-pick was resolved in favor of main's current 3.33.0.

The migration module bound surefire's skipTests to the dedicated
`skipAf4RecipeTests` flag, so a plain `-DskipTests` (or the IDE "Skip
Tests" toggle) left these tests running while every other module skipped.

Default `skipAf4RecipeTests` to `${skipTests}` so the standard flag also
skips them, while keeping `-DskipAf4RecipeTests=true` as a dedicated
switch the release build uses to skip only these tests (and the AF4 stub
download) without skipping the rest of the build's tests.
@MateuszNaKodach MateuszNaKodach requested a review from a team as a code owner June 30, 2026 14:35
@MateuszNaKodach MateuszNaKodach requested review from hatzlj, laura-devriendt-lemon and zambrovski and removed request for a team June 30, 2026 14:35
@MateuszNaKodach MateuszNaKodach changed the title fix(migration): honor skipTests property [Port] fix(migration): honor skipTests property Jun 30, 2026
@MateuszNaKodach MateuszNaKodach self-assigned this Jun 30, 2026
@MateuszNaKodach MateuszNaKodach added Priority 1: Must Highest priority. A release cannot be made if this issue isn’t resolved. Type: Enhancement Use to signal an issue enhances an already existing feature of the project. Priority 2: Should High priority. Ideally, these issues are part of the release they’re assigned to. labels Jun 30, 2026
@MateuszNaKodach MateuszNaKodach added this to the Release 5.2.0 milestone Jun 30, 2026
@smcvb smcvb added Type: Port Use to refer to an issue or pull request that ports logic from one branch to another. and removed Priority 1: Must Highest priority. A release cannot be made if this issue isn’t resolved. labels Jun 30, 2026

@smcvb smcvb 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.

Looks good to me 👍

@smcvb smcvb merged commit 7f39ca7 into main Jun 30, 2026
9 of 11 checks passed
@smcvb smcvb deleted the port-pr-4631-to-main branch June 30, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority 2: Should High priority. Ideally, these issues are part of the release they’re assigned to. Type: Enhancement Use to signal an issue enhances an already existing feature of the project. Type: Port Use to refer to an issue or pull request that ports logic from one branch to another.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants