reflecting the deployment config changes (#344)

* reflecting the deployment config changes

* Try temporary CI fix (#345)

Co-authored-by: igor <dev@igor.sh>
Co-authored-by: Anatoly Laskaris <github_me@nahsi.dev>
This commit is contained in:
igor 2022-06-28 11:54:32 +02:00 committed by GitHub
parent 68f84d8b28
commit 9d0f3b10eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 53 additions and 57 deletions

View File

@ -46,7 +46,7 @@ jobs:
with: with:
node-version: 16 node-version: 16
- run: npm install -g @fluencelabs/aqua@0.6.4-283 - run: npm install -g @fluencelabs/aqua@0.7.4-320
- name: "Wait for aqua-ipfs service to start" - name: "Wait for aqua-ipfs service to start"
run: | run: |
@ -66,26 +66,22 @@ jobs:
run: | run: |
set -o errexit -o nounset -o pipefail set -o errexit -o nounset -o pipefail
set -x
NODE="/ip4/127.0.0.1/tcp/4310/ws/p2p/12D3KooWKEprYXUXqoV5xSBeyqrWLpQLLH4PXfvVkDJtmcqmh5V3" NODE="/ip4/127.0.0.1/tcp/4310/ws/p2p/12D3KooWKEprYXUXqoV5xSBeyqrWLpQLLH4PXfvVkDJtmcqmh5V3"
SERVICE_ID=`./deploy.sh $NODE` SERVICE_ID=`./deploy.sh $NODE`
INPUT=$GITHUB_WORKSPACE/.github/deploy.aqua INPUT=$GITHUB_WORKSPACE/.github/deploy.aqua
RESULT=$(aqua run --addr $NODE --sk qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo= -f 'call(service_id)' -d '{"service_id": "'$SERVICE_ID'"}' --input $INPUT) RESULT=$(aqua run --addr $NODE --sk qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo= -f 'call(service_id)' -d '{"service_id": "'$SERVICE_ID'"}' --input $INPUT | jq -r)
# RESULT=$(echo $RESULT | sed -e 's/Your peerId: [a-zA-Z0-9]*//g')
EXPECTED_PEER_ID=$(echo -e "$RESULT" | sed -n '1p' | grep -o '12D3.*') EXPECTED_PEER_ID=$(echo -e "$RESULT" | sed -n '1p')
RESULT_PEER_ID=$(echo -e "$RESULT" | sed -n '2p' | tr -d \") RESULT_PEER_ID=$(echo -e "$RESULT" | sed -n '3p')
if [ "$EXPECTED_PEER_ID" != "$RESULT_PEER_ID" ]; then if [ "$EXPECTED_PEER_ID" != "$RESULT_PEER_ID" ]; then
echo "Expected $EXPECTED_PEER_ID, got $RESULT_PEER_ID" echo "Expected $EXPECTED_PEER_ID, got $RESULT_PEER_ID"
exit 1 exit 1
fi fi
RESULT_SERVICE_ID=$(echo -e "$RESULT" | sed -n '3p') RESULT_SERVICE_ID=$(echo -e "$RESULT" | sed -n '2p')
if [ "$SERVICE_ID" != "$RESULT_SERVICE_ID" ]; then if [ "$SERVICE_ID" != "$RESULT_SERVICE_ID" ]; then
echo "Expected $SERVICE_ID, got $RESULT_SERVICE_ID" echo "Expected $SERVICE_ID, got $RESULT_SERVICE_ID"
exit 1 exit 1
fi fi
remove --addr $NODE --sk qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo= --id "$SERVICE_ID"
working-directory: marine-examples/call_parameters working-directory: marine-examples/call_parameters

View File

@ -6,7 +6,7 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node-version: [16.x] node-version: [16.x]
@ -28,14 +28,14 @@ jobs:
- name: Install Rust toolchain with wasm32-unknown-unknown - name: Install Rust toolchain with wasm32-unknown-unknown
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
toolchain: nightly-2021-07-13 toolchain: nightly-2022-06-27
target: wasm32-unknown-unknown target: wasm32-unknown-unknown
profile: minimal profile: minimal
override: true override: true
- name: Install wasm32-wasi - name: Install wasm32-wasi
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
toolchain: nightly-2021-07-13 toolchain: nightly-2022-06-27
target: wasm32-wasi target: wasm32-wasi
profile: minimal profile: minimal
@ -56,9 +56,9 @@ jobs:
### === Rust tests === ### === Rust tests ===
- name: run tests - name: run tests
working-directory: working-directory:
./aqua-examples/aqua-ipfs-integration ./aqua-examples/aqua-ipfs-integration
env: env:
CI: true CI: true
run: | run: |
npm i npm i

View File

@ -6,18 +6,18 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node-version: [16.x] node-version: [16.x]
working-directory: [ working-directory: [
"./quickstart/1-browser-to-browser", "./quickstart/1-browser-to-browser",
"./quickstart/3-browser-to-service", "./quickstart/3-browser-to-service",
"./fluence-js-examples/hello-world", "./fluence-js-examples/hello-world",
"./fluence-js-examples/browser-example", "./fluence-js-examples/browser-example",
"./fluence-js-examples/node-example", "./fluence-js-examples/node-example",
"./aqua-examples/echo-greeter/client-peer", "./aqua-examples/echo-greeter/client-peer",
"./aqua-examples/price-oracle/client-peer", "./aqua-examples/price-oracle/client-peer",
"./aqua-examples/price-oracle/web" "./aqua-examples/price-oracle/web"
] ]
fail-fast: false fail-fast: false
@ -37,14 +37,14 @@ jobs:
- name: Install Rust toolchain with wasm32-unknown-unknown - name: Install Rust toolchain with wasm32-unknown-unknown
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
toolchain: nightly-2021-07-13 toolchain: nightly-2022-06-27
target: wasm32-unknown-unknown target: wasm32-unknown-unknown
profile: minimal profile: minimal
override: true override: true
- name: Install wasm32-wasi - name: Install wasm32-wasi
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
toolchain: nightly-2021-07-13 toolchain: nightly-2022-06-27
target: wasm32-wasi target: wasm32-wasi
profile: minimal profile: minimal
@ -66,7 +66,7 @@ jobs:
### === Rust tests === ### === Rust tests ===
- name: run tests - name: run tests
working-directory: ${{ matrix.working-directory }} working-directory: ${{ matrix.working-directory }}
env: env:
CI: true CI: true
run: | run: |
npm i npm i

View File

@ -5,18 +5,18 @@
{ {
"name": "curl_adapter", "name": "curl_adapter",
"path": "./artifacts/curl_adapter.wasm", "path": "./artifacts/curl_adapter.wasm",
"mounted_binaries": [["curl", "/usr/bin/curl"]], "mounted_binaries": ["curl", "/usr/bin/curl"],
"preopened_files": [], "preopened_files": null,
"mapped_dirs": [], "mapped_dirs": null,
"logger_enabled": [true] "logger_enabled": true
}, },
{ {
"name": "ceramic_adapter_custom", "name": "ceramic_adapter_custom",
"path": "./artifacts/ceramic_adapter_custom.wasm", "path": "./artifacts/ceramic_adapter_custom.wasm",
"mounted_binaries": [["ceramic", "/usr/bin/ceramic"]], "mounted_binaries": ["ceramic", "/usr/bin/ceramic"],
"preopened_files": [], "preopened_files": null,
"mapped_dirs": [], "mapped_dirs": null,
"logger_enabled": [true] "logger_enabled": true
} }
] ]
} }

View File

@ -26,4 +26,4 @@
} }
] ]
} }
} }

View File

@ -5,13 +5,13 @@
{ {
"name": "curl_adapter", "name": "curl_adapter",
"path": "./artifacts/curl_adapter.wasm", "path": "./artifacts/curl_adapter.wasm",
"mounted_binaries": [["curl", "/usr/bin/curl"]], "mounted_binaries": ["curl", "/usr/bin/curl"],
"logger_enabled": [true] "logger_enabled": true
}, },
{ {
"name": "near_rpc_services", "name": "near_rpc_services",
"path": "./artifacts/near_rpc_services.wasm", "path": "./artifacts/near_rpc_services.wasm",
"logger_enabled": [true] "logger_enabled": true
} }
] ]
} }

View File

@ -4,13 +4,13 @@
{ {
"name": "curl_adapter", "name": "curl_adapter",
"path": "./artifacts/curl_adapter.wasm", "path": "./artifacts/curl_adapter.wasm",
"mounted_binaries": [["curl", "/usr/bin/curl"]], "mounted_binaries": ["curl", "/usr/bin/curl"],
"logger_enabled": [true] "logger_enabled": true
}, },
{ {
"name": "price_getter_service", "name": "price_getter_service",
"path": "./artifacts/price_getter_service.wasm", "path": "./artifacts/price_getter_service.wasm",
"logger_enabled": [true] "logger_enabled": true
} }
] ]
}, },
@ -19,7 +19,7 @@
{ {
"name": "mean_service", "name": "mean_service",
"path": "./artifacts/mean_service.wasm", "path": "./artifacts/mean_service.wasm",
"logger_enabled": [true] "logger_enabled": true
} }
] ]
} }

View File

@ -171,10 +171,10 @@ service Dist("dist"):
-- logger_enabled - Defines whether Marine should provide a special host log_utf8_string function for this module -- logger_enabled - Defines whether Marine should provide a special host log_utf8_string function for this module
-- preopened_files - Files available for this module. Module can access only files from this list -- preopened_files - Files available for this module. Module can access only files from this list
-- envs - environment variables available for this module -- envs - environment variables available for this module
-- mapped_dirs - Directory mapping, e.g. [["/sites", "./web/data"]] so all -- mapped_dirs - Directory mapping, e.g. ["/sites", "./web/data"] so all
-- reads & writes to /sites will actually to go ./web/data -- reads & writes to /sites will actually to go ./web/data
-- mounted_binaries - Mapping of host binaries available to call from module, -- mounted_binaries - Mapping of host binaries available to call from module,
-- e.g. [["curl", "/usr/bin/curl"]] will allow module to -- e.g. ["curl", "/usr/bin/curl"] will allow module to
-- call /usr/bin/curl binary as function 'curl' -- call /usr/bin/curl binary as function 'curl'
-- logging_mask - Binary mask to enable & disable logging targets. Targets are -- logging_mask - Binary mask to enable & disable logging targets. Targets are
-- configured in WasmLoggerBuilder::with_target_map -- configured in WasmLoggerBuilder::with_target_map

View File

@ -4,7 +4,7 @@
{ {
"name": "ts_oracle", "name": "ts_oracle",
"path": "./artifacts/ts_oracle.wasm", "path": "./artifacts/ts_oracle.wasm",
"logger_enabled": [true] "logger_enabled": true
} }
] ]
} }

View File

@ -4,7 +4,7 @@
{ {
"name": "call_parameters", "name": "call_parameters",
"path": "./artifacts/call_parameters.wasm", "path": "./artifacts/call_parameters.wasm",
"logger_enabled": [true] "logger_enabled": true
} }
] ]
} }

View File

@ -4,7 +4,7 @@
{ {
"name": "greeting", "name": "greeting",
"path": "./artifacts/greeting.wasm", "path": "./artifacts/greeting.wasm",
"logger_enabled": [true] "logger_enabled": true
} }
] ]
} }

View File

@ -5,20 +5,20 @@
{ {
"name": "curl_adapter", "name": "curl_adapter",
"path": "./artifacts/curl_adapter.wasm", "path": "./artifacts/curl_adapter.wasm",
"mounted_binaries": [["curl", "/usr/bin/curl"]], "mounted_binaries": ["curl", "/usr/bin/curl"],
"logger_enabled": [true] "logger_enabled": true
}, },
{ {
"name": "local_storage", "name": "local_storage",
"path": "./artifacts/local_storage.wasm", "path": "./artifacts/local_storage.wasm",
"preopened_files": ["/tmp"], "preopened_files": ["/tmp"],
"mapped_dirs": [["sites", "/tmp"]], "mapped_dirs": ["sites", "/tmp"],
"logger_enabled": [true] "logger_enabled": true
}, },
{ {
"name": "url_dowloader", "name": "url_dowloader",
"path": "./artifacts/facade.wasm", "path": "./artifacts/facade.wasm",
"logger_enabled": [true] "logger_enabled": true
} }
] ]
}, },
@ -28,8 +28,8 @@
"name": "local_storage", "name": "local_storage",
"path": "./artifacts/local_storage.wasm", "path": "./artifacts/local_storage.wasm",
"preopened_files": ["/tmp"], "preopened_files": ["/tmp"],
"mapped_dirs": [["sites", "/tmp"]], "mapped_dirs": ["sites", "/tmp"],
"logger_enabled": [true] "logger_enabled": true
} }
] ]
}, },
@ -38,8 +38,8 @@
{ {
"name": "curl_adapter", "name": "curl_adapter",
"path": "./artifacts/curl_adapter.wasm", "path": "./artifacts/curl_adapter.wasm",
"mounted_binaries": [["curl", "/usr/bin/curl"]], "mounted_binaries": ["curl", "/usr/bin/curl"],
"logger_enabled": [true] "logger_enabled": true
} }
] ]
} }

View File

@ -4,7 +4,7 @@
{ {
"name": "hello_world", "name": "hello_world",
"path": "./artifacts/hello_world.wasm", "path": "./artifacts/hello_world.wasm",
"logger_enabled": [true] "logger_enabled": true
} }
] ]
} }

View File

@ -5,7 +5,7 @@
{ {
"name": "ts_oracle", "name": "ts_oracle",
"path": "./artifacts/ts_oracle.wasm", "path": "./artifacts/ts_oracle.wasm",
"logger_enabled": [true] "logger_enabled": true
} }
] ]
} }