Skip to content

NIFI-10224 Move Static Analysis to Separate Workflow Job#6202

Closed
exceptionfactory wants to merge 1 commit intoapache:mainfrom
exceptionfactory:NIFI-10224
Closed

NIFI-10224 Move Static Analysis to Separate Workflow Job#6202
exceptionfactory wants to merge 1 commit intoapache:mainfrom
exceptionfactory:NIFI-10224

Conversation

@exceptionfactory
Copy link
Copy Markdown
Contributor

Summary

NIFI-10224 Moves Maven Checkstyle Plugin and Apache Rat Plugin execution to a separate Static Analysis job in the GitHub continuous integration workflow. This strategy avoids running static analysis in multiple build jobs and also makes it easier to distinguish between different types of workflow failures.

Additional updates include upgrading multiple GitHub Actions from Version 2 to 3 and replacing a separate Maven cache step with Maven caching integrated with the Setup Java Action. Changes also include replacing AdoptOpenJDK with Eclipse Temurin, which is the supported successor to AdoptOpenJDK.

Maven configuration changes include removing an unnecessary duplication contrib-check profile definition in the nifi-registry module and changing the Maven phase from verify to validate for the Checkstyle and Rat Plugins.

Tracking

Please complete the following tracking steps prior to pull request creation.

Issue Tracking

Pull Request Tracking

  • Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
  • Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

  • Pull Request based on current revision of the main branch
  • Pull Request refers to a feature branch with one commit containing changes

Verification

Please indicate the verification steps performed prior to pull request creation.

Build

  • Build completed using mvn clean install -P contrib-check
    • JDK 8
    • JDK 11
    • JDK 17

Licensing

  • New dependencies are compatible with the Apache License 2.0 according to the License Policy
  • New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

  • Documentation formatting appears as expected in rendered files

- Upgraded multiple GitHub Actions from Version 2 to 3
- Replaced Maven Cache step with cache feature in Setup Java Action
- Moved checkstyle and license checks from verify to validate phase in Maven execution
- Removed unnecessary contrib-check profile from nifi-registry
@greyp9 greyp9 self-requested a review July 14, 2022 19:19
Copy link
Copy Markdown
Contributor

@greyp9 greyp9 left a comment

Choose a reason for hiding this comment

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

This all looks great, @exceptionfactory! Nice that the project will now leverage the built-in dependency caching.

@greyp9 greyp9 closed this in eb91eb1 Jul 18, 2022
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