Skip to content

Feat/cooperative cancellation progress - #237

Draft
volodymyrrudyi wants to merge 114 commits into
mainfrom
feat/cooperative-cancellation-progress
Draft

Feat/cooperative cancellation progress#237
volodymyrrudyi wants to merge 114 commits into
mainfrom
feat/cooperative-cancellation-progress

Conversation

@volodymyrrudyi

Copy link
Copy Markdown
Contributor

No description provided.

Preserve invocation budgets across retries and durable replay, consume timeout before recovery, and qualify the private emitter with composed tests. Retain E128 until inherited scopes, parallel ownership, clock lowering, and cleanup grace are complete.
let dir = tempfile::tempdir().unwrap();
let path = dir.path().join("workflow.wasm");
std::fs::write(&path, package).unwrap();
let request = PrecompileRequest::for_artifact([9; 32], &path).unwrap();
let dir = tempfile::tempdir().unwrap();
let path = dir.path().join("workflow.wasm");
std::fs::write(&path, &package).unwrap();
let request = PrecompileRequest::for_artifact([7; 32], &path).unwrap();
assert!(
unsafe { deserialize_trusted_precompiled_component(&engine, &request, &response) }.is_err()
);
let other = PrecompileRequest::for_artifact([8; 32], &path).unwrap();
for (name, source) in [("root", root_wat.to_owned()), ("child", child_wat())] {
let path = dir.path().join(format!("{name}.wasm"));
std::fs::write(&path, wat::parse_str(source).unwrap()).unwrap();
let request = PrecompileRequest::for_artifact([43; 32], path).unwrap();
let dir = tempfile::tempdir().unwrap();
let path = dir.path().join("root.wasm");
std::fs::write(&path, wat::parse_str(root_wat(exit)).unwrap()).unwrap();
let request = PrecompileRequest::for_artifact([72; 32], path).unwrap();
let dir = tempfile::tempdir().unwrap();
let path = dir.path().join("scoped-runtime.wasm");
std::fs::write(&path, wasm).unwrap();
let request = PrecompileRequest::for_artifact([86; 32], &path).unwrap();
})
.unwrap();
let executor = Arc::new(WorkflowExecutor::new(engine.clone()).unwrap());
let request = PrecompileRequest::for_artifact([39; 32], &compiled.wasm_path).unwrap();
.unwrap();
let executor = Arc::new(WorkflowExecutor::new(engine.clone()).unwrap());
let expected_invocations = compiled.invocation_manifest.clone();
let request = PrecompileRequest::for_artifact([17; 32], &compiled.wasm_path).unwrap();
compose_direct_workflow(&mut compiled, components).unwrap();
}
compose_times.push(micros(start));
let request = PrecompileRequest::for_artifact([31; 32], &compiled.wasm_path).unwrap();
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.

2 participants