From f70ba3cd590546a47517987a9f787447e18913c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Istv=C3=A1n=20B=C3=ADr=C3=B3?= Date: Mon, 8 Dec 2025 08:30:04 -0500 Subject: [PATCH 1/6] update CLI and golem-rust --- .github/workflows/ci.yaml | 352 +++++++++--------- Cargo.lock | 21 +- Cargo.toml | 2 +- test/embed/common-rust/golem.yaml | 4 +- .../components-rust/test-embed/golem.yaml | 5 +- .../components-rust/test-helper/golem.yaml | 2 +- test/embed/golem.yaml | 10 + test/exec/common-rust/golem.yaml | 4 +- .../components-rust/test-exec-js/golem.yaml | 5 +- .../components-rust/test-exec-py/golem.yaml | 2 +- .../components-rust/test-helper/golem.yaml | 2 +- test/exec/golem.yaml | 10 + test/graph/common-rust/golem.yaml | 4 +- .../components-rust/test-graph/golem.yaml | 5 +- .../components-rust/test-helper/golem.yaml | 2 +- test/graph/golem.yaml | 10 + test/llm/common-rust/golem.yaml | 4 +- .../components-rust/test-helper/golem.yaml | 2 +- test/llm/components-rust/test-llm/golem.yaml | 5 +- test/llm/golem.yaml | 10 + test/search/common-rust/golem.yaml | 4 +- .../components-rust/test-helper/golem.yaml | 2 +- .../components-rust/test-search/golem.yaml | 5 +- test/search/golem.yaml | 10 + test/stt/components-rust/test-stt/golem.yaml | 5 +- test/stt/golem.yaml | 10 + test/video-advanced/common-rust/golem.yaml | 6 +- .../components-rust/test-helper/golem.yaml | 2 +- .../test-video-advanced/golem.yaml | 4 +- test/video-advanced/golem.yaml | 10 + test/video/Cargo.toml | 2 +- test/video/common-rust/golem.yaml | 4 +- .../components-rust/test-helper/golem.yaml | 2 +- .../components-rust/test-video/golem.yaml | 4 +- test/video/golem.yaml | 10 + test/websearch/Cargo.toml | 2 +- test/websearch/common-rust/golem.yaml | 4 +- .../components-rust/test-helper/golem.yaml | 2 +- .../components-rust/test-websearch/golem.yaml | 4 +- test/websearch/golem.yaml | 10 + 40 files changed, 318 insertions(+), 245 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cd5a86dc..678f112f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -85,12 +85,12 @@ jobs: - uses: cargo-bins/cargo-binstall@main - name: Install cargo-component run: cargo binstall --force cargo-component@0.21.1 - # - name: Install golem-cli - # run: cargo binstall --force golem-cli@1.3.0-rc9 --locked --no-confirm - # - name: Install wac-cli - # run: cargo binstall --force wac-cli --locked --no-confirm - # - name: Build all test components - # run: cargo make release-build-test-components + - name: Install golem-cli + run: cargo binstall --force golem-cli@1.4.0-dev.7 --locked --no-confirm + - name: Install wac-cli + run: cargo binstall --force wac-cli --locked --no-confirm + - name: Build all test components + run: cargo make release-build-test-components golem-exec-tests: runs-on: ubuntu-latest steps: @@ -116,42 +116,42 @@ jobs: set -e cargo binstall --force cargo-component@0.21.1 cargo binstall wac-cli --locked --force --no-confirm - # - name: Install and Run latest Golem Server - # run: | - # set -e - # echo "Installing Golem server" - # sudo curl -L https://github.com/golemcloud/golem/releases/download/v1.3.0-rc9/golem-x86_64-unknown-linux-gnu -o ./golem - # sudo chmod +x ./golem - # sudo mv ./golem /usr/local/bin/golem - # golem --version - # golem profile switch local - # nohup golem server run >golem-server.log 2>&1 & - # echo "Golem server started." - # - name: Build and test golem:exec implementations - # run: | - # set -eo pipefail - # cargo make --cwd exec release-build - # cd test/exec - # golem profile config local set-format json - # golem app -b release deploy - # golem agent invoke test:exec-js/test-1 test01 | jq -e '(.result_wave[0]=="true")' - # golem agent invoke test:exec-js/test-2 test02 | jq -e '(.result_wave[0]=="true")' - # golem agent invoke test:exec-js/test-3 test03 | jq -e '(.result_wave[0]=="true")' - # golem agent invoke test:exec-js/test-4 test04 | jq -e '(.result_wave[0]=="true")' - # golem agent invoke test:exec-js/test-5 test05 | jq -e '(.result_wave[0]=="true")' - # golem agent invoke test:exec-js/test-6 test06 | jq -e '(.result_wave[0]=="true")' - # golem agent invoke test:exec-js/test-7 test07 | jq -e '(.result_wave[0]=="true")' - # golem agent invoke test:exec-js/test-8 test08 | jq -e '(.result_wave[0]=="true")' - # golem agent invoke test:exec-js/test-9 test09 | jq -e '(.result_wave[0]=="true")' - # golem agent invoke test:exec-js/test-10 test10 | jq -e '(.result_wave[0]=="true")' - # golem agent invoke test:exec-js/test-11 test11 | jq -e '(.result_wave[0]=="true")' - # golem agent invoke test:exec-py/test-1 test1 | jq -e '(.result_wave[0]=="true")' - # golem agent invoke test:exec-py/test-2 test2 | jq -e '(.result_wave[0]=="true")' - # golem agent invoke test:exec-py/test-3 test3 | jq -e '(.result_wave[0]=="true")' - # golem agent invoke test:exec-py/test-4 test4 | jq -e '(.result_wave[0]=="true")' - # golem agent invoke test:exec-py/test-5 test5 | jq -e '(.result_wave[0]=="true")' - # golem agent invoke test:exec-py/test-6 test6 | jq -e '(.result_wave[0]=="true")' - # golem agent invoke test:exec-py/test-7 test7 | jq -e '(.result_wave[0]=="true")' + - name: Install and Run latest Golem Server + run: | + set -e + echo "Installing Golem server" + sudo curl -L https://github.com/golemcloud/golem/releases/download/v1.4.0-dev.7/golem-x86_64-unknown-linux-gnu -o ./golem + sudo chmod +x ./golem + sudo mv ./golem /usr/local/bin/golem + golem --version + golem profile switch local + nohup golem server run >golem-server.log 2>&1 & + echo "Golem server started." + - name: Build and test golem:exec implementations + run: | + set -eo pipefail + cargo make --cwd exec release-build + cd test/exec + golem profile config local set-format json + golem app -b release deploy + golem agent invoke test:exec-js/test-1 test01 | jq -e '(.result_wave[0]=="true")' + golem agent invoke test:exec-js/test-2 test02 | jq -e '(.result_wave[0]=="true")' + golem agent invoke test:exec-js/test-3 test03 | jq -e '(.result_wave[0]=="true")' + golem agent invoke test:exec-js/test-4 test04 | jq -e '(.result_wave[0]=="true")' + golem agent invoke test:exec-js/test-5 test05 | jq -e '(.result_wave[0]=="true")' + golem agent invoke test:exec-js/test-6 test06 | jq -e '(.result_wave[0]=="true")' + golem agent invoke test:exec-js/test-7 test07 | jq -e '(.result_wave[0]=="true")' + golem agent invoke test:exec-js/test-8 test08 | jq -e '(.result_wave[0]=="true")' + golem agent invoke test:exec-js/test-9 test09 | jq -e '(.result_wave[0]=="true")' + golem agent invoke test:exec-js/test-10 test10 | jq -e '(.result_wave[0]=="true")' + golem agent invoke test:exec-js/test-11 test11 | jq -e '(.result_wave[0]=="true")' + golem agent invoke test:exec-py/test-1 test1 | jq -e '(.result_wave[0]=="true")' + golem agent invoke test:exec-py/test-2 test2 | jq -e '(.result_wave[0]=="true")' + golem agent invoke test:exec-py/test-3 test3 | jq -e '(.result_wave[0]=="true")' + golem agent invoke test:exec-py/test-4 test4 | jq -e '(.result_wave[0]=="true")' + golem agent invoke test:exec-py/test-5 test5 | jq -e '(.result_wave[0]=="true")' + golem agent invoke test:exec-py/test-6 test6 | jq -e '(.result_wave[0]=="true")' + golem agent invoke test:exec-py/test-7 test7 | jq -e '(.result_wave[0]=="true")' ollama-integration-tests: runs-on: ubuntu-latest @@ -178,45 +178,45 @@ jobs: set -e cargo binstall --force cargo-component@0.21.1 cargo binstall wac-cli --locked --force --no-confirm - # - name: Start Ollama in Docker - # run: | - # set -e - # docker run -d --name ollama -p 11434:11434 ollama/ollama:latest - # timeout 60 bash -c 'until curl -f http://localhost:11434/api/version; do sleep 2; done' - # echo "Pulling Qwen3:1.7b" - # docker exec ollama ollama pull qwen3:1.7b - # echo "Pulling Gemma3:4b" - # docker exec ollama ollama pull gemma3:4b - # echo "Verifying models are available" - # docker exec ollama ollama list | grep -q "qwen3:1.7b" || exit 1 - # docker exec ollama ollama list | grep -q "gemma3:4b" || exit 1 - # echo "Ollama setup completed." - # - name: Install and Run latest Golem Server - # run: | - # set -e - # echo "Installing Golem server" - # sudo curl -L https://github.com/golemcloud/golem/releases/download/v1.3.0-rc9/golem-x86_64-unknown-linux-gnu -o ./golem - # sudo chmod +x ./golem - # sudo mv ./golem /usr/local/bin/golem - # golem --version - # golem profile switch local - # nohup golem server run >golem-server.log 2>&1 & - # echo "Golem server started." - # - name: Build and test Ollama integration - # run: | - # set -eo pipefail - # cargo make --cwd llm build-ollama - # cd test/llm - # golem app deploy -b ollama-debug test:llm test:helper - # golem agent new -e GOLEM_OLLAMA_BASE_URL=http://localhost:11434 test:llm/ollama-1 - # golem agent invoke test:llm/ollama-1 test1 | grep -v "ERROR: " - # golem agent invoke test:llm/ollama-1 test2 | grep -v "ERROR: " - # golem agent invoke test:llm/ollama-1 test3 | grep -v "ERROR: " - # golem agent invoke test:llm/ollama-1 test4 | grep -v "ERROR: " - # golem agent invoke test:llm/ollama-1 test5 | grep -v "ERROR: " - # golem agent invoke test:llm/ollama-1 test6 | grep -v "ERROR: " - # golem agent invoke test:llm/ollama-1 test7 | grep -v "ERROR: " - # golem agent invoke test:llm/ollama-1 test8 | grep -v "ERROR: " + - name: Start Ollama in Docker + run: | + set -e + docker run -d --name ollama -p 11434:11434 ollama/ollama:latest + timeout 60 bash -c 'until curl -f http://localhost:11434/api/version; do sleep 2; done' + echo "Pulling Qwen3:1.7b" + docker exec ollama ollama pull qwen3:1.7b + echo "Pulling Gemma3:4b" + docker exec ollama ollama pull gemma3:4b + echo "Verifying models are available" + docker exec ollama ollama list | grep -q "qwen3:1.7b" || exit 1 + docker exec ollama ollama list | grep -q "gemma3:4b" || exit 1 + echo "Ollama setup completed." + - name: Install and Run latest Golem Server + run: | + set -e + echo "Installing Golem server" + sudo curl -L https://github.com/golemcloud/golem/releases/download/v1.4.0-dev.7/golem-x86_64-unknown-linux-gnu -o ./golem + sudo chmod +x ./golem + sudo mv ./golem /usr/local/bin/golem + golem --version + golem profile switch local + nohup golem server run >golem-server.log 2>&1 & + echo "Golem server started." + - name: Build and test Ollama integration + run: | + set -eo pipefail + cargo make --cwd llm build-ollama + cd test/llm + golem app deploy -b ollama-debug test:llm test:helper + golem agent new -e GOLEM_OLLAMA_BASE_URL=http://localhost:11434 test:llm/ollama-1 + golem agent invoke test:llm/ollama-1 test1 | grep -v "ERROR: " + golem agent invoke test:llm/ollama-1 test2 | grep -v "ERROR: " + golem agent invoke test:llm/ollama-1 test3 | grep -v "ERROR: " + golem agent invoke test:llm/ollama-1 test4 | grep -v "ERROR: " + golem agent invoke test:llm/ollama-1 test5 | grep -v "ERROR: " + golem agent invoke test:llm/ollama-1 test6 | grep -v "ERROR: " + golem agent invoke test:llm/ollama-1 test7 | grep -v "ERROR: " + golem agent invoke test:llm/ollama-1 test8 | grep -v "ERROR: " graph-integration-tests: runs-on: ubuntu-latest @@ -243,110 +243,110 @@ jobs: set -e cargo binstall --force cargo-component@0.21.1 cargo binstall wac-cli --locked --force --no-confirm - # - name: Start graph-providers in Docker - # run: | - # set -e - # echo "Setting up graph database providers..." + - name: Start graph-providers in Docker + run: | + set -e + echo "Setting up graph database providers..." - # # ArangoDB - # echo "Starting ArangoDB..." - # docker run -d --name arangodb -e ARANGO_NO_AUTH=1 -p 8529:8529 -v arangodb_data:/var/lib/arangodb3 -v arangodb_apps:/var/lib/arangodb3-apps arangodb/arangodb:latest - # timeout 60 bash -c 'until curl -f http://localhost:8529/_api/version; do sleep 2; done' - # echo "Creating test database..." - # curl -X POST http://localhost:8529/_api/database \ - # -H "Content-Type: application/json" \ - # -d '{"name": "test"}' || echo "Database might already exist" - # echo "ArangoDB is ready" + # ArangoDB + echo "Starting ArangoDB..." + docker run -d --name arangodb -e ARANGO_NO_AUTH=1 -p 8529:8529 -v arangodb_data:/var/lib/arangodb3 -v arangodb_apps:/var/lib/arangodb3-apps arangodb/arangodb:latest + timeout 60 bash -c 'until curl -f http://localhost:8529/_api/version; do sleep 2; done' + echo "Creating test database..." + curl -X POST http://localhost:8529/_api/database \ + -H "Content-Type: application/json" \ + -d '{"name": "test"}' || echo "Database might already exist" + echo "ArangoDB is ready" - # # JanusGraph with Cassandra - # echo "Starting Cassandra for JanusGraph..." - # docker network create janus-net || true - # docker run -d --name cassandra --network janus-net -p 9042:9042 cassandra:3.11 - # echo "Waiting for Cassandra to be ready..." - # timeout 60 bash -c 'until docker exec cassandra cqlsh -e "DESCRIBE KEYSPACES" > /dev/null 2>&1; do sleep 5; done' + # JanusGraph with Cassandra + echo "Starting Cassandra for JanusGraph..." + docker network create janus-net || true + docker run -d --name cassandra --network janus-net -p 9042:9042 cassandra:3.11 + echo "Waiting for Cassandra to be ready..." + timeout 60 bash -c 'until docker exec cassandra cqlsh -e "DESCRIBE KEYSPACES" > /dev/null 2>&1; do sleep 5; done' - # echo "Starting JanusGraph..." - # docker run -d --name janusgraph --network janus-net \ - # -e storage.backend=cassandra \ - # -e storage.hostname=cassandra \ - # -e gremlinserver.channelizer=org.apache.tinkerpop.gremlin.server.channel.WsAndHttpChannelizer \ - # -e GREMLIN_OPTS="-Dtx.max-commit-time=60000 -Dstorage.cassandra.read-consistency-level=ONE -Dstorage.cassandra.write-consistency-level=ONE" \ - # -p 8182:8182 janusgraph/janusgraph:latest - # echo "JanusGraph is ready" + echo "Starting JanusGraph..." + docker run -d --name janusgraph --network janus-net \ + -e storage.backend=cassandra \ + -e storage.hostname=cassandra \ + -e gremlinserver.channelizer=org.apache.tinkerpop.gremlin.server.channel.WsAndHttpChannelizer \ + -e GREMLIN_OPTS="-Dtx.max-commit-time=60000 -Dstorage.cassandra.read-consistency-level=ONE -Dstorage.cassandra.write-consistency-level=ONE" \ + -p 8182:8182 janusgraph/janusgraph:latest + echo "JanusGraph is ready" - # # Setup Neo4j - # echo "Starting Neo4j..." - # docker run -d --name neo4j \ - # --publish=7474:7474 --publish=7687:7687 \ - # --volume=neo4j_data:/data \ - # --env=NEO4J_AUTH=neo4j/password \ - # neo4j:latest - # echo "Waiting for Neo4j to be ready..." - # timeout 120 bash -c 'until curl -f http://localhost:7474/ > /dev/null 2>&1; do sleep 5; done' - # echo "Neo4j is ready" + # Setup Neo4j + echo "Starting Neo4j..." + docker run -d --name neo4j \ + --publish=7474:7474 --publish=7687:7687 \ + --volume=neo4j_data:/data \ + --env=NEO4J_AUTH=neo4j/password \ + neo4j:latest + echo "Waiting for Neo4j to be ready..." + timeout 120 bash -c 'until curl -f http://localhost:7474/ > /dev/null 2>&1; do sleep 5; done' + echo "Neo4j is ready" - # echo "All graph database providers are ready!" - # - name: Install and Run latest Golem Server - # run: | - # set -e - # echo "Installing Golem server" - # sudo curl -L https://github.com/golemcloud/golem/releases/download/v1.3.0-rc9/golem-x86_64-unknown-linux-gnu -o ./golem - # sudo chmod +x ./golem - # sudo mv ./golem /usr/local/bin/golem - # golem --version - # golem profile switch local - # nohup golem server run >golem-server.log 2>&1 & - # echo "Golem server started." - # - name: Build and test graph integration - # run: | - # set -eo pipefail - # cargo make --cwd graph release-build-arangodb - # cargo make --cwd graph release-build-janusgraph - # cargo make --cwd graph release-build-neo4j - # cd test/graph + echo "All graph database providers are ready!" + - name: Install and Run latest Golem Server + run: | + set -e + echo "Installing Golem server" + sudo curl -L https://github.com/golemcloud/golem/releases/download/v1.4.0-dev.7/golem-x86_64-unknown-linux-gnu -o ./golem + sudo chmod +x ./golem + sudo mv ./golem /usr/local/bin/golem + golem --version + golem profile switch local + nohup golem server run >golem-server.log 2>&1 & + echo "Golem server started." + - name: Build and test graph integration + run: | + set -eo pipefail + cargo make --cwd graph release-build-arangodb + cargo make --cwd graph release-build-janusgraph + cargo make --cwd graph release-build-neo4j + cd test/graph - # echo "Testing ArangoDB integration..." - # golem app deploy -b arangodb-release test:graph test:helper - # golem agent new -e ARANGODB_HOST=localhost -e ARANGODB_USER="" -e ARANGODB_PASSWORD="" -e ARANGODB_PORT="8529" -e ARANGODB_DATABASE="test" test:graph/arangodb-1 - # golem agent invoke test:graph/arangodb-1 test1 | grep -v "ERROR: " - # golem agent invoke test:graph/arangodb-1 test2 | grep -v "ERROR: " - # golem agent invoke test:graph/arangodb-1 test3 | grep -v "ERROR: " - # golem agent invoke test:graph/arangodb-1 test4 | grep -v "ERROR: " - # golem agent invoke test:graph/arangodb-1 test5 | grep -v "ERROR: " - # golem agent invoke test:graph/arangodb-1 test6 | grep -v "ERROR: " - # golem agent invoke test:graph/arangodb-1 test7 | grep -v "ERROR: " - # echo "ArangoDB tests completed successfully" - # golem app clean -b arangodb-release + echo "Testing ArangoDB integration..." + golem app deploy -b arangodb-release test:graph test:helper + golem agent new -e ARANGODB_HOST=localhost -e ARANGODB_USER="" -e ARANGODB_PASSWORD="" -e ARANGODB_PORT="8529" -e ARANGODB_DATABASE="test" test:graph/arangodb-1 + golem agent invoke test:graph/arangodb-1 test1 | grep -v "ERROR: " + golem agent invoke test:graph/arangodb-1 test2 | grep -v "ERROR: " + golem agent invoke test:graph/arangodb-1 test3 | grep -v "ERROR: " + golem agent invoke test:graph/arangodb-1 test4 | grep -v "ERROR: " + golem agent invoke test:graph/arangodb-1 test5 | grep -v "ERROR: " + golem agent invoke test:graph/arangodb-1 test6 | grep -v "ERROR: " + golem agent invoke test:graph/arangodb-1 test7 | grep -v "ERROR: " + echo "ArangoDB tests completed successfully" + golem app clean -b arangodb-release - # echo "Testing JanusGraph integration..." - # golem app deploy -b janusgraph-release test:graph test:helper - # sleep 10 - # golem agent new -e JANUSGRAPH_HOST=localhost -e JANUSGRAPH_USER="" -e JANUSGRAPH_PASSWORD="" -e JANUSGRAPH_PORT="8182" test:graph/janusgraph-1 - # golem agent invoke test:graph/janusgraph-1 test1 | grep -v "ERROR: " - # golem agent invoke test:graph/janusgraph-1 test2 | grep -v "ERROR: " - # golem agent invoke test:graph/janusgraph-1 test3 | grep -v "ERROR: " - # golem agent invoke test:graph/janusgraph-1 test4 | grep -v "ERROR: " - # golem agent invoke test:graph/janusgraph-1 test5 | grep -v "ERROR: " - # golem agent invoke test:graph/janusgraph-1 test6 | grep -v "ERROR: " - # golem agent invoke test:graph/janusgraph-1 test7 | grep -v "ERROR: " - # echo "JanusGraph tests completed successfully" - # golem app clean -b janusgraph-release + echo "Testing JanusGraph integration..." + golem app deploy -b janusgraph-release test:graph test:helper + sleep 10 + golem agent new -e JANUSGRAPH_HOST=localhost -e JANUSGRAPH_USER="" -e JANUSGRAPH_PASSWORD="" -e JANUSGRAPH_PORT="8182" test:graph/janusgraph-1 + golem agent invoke test:graph/janusgraph-1 test1 | grep -v "ERROR: " + golem agent invoke test:graph/janusgraph-1 test2 | grep -v "ERROR: " + golem agent invoke test:graph/janusgraph-1 test3 | grep -v "ERROR: " + golem agent invoke test:graph/janusgraph-1 test4 | grep -v "ERROR: " + golem agent invoke test:graph/janusgraph-1 test5 | grep -v "ERROR: " + golem agent invoke test:graph/janusgraph-1 test6 | grep -v "ERROR: " + golem agent invoke test:graph/janusgraph-1 test7 | grep -v "ERROR: " + echo "JanusGraph tests completed successfully" + golem app clean -b janusgraph-release - # echo "Testing Neo4j integration..." - # golem app deploy -b neo4j-release test:graph test:helper - # sleep 10 - # golem agent new -e NEO4J_HOST=localhost -e NEO4J_USER=neo4j -e NEO4J_PASSWORD=password -e NEO4J_PORT="7474" -e NEO4J_DATABASE=neo4j test:graph/neo4j-1 - # golem agent invoke test:graph/neo4j-1 test1 | grep -v "ERROR: " - # golem agent invoke test:graph/neo4j-1 test2 | grep -v "ERROR: " - # golem agent invoke test:graph/neo4j-1 test3 | grep -v "ERROR: " - # golem agent invoke test:graph/neo4j-1 test4 | grep -v "ERROR: " - # golem agent invoke test:graph/neo4j-1 test5 | grep -v "ERROR: " - # golem agent invoke test:graph/neo4j-1 test6 | grep -v "ERROR: " - # golem agent invoke test:graph/neo4j-1 test7 | grep -v "ERROR: " - # echo "Neo4j tests completed successfully" - # golem app clean -b neo4j-release + echo "Testing Neo4j integration..." + golem app deploy -b neo4j-release test:graph test:helper + sleep 10 + golem agent new -e NEO4J_HOST=localhost -e NEO4J_USER=neo4j -e NEO4J_PASSWORD=password -e NEO4J_PORT="7474" -e NEO4J_DATABASE=neo4j test:graph/neo4j-1 + golem agent invoke test:graph/neo4j-1 test1 | grep -v "ERROR: " + golem agent invoke test:graph/neo4j-1 test2 | grep -v "ERROR: " + golem agent invoke test:graph/neo4j-1 test3 | grep -v "ERROR: " + golem agent invoke test:graph/neo4j-1 test4 | grep -v "ERROR: " + golem agent invoke test:graph/neo4j-1 test5 | grep -v "ERROR: " + golem agent invoke test:graph/neo4j-1 test6 | grep -v "ERROR: " + golem agent invoke test:graph/neo4j-1 test7 | grep -v "ERROR: " + echo "Neo4j tests completed successfully" + golem app clean -b neo4j-release - # echo "All graph integration tests completed successfully!" + echo "All graph integration tests completed successfully!" publish-all: needs: diff --git a/Cargo.lock b/Cargo.lock index 7b508c73..40e63abf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -124,17 +124,6 @@ dependencies = [ "pin-project-lite", ] -[[package]] -name = "async-trait" -version = "0.1.89" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "atomic" version = "0.6.1" @@ -1826,11 +1815,10 @@ dependencies = [ [[package]] name = "golem-rust" -version = "1.9.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad98dc0099640c6dd204a4b8328c088d9f2330c0af76fe87025ef9b4e7ddc516" +checksum = "56f92d147b8ec9adfb3760077968c132999e05d7b7ae9a9332c1eefb2afb9bb0" dependencies = [ - "async-trait", "golem-rust-macro", "golem-wasm", "serde", @@ -1843,11 +1831,12 @@ dependencies = [ [[package]] name = "golem-rust-macro" -version = "1.9.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "301a4fa6c1df3cee3d05559aa9360dfb278efd8f43abb9f276b2b68b592247dd" +checksum = "3d3dfef3eac799c589a3abdbc73465740d3a7432ad0e2bab273dd7e734651aac" dependencies = [ "heck 0.5.0", + "proc-macro-crate", "proc-macro2", "quote", "syn", diff --git a/Cargo.toml b/Cargo.toml index 5b9fbd89..d3b35f63 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -56,7 +56,7 @@ golem-video = { path = "video/video", version = "0.0.0", default-features = fals golem-stt = { path = "stt/stt", version = "0.0.0", default-features = false } golem-embed = { path = "embed/embed", version = "0.0.0", default-features = false} futures = "0.3.31" -golem-rust = "=1.9.0" +golem-rust = "=1.10.0" golem-wasi-http = { version = "0.1.0", features = ["json"] } log = "0.4.27" serde = { version = "1.0", features = ["derive"] } diff --git a/test/embed/common-rust/golem.yaml b/test/embed/common-rust/golem.yaml index b13a8389..a72f13af 100644 --- a/test/embed/common-rust/golem.yaml +++ b/test/embed/common-rust/golem.yaml @@ -7,7 +7,8 @@ templates: rust: - profiles: + presets: + default: true debug: build: - command: cargo component build @@ -38,7 +39,6 @@ templates: linkedWasm: ../../golem-temp/components/{{ component_name | to_snake_case }}_release.wasm clean: - src/bindings.rs - defaultProfile: debug customCommands: cargo-clean: - command: cargo clean diff --git a/test/embed/components-rust/test-embed/golem.yaml b/test/embed/components-rust/test-embed/golem.yaml index ac0940a6..7c971cfa 100644 --- a/test/embed/components-rust/test-embed/golem.yaml +++ b/test/embed/components-rust/test-embed/golem.yaml @@ -7,9 +7,10 @@ components: test:embed: - profiles: + presets: # DEBUG PROFILES openai-debug: + default: true build: - command: cargo component build --no-default-features --features openai sources: @@ -186,8 +187,6 @@ components: clean: - src/bindings.rs - defaultProfile: openai-debug - dependencies: test:embed: - target: test:helper diff --git a/test/embed/components-rust/test-helper/golem.yaml b/test/embed/components-rust/test-helper/golem.yaml index 4c1a11ae..d81a9dc7 100644 --- a/test/embed/components-rust/test-helper/golem.yaml +++ b/test/embed/components-rust/test-helper/golem.yaml @@ -7,7 +7,7 @@ components: test:helper: - template: rust + templates: rust # Example for adding dependencies for Worker to Worker communication: # See https://learn.golem.cloud/docs/app-manifest#fields_dependencies for more information diff --git a/test/embed/golem.yaml b/test/embed/golem.yaml index 65b9f3af..d5453f89 100644 --- a/test/embed/golem.yaml +++ b/test/embed/golem.yaml @@ -5,8 +5,18 @@ # See https://learn.golem.cloud/docs/app-manifest#field-reference for field reference +app: golem-ai-embed-test-app + includes: - common-*/golem.yaml - components-*/*/golem.yaml witDeps: - wit/deps + +environments: + local: + server: local + componentPresets: debug + cloud: + server: cloud + componentPresets: release \ No newline at end of file diff --git a/test/exec/common-rust/golem.yaml b/test/exec/common-rust/golem.yaml index 7f81e866..a82bb9b7 100644 --- a/test/exec/common-rust/golem.yaml +++ b/test/exec/common-rust/golem.yaml @@ -8,8 +8,9 @@ templates: rust: - profiles: + presets: debug: + default: true build: - command: cargo component build sources: @@ -41,7 +42,6 @@ templates: linkedWasm: ../../golem-temp/components/{{ component_name | to_snake_case }}_release.wasm clean: - src/bindings.rs - defaultProfile: debug customCommands: cargo-clean: - command: cargo clean diff --git a/test/exec/components-rust/test-exec-js/golem.yaml b/test/exec/components-rust/test-exec-js/golem.yaml index 534628f8..1b56310d 100644 --- a/test/exec/components-rust/test-exec-js/golem.yaml +++ b/test/exec/components-rust/test-exec-js/golem.yaml @@ -8,8 +8,9 @@ components: test:exec-js: - profiles: + presets: debug: + default: true build: - command: cargo component build --no-default-features sources: @@ -53,8 +54,6 @@ components: clean: - src/bindings.rs - defaultProfile: debug - dependencies: test:exec-js: # NOTE: cannot use wasm dependency here yet because of a bug in golem-cli 1.2.5 diff --git a/test/exec/components-rust/test-exec-py/golem.yaml b/test/exec/components-rust/test-exec-py/golem.yaml index e1dbaf69..0cd5a85d 100644 --- a/test/exec/components-rust/test-exec-py/golem.yaml +++ b/test/exec/components-rust/test-exec-py/golem.yaml @@ -8,7 +8,7 @@ components: test:exec-py: - template: rust + templates: rust dependencies: test:exec-py: diff --git a/test/exec/components-rust/test-helper/golem.yaml b/test/exec/components-rust/test-helper/golem.yaml index 4c1a11ae..d81a9dc7 100644 --- a/test/exec/components-rust/test-helper/golem.yaml +++ b/test/exec/components-rust/test-helper/golem.yaml @@ -7,7 +7,7 @@ components: test:helper: - template: rust + templates: rust # Example for adding dependencies for Worker to Worker communication: # See https://learn.golem.cloud/docs/app-manifest#fields_dependencies for more information diff --git a/test/exec/golem.yaml b/test/exec/golem.yaml index af624c85..8f2fb901 100644 --- a/test/exec/golem.yaml +++ b/test/exec/golem.yaml @@ -6,8 +6,18 @@ # See https://learn.golem.cloud/docs/app-manifest#field-reference for field reference # For creating APIs see https://learn.golem.cloud/invoke/making-custom-apis +app: golem-ai-exec-test-app + includes: - common-*/golem.yaml - components-*/*/golem.yaml witDeps: - wit/deps + +environments: + local: + server: local + componentPresets: debug + cloud: + server: cloud + componentPresets: release \ No newline at end of file diff --git a/test/graph/common-rust/golem.yaml b/test/graph/common-rust/golem.yaml index b13a8389..f4329bd9 100644 --- a/test/graph/common-rust/golem.yaml +++ b/test/graph/common-rust/golem.yaml @@ -7,8 +7,9 @@ templates: rust: - profiles: + presets: debug: + default: true build: - command: cargo component build sources: @@ -38,7 +39,6 @@ templates: linkedWasm: ../../golem-temp/components/{{ component_name | to_snake_case }}_release.wasm clean: - src/bindings.rs - defaultProfile: debug customCommands: cargo-clean: - command: cargo clean diff --git a/test/graph/components-rust/test-graph/golem.yaml b/test/graph/components-rust/test-graph/golem.yaml index 74a48cb0..31b67dde 100644 --- a/test/graph/components-rust/test-graph/golem.yaml +++ b/test/graph/components-rust/test-graph/golem.yaml @@ -7,9 +7,10 @@ components: test:graph: - profiles: + presets: # DEBUG PROFILES neo4j-debug: + default: true build: - command: cargo component build --no-default-features --features neo4j sources: @@ -142,8 +143,6 @@ components: clean: - src/bindings.rs - defaultProfile: neo4j-debug - dependencies: test:graph: - target: test:helper diff --git a/test/graph/components-rust/test-helper/golem.yaml b/test/graph/components-rust/test-helper/golem.yaml index 4c1a11ae..d81a9dc7 100644 --- a/test/graph/components-rust/test-helper/golem.yaml +++ b/test/graph/components-rust/test-helper/golem.yaml @@ -7,7 +7,7 @@ components: test:helper: - template: rust + templates: rust # Example for adding dependencies for Worker to Worker communication: # See https://learn.golem.cloud/docs/app-manifest#fields_dependencies for more information diff --git a/test/graph/golem.yaml b/test/graph/golem.yaml index 65b9f3af..64ed9a5a 100644 --- a/test/graph/golem.yaml +++ b/test/graph/golem.yaml @@ -5,8 +5,18 @@ # See https://learn.golem.cloud/docs/app-manifest#field-reference for field reference +app: golem-ai-graph-test-app + includes: - common-*/golem.yaml - components-*/*/golem.yaml witDeps: - wit/deps + +environments: + local: + server: local + componentPresets: debug + cloud: + server: cloud + componentPresets: release diff --git a/test/llm/common-rust/golem.yaml b/test/llm/common-rust/golem.yaml index b13a8389..f4329bd9 100644 --- a/test/llm/common-rust/golem.yaml +++ b/test/llm/common-rust/golem.yaml @@ -7,8 +7,9 @@ templates: rust: - profiles: + presets: debug: + default: true build: - command: cargo component build sources: @@ -38,7 +39,6 @@ templates: linkedWasm: ../../golem-temp/components/{{ component_name | to_snake_case }}_release.wasm clean: - src/bindings.rs - defaultProfile: debug customCommands: cargo-clean: - command: cargo clean diff --git a/test/llm/components-rust/test-helper/golem.yaml b/test/llm/components-rust/test-helper/golem.yaml index 4c1a11ae..d81a9dc7 100644 --- a/test/llm/components-rust/test-helper/golem.yaml +++ b/test/llm/components-rust/test-helper/golem.yaml @@ -7,7 +7,7 @@ components: test:helper: - template: rust + templates: rust # Example for adding dependencies for Worker to Worker communication: # See https://learn.golem.cloud/docs/app-manifest#fields_dependencies for more information diff --git a/test/llm/components-rust/test-llm/golem.yaml b/test/llm/components-rust/test-llm/golem.yaml index 68ab1280..41526ecc 100644 --- a/test/llm/components-rust/test-llm/golem.yaml +++ b/test/llm/components-rust/test-llm/golem.yaml @@ -7,9 +7,10 @@ components: test:llm: - profiles: + presets: # DEBUG PROFILES openai-debug: + default: true files: - sourcePath: ../../data/cat.png targetPath: /data/cat.png @@ -322,8 +323,6 @@ components: clean: - src/bindings.rs - defaultProfile: openai-debug - dependencies: test:llm: - target: test:helper diff --git a/test/llm/golem.yaml b/test/llm/golem.yaml index 65b9f3af..65d0b0a3 100644 --- a/test/llm/golem.yaml +++ b/test/llm/golem.yaml @@ -5,8 +5,18 @@ # See https://learn.golem.cloud/docs/app-manifest#field-reference for field reference +app: golem-ai-llm-test-app + includes: - common-*/golem.yaml - components-*/*/golem.yaml witDeps: - wit/deps + +environments: + local: + server: local + componentPresets: debug + cloud: + server: cloud + componentPresets: release \ No newline at end of file diff --git a/test/search/common-rust/golem.yaml b/test/search/common-rust/golem.yaml index b13a8389..f4329bd9 100644 --- a/test/search/common-rust/golem.yaml +++ b/test/search/common-rust/golem.yaml @@ -7,8 +7,9 @@ templates: rust: - profiles: + presets: debug: + default: true build: - command: cargo component build sources: @@ -38,7 +39,6 @@ templates: linkedWasm: ../../golem-temp/components/{{ component_name | to_snake_case }}_release.wasm clean: - src/bindings.rs - defaultProfile: debug customCommands: cargo-clean: - command: cargo clean diff --git a/test/search/components-rust/test-helper/golem.yaml b/test/search/components-rust/test-helper/golem.yaml index 4c1a11ae..d81a9dc7 100644 --- a/test/search/components-rust/test-helper/golem.yaml +++ b/test/search/components-rust/test-helper/golem.yaml @@ -7,7 +7,7 @@ components: test:helper: - template: rust + templates: rust # Example for adding dependencies for Worker to Worker communication: # See https://learn.golem.cloud/docs/app-manifest#fields_dependencies for more information diff --git a/test/search/components-rust/test-search/golem.yaml b/test/search/components-rust/test-search/golem.yaml index 0ab7f7f5..181fa103 100644 --- a/test/search/components-rust/test-search/golem.yaml +++ b/test/search/components-rust/test-search/golem.yaml @@ -7,9 +7,10 @@ components: test:search: - profiles: + presets: # DEBUG PROFILES algolia-debug: + default: true build: - command: cargo component build --no-default-features --features algolia sources: @@ -230,8 +231,6 @@ components: clean: - src/bindings.rs - defaultProfile: algolia-debug - dependencies: test:search: - target: test:helper diff --git a/test/search/golem.yaml b/test/search/golem.yaml index 65b9f3af..4b6818e2 100644 --- a/test/search/golem.yaml +++ b/test/search/golem.yaml @@ -5,8 +5,18 @@ # See https://learn.golem.cloud/docs/app-manifest#field-reference for field reference +app: golem-ai-search-test-app + includes: - common-*/golem.yaml - components-*/*/golem.yaml witDeps: - wit/deps + +environments: + local: + server: local + componentPresets: debug + cloud: + server: cloud + componentPresets: release diff --git a/test/stt/components-rust/test-stt/golem.yaml b/test/stt/components-rust/test-stt/golem.yaml index 3d288130..8837a175 100644 --- a/test/stt/components-rust/test-stt/golem.yaml +++ b/test/stt/components-rust/test-stt/golem.yaml @@ -8,7 +8,7 @@ components: test:stt: - profiles: + presets: # DEBUG PROFILES aws-debug: files: @@ -119,6 +119,7 @@ components: clean: - src/bindings.rs whisper-debug: + default: true files: - sourcePath: samples/jfk.mp3 targetPath: /samples/jfk.mp3 @@ -282,8 +283,6 @@ components: linkedWasm: ../../golem-temp/components/test_whisper_stt_debug.wasm clean: - src/bindings.rs - - defaultProfile: whisper-debug # Example for adding dependencies for Worker to Worker communication: # See https://learn.golem.cloud/docs/app-manifest#fields_dependencies for more information # diff --git a/test/stt/golem.yaml b/test/stt/golem.yaml index af624c85..96c824f2 100644 --- a/test/stt/golem.yaml +++ b/test/stt/golem.yaml @@ -6,8 +6,18 @@ # See https://learn.golem.cloud/docs/app-manifest#field-reference for field reference # For creating APIs see https://learn.golem.cloud/invoke/making-custom-apis +app: golem-ai-stt-test-app + includes: - common-*/golem.yaml - components-*/*/golem.yaml witDeps: - wit/deps + +environments: + local: + server: local + componentPresets: debug + cloud: + server: cloud + componentPresets: release diff --git a/test/video-advanced/common-rust/golem.yaml b/test/video-advanced/common-rust/golem.yaml index 5d65c9ff..dda19921 100644 --- a/test/video-advanced/common-rust/golem.yaml +++ b/test/video-advanced/common-rust/golem.yaml @@ -6,10 +6,11 @@ # See https://learn.golem.cloud/docs/app-manifest#field-reference for field reference # For creating APIs see https://learn.golem.cloud/invoke/making-custom-apis -templates: +componentTemplates: rust: - profiles: + presets: debug: + default: true build: - command: cargo component build sources: @@ -41,7 +42,6 @@ templates: linkedWasm: ../../golem-temp/components/{{ component_name | to_snake_case }}_release.wasm clean: - src/bindings.rs - defaultProfile: debug customCommands: cargo-clean: - command: cargo clean diff --git a/test/video-advanced/components-rust/test-helper/golem.yaml b/test/video-advanced/components-rust/test-helper/golem.yaml index 4c1a11ae..d81a9dc7 100644 --- a/test/video-advanced/components-rust/test-helper/golem.yaml +++ b/test/video-advanced/components-rust/test-helper/golem.yaml @@ -7,7 +7,7 @@ components: test:helper: - template: rust + templates: rust # Example for adding dependencies for Worker to Worker communication: # See https://learn.golem.cloud/docs/app-manifest#fields_dependencies for more information diff --git a/test/video-advanced/components-rust/test-video-advanced/golem.yaml b/test/video-advanced/components-rust/test-video-advanced/golem.yaml index b18886b2..1af57ad6 100644 --- a/test/video-advanced/components-rust/test-video-advanced/golem.yaml +++ b/test/video-advanced/components-rust/test-video-advanced/golem.yaml @@ -8,9 +8,10 @@ components: test:video-advanced: - profiles: + presets: # DEBUG PROFILES kling-debug: + default: true files: - sourcePath: ../../data/first.png targetPath: /data/first.png @@ -91,7 +92,6 @@ components: linkedWasm: ../../golem-temp/components/test_video_kling_release.wasm clean: - src/bindings.rs - defaultProfile: kling-debug dependencies: test:video-advanced: diff --git a/test/video-advanced/golem.yaml b/test/video-advanced/golem.yaml index 9b87334d..c27d88a6 100644 --- a/test/video-advanced/golem.yaml +++ b/test/video-advanced/golem.yaml @@ -6,8 +6,18 @@ # See https://learn.golem.cloud/docs/app-manifest#field-reference for field reference # For creating APIs see https://learn.golem.cloud/invoke/making-custom-apis +app: golem-ai-video-advanced-test-app + includes: - common-*/golem.yaml - components-*/*/golem.yaml witDeps: - wit/deps + +environments: + local: + server: local + componentPresets: debug + cloud: + server: cloud + componentPresets: release diff --git a/test/video/Cargo.toml b/test/video/Cargo.toml index b87e305d..d97be2e0 100644 --- a/test/video/Cargo.toml +++ b/test/video/Cargo.toml @@ -7,7 +7,7 @@ opt-level = "s" lto = true [workspace.dependencies] -golem-rust = { version = "=1.9.0", features = [ +golem-rust = { version = "=1.10.0", features = [ "export_load_snapshot", "export_save_snapshot", "export_oplog_processor", diff --git a/test/video/common-rust/golem.yaml b/test/video/common-rust/golem.yaml index 5d65c9ff..e7860138 100644 --- a/test/video/common-rust/golem.yaml +++ b/test/video/common-rust/golem.yaml @@ -8,8 +8,9 @@ templates: rust: - profiles: + presets: debug: + default: true build: - command: cargo component build sources: @@ -41,7 +42,6 @@ templates: linkedWasm: ../../golem-temp/components/{{ component_name | to_snake_case }}_release.wasm clean: - src/bindings.rs - defaultProfile: debug customCommands: cargo-clean: - command: cargo clean diff --git a/test/video/components-rust/test-helper/golem.yaml b/test/video/components-rust/test-helper/golem.yaml index 4c1a11ae..d81a9dc7 100644 --- a/test/video/components-rust/test-helper/golem.yaml +++ b/test/video/components-rust/test-helper/golem.yaml @@ -7,7 +7,7 @@ components: test:helper: - template: rust + templates: rust # Example for adding dependencies for Worker to Worker communication: # See https://learn.golem.cloud/docs/app-manifest#fields_dependencies for more information diff --git a/test/video/components-rust/test-video/golem.yaml b/test/video/components-rust/test-video/golem.yaml index d63b758a..cf945011 100644 --- a/test/video/components-rust/test-video/golem.yaml +++ b/test/video/components-rust/test-video/golem.yaml @@ -8,9 +8,10 @@ components: test:video: - profiles: + presets: # DEBUG PROFILES stability-debug: + default: true files: - sourcePath: ../../data/old.png targetPath: /data/old.png @@ -211,7 +212,6 @@ components: linkedWasm: ../../golem-temp/components/test_video_veo_release.wasm clean: - src/bindings.rs - defaultProfile: stability-debug dependencies: diff --git a/test/video/golem.yaml b/test/video/golem.yaml index 9b87334d..d738d334 100644 --- a/test/video/golem.yaml +++ b/test/video/golem.yaml @@ -6,8 +6,18 @@ # See https://learn.golem.cloud/docs/app-manifest#field-reference for field reference # For creating APIs see https://learn.golem.cloud/invoke/making-custom-apis +app: golem-ai-video-test-app + includes: - common-*/golem.yaml - components-*/*/golem.yaml witDeps: - wit/deps + +environments: + local: + server: local + componentPresets: debug + cloud: + server: cloud + componentPresets: release \ No newline at end of file diff --git a/test/websearch/Cargo.toml b/test/websearch/Cargo.toml index b87e305d..d97be2e0 100644 --- a/test/websearch/Cargo.toml +++ b/test/websearch/Cargo.toml @@ -7,7 +7,7 @@ opt-level = "s" lto = true [workspace.dependencies] -golem-rust = { version = "=1.9.0", features = [ +golem-rust = { version = "=1.10.0", features = [ "export_load_snapshot", "export_save_snapshot", "export_oplog_processor", diff --git a/test/websearch/common-rust/golem.yaml b/test/websearch/common-rust/golem.yaml index b13a8389..f4329bd9 100644 --- a/test/websearch/common-rust/golem.yaml +++ b/test/websearch/common-rust/golem.yaml @@ -7,8 +7,9 @@ templates: rust: - profiles: + presets: debug: + default: true build: - command: cargo component build sources: @@ -38,7 +39,6 @@ templates: linkedWasm: ../../golem-temp/components/{{ component_name | to_snake_case }}_release.wasm clean: - src/bindings.rs - defaultProfile: debug customCommands: cargo-clean: - command: cargo clean diff --git a/test/websearch/components-rust/test-helper/golem.yaml b/test/websearch/components-rust/test-helper/golem.yaml index 4c1a11ae..d81a9dc7 100644 --- a/test/websearch/components-rust/test-helper/golem.yaml +++ b/test/websearch/components-rust/test-helper/golem.yaml @@ -7,7 +7,7 @@ components: test:helper: - template: rust + templates: rust # Example for adding dependencies for Worker to Worker communication: # See https://learn.golem.cloud/docs/app-manifest#fields_dependencies for more information diff --git a/test/websearch/components-rust/test-websearch/golem.yaml b/test/websearch/components-rust/test-websearch/golem.yaml index 7f0034e5..1630461a 100644 --- a/test/websearch/components-rust/test-websearch/golem.yaml +++ b/test/websearch/components-rust/test-websearch/golem.yaml @@ -1,9 +1,9 @@ components: test:websearch: - defaultProfile: google-debug - profiles: + presets: # DEBUG PROFILES google-debug: + default: true build: - command: cargo component build --no-default-features --features google sources: diff --git a/test/websearch/golem.yaml b/test/websearch/golem.yaml index 65b9f3af..5cfca7e9 100644 --- a/test/websearch/golem.yaml +++ b/test/websearch/golem.yaml @@ -5,8 +5,18 @@ # See https://learn.golem.cloud/docs/app-manifest#field-reference for field reference +app: golem-ai-websearch-test-app + includes: - common-*/golem.yaml - components-*/*/golem.yaml witDeps: - wit/deps + +environments: + local: + server: local + componentPresets: debug + cloud: + server: cloud + componentPresets: release From b9f3521632920be8997da3f90dbc2dc501d0c25f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Istv=C3=A1n=20B=C3=ADr=C3=B3?= Date: Mon, 8 Dec 2025 08:55:04 -0500 Subject: [PATCH 2/6] fix cargo install of golem-cli --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 678f112f..25ae205f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -86,7 +86,7 @@ jobs: - name: Install cargo-component run: cargo binstall --force cargo-component@0.21.1 - name: Install golem-cli - run: cargo binstall --force golem-cli@1.4.0-dev.7 --locked --no-confirm + run: cargo install golem-cli --git https://github.com/golemcloud/golem --tag v1.4.0-dev.7 --force --locked - name: Install wac-cli run: cargo binstall --force wac-cli --locked --no-confirm - name: Build all test components From 951892f37fd89e716b6789d8fa2df3696b9b3958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Istv=C3=A1n=20B=C3=ADr=C3=B3?= Date: Mon, 8 Dec 2025 09:04:31 -0500 Subject: [PATCH 3/6] fix golem manifests --- test/embed/common-rust/golem.yaml | 2 +- test/exec/common-rust/golem.yaml | 2 +- test/graph/common-rust/golem.yaml | 2 +- test/llm/common-rust/golem.yaml | 2 +- test/search/common-rust/golem.yaml | 2 +- test/video/common-rust/golem.yaml | 2 +- test/websearch/common-rust/golem.yaml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/embed/common-rust/golem.yaml b/test/embed/common-rust/golem.yaml index a72f13af..60fbf2e3 100644 --- a/test/embed/common-rust/golem.yaml +++ b/test/embed/common-rust/golem.yaml @@ -5,7 +5,7 @@ # See https://learn.golem.cloud/docs/app-manifest#field-reference for field reference -templates: +componentTemplates: rust: presets: default: true diff --git a/test/exec/common-rust/golem.yaml b/test/exec/common-rust/golem.yaml index a82bb9b7..bac81b63 100644 --- a/test/exec/common-rust/golem.yaml +++ b/test/exec/common-rust/golem.yaml @@ -6,7 +6,7 @@ # See https://learn.golem.cloud/docs/app-manifest#field-reference for field reference # For creating APIs see https://learn.golem.cloud/invoke/making-custom-apis -templates: +componentTemplates: rust: presets: debug: diff --git a/test/graph/common-rust/golem.yaml b/test/graph/common-rust/golem.yaml index f4329bd9..dc81f3ca 100644 --- a/test/graph/common-rust/golem.yaml +++ b/test/graph/common-rust/golem.yaml @@ -5,7 +5,7 @@ # See https://learn.golem.cloud/docs/app-manifest#field-reference for field reference -templates: +componentTemplates: rust: presets: debug: diff --git a/test/llm/common-rust/golem.yaml b/test/llm/common-rust/golem.yaml index f4329bd9..dc81f3ca 100644 --- a/test/llm/common-rust/golem.yaml +++ b/test/llm/common-rust/golem.yaml @@ -5,7 +5,7 @@ # See https://learn.golem.cloud/docs/app-manifest#field-reference for field reference -templates: +componentTemplates: rust: presets: debug: diff --git a/test/search/common-rust/golem.yaml b/test/search/common-rust/golem.yaml index f4329bd9..dc81f3ca 100644 --- a/test/search/common-rust/golem.yaml +++ b/test/search/common-rust/golem.yaml @@ -5,7 +5,7 @@ # See https://learn.golem.cloud/docs/app-manifest#field-reference for field reference -templates: +componentTemplates: rust: presets: debug: diff --git a/test/video/common-rust/golem.yaml b/test/video/common-rust/golem.yaml index e7860138..dda19921 100644 --- a/test/video/common-rust/golem.yaml +++ b/test/video/common-rust/golem.yaml @@ -6,7 +6,7 @@ # See https://learn.golem.cloud/docs/app-manifest#field-reference for field reference # For creating APIs see https://learn.golem.cloud/invoke/making-custom-apis -templates: +componentTemplates: rust: presets: debug: diff --git a/test/websearch/common-rust/golem.yaml b/test/websearch/common-rust/golem.yaml index f4329bd9..dc81f3ca 100644 --- a/test/websearch/common-rust/golem.yaml +++ b/test/websearch/common-rust/golem.yaml @@ -5,7 +5,7 @@ # See https://learn.golem.cloud/docs/app-manifest#field-reference for field reference -templates: +componentTemplates: rust: presets: debug: From 848d9c0bc8c007959580e0de62b17a733b4fac03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Istv=C3=A1n=20B=C3=ADr=C3=B3?= Date: Mon, 8 Dec 2025 09:19:18 -0500 Subject: [PATCH 4/6] fix manifest deps --- test/embed/components-rust/test-embed/golem.yaml | 7 +++---- test/exec/components-rust/test-exec-js/golem.yaml | 13 ++++++------- test/exec/components-rust/test-exec-py/golem.yaml | 7 +++---- test/graph/components-rust/test-graph/golem.yaml | 7 +++---- test/llm/components-rust/test-llm/golem.yaml | 7 +++---- test/search/components-rust/test-search/golem.yaml | 7 +++---- .../components-rust/test-video-advanced/golem.yaml | 7 +++---- test/video/components-rust/test-video/golem.yaml | 8 +++----- .../components-rust/test-websearch/golem.yaml | 7 +++---- 9 files changed, 30 insertions(+), 40 deletions(-) diff --git a/test/embed/components-rust/test-embed/golem.yaml b/test/embed/components-rust/test-embed/golem.yaml index 7c971cfa..54d5c299 100644 --- a/test/embed/components-rust/test-embed/golem.yaml +++ b/test/embed/components-rust/test-embed/golem.yaml @@ -187,7 +187,6 @@ components: clean: - src/bindings.rs -dependencies: - test:embed: - - target: test:helper - type: wasm-rpc + dependencies: + - target: test:helper + type: wasm-rpc diff --git a/test/exec/components-rust/test-exec-js/golem.yaml b/test/exec/components-rust/test-exec-js/golem.yaml index 1b56310d..f9e67a7b 100644 --- a/test/exec/components-rust/test-exec-js/golem.yaml +++ b/test/exec/components-rust/test-exec-js/golem.yaml @@ -54,10 +54,9 @@ components: clean: - src/bindings.rs -dependencies: - test:exec-js: -# NOTE: cannot use wasm dependency here yet because of a bug in golem-cli 1.2.5 -# - type: wasm -# path: ../../target/debug/golem_exec_javascript.wasm - - type: wasm-rpc - target: test:helper + dependencies: + # NOTE: cannot use wasm dependency here yet because of a bug in golem-cli 1.2.5 + # - type: wasm + # path: ../../target/debug/golem_exec_javascript.wasm + - type: wasm-rpc + target: test:helper diff --git a/test/exec/components-rust/test-exec-py/golem.yaml b/test/exec/components-rust/test-exec-py/golem.yaml index 0cd5a85d..2f41f1eb 100644 --- a/test/exec/components-rust/test-exec-py/golem.yaml +++ b/test/exec/components-rust/test-exec-py/golem.yaml @@ -10,7 +10,6 @@ components: test:exec-py: templates: rust -dependencies: - test:exec-py: - - type: wasm - path: ../../target/release/golem_exec.wasm + dependencies: + - type: wasm + path: ../../target/release/golem_exec.wasm diff --git a/test/graph/components-rust/test-graph/golem.yaml b/test/graph/components-rust/test-graph/golem.yaml index 31b67dde..efef511e 100644 --- a/test/graph/components-rust/test-graph/golem.yaml +++ b/test/graph/components-rust/test-graph/golem.yaml @@ -143,7 +143,6 @@ components: clean: - src/bindings.rs -dependencies: - test:graph: - - target: test:helper - type: wasm-rpc + dependencies: + - target: test:helper + type: wasm-rpc diff --git a/test/llm/components-rust/test-llm/golem.yaml b/test/llm/components-rust/test-llm/golem.yaml index 41526ecc..b3d80bd0 100644 --- a/test/llm/components-rust/test-llm/golem.yaml +++ b/test/llm/components-rust/test-llm/golem.yaml @@ -323,7 +323,6 @@ components: clean: - src/bindings.rs -dependencies: - test:llm: - - target: test:helper - type: wasm-rpc + dependencies: + - target: test:helper + type: wasm-rpc diff --git a/test/search/components-rust/test-search/golem.yaml b/test/search/components-rust/test-search/golem.yaml index 181fa103..0c50d7e7 100644 --- a/test/search/components-rust/test-search/golem.yaml +++ b/test/search/components-rust/test-search/golem.yaml @@ -231,7 +231,6 @@ components: clean: - src/bindings.rs -dependencies: - test:search: - - target: test:helper - type: wasm-rpc + dependencies: + - target: test:helper + type: wasm-rpc diff --git a/test/video-advanced/components-rust/test-video-advanced/golem.yaml b/test/video-advanced/components-rust/test-video-advanced/golem.yaml index 1af57ad6..31fdfe13 100644 --- a/test/video-advanced/components-rust/test-video-advanced/golem.yaml +++ b/test/video-advanced/components-rust/test-video-advanced/golem.yaml @@ -93,7 +93,6 @@ components: clean: - src/bindings.rs -dependencies: - test:video-advanced: - - target: test:helper - type: wasm-rpc + dependencies: + - target: test:helper + type: wasm-rpc diff --git a/test/video/components-rust/test-video/golem.yaml b/test/video/components-rust/test-video/golem.yaml index cf945011..08a52faa 100644 --- a/test/video/components-rust/test-video/golem.yaml +++ b/test/video/components-rust/test-video/golem.yaml @@ -213,8 +213,6 @@ components: clean: - src/bindings.rs - -dependencies: - test:video: - - target: test:helper - type: wasm-rpc + dependencies: + - target: test:helper + type: wasm-rpc diff --git a/test/websearch/components-rust/test-websearch/golem.yaml b/test/websearch/components-rust/test-websearch/golem.yaml index 1630461a..9567319d 100644 --- a/test/websearch/components-rust/test-websearch/golem.yaml +++ b/test/websearch/components-rust/test-websearch/golem.yaml @@ -172,7 +172,6 @@ components: clean: - src/bindings.rs -dependencies: - test:websearch: - - target: test:helper - type: wasm-rpc \ No newline at end of file + dependencies: + - target: test:helper + type: wasm-rpc \ No newline at end of file From 1607a3d9829b1b2db2ccf367bc3d600b66433d43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Istv=C3=A1n=20B=C3=ADr=C3=B3?= Date: Mon, 8 Dec 2025 09:27:07 -0500 Subject: [PATCH 5/6] install golem-cli binary directly --- .github/workflows/ci.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 25ae205f..f1ea92aa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -85,8 +85,14 @@ jobs: - uses: cargo-bins/cargo-binstall@main - name: Install cargo-component run: cargo binstall --force cargo-component@0.21.1 - - name: Install golem-cli - run: cargo install golem-cli --git https://github.com/golemcloud/golem --tag v1.4.0-dev.7 --force --locked + - name: Install Golem CLI + run: | + set -e + echo "Installing Golem CLI" + sudo curl -L https://github.com/golemcloud/golem/releases/download/v1.4.0-dev.7/golem-cli-x86_64-unknown-linux-gnu -o ./golem-cli + sudo chmod +x ./golem-cli + sudo mv ./golem-cli /usr/local/bin/golem-cli + echo "Installed Golem CLI" - name: Install wac-cli run: cargo binstall --force wac-cli --locked --no-confirm - name: Build all test components From db2f001428db7de0337d3faee3982f74ccffd87b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Istv=C3=A1n=20B=C3=ADr=C3=B3?= Date: Mon, 8 Dec 2025 09:49:36 -0500 Subject: [PATCH 6/6] more manifest and CLI fixes / updates --- .github/workflows/ci.yaml | 10 +++++----- README.md | 26 +++++++++++++------------- embed/Makefile.toml | 8 ++++---- embed/README.md | 4 ++-- exec/Makefile.toml | 2 +- graph/Makefile.toml | 12 ++++++------ llm/Makefile.toml | 24 ++++++++++++------------ llm/README.md | 4 ++-- search/Makefile.toml | 20 ++++++++++---------- search/README.md | 4 ++-- stt/Makefile.toml | 20 ++++++++++---------- stt/README.md | 4 ++-- test/embed/golem.yaml | 4 ++-- test/llm/golem.yaml | 4 ++-- test/search/golem.yaml | 4 ++-- test/stt/golem.yaml | 4 ++-- test/video-advanced/golem.yaml | 4 ++-- test/video/golem.yaml | 4 ++-- test/websearch/golem.yaml | 4 ++-- video/Makefile.toml | 20 ++++++++++---------- video/README.md | 8 ++++---- websearch/Makefile.toml | 16 ++++++++-------- websearch/README.md | 4 ++-- 23 files changed, 107 insertions(+), 107 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f1ea92aa..52d4e6f3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -139,7 +139,7 @@ jobs: cargo make --cwd exec release-build cd test/exec golem profile config local set-format json - golem app -b release deploy + golem app -P release deploy golem agent invoke test:exec-js/test-1 test01 | jq -e '(.result_wave[0]=="true")' golem agent invoke test:exec-js/test-2 test02 | jq -e '(.result_wave[0]=="true")' golem agent invoke test:exec-js/test-3 test03 | jq -e '(.result_wave[0]=="true")' @@ -213,7 +213,7 @@ jobs: set -eo pipefail cargo make --cwd llm build-ollama cd test/llm - golem app deploy -b ollama-debug test:llm test:helper + golem app deploy --preset ollama-debug test:llm test:helper golem agent new -e GOLEM_OLLAMA_BASE_URL=http://localhost:11434 test:llm/ollama-1 golem agent invoke test:llm/ollama-1 test1 | grep -v "ERROR: " golem agent invoke test:llm/ollama-1 test2 | grep -v "ERROR: " @@ -312,7 +312,7 @@ jobs: cd test/graph echo "Testing ArangoDB integration..." - golem app deploy -b arangodb-release test:graph test:helper + golem app deploy --preset arangodb-release test:graph test:helper golem agent new -e ARANGODB_HOST=localhost -e ARANGODB_USER="" -e ARANGODB_PASSWORD="" -e ARANGODB_PORT="8529" -e ARANGODB_DATABASE="test" test:graph/arangodb-1 golem agent invoke test:graph/arangodb-1 test1 | grep -v "ERROR: " golem agent invoke test:graph/arangodb-1 test2 | grep -v "ERROR: " @@ -325,7 +325,7 @@ jobs: golem app clean -b arangodb-release echo "Testing JanusGraph integration..." - golem app deploy -b janusgraph-release test:graph test:helper + golem app deploy --preset janusgraph-release test:graph test:helper sleep 10 golem agent new -e JANUSGRAPH_HOST=localhost -e JANUSGRAPH_USER="" -e JANUSGRAPH_PASSWORD="" -e JANUSGRAPH_PORT="8182" test:graph/janusgraph-1 golem agent invoke test:graph/janusgraph-1 test1 | grep -v "ERROR: " @@ -339,7 +339,7 @@ jobs: golem app clean -b janusgraph-release echo "Testing Neo4j integration..." - golem app deploy -b neo4j-release test:graph test:helper + golem app deploy --preset neo4j-release test:graph test:helper sleep 10 golem agent new -e NEO4J_HOST=localhost -e NEO4J_USER=neo4j -e NEO4J_PASSWORD=password -e NEO4J_PORT="7474" -e NEO4J_DATABASE=neo4j test:graph/neo4j-1 golem agent invoke test:graph/neo4j-1 test1 | grep -v "ERROR: " diff --git a/README.md b/README.md index c39ad04e..8e9a7449 100644 --- a/README.md +++ b/README.md @@ -155,8 +155,8 @@ Using example of `openai-debug` profile from LLM test, and respective environmen ```bash cd test/llm -golem app build -b openai-debug -golem app deploy -b openai-debug +golem app build --preset openai-debug +golem app deploy --preset openai-debug ``` Depending on the provider selected, an environment variable has to be set for the worker to be started, containing the ENVIRONMENT variable (eg.API key) for the given provider: @@ -182,17 +182,17 @@ For detailed information about available profiles and environment variables for This repository uses [cargo-make](https://github.com/sagiegurari/cargo-make) to automate build tasks. Some of the important tasks are: -| Command | Description | -|-------------------------------------|----------------------------------------------------------------------------------------------------------------| -| `cargo make build` | Build all components with Golem bindings in Debug | -| `cargo make release-build` | Build all components with Golem bindings in Release | -| `cargo make build-portable` | Build all components with no Golem bindings in Debug | -| `cargo make release-build-portable` | Build all components with no Golem bindings in Release | -| `cargo make unit-tests` | Run all unit tests | -| `cargo make check` | Checks formatting and Clippy rules | -| `cargo make fix` | Fixes formatting and Clippy rules | -| `cargo make wit` | Used after editing the `/wit/golem-.wit` file - distributes the changes to all wit directories | -| `cargo make build-test-components` | Builds all test apps in `/test`, with all provider build-options using `golem-cli app build -b ` | +| Command | Description | +|-------------------------------------|------------------------------------------------------------------------------------------------------------------| +| `cargo make build` | Build all components with Golem bindings in Debug | +| `cargo make release-build` | Build all components with Golem bindings in Release | +| `cargo make build-portable` | Build all components with no Golem bindings in Debug | +| `cargo make release-build-portable` | Build all components with no Golem bindings in Release | +| `cargo make unit-tests` | Run all unit tests | +| `cargo make check` | Checks formatting and Clippy rules | +| `cargo make fix` | Fixes formatting and Clippy rules | +| `cargo make wit` | Used after editing the `/wit/golem-.wit` file - distributes the changes to all wit directories | +| `cargo make build-test-components` | Builds all test apps in `/test`, with all provider build-options using `golem-cli app build --preset ` | **Note**: `cargo make` command build, release-build, build-portable, release-build-portable, wit, build-test-components, can be used with `cargo make ` to target only the selected module. (e.g. `cargo make build llm`, `cargo make wit video`) diff --git a/embed/Makefile.toml b/embed/Makefile.toml index abebe360..9f4ca815 100644 --- a/embed/Makefile.toml +++ b/embed/Makefile.toml @@ -148,13 +148,13 @@ cd ../test/embed golem-cli --version golem-cli app clean -golem-cli app build -b openai-debug +golem-cli appbuild --preset openai-debug golem-cli app clean -golem-cli app build -b cohere-debug +golem-cli appbuild --preset cohere-debug golem-cli app clean -golem-cli app build -b hugging-face-debug +golem-cli appbuild --preset hugging-face-debug golem-cli app clean -golem-cli app build -b voyageai-debug +golem-cli appbuild --preset voyageai-debug ''' diff --git a/embed/README.md b/embed/README.md index 54754308..83b0d149 100644 --- a/embed/README.md +++ b/embed/README.md @@ -150,8 +150,8 @@ Then build and deploy the _test application_. Select one of the following profil ```bash cd test -golem app build -b openai-debug -golem app deploy -b openai-debug +golem app build --preset openai-debug +golem app deploy --preset openai-debug ``` Depending on the provider selected, an environment variable has to be set for the worker to be started, containing the API key for the given provider: diff --git a/exec/Makefile.toml b/exec/Makefile.toml index ec512ef5..5bd55555 100644 --- a/exec/Makefile.toml +++ b/exec/Makefile.toml @@ -155,5 +155,5 @@ cd ../test/exec golem-cli --version golem-cli --dev-mode app clean -golem-cli --dev-mode app -b release build +golem-cli --dev-mode app --preset release build ''' diff --git a/graph/Makefile.toml b/graph/Makefile.toml index f4754b2d..6bdec728 100644 --- a/graph/Makefile.toml +++ b/graph/Makefile.toml @@ -143,11 +143,11 @@ cd ../test/graph golem-cli --version golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b arangodb-debug +golem-cli --dev-mode app build --preset arangodb-debug golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b janusgraph-debug +golem-cli --dev-mode app build --preset janusgraph-debug golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b neo4j-debug +golem-cli --dev-mode app build --preset neo4j-debug ''' [tasks.release-build-test-components] @@ -158,9 +158,9 @@ cd ../test/graph golem-cli --version golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b arangodb-release +golem-cli --dev-mode app build --preset arangodb-release golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b janusgraph-release +golem-cli --dev-mode app build --preset janusgraph-release golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b neo4j-release +golem-cli --dev-mode app build --preset neo4j-release ''' diff --git a/llm/Makefile.toml b/llm/Makefile.toml index fcbc9077..161efcac 100644 --- a/llm/Makefile.toml +++ b/llm/Makefile.toml @@ -225,17 +225,17 @@ cd ../test/llm golem-cli --version golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b anthropic-debug +golem-cli --dev-mode app build --preset anthropic-debug golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b grok-debug +golem-cli --dev-mode app build --preset grok-debug golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b openai-debug +golem-cli --dev-mode app build --preset openai-debug golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b openrouter-debug +golem-cli --dev-mode app build --preset openrouter-debug golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b ollama-debug +golem-cli --dev-mode app build --preset ollama-debug golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b bedrock-debug +golem-cli --dev-mode app build --preset bedrock-debug ''' [tasks.release-build-test-components] @@ -246,15 +246,15 @@ cd ../test/llm golem-cli --version golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b anthropic-release +golem-cli --dev-mode app build --preset anthropic-release golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b grok-release +golem-cli --dev-mode app build --preset grok-release golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b openai-release +golem-cli --dev-mode app build --preset openai-release golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b openrouter-release +golem-cli --dev-mode app build --preset openrouter-release golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b ollama-release +golem-cli --dev-mode app build --preset ollama-release golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b bedrock-release +golem-cli --dev-mode app build --preset bedrock-release ''' diff --git a/llm/README.md b/llm/README.md index 50f3b238..ac433eac 100644 --- a/llm/README.md +++ b/llm/README.md @@ -87,8 +87,8 @@ Then build and deploy the _test application_. The following profiles are availab ```bash cd ../test/llm -golem app build -b openai-debug -golem app deploy -b openai-debug +golem appbuild --presetopenai-debug +golem app deploy --preset openai-debug ``` Depending on the provider selected, an environment variable has to be set for the worker to be started, containing the ENVIRONMENT variable (eg.API key) for the given provider: diff --git a/search/Makefile.toml b/search/Makefile.toml index 4cdf20c9..2741e80b 100644 --- a/search/Makefile.toml +++ b/search/Makefile.toml @@ -187,15 +187,15 @@ cd ../test/search golem-cli --version golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b algolia-debug +golem-cli --dev-mode app build --preset algolia-debug golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b elasticsearch-debug +golem-cli --dev-mode app build --preset elasticsearch-debug golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b meilisearch-debug +golem-cli --dev-mode app build --preset meilisearch-debug golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b opensearch-debug +golem-cli --dev-mode app build --preset opensearch-debug golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b typesense-debug +golem-cli --dev-mode app build --preset typesense-debug ''' [tasks.release-build-test-components] @@ -206,13 +206,13 @@ cd ../test/search golem-cli --version golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b algolia-release +golem-cli --dev-mode app build --preset algolia-release golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b elasticsearch-release +golem-cli --dev-mode app build --preset elasticsearch-release golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b meilisearch-release +golem-cli --dev-mode app build --preset meilisearch-release golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b opensearch-release +golem-cli --dev-mode app build --preset opensearch-release golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b typesense-release +golem-cli --dev-mode app build --preset typesense-release ''' diff --git a/search/README.md b/search/README.md index a6656fa5..aca91ee1 100644 --- a/search/README.md +++ b/search/README.md @@ -81,8 +81,8 @@ Then build and deploy the _test application_. The following profiles are availab ```bash cd ../test/search -golem app build -b algolia-debug -golem app deploy -b algolia-debug +golem app build --preset algolia-debug +golem app deploy --preset algolia-debug ``` Depending on the provider selected, environment variables have to be set for the worker to be started, containing the ENVIRONMENT variables (eg. connection details) for the given provider: diff --git a/stt/Makefile.toml b/stt/Makefile.toml index b1960975..f58d064b 100644 --- a/stt/Makefile.toml +++ b/stt/Makefile.toml @@ -195,11 +195,11 @@ cd ../test/stt golem-cli --version golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b aws-debug -golem-cli --dev-mode app build -b azure-debug -golem-cli --dev-mode app build -b deepgram-debug -golem-cli --dev-mode app build -b google-debug -golem-cli --dev-mode app build -b whisper-debug +golem-cli --dev-mode app build --preset aws-debug +golem-cli --dev-mode app build --preset azure-debug +golem-cli --dev-mode app build --preset deepgram-debug +golem-cli --dev-mode app build --preset google-debug +golem-cli --dev-mode app build --preset whisper-debug ''' [tasks.release-build-test-components] @@ -210,9 +210,9 @@ cd ../test/stt golem-cli --version golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b aws-release -golem-cli --dev-mode app build -b azure-release -golem-cli --dev-mode app build -b deepgram-release -golem-cli --dev-mode app build -b google-release -golem-cli --dev-mode app build -b whisper-release +golem-cli --dev-mode app build --preset aws-release +golem-cli --dev-mode app build --preset azure-release +golem-cli --dev-mode app build --preset deepgram-release +golem-cli --dev-mode app build --preset google-release +golem-cli --dev-mode app build --preset whisper-release ''' diff --git a/stt/README.md b/stt/README.md index 9a918efb..c692ba48 100644 --- a/stt/README.md +++ b/stt/README.md @@ -92,5 +92,5 @@ Then build and deploy the _test application_. The following profiles are availab ```bash cd ../test/stt -golem app build -b whisper-debug -golem app deploy -b whisper-debug +golem app build --preset whisper-debug +golem app deploy --preset whisper-debug diff --git a/test/embed/golem.yaml b/test/embed/golem.yaml index d5453f89..69da6c2a 100644 --- a/test/embed/golem.yaml +++ b/test/embed/golem.yaml @@ -16,7 +16,7 @@ witDeps: environments: local: server: local - componentPresets: debug + componentPresets: openai-debug cloud: server: cloud - componentPresets: release \ No newline at end of file + componentPresets: openai-release \ No newline at end of file diff --git a/test/llm/golem.yaml b/test/llm/golem.yaml index 65d0b0a3..acc408f5 100644 --- a/test/llm/golem.yaml +++ b/test/llm/golem.yaml @@ -16,7 +16,7 @@ witDeps: environments: local: server: local - componentPresets: debug + componentPresets: openai-debug cloud: server: cloud - componentPresets: release \ No newline at end of file + componentPresets: openai-release \ No newline at end of file diff --git a/test/search/golem.yaml b/test/search/golem.yaml index 4b6818e2..4bd9e843 100644 --- a/test/search/golem.yaml +++ b/test/search/golem.yaml @@ -16,7 +16,7 @@ witDeps: environments: local: server: local - componentPresets: debug + componentPresets: algolia-debug cloud: server: cloud - componentPresets: release + componentPresets: algolia-release diff --git a/test/stt/golem.yaml b/test/stt/golem.yaml index 96c824f2..167eac3c 100644 --- a/test/stt/golem.yaml +++ b/test/stt/golem.yaml @@ -17,7 +17,7 @@ witDeps: environments: local: server: local - componentPresets: debug + componentPresets: whisper-debug cloud: server: cloud - componentPresets: release + componentPresets: whisper-release diff --git a/test/video-advanced/golem.yaml b/test/video-advanced/golem.yaml index c27d88a6..0a43a798 100644 --- a/test/video-advanced/golem.yaml +++ b/test/video-advanced/golem.yaml @@ -17,7 +17,7 @@ witDeps: environments: local: server: local - componentPresets: debug + componentPresets: kling-debug cloud: server: cloud - componentPresets: release + componentPresets: kling-release diff --git a/test/video/golem.yaml b/test/video/golem.yaml index d738d334..6eed3b53 100644 --- a/test/video/golem.yaml +++ b/test/video/golem.yaml @@ -17,7 +17,7 @@ witDeps: environments: local: server: local - componentPresets: debug + componentPresets: stability-debug cloud: server: cloud - componentPresets: release \ No newline at end of file + componentPresets: stability-release \ No newline at end of file diff --git a/test/websearch/golem.yaml b/test/websearch/golem.yaml index 5cfca7e9..4f9db6ca 100644 --- a/test/websearch/golem.yaml +++ b/test/websearch/golem.yaml @@ -16,7 +16,7 @@ witDeps: environments: local: server: local - componentPresets: debug + componentPresets: google-debug cloud: server: cloud - componentPresets: release + componentPresets: google-release diff --git a/video/Makefile.toml b/video/Makefile.toml index 55a24b92..52865ba8 100644 --- a/video/Makefile.toml +++ b/video/Makefile.toml @@ -154,19 +154,19 @@ cd ../test/video golem-cli --version golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b veo-debug +golem-cli --dev-mode app build --preset veo-debug golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b stability-debug +golem-cli --dev-mode app build --preset stability-debug golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b kling-debug +golem-cli --dev-mode app build --preset kling-debug golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b runway-debug +golem-cli --dev-mode app build --preset runway-debug cd ../video-advanced golem-cli --version golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b kling-debug +golem-cli --dev-mode app build --preset kling-debug golem-cli --dev-mode app clean ''' @@ -178,18 +178,18 @@ cd ../test/video golem-cli --version golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b veo-release +golem-cli --dev-mode app build --preset veo-release golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b stability-release +golem-cli --dev-mode app build --preset stability-release golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b kling-release +golem-cli --dev-mode app build --preset kling-release golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b runway-release +golem-cli --dev-mode app build --preset runway-release cd ../video-advanced golem-cli --version golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b kling-release +golem-cli --dev-mode app build --preset kling-release golem-cli --dev-mode app clean ''' diff --git a/video/README.md b/video/README.md index e5af1e65..822348a2 100644 --- a/video/README.md +++ b/video/README.md @@ -79,8 +79,8 @@ Then build and deploy the _test application_. The following profiles are availab ```bash cd ../test/video -golem app build -b veo-debug -golem app deploy -b veo-debug +golem app build --preset veo-debug +golem app deploy --preset veo-debug ``` Depending on the provider selected, an environment variable has to be set for the worker to be started, containing the ENVIRONMENT variable (eg.API key) for the given provider: @@ -132,8 +132,8 @@ The following profiles are available for testing: ```bash cd ../test/video-advanced -golem app build -b kling-debug -golem app deploy -b kling-debug +golem app build --preset kling-debug +golem app deploy --preset kling-debug ``` Depending on the provider selected, an environment variable has to be set for the worker to be started, containing the ENVIRONMENT variable (eg.API key) for the given provider: diff --git a/websearch/Makefile.toml b/websearch/Makefile.toml index f86aefb1..823ecc60 100644 --- a/websearch/Makefile.toml +++ b/websearch/Makefile.toml @@ -154,13 +154,13 @@ cd ../test/websearch golem-cli --version golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b brave-debug +golem-cli --dev-mode app build --preset brave-debug golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b google-debug +golem-cli --dev-mode app build --preset google-debug golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b serper-debug +golem-cli --dev-mode app build --preset serper-debug golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b tavily-debug +golem-cli --dev-mode app build --preset tavily-debug ''' [tasks.release-build-test-components] @@ -171,11 +171,11 @@ cd ../test/websearch golem-cli --version golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b brave-release +golem-cli --dev-mode app build --preset brave-release golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b google-release +golem-cli --dev-mode app build --preset google-release golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b serper-release +golem-cli --dev-mode app build --preset serper-release golem-cli --dev-mode app clean -golem-cli --dev-mode app build -b tavily-release +golem-cli --dev-mode app build --preset tavily-release ''' \ No newline at end of file diff --git a/websearch/README.md b/websearch/README.md index 52e7ba35..0b0782ab 100644 --- a/websearch/README.md +++ b/websearch/README.md @@ -74,8 +74,8 @@ Then build and deploy the _test application_. The following profiles are availab ```bash cd ../test/websearch -golem app build -b brave-debug -golem app deploy -b brave-debug +golem app build --preset brave-debug +golem app deploy --preset brave-debug ``` Depending on the provider selected, an environment variable has to be set for the worker to be started, containing the ENVIRONMENT variable (eg.API key) for the given provider: