Skip to content

Commit

Permalink
update service rpc names / wasms after app manifest update
Browse files Browse the repository at this point in the history
  • Loading branch information
noise64 committed Dec 20, 2024
1 parent 592cb1c commit 059f7a7
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 66 deletions.
2 changes: 1 addition & 1 deletion integration-tests/src/benchmarks/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl Benchmark for Rpc {
.await;
let component_id = benchmark_context
.deps
.store_unique_component("parent_component_composed")
.store_unique_component("parent_component")
.await;

let mut worker_ids = Vec::new();
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/src/benchmarks/rpc_cpu_intensive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl Benchmark for RpcCpuIntensive {
.await;
let component_id = benchmark_context
.deps
.store_unique_component("parent_component_composed")
.store_unique_component("parent_component")
.await;

let mut worker_ids = Vec::new();
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/src/benchmarks/rpc_large_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl Benchmark for RpcLargeInput {
.await;
let component_id = benchmark_context
.deps
.store_unique_component("parent_component_composed")
.store_unique_component("parent_component")
.await;

let mut worker_ids = Vec::new();
Expand Down
Binary file modified test-components/child_component.wasm
Binary file not shown.
Binary file added test-components/parent_component.wasm
Binary file not shown.
Binary file removed test-components/parent_component_composed.wasm
Binary file not shown.
60 changes: 0 additions & 60 deletions test-components/rust-service/rpc/Makefile.toml

This file was deleted.

3 changes: 1 addition & 2 deletions test-components/rust-service/rpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
Internally, it uses the same functionalities (and data) as the rust-service/rust-component-service.

```bash

golem-cli app -b release build

golem-cli app -b release copy
```

5 changes: 4 additions & 1 deletion test-components/rust-service/rpc/golem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ templates:
linkedWasm: ../target/golem-components/debug/{{ component_name | to_snake_case }}.wasm
customCommands:
copy:
- command: cp ../target/golem-components/debug/{{ component_name | to_snake_case }}.wasm ../..
- command: cp ../target/golem-components/debug/{{ component_name | to_snake_case }}.wasm ../../..
clean:
- src/bindings.rs
release:
Expand All @@ -36,6 +36,9 @@ templates:
generatedWit: wit-generated
componentWasm: ../target/wasm32-wasi/release/{{ component_name | to_snake_case }}.wasm
linkedWasm: ../target/golem-components/release/{{ component_name | to_snake_case }}.wasm
customCommands:
copy:
- command: cp ../target/golem-components/release/{{ component_name | to_snake_case }}.wasm ../../..
clean:
- src/bindings.rs
defaultProfile: debug

0 comments on commit 059f7a7

Please sign in to comment.