Skip to content

Add Ruby External Storage samples and round-trip tests - #310

Draft
lennessyy wants to merge 2 commits into
mainfrom
docs/ruby-external-storage
Draft

lennessyy wants to merge 2 commits into
mainfrom
docs/ruby-external-storage

Conversation

@lennessyy

@lennessyy lennessyy commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Adds Ruby External Storage samples for the SDK-provided S3 driver, Client and Worker setup, a local development driver, payload size thresholds, and driver migration. Includes seven Snipsync snippets and a real Workflow-and-Activity round-trip test with a 3 MiB payload and four small references in Event History.

Dependencies come from RubyGems, with no SDK Git dependency or source revision override. The Worker configures workflow_payload_codec_thread_pool for storage I/O. The local driver publishes complete files without replacing existing objects and checks retrieved bytes with SHA-256.

Adds a CI step scoped to this sample that installs published gems and runs the local-disk integration test. The S3 test skips without S3_BUCKET; CI needs no AWS credentials. The sample does not commit a lockfile, so each CI run resolves the latest compatible published SDK.

Release dependency: temporalio/sdk-ruby#688. Published SDK 1.11.0 lacks external_storage: on the Data Converter. The published-gem integration test currently fails with ArgumentError: unknown keyword: :external_storage. Keep this PR as a draft until the released SDK supports it and CI passes.

Validation:

find ruby-sandbox/best-practices/data-handling/external-storage -name '*.rb' -exec ruby -wc '{}' \;
cd ruby-sandbox/best-practices/data-handling/external-storage
bundle install
bundle exec ruby integration_test.rb

All six Ruby files pass syntax checks. Published dependencies install successfully; the local round trip fails at the missing SDK API as described above.

Earlier development validation against pending SDK Ruby source plus the published 1.11.0 native bridge passed both local and live S3 round trips: 3,145,728 bytes returned intact, four History references, largest S3 reference 528 bytes. Temporary S3 objects and bucket were removed and cleanup verified. That development setup is not a dependency of this sample or CI.

The companion Ruby documentation guide is drafted locally and has not been pushed.

@lennessyy
lennessyy marked this pull request as ready for review November 24, 2026 01:30
@lennessyy lennessyy self-assigned this Nov 24, 2026
@lennessyy
lennessyy marked this pull request as draft November 24, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant