[Java]: Refactor test for better use of matrix
@edburns is already working on this.
Since Aug 10, 2026.
Assessment
This issue has not been assessed yet.
Description
Predecessor: #1917
Successor: #2577
Problem
The java-sdk-tests.yml workflow has two separate jobs — java-sdk and java-sdk-inprocess — that duplicate ~20 lines of identical setup (checkout, setup-java, setup-node). This duplication makes maintenance harder: action version pin bumps must be applied in two places.
Proposal
Add a transport: [default, inprocess] dimension to the existing test-jdk matrix in the java-sdk job, and remove the standalone java-sdk-inprocess job.
Matrix shape
strategy:
fail-fast: false
matrix:
test-jdk: ["25", "17"]
transport: ["default", "inprocess"]
exclude:
- test-jdk: "17"
transport: "inprocess"
The exclude prevents the JDK-17 + inprocess combination, which is not meaningful (the native library targets a single JDK).
Conditional step adjustments
- Steps already guarded with
if: matrix.test-jdk == '25'gain an additional&& matrix.transport == 'default'where they should not run for the inprocess leg (e.g., spotless, javadoc, doc-version test). - The
mvninvocation switches based onmatrix.transport:mvn clean verify -Pinprocessfor inprocess, the existing split build-then-test flow for default. - Artifact names and test report titles include the transport value for clarity.
Benefits
- Less duplication — shared setup steps defined once.
- Easier maintenance — action pin bumps in one place.
- Consistent naming — job names like
Java SDK Tests (JDK 25, inprocess)clearly identify the configuration.
Risks
- Slightly more complex
if:conditionals, but manageable given the existing pattern.
- Dominant language
- Java
- Stars
- 10.5k
- Forks
- 1.5k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 133
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/copilot-sdk
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/copilot-sdk#2709 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
github/copilot-sdk#2673 ·
-
bug testing
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
github/copilot-sdk#2628 ·
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/copilot-sdk#2627 · 1 comment ·
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
github/copilot-sdk#2493 ·
All issues in github/copilot-sdk
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
1.0.0-alpha2 Type/Improvement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
wso2/dpdp-accelerator#272 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
apache/rocketmq-dashboard#4860 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·