From bbeb9f357372079a334a83681550b60ecad50c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Istv=C3=A1n=20B=C3=ADr=C3=B3?= Date: Mon, 23 Dec 2024 11:38:52 +0100 Subject: [PATCH] update exported inline names --- golem-worker-executor-base/tests/rust_rpc.rs | 4 +- .../tests/rust_rpc_stubless.rs | 82 +++++++++++++++---- 2 files changed, 69 insertions(+), 17 deletions(-) diff --git a/golem-worker-executor-base/tests/rust_rpc.rs b/golem-worker-executor-base/tests/rust_rpc.rs index ebe681667..cbe241fbf 100644 --- a/golem-worker-executor-base/tests/rust_rpc.rs +++ b/golem-worker-executor-base/tests/rust_rpc.rs @@ -612,7 +612,7 @@ async fn wasm_rpc_bug_32_test( let result = executor .invoke_and_await( &caller_worker_id, - "bug-wasm-rpc-i32", + "rpc:caller-exports/caller-inline-functions.{bug-wasm-rpc-i32}", vec![Value::Variant { case_idx: 0, case_value: None, @@ -760,7 +760,7 @@ async fn ephemeral_worker_invocation_via_rpc1( .await; let result = executor - .invoke_and_await(&caller_worker_id, "ephemeral-test1", vec![]) + .invoke_and_await(&caller_worker_id, "rpc:caller-exports/caller-inline-functions.{ephemeral-test1}", vec![]) .await .unwrap(); diff --git a/golem-worker-executor-base/tests/rust_rpc_stubless.rs b/golem-worker-executor-base/tests/rust_rpc_stubless.rs index 351737f85..c79f31189 100644 --- a/golem-worker-executor-base/tests/rust_rpc_stubless.rs +++ b/golem-worker-executor-base/tests/rust_rpc_stubless.rs @@ -191,7 +191,11 @@ async fn counter_resource_test_1( .await; let result = executor - .invoke_and_await(&caller_worker_id, "test1", vec![]) + .invoke_and_await( + &caller_worker_id, + "rpc:caller-exports/caller-inline-functions.{test1}", + vec![], + ) .await; drop(executor); @@ -230,10 +234,18 @@ async fn counter_resource_test_2( .await; let result1 = executor - .invoke_and_await(&caller_worker_id, "test2", vec![]) + .invoke_and_await( + &caller_worker_id, + "rpc:caller-exports/caller-inline-functions.{test2}", + vec![], + ) .await; let result2 = executor - .invoke_and_await(&caller_worker_id, "test2", vec![]) + .invoke_and_await( + &caller_worker_id, + "rpc:caller-exports/caller-inline-functions.{test2}", + vec![], + ) .await; drop(executor); @@ -266,14 +278,22 @@ async fn counter_resource_test_2_with_restart( .await; let result1 = executor - .invoke_and_await(&caller_worker_id, "test2", vec![]) + .invoke_and_await( + &caller_worker_id, + "rpc:caller-exports/caller-inline-functions.{test2}", + vec![], + ) .await; drop(executor); let executor = start(deps, &context).await.unwrap(); let result2 = executor - .invoke_and_await(&caller_worker_id, "test2", vec![]) + .invoke_and_await( + &caller_worker_id, + "rpc:caller-exports/caller-inline-functions.{test2}", + vec![], + ) .await; drop(executor); @@ -306,10 +326,18 @@ async fn counter_resource_test_3( .await; let result1 = executor - .invoke_and_await(&caller_worker_id, "test3", vec![]) + .invoke_and_await( + &caller_worker_id, + "rpc:caller-exports/caller-inline-functions.{test3}", + vec![], + ) .await; let result2 = executor - .invoke_and_await(&caller_worker_id, "test3", vec![]) + .invoke_and_await( + &caller_worker_id, + "rpc:caller-exports/caller-inline-functions.{test3}", + vec![], + ) .await; drop(executor); @@ -342,14 +370,22 @@ async fn counter_resource_test_3_with_restart( .await; let result1 = executor - .invoke_and_await(&caller_worker_id, "test3", vec![]) + .invoke_and_await( + &caller_worker_id, + "rpc:caller-exports/caller-inline-functions.{test3}", + vec![], + ) .await; drop(executor); let executor = start(deps, &context).await.unwrap(); let result2 = executor - .invoke_and_await(&caller_worker_id, "test3", vec![]) + .invoke_and_await( + &caller_worker_id, + "rpc:caller-exports/caller-inline-functions.{test3}", + vec![], + ) .await; drop(executor); @@ -388,7 +424,11 @@ async fn context_inheritance( .await; let result = executor - .invoke_and_await(&caller_worker_id, "test4", vec![]) + .invoke_and_await( + &caller_worker_id, + "rpc:caller-exports/caller-inline-functions.{test4}", + vec![], + ) .await; drop(executor); @@ -471,7 +511,11 @@ async fn counter_resource_test_5( executor.log_output(&caller_worker_id).await; let result = executor - .invoke_and_await(&caller_worker_id, "test5", vec![]) + .invoke_and_await( + &caller_worker_id, + "rpc:caller-exports/caller-inline-functions.{test5}", + vec![], + ) .await; drop(executor); @@ -513,7 +557,11 @@ async fn counter_resource_test_5_with_restart( executor.log_output(&caller_worker_id).await; let result1 = executor - .invoke_and_await(&caller_worker_id, "test5", vec![]) + .invoke_and_await( + &caller_worker_id, + "rpc:caller-exports/caller-inline-functions.{test5}", + vec![], + ) .await; drop(executor); @@ -521,7 +569,11 @@ async fn counter_resource_test_5_with_restart( let executor = start(deps, &context).await.unwrap(); let result2 = executor - .invoke_and_await(&caller_worker_id, "test5", vec![]) + .invoke_and_await( + &caller_worker_id, + "rpc:caller-exports/caller-inline-functions.{test5}", + vec![], + ) .await; drop(executor); @@ -571,7 +623,7 @@ async fn wasm_rpc_bug_32_test( let result = executor .invoke_and_await( &caller_worker_id, - "bug-wasm-rpc-i32", + "rpc:caller-exports/caller-inline-functions.{bug-wasm-rpc-i32}", vec![Value::Variant { case_idx: 0, case_value: None, @@ -722,7 +774,7 @@ async fn ephemeral_worker_invocation_via_rpc1( .await; let result = executor - .invoke_and_await(&caller_worker_id, "ephemeral-test1", vec![]) + .invoke_and_await(&caller_worker_id, "rpc:caller-exports/caller-inline-functions.{ephemeral-test1}", vec![]) .await .unwrap();