Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.x: various fixes for validate workflow #5214

Merged
merged 6 commits into from
Oct 19, 2022

Conversation

barchetta
Copy link
Member

@barchetta barchetta commented Oct 18, 2022

When GitHub released https://github.com/actions/setup-java/releases/tag/v3.6.0 our build broke in the PR validator workflow. Why? Because that release added support for toolchains, and our toolchain profile autoactivated which triggered an obscure issue with Java 19 generate module files because of on old version of ASM.

This PR addresses the asm issue and makes a few changes so that our validation builds are reproducible. Specifically:

  1. Locks runner version to ubuntu-20.04 (instead of latest)
  2. Locks setup-java action to 3.6.0 instead of latest v3
  3. Upgrades asm to 9.4 in compile, javadoc and surefire plugins
  4. Turns off activation of toolchain profile on existence of ${user.home}/.m2/toolchains.xml

Thanks to @romain-grecourt for these changes.

@barchetta barchetta added build 4.x Version 4.x labels Oct 18, 2022
@barchetta barchetta self-assigned this Oct 18, 2022
pom.xml Outdated Show resolved Hide resolved
ljnelson
ljnelson previously approved these changes Oct 18, 2022
Pin workflow versions:
 - runner to ubuntu-20.04 instead of unbuntu-latest
 - actions/setup-java@v3.6.0 instead of actions/setup-java@v3

Force ASM 9.4 in maven-compiler-plugin, maven-surefire-plugin, maven-javadoc-plugin

Re-use the version.lib.asm property as we need to maintain that ; hard-code the previous use of the version.lib.asm in the maven-shade-plugin
Remove the toolchain profile activation to normalize the environment (most developers are not using it)
Copy link
Member

@ljnelson ljnelson left a comment

Choose a reason for hiding this comment

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

LGTM

@barchetta barchetta changed the title 4.x: Force upgrade of asm for maven-compiler-plugin 4.x: various fixes for validate workflow Oct 19, 2022
@romain-grecourt romain-grecourt merged commit f359a50 into helidon-io:main Oct 19, 2022
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 19, 2022
@barchetta barchetta deleted the 4.x-manage-asm-for-plugins branch December 7, 2022 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Version 4.x build OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants