Skip to content

Conversation

@QFREEE
Copy link
Contributor

@QFREEE QFREEE commented Jan 27, 2026

Summary

Adds missing CI jobs to GitHub Actions to ensure parity with Circle CI.

Changes

Job Description
Checkstyle Runs all checkstyle tasks for code style validation
Java 8 unit tests Verifies client compatibility with Java 8
Deb package build/install Verifies Debian package builds and installs correctly
RPM package build/install Verifies RPM package builds and installs correctly
Docker build Verifies Docker image builds with Jib
Documentation build Verifies docs build with Asciidoctor

QFREEE and others added 4 commits January 27, 2026 01:37
The GitHub Actions CI workflow was missing several checks present in
Circle CI. This adds:

1. Java 8 client unit tests - verifies client compatibility with Java 8
2. Deb package build/install - verifies Debian package builds and installs
3. RPM package build/install - verifies RPM package builds and installs
4. Docker build - verifies Docker image builds with Jib
5. Documentation build - verifies docs build with Asciidoctor

Also includes the checkstyle job added earlier to catch style violations.

This ensures GitHub Actions green status implies Circle CI will also pass.
CASSSIDECAR-397 Add checkstyle job to GitHub Actions CI
@yifan-c
Copy link
Contributor

yifan-c commented Jan 27, 2026

Thanks for the patch. Running actions now.

@QFREEE
Copy link
Contributor Author

QFREEE commented Jan 27, 2026

looks like a flaky test failed

@yifan-c
Copy link
Contributor

yifan-c commented Jan 29, 2026

Triggered re-run of the failed job.

Copy link
Contributor

@frankgh frankgh left a comment

Choose a reason for hiding this comment

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

Thanks for the patch! I have some minor suggestions.

path: dtest-jars/

- name: Run checkstyle
run: ./gradlew checkstyleMain checkstyleTest checkstyleTestFixtures checkstyleIntegrationTest --stacktrace
Copy link
Contributor

Choose a reason for hiding this comment

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

does it make sense to register a new task in the main build.gradle file to run all checkstyle tasks? I'm thinking something like this:

    tasks.register('checkstyle') {
        description = 'Runs all checkstyle tasks'
        group = 'verification'
        dependsOn tasks.withType(Checkstyle)
    }

Then we can run ./gradlew checkstyle without having to list all targets

CHANGES.txt Outdated
@@ -1,5 +1,6 @@
0.3.0
-----
* Add Missing checks in GitHub actions vs Cicle CI (CASSSIDECAR-397)
Copy link
Contributor

Choose a reason for hiding this comment

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

CI changes don't need to be mentioned in CHANGES.txt, we can remove this

QFREEE and others added 5 commits January 28, 2026 22:16
Simplifies checkstyle invocation and removes CI-only notes from CHANGES for consistency.
Address review feedback for CI checks
Co-authored-by: Francisco Guerrero <frank.guerrero@gmail.com>
* Remove unnecessary dtest-jars dependency from checkstyle job

Checkstyle is a static analysis tool that runs directly on source files
without needing compiled classes or Cassandra dependencies. Removing
the dependency on build-dtest-jars allows checkstyle to run immediately
in parallel, providing faster feedback on code style issues.

* Restore dtest-jars dependency for checkstyle job

The test-common:checkstyleTestFixtures task requires compiling testFixtures
first, which depends on Cassandra dtest jars for import resolution.

* Match CircleCI: use full build for Java 8 unit tests

CircleCI runs './gradlew build' which relies on Gradle's Java version
checking to skip server modules that require Java 11+.

* Format run commands with pipe style for consistency
@yifan-c
Copy link
Contributor

yifan-c commented Jan 29, 2026

Triggering the actions again.
Otherwise, looks good.

Copy link
Contributor

@frankgh frankgh left a comment

Choose a reason for hiding this comment

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

+1 looks good to me

Copy link
Contributor

@sarankk sarankk left a comment

Choose a reason for hiding this comment

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

+1 Thanks for the patch, looks good to me

@frankgh frankgh merged commit 2fa929c into apache:trunk Jan 29, 2026
21 checks passed
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.

4 participants