From a77f3c534ed5f5de58a86db3c117bcdd04d71d84 Mon Sep 17 00:00:00 2001 From: Jack Amadeo Date: Fri, 4 Sep 2026 20:21:05 +0000 Subject: [PATCH] fix gdk kotlin example (#11825) --- .github/workflows/ci.yml | 11 +++++++++++ .github/workflows/gdk-release.yml | 1 + .github/workflows/maven-sdk.yml | 13 ++++++++++++- .../examples/uniffi/kotlin/src/main/kotlin/Main.kt | 2 ++ 4 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7d3747a99..5d072f8c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -135,6 +135,17 @@ jobs: env: RUST_MIN_STACK: 8388608 + kotlin-gdk-smoke-test: + name: Test Kotlin GDK package + needs: changes + if: needs.changes.outputs.code == 'true' || github.event_name != 'pull_request' + permissions: + contents: read + uses: ./.github/workflows/maven-sdk.yml + with: + publish: false + smoke-test: true + rust-build-and-test-tls: name: Build and Test TLS Backend (${{ matrix.tls-feature }}) runs-on: ubuntu-latest diff --git a/.github/workflows/gdk-release.yml b/.github/workflows/gdk-release.yml index 665c3ecdf..29af8b3de 100644 --- a/.github/workflows/gdk-release.yml +++ b/.github/workflows/gdk-release.yml @@ -80,6 +80,7 @@ jobs: uses: ./.github/workflows/maven-sdk.yml with: publish: true + smoke-test: false secrets: inherit python-wheels: diff --git a/.github/workflows/maven-sdk.yml b/.github/workflows/maven-sdk.yml index 5d9bb15ab..6bada3078 100644 --- a/.github/workflows/maven-sdk.yml +++ b/.github/workflows/maven-sdk.yml @@ -8,6 +8,11 @@ on: required: false default: false type: boolean + smoke-test: + description: "Run the Kotlin GDK smoke test" + required: false + default: true + type: boolean workflow_dispatch: inputs: publish: @@ -15,6 +20,11 @@ on: required: true default: false type: boolean + smoke-test: + description: "Run the Kotlin GDK smoke test" + required: true + default: true + type: boolean permissions: contents: read @@ -146,6 +156,7 @@ jobs: smoke-test-linux-aarch64: name: Smoke test Kotlin GDK (linux-aarch64) needs: package + if: inputs.smoke-test runs-on: ubuntu-22.04-arm steps: - name: Checkout code @@ -192,7 +203,7 @@ jobs: name: Publish to Maven Central needs: [package, smoke-test-linux-aarch64] runs-on: ubuntu-latest - if: inputs.publish + if: inputs.publish && !cancelled() && needs.package.result == 'success' && (!inputs.smoke-test || needs.smoke-test-linux-aarch64.result == 'success') environment: maven-central concurrency: group: gdk-maven-release-${{ needs.package.outputs.version }} diff --git a/crates/goose-sdk/examples/uniffi/kotlin/src/main/kotlin/Main.kt b/crates/goose-sdk/examples/uniffi/kotlin/src/main/kotlin/Main.kt index 0bb9785f0..c2afe0531 100644 --- a/crates/goose-sdk/examples/uniffi/kotlin/src/main/kotlin/Main.kt +++ b/crates/goose-sdk/examples/uniffi/kotlin/src/main/kotlin/Main.kt @@ -39,6 +39,8 @@ fun main() = runBlocking { is StreamChunk.EndChunk -> chunk.usage?.let { println("\nusage: $it") } is StreamChunk.ErrorChunk -> System.err.println("\nerror: ${chunk.error.message}") is StreamChunk.ToolChunk -> Unit + is StreamChunk.ThinkingChunk -> Unit + is StreamChunk.RedactedThinkingChunk -> Unit } } println()