-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[java] Add linux-x64 implementation of in process Copilot CLI #2301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,52 @@ permissions: | |
| contents: read | ||
|
|
||
| jobs: | ||
| java-sdk-inprocess: | ||
| name: "Java SDK InProcess Tests" | ||
| if: github.event.repository.fork == false | ||
| runs-on: ubuntu-latest | ||
| continue-on-error: true | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Medium: Making the only real in-process test job |
||
| defaults: | ||
| run: | ||
| shell: bash | ||
| working-directory: ./java | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 | ||
| with: | ||
| java-version: "25" | ||
| distribution: "microsoft" | ||
| cache: "maven" | ||
|
|
||
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 | ||
| with: | ||
| node-version: 22 | ||
|
|
||
| - name: Run Java SDK tests (InProcess) | ||
| env: | ||
| CI: "true" | ||
| run: mvn clean verify -Pinprocess | ||
|
|
||
| - name: Generate Test Report Summary | ||
| if: always() | ||
| uses: ./.github/actions/java-test-report | ||
| with: | ||
| title: "Copilot Java SDK :: Test Results InProcess" | ||
|
|
||
| - name: Upload test results on failure | ||
| if: failure() | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | ||
| with: | ||
| name: java-test-results-inprocess | ||
| path: | | ||
| java/sdk/target/surefire-reports/ | ||
| java/sdk/target/surefire-reports-isolated/ | ||
| java/sdk/target/failsafe-reports/ | ||
| retention-days: 7 | ||
|
|
||
| java-sdk: | ||
| name: "Java SDK Tests (JDK ${{ matrix.test-jdk }})" | ||
| if: github.event.repository.fork == false | ||
|
|
@@ -96,17 +142,17 @@ jobs: | |
| run: | | ||
| echo "Running tests against JDK 25-built classes using JDK 17 runtime..." | ||
| java -version | ||
| mvn jacoco:prepare-agent@wire-up-coverage-instrumentation antrun:run@print-test-jdk-banner surefire:test failsafe:integration-test failsafe:verify jacoco:report@build-coverage-report-from-tests -Denforcer.skip=true | ||
| mvn -pl sdk jacoco:prepare-agent@wire-up-coverage-instrumentation antrun:run@print-test-jdk-banner surefire:test failsafe:integration-test failsafe:verify jacoco:report@build-coverage-report-from-tests -Denforcer.skip=true | ||
|
|
||
| - name: Upload test results for site generation | ||
| if: success() && github.ref == 'refs/heads/main' && matrix.test-jdk == '25' | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | ||
| with: | ||
| name: test-results-for-site | ||
| path: | | ||
| java/target/jacoco-test-results/sdk-tests.exec | ||
| java/target/surefire-reports/ | ||
| java/target/surefire-reports-isolated/ | ||
| java/sdk/target/jacoco-test-results/sdk-tests.exec | ||
| java/sdk/target/surefire-reports/ | ||
| java/sdk/target/surefire-reports-isolated/ | ||
| retention-days: 1 | ||
|
|
||
| - name: Generate Test Report Summary | ||
|
|
@@ -121,7 +167,7 @@ jobs: | |
| with: | ||
| name: java-test-results-jdk-${{ matrix.test-jdk }} | ||
| path: | | ||
| java/target/surefire-reports/ | ||
| java/target/surefire-reports-isolated/ | ||
| java/target/failsafe-reports/ | ||
| java/sdk/target/surefire-reports/ | ||
| java/sdk/target/surefire-reports-isolated/ | ||
| java/sdk/target/failsafe-reports/ | ||
| retention-days: 7 | ||
There was a problem hiding this comment.
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 integrate this in the regular job as a matrix (
[default, inprocess]) rather than having a completely separate leg for it?