Skip to content

Commit b7b62de

Browse files
authored
Merge remote-tracking branch 'origin/main' into copilot/aw-fix-codegen-agentic-workflow
Co-authored-by: edburns <75821+edburns@users.noreply.github.com>
2 parents 0b5c422 + 040e940 commit b7b62de

16 files changed

Lines changed: 287 additions & 311 deletions

.github/actions/test-report/action.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ inputs:
44
report-path:
55
description: "Path to the test report XML files (glob pattern)"
66
required: false
7-
default: "target/surefire-reports/TEST-*.xml"
7+
default: "target/surefire-reports*/TEST-*.xml"
88
jacoco-path:
99
description: "Path to the JaCoCo XML report"
1010
required: false
@@ -22,10 +22,7 @@ runs:
2222
echo "## 🧪 Copilot Java SDK :: Test Results" >> $GITHUB_STEP_SUMMARY
2323
echo "" >> $GITHUB_STEP_SUMMARY
2424
25-
REPORT_DIR=$(dirname "${{ inputs.report-path }}")
26-
REPORT_PATTERN=$(basename "${{ inputs.report-path }}")
27-
28-
if [ -d "$REPORT_DIR" ]; then
25+
if ls ${{ inputs.report-path }} 1>/dev/null 2>&1; then
2926
TESTS_RUN=$(grep -h "tests=" ${{ inputs.report-path }} 2>/dev/null | sed 's/.*tests="\([0-9]*\)".*/\1/' | awk '{s+=$1} END {print s}')
3027
FAILURES=$(grep -h "failures=" ${{ inputs.report-path }} 2>/dev/null | sed 's/.*failures="\([0-9]*\)".*/\1/' | awk '{s+=$1} END {print s}')
3128
ERRORS=$(grep -h "errors=" ${{ inputs.report-path }} 2>/dev/null | sed 's/.*errors="\([0-9]*\)".*/\1/' | awk '{s+=$1} END {print s}')

.github/aw/actions-lock.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
"version": "v9",
2121
"sha": "373c709c69115d41ff229c7e5df9f8788daa9553"
2222
},
23+
"actions/github-script@v9.0.0": {
24+
"repo": "actions/github-script",
25+
"version": "v9.0.0",
26+
"sha": "3a2844b7e9c422d3c10d287c895573f7108da1b3"
27+
},
2328
"actions/setup-java@v4": {
2429
"repo": "actions/setup-java",
2530
"version": "v4",
@@ -35,15 +40,10 @@
3540
"version": "v7.0.1",
3641
"sha": "043fb46d1a93c77aae656e7c1c64a875d1fc6a0a"
3742
},
38-
"github/gh-aw-actions/setup-cli@v0.68.3": {
39-
"repo": "github/gh-aw-actions/setup-cli",
40-
"version": "v0.68.3",
41-
"sha": "ba90f2186d7ad780ec640f364005fa24e797b360"
42-
},
43-
"github/gh-aw-actions/setup@v0.68.3": {
43+
"github/gh-aw-actions/setup@v0.71.5": {
4444
"repo": "github/gh-aw-actions/setup",
45-
"version": "v0.68.3",
46-
"sha": "ba90f2186d7ad780ec640f364005fa24e797b360"
45+
"version": "v0.71.5",
46+
"sha": "b8068426813005612b960b5ab0b8bd2c27142323"
4747
},
4848
"github/gh-aw/actions/setup@v0.51.6": {
4949
"repo": "github/gh-aw/actions/setup",

.github/badges/jacoco.svg

Lines changed: 2 additions & 2 deletions
Loading

.github/workflows/build-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ jobs:
130130
path: |
131131
target/jacoco-test-results/sdk-tests.exec
132132
target/surefire-reports/
133+
target/surefire-reports-isolated/
133134
retention-days: 1
134135

135136
- name: Generate JaCoCo badge

.github/workflows/reference-impl-sync.lock.yml

Lines changed: 233 additions & 90 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/reference-impl-sync.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ permissions:
1111
contents: read
1212
actions: read
1313
issues: read
14+
pull-requests: read
1415

1516
network:
1617
allowed:
@@ -19,7 +20,7 @@ network:
1920

2021
tools:
2122
github:
22-
toolsets: [context, repos, issues]
23+
toolsets: [context, repos, issues, pull_requests]
2324

2425
safe-outputs:
2526
create-issue:
@@ -37,6 +38,9 @@ safe-outputs:
3738
name: "copilot"
3839
model: "claude-opus-4.6"
3940
target: "*"
41+
close-pull-request:
42+
target: "*"
43+
max: 10
4044
noop:
4145
report-as-issue: false
4246
---
@@ -78,14 +82,16 @@ Go to Step 3b.
7882

7983
1. Search for any open issues with the `reference-impl-sync` label using the GitHub MCP tools.
8084
2. If there are open `reference-impl-sync` labeled issues, close each one using the `close_issue` safe-output tool with a comment: "No new reference implementation changes detected. The Java SDK is up to date. Closing."
81-
3. Call the `noop` safe-output tool with message: "No new reference implementation changes since last merge (<LAST_MERGE>)."
82-
4. **Stop here.** Do not proceed further.
85+
3. Search for any open pull requests whose head branch starts with `copilot/reference-impl`. Close each one using the `close_pull_request` safe-output tool with a comment: "Superseded — the Java SDK is up to date with the reference implementation. Closing stale sync PR."
86+
4. Call the `noop` safe-output tool with message: "No new reference implementation changes since last merge (<LAST_MERGE>)."
87+
5. **Stop here.** Do not proceed further.
8388

8489
### Step 3b: Changes detected
8590

8691
1. Search for any open issues with the `reference-impl-sync` label using the GitHub MCP tools.
8792
2. Close each existing open `reference-impl-sync` issue using the `close_issue` safe-output tool with a comment: "Superseded by a newer reference implementation sync check."
88-
3. Create a new issue using the `create_issue` safe-output tool with:
93+
3. Search for any open pull requests whose head branch starts with `copilot/reference-impl`. Close each one using the `close_pull_request` safe-output tool with a comment: "Superseded by a newer reference implementation sync issue. Closing stale sync PR."
94+
4. Create a new issue using the `create_issue` safe-output tool with:
8995
- **Title:** `Reference Implementation sync: <COMMIT_COUNT> new commits (<YYYY-MM-DD>)`
9096
- **Body:** Include the following information:
9197
```
@@ -112,7 +118,7 @@ Go to Step 3b.
112118
❌❌Do NOT update .lastmerge manually — the finish script does this.❌❌
113119
❌❌Do NOT skip the finish script — it syncs codegen versions and updates .lastmerge.❌❌
114120
```
115-
4. After creating the issue, use the `assign_to_agent` safe-output tool to assign Copilot to the newly created issue.
121+
5. After creating the issue, use the `assign_to_agent` safe-output tool to assign Copilot to the newly created issue.
116122
117123
## Important constraints
118124

.github/workflows/reference-impl-sync.yml

Lines changed: 0 additions & 181 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
88
99
## [Unreleased]
1010

11-
> **Reference implementation sync:** [`github/copilot-sdk@c063458`](https://github.com/github/copilot-sdk/commit/c063458ecc3d606766f04cf203b11b08de672cc8)
11+
> **Reference implementation sync:** [`github/copilot-sdk@066a69c`](https://github.com/github/copilot-sdk/commit/066a69c1e849adf1bd98564ab1b52316ec471182)
12+
13+
## [1.0.0-beta-java.2] - 2026-05-08
1214

15+
> **Reference implementation sync:** [`github/copilot-sdk@066a69c`](https://github.com/github/copilot-sdk/commit/066a69c1e849adf1bd98564ab1b52316ec471182)
1316
## [1.0.0-beta-java.1] - 2026-05-05
1417

1518
> **Reference implementation sync:** [`github/copilot-sdk@c063458`](https://github.com/github/copilot-sdk/commit/c063458ecc3d606766f04cf203b11b08de672cc8)
@@ -510,6 +513,8 @@ New types: `GetForegroundSessionResponse`, `SetForegroundSessionResponse`
510513
[1.0.0-beta-java.1]: https://github.com/github/copilot-sdk-java/compare/v0.3.0-java.2...v1.0.0-beta-java.1
511514
[Unreleased]: https://github.com/github/copilot-sdk-java/compare/v1.0.0-beta-java.1...HEAD
512515
[1.0.0-beta-java.1]: https://github.com/github/copilot-sdk-java/compare/v0.3.0-java.2...v1.0.0-beta-java.1
516+
[Unreleased]: https://github.com/github/copilot-sdk-java/compare/v1.0.0-beta-java.2...HEAD
517+
[1.0.0-beta-java.2]: https://github.com/github/copilot-sdk-java/compare/v0.3.0-java.2...v1.0.0-beta-java.2
513518
[0.3.0-java.2]: https://github.com/github/copilot-sdk-java/compare/v0.2.2-java.1...v0.3.0-java.2
514519
[0.2.2-java.1]: https://github.com/github/copilot-sdk-java/compare/v0.2.1-java.1...v0.2.2-java.1
515520
[Unreleased]: https://github.com/github/copilot-sdk-java/compare/v0.3.0-java-preview.0...HEAD

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ Snapshot builds of the next development version are published to Maven Central S
5353
<dependency>
5454
<groupId>com.github</groupId>
5555
<artifactId>copilot-sdk-java</artifactId>
56-
<version>1.0.0-java.1-SNAPSHOT</version>
56+
<version>1.0.0-beta-java.3-SNAPSHOT</version>
5757
</dependency>
5858
```
5959

6060
### Gradle
6161

6262
```groovy
63-
implementation 'com.github:copilot-sdk-java:1.0.0-beta-java.1'
63+
implementation 'com.github:copilot-sdk-java:1.0.0-beta-java.2-beta-java.1'
6464
```
6565

6666
## Quick Start

jbang-example.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///usr/bin/env jbang "$0" "$@" ; exit $?
2-
//DEPS com.github:copilot-sdk-java:1.0.0-beta-java.1
2+
//DEPS com.github:copilot-sdk-java:1.0.0-beta-java.2-beta-java.1
33
import com.github.copilot.sdk.CopilotClient;
44
import com.github.copilot.sdk.generated.AssistantMessageEvent;
55
import com.github.copilot.sdk.generated.SessionUsageInfoEvent;

0 commit comments

Comments
 (0)