Repository navigation
CASSJAVA-144: Move ASF CI from ci-cassandra Jenkins to GH Action - #2104
Open
SiyaoIsHiding wants to merge 3 commits into
Open
SiyaoIsHiding wants to merge 3 commits into
SiyaoIsHiding wants to merge 3 commits into
Conversation
SiyaoIsHiding
commented
Oct 30, 2026
| echo "CCM_UPDATE_PID_DEFAULT_TIMEOUT=120" >> "$GITHUB_ENV" | ||
| # "-" tells bin/cassandra not to use jemalloc, skipping its unbounded `find` over the | ||
| # library dirs, which can exceed the pid timeout on a cold cache under parallel tests. | ||
| echo "CASSANDRA_LIBJEMALLOC=-" >> "$GITHUB_ENV" |
Contributor
Author
There was a problem hiding this comment.
This line is prolly the only essential difference from the Node.js driver's GHA. AI found it out this is the reason why sometimes the first integration test likes to fail with cassandra pid not found.
It makes sense to me. I think I will port this change to Node.js driver's GHA, too.
There was a problem hiding this comment.
🟡 Changes recommended
The CI report scan splits filenames containing spaces and suppresses read errors, allowing jobs to pass despite TCK failures.
3 open issues
What changed in this PR
Migrates the Java driver’s ASF CI from Jenkins to GitHub Actions, with reusable test-environment setup and test-result reporting.
Changes:
- Adds a Java 17/21 test matrix against Cassandra 3.11, 4.0, 4.1, and 5.0.
- Adds CCM setup, report uploads, and result publication.
- Removes Jenkins infrastructure and switches documentation builds to Java 17.
| File | Description |
|---|---|
Jenkinsfile-asf |
Removes the ASF Jenkins pipeline. |
ci/run-tests.sh |
Removes the Jenkins test runner. |
ci/install-jdk.sh |
Removes the legacy JDK installer. |
ci/create-user.sh |
Removes the container user-setup script. |
.github/workflows/publish-docs-gp-pages.yml |
Uses Java 17 for documentation builds. |
.github/workflows/ci.yml |
Adds matrix testing and test-result reporting. |
.github/actions/setup-ccm/action.yml |
Prepares CCM, JDKs, certificates, Simulacron, and Cassandra. |
Review effort: Balanced
Comment on lines
+79
to
+80
| failed=$(grep -lE '<testsuite[^>]* (failures|errors)="[1-9]' \ | ||
| $(find . -path '*/target/*-reports/TEST-*.xml') /dev/null || true) |
Comment on lines
+22
to
+25
| on: | ||
| push: | ||
| pull_request: | ||
| workflow_dispatch: # allow manual trigger from the Actions page |
Comment on lines
+113
to
+116
| - name: Publish test results | ||
| uses: EnricoMi/publish-unit-test-result-action@v2 | ||
| with: | ||
| files: artifacts/**/TEST-*.xml |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Example run:
https://github.com/SiyaoIsHiding/java-driver/actions/runs/40934985232
Largely reusing Node.js driver's GHA. Example user interface on a PR: https://redirect.github.com/apache/cassandra-nodejs-driver/pull/472
Disclose of Generative AI usage.