Skip to content

chore(samples): sync the stream sample with the Workflow append and close of temporalio/api#895 - #117

Draft
moetemp wants to merge 2 commits into
mainfrom
moe/up/stream-sample-workflow-writes
Draft

moetemp wants to merge 2 commits into
mainfrom
moe/up/stream-sample-workflow-writes

Conversation

@moetemp

@moetemp moetemp commented Nov 14, 2026

Copy link
Copy Markdown
Owner

What changed?

This PR syncs the stream sample with temporalio/api#895, where Workflow code appends to a Stream and closes it again.

  • In the sample WIT, @nexus.api-omit targets="workflow" moves from the resource methods append and close to read.
  • The Workflow Stream of each language has append and close, and no read. The client Stream keeps all three.
  • The stream tests check the new shape, and the tests of a Workflow append are back.

Why?

The sample WIT is a copy of the Stream WIT of the API repo, and that WIT changed. The SDKs generate their Streams API from it, so the sample should show the same shape.

How did you test it?

cargo validate passes.

Link to a test plan if any -

  • Unit Tests
  • Staging
  • End to End Tests

moetemp and others added 2 commits November 13, 2026 23:29
The API's Stream WIT moved the Workflow omit mark from `append` and `close` to `read`. Workflow
code writes to a Stream and closes it again, and it does not read one.
The tests bring back the Workflow append with its default Producer and check that only the client
`Stream` reads. The guide's omit example now names `read`.

Co-authored-by: Tim Conley <timothy.conley@temporal.io>
@moetemp moetemp added the skip-changelog No user-facing changelog fragment required label Nov 14, 2026
@moetemp
moetemp added this pull request to stack #120 November 14, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog No user-facing changelog fragment required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant