Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New workflow api implementation #312

Merged
merged 2 commits into from
May 21, 2024
Merged

New workflow api implementation #312

merged 2 commits into from
May 21, 2024

Conversation

slinkydeveloper
Copy link
Contributor

  • Implement the new workflow service type/handler type
  • Add durable promise implementation
  • Remove the sdk-workflow-api module
  • Simplify the binding of services, no need for the BindableService indirection anymore

Copy link
Contributor

github-actions bot commented May 15, 2024

Test Results

665 tests  ± 0   658 ✅ +2   10s ⏱️ - 3m 9s
 14 suites  - 34     7 💤  - 2 
 14 files    - 34     0 ❌ ±0 

Results for commit 6d23169. ± Comparison against base commit d08025a.

This pull request removes 326 and adds 326 tests. Note that renamed tests count towards both.
dev.restate.e2e.JavaAwaitTimeoutTest ‑ Test Awaitable#await(Duration)
dev.restate.e2e.JavaAwakeableTest ‑ generate(IngressClient)
dev.restate.e2e.JavaCancelInvocationTest ‑ cancel blocked invocation on AWAKEABLE
dev.restate.e2e.JavaCancelInvocationTest ‑ cancel blocked invocation on CALL
dev.restate.e2e.JavaCancelInvocationTest ‑ cancel blocked invocation on SLEEP
dev.restate.e2e.JavaCoordinatorWithNodeReceiverServiceToServiceCallTest ‑ synchronousCall(IngressClient)
dev.restate.e2e.JavaErrorsTest ‑ Test calling method that fails terminally
dev.restate.e2e.JavaErrorsTest ‑ Test calling method that fails terminally multiple times
dev.restate.e2e.JavaErrorsTest ‑ Test invocations are retried until they succeed
dev.restate.e2e.JavaErrorsTest ‑ Test propagate failure from another service
…
dev.restate.sdk.JavaBlockingTests ‑ 100: [MockSingleThread][dev.restate.sdk.PromiseTest] AwaitPromise#run: Completed with failure
dev.restate.sdk.JavaBlockingTests ‑ 101: [MockMultiThreaded][dev.restate.sdk.PromiseTest] AwaitPromise#run: Completed with failure
dev.restate.sdk.JavaBlockingTests ‑ 102: [MockSingleThread][dev.restate.sdk.PromiseTest] PeekPromise#run: Completed with success
dev.restate.sdk.JavaBlockingTests ‑ 103: [MockMultiThreaded][dev.restate.sdk.PromiseTest] PeekPromise#run: Completed with success
dev.restate.sdk.JavaBlockingTests ‑ 104: [MockSingleThread][dev.restate.sdk.PromiseTest] PeekPromise#run: Completed with failure
dev.restate.sdk.JavaBlockingTests ‑ 105: [MockMultiThreaded][dev.restate.sdk.PromiseTest] PeekPromise#run: Completed with failure
dev.restate.sdk.JavaBlockingTests ‑ 106: [MockSingleThread][dev.restate.sdk.PromiseTest] PeekPromise#run: Completed with null
dev.restate.sdk.JavaBlockingTests ‑ 107: [MockMultiThreaded][dev.restate.sdk.PromiseTest] PeekPromise#run: Completed with null
dev.restate.sdk.JavaBlockingTests ‑ 108: [MockSingleThread][dev.restate.sdk.PromiseTest] IsCompletedPromise#run: Completed with success
dev.restate.sdk.JavaBlockingTests ‑ 109: [MockMultiThreaded][dev.restate.sdk.PromiseTest] IsCompletedPromise#run: Completed with success
…
This pull request removes 5 skipped tests and adds 3 skipped tests. Note that renamed tests count towards both.
dev.restate.e2e.NodeWorkflowAPITest ‑ Set and resolve durable promise leads to completion
dev.restate.e2e.NodeWorkflowAPITest ‑ Workflow cannot be submitted more than once
dev.restate.sdk.http.vertx.HttpVertxTests ‑ 122: [HttpVertxTestExecutor][dev.restate.sdk.kotlin.DeferredTest] Unknown
dev.restate.sdk.http.vertx.HttpVertxTests ‑ 123: [HttpVertxTestExecutor][dev.restate.sdk.kotlin.DeferredTest] Unknown: Fires timeout
dev.restate.sdk.http.vertx.HttpVertxTests ‑ 156: [HttpVertxTestExecutor][dev.restate.sdk.kotlin.StateTest] Unknown
dev.restate.sdk.http.vertx.HttpVertxTests ‑ 134: [HttpVertxTestExecutor][dev.restate.sdk.kotlin.DeferredTest] Unknown
dev.restate.sdk.http.vertx.HttpVertxTests ‑ 135: [HttpVertxTestExecutor][dev.restate.sdk.kotlin.DeferredTest] Unknown: Fires timeout
dev.restate.sdk.http.vertx.HttpVertxTests ‑ 168: [HttpVertxTestExecutor][dev.restate.sdk.kotlin.StateTest] Unknown

♻️ This comment has been updated with latest results.

…mpotency key.

Add InvocationHandle to attach/get output of invocation

Fix CallRequestOptions#withHeader

Fix response of attach/getOutput

WIP Removing old workflow api and replacing with new stuff

Fix code generation to use built-in workflow support. Remove old workflow api.

MANY Changes:

* Removed the BindableService, and renamed the BindableServiceFactory to ServiceDefinitionFactory. That abstraction was needed to support a "bundle" of many service definitions because of the workflow api.
* Removed the manual service builders, we don't need those anymore.
* Updated the code to use the new manifest

Implement promise api

More fixes around promise entries.
@slinkydeveloper slinkydeveloper merged commit 1a5817c into main May 21, 2024
3 of 4 checks passed
@slinkydeveloper slinkydeveloper deleted the new-workflow-api branch May 21, 2024 08:04
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