Skip to content

ci: add PR workflows, pre-commit, release updates, and build fixes - #35

Open
Saul-STFC wants to merge 3 commits into
stackabletech:mainfrom
Saul-STFC:ci-cd-testing
Open

ci: add PR workflows, pre-commit, release updates, and build fixes#35
Saul-STFC wants to merge 3 commits into
stackabletech:mainfrom
Saul-STFC:ci-cd-testing

Conversation

@Saul-STFC

Copy link
Copy Markdown
Contributor

This PR introduces foundational CI/CD pipelines and code quality tooling for our Java repositories. Once merged, this standard setup can serve as a template to bereplicated across our other Java repos.

Changes:

• Added automated PR checks (pr_build.yaml, pr_prek.yaml) to build and validate code on every pull request.
• Pinned GitHub Action hashes and converted simpler steps to native GitHub commands where actions were unnecessary.
• Configured .pre-commit-config.yaml with rules for yamllint and markdownlint to enforce formatting (mirroring other repos)
• Applied the new linting rules across the existing codebase
• Added a maven wrapper (mvnw) and its associated wrapper files to guarantee a consistent Maven version across all development and CI environments.
• Removed unused dummy tests (AppTest.java) and redundant files.

@Techassi
Techassi self-requested a review August 4, 2026 20:47
@Techassi Techassi moved this to Development: In Review in Stackable Engineering Aug 4, 2026
@Saul-STFC

Copy link
Copy Markdown
Contributor Author

@Techassi @NickLarsenNZ

@NickLarsenNZ

Copy link
Copy Markdown
Member

Thanks.

Does this supersede #33?

@Techassi Techassi moved this from Development: In Review to Development: Done in Stackable Engineering Aug 5, 2026
@Techassi Techassi moved this from Development: Done to Development: In Review in Stackable Engineering Aug 5, 2026
@Saul-STFC

Copy link
Copy Markdown
Contributor Author

Thanks.

Does this supersede #33?

Yes it does :)

@Techassi Techassi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Most of this looks good. I left a few small comments.

One thing I cannot comment on at all is the Maven wrapper stuff. CC'ing @lfrancke here.

uses: actions/setup-java@0f481fcb613427c0f801b606911222b5b6f3083a # v5.5.0
with:
java-version: '22'
distribution: 'zulu'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We drop caching, I assume the reasoning is cache poisoning?

Comment thread .github/workflows/pr_build.yaml
clean verify


- name: Upload NAR Artifact

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Any particular reason to keep the artifact? I assume debugging/testing?

Downstream consumers must use a tagged version anyway.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Just debugging, but I can remove if needed?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm personally happy to leave it in. CC'ing @lfrancke and @sbernauer.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I only looked at this part and nothing else: I'd say this can (or maybe even should?) go.
We have never needed this so far and if this builds for every PR, also externals people could publish something under our name. Even if it's transient. Not a super strong opinion though.

Thanks for pinging me.

Comment thread authorizer/src/main/java/org/nifiopa/nifiopa/OpaAuthorizer.java

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I assume this file only includes whitespace changes?

Comment thread test-env/start.sh
Comment thread .github/workflows/release_build.yaml
Saul-STFC and others added 2 commits August 12, 2026 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Development: In Review

Development

Successfully merging this pull request may close these issues.

4 participants