Skip to content

[chore] Release 9.11.0 Take 2 - #1246

Merged
lahirumaramba merged 3 commits into
mainfrom
fix-release-skip-its
Sep 24, 2026
Merged

lahirumaramba merged 3 commits into
mainfrom
fix-release-skip-its

Conversation

@lahirumaramba

@lahirumaramba lahirumaramba commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

[chore] Release 9.11.0 take 2

In #1244, maven-failsafe-plugin was upgraded to 3.6.0. In Failsafe 3.6.0, the parameter for skipTests was unbound from the CLI property skipTests. Consequently, passing only -DskipTests skipped unit tests (Surefire) but no longer skipped integration tests (Failsafe). Failsafe attempted to run all integration tests during deploy, failing because integration_cert.json is not present in the environment.

@lahirumaramba
lahirumaramba requested a review from a team September 24, 2026 22:20

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request introduces configurations to skip integration tests (skipITs) during releases and deployments. The review feedback points out several opportunities to clean up the changes by removing redundant configurations, such as the explicit skipITs flag in the publish script and the redundant configuration block in the maven-failsafe-plugin. Additionally, it is recommended to define a default value for skipTests in the POM properties to avoid unresolved property placeholders.

Comment thread .github/scripts/publish_artifacts.sh Outdated
mvn -B clean deploy \
-Dcheckstyle.skip \
-DskipTests \
-DskipITs \

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.

medium

The addition of -DskipITs is redundant here. Since -DskipTests is already passed, and pom.xml defines <skipITs>${skipTests}</skipITs>, skipITs will automatically be set to true. Furthermore, the release profile (activated via -Prelease) also explicitly sets <skipITs>true</skipITs>. You can safely remove this line to keep the script clean.

Comment thread pom.xml
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<skipUTs>${skipTests}</skipUTs>
<skipITs>${skipTests}</skipITs>

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.

medium

To avoid passing unresolved property placeholders (like ${skipTests}) when the skipTests property is not explicitly defined on the command line, it is recommended to define a default value for <skipTests> in the <properties> block.

Suggested change
<skipITs>${skipTests}</skipITs>
<skipTests>false</skipTests>
<skipITs>${skipTests}</skipITs>

Comment thread pom.xml Outdated
Comment on lines +338 to +340
<configuration>
<skipITs>${skipITs}</skipITs>
</configuration>

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.

medium

The <configuration> block explicitly setting <skipITs>${skipITs}</skipITs> is redundant because the maven-failsafe-plugin automatically binds its skipITs parameter to the skipITs system/Maven property by default. You can safely remove this configuration block to keep the POM file cleaner.

@lahirumaramba

Copy link
Copy Markdown
Member Author

/gemini review

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates the pom.xml file to introduce the skipTests and skipITs properties, defaulting skipTests to false and setting skipITs to inherit from skipTests. Additionally, it configures the release profile to skip integration tests by setting skipITs to true. There are no review comments to address, and I have no additional feedback to provide.

@lahirumaramba
lahirumaramba merged commit e79eafb into main Sep 24, 2026
17 checks passed
@lahirumaramba
lahirumaramba deleted the fix-release-skip-its branch September 24, 2026 22:37
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.

2 participants