con un clic
update-sdk-test-contracts
// Update the SDK test service implementations to match a new version of the e2e conformance contracts. Use when the user says "update sdk tests", "update test contracts", or gives a specific e2e release tag.
// Update the SDK test service implementations to match a new version of the e2e conformance contracts. Use when the user says "update sdk tests", "update test contracts", or gives a specific e2e release tag.
| name | update-sdk-test-contracts |
| description | Update the SDK test service implementations to match a new version of the e2e conformance contracts. Use when the user says "update sdk tests", "update test contracts", or gives a specific e2e release tag. |
| user-invocable | true |
The user will provide a release tag (e.g. v2.0). Fetch the full release notes from GitHub:
gh release view v2.0 --repo restatedev/e2e
The release body describes every contract change — new commands, removed handlers, field names, return value conventions. Read it entirely before writing any code.
The release notes document is also available in the e2e repo at sdk-tests/releases/<version>.md.
This SDK's test services live under test-services/. Search for the relevant files:
# Find VirtualObjectCommandInterpreter implementation
grep -r "VirtualObjectCommandInterpreter" test-services/ -l
# Find TestUtilsService implementation
grep -r "TestUtilsService" test-services/ -l
For each contract change described in the release notes, update the corresponding implementation file. The release notes specify:
type discriminator strings for new commands (match them exactly — they are case-sensitive)ok:/err: prefixes, etc.)After implementing, bump the version in .github/workflows/integration.yaml to the new tag. The script .tools/run-sdk-tests.sh reads from there automatically.
# Build and run all new test classes mentioned in the release notes
./.tools/run-sdk-tests.sh --test-suite=default --test-name=<TestClass>
# Or run the full default suite
./.tools/run-sdk-tests.sh
All tests must pass before the update is complete.