Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/beta' into bugfix/JST-1047/memor…
Browse files Browse the repository at this point in the history
…y-leak
  • Loading branch information
mgordel committed Sep 3, 2024
2 parents 6d26fa9 + 9fe76e7 commit be83305
Show file tree
Hide file tree
Showing 21 changed files with 368 additions and 189 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ on:
description: "Provider VM version (e.g., v0.3.0)"
required: false
default: "v0.3.0"
log_level:
description: "The log level to force on golem-js pino-logger"
required: false
default: "info"

# We're going to interact with GH from the pipelines, so we need to get some permissions
permissions:
Expand All @@ -45,6 +49,7 @@ env:
PROVIDER_WASI_VERSION: ${{ github.event.inputs.provider_wasi_version || 'v0.2.2' }}
PROVIDER_VM_VERSION: ${{ github.event.inputs.provider_vm_version || 'v0.3.0' }}
PAYMENT_NETWORK: ${{ github.event.inputs.payment_network || 'holesky' }}
GOLEM_PINO_LOG_LEVEL: ${{ github.event.inputs.log_level || 'info' }}

jobs:
regular-checks:
Expand Down Expand Up @@ -122,7 +127,7 @@ jobs:
uses: ./.github/actions/prepare-tests

- name: Run the Examples tests
run: docker exec -t docker-requestor-1 /bin/sh -c "cd /golem-js && npm run test:examples -- --exitOnError"
run: docker exec -t -e GOLEM_PINO_LOG_LEVEL="${{ env.GOLEM_PINO_LOG_LEVEL }}" docker-requestor-1 /bin/sh -c "cd /golem-js && npm run test:examples -- --exitOnError"

- name: Cleanup test environment
uses: ./.github/actions/cleanup-tests
Expand Down
4 changes: 3 additions & 1 deletion examples/core-api/scan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import { last, map, scan, takeUntil, tap, timer } from "rxjs";
const scanOptions: ScanOptions = {
// fairly powerful machine but not too powerful
workload: {
engine: "vm",
runtime: {
name: "vm",
},
minCpuCores: 4,
maxCpuCores: 16,
minMemGib: 4,
Expand Down
1 change: 1 addition & 0 deletions examples/experimental/deployment/new-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ async function main() {
demand: {
workload: {
imageTag: "golem/node:latest",
capabilities: ["vpn"],
},
},
market: {
Expand Down
5 changes: 4 additions & 1 deletion examples/rental-model/basic/vpn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ import { pinoPrettyLogger } from "@golem-sdk/pino-logger";
const network = await glm.createNetwork({ ip: "192.168.7.0/24" });
const order: MarketOrderSpec = {
demand: {
workload: { imageTag: "golem/alpine:latest" },
workload: {
imageTag: "golem/alpine:latest",
capabilities: ["vpn"],
},
},
market: {
rentHours: 0.5,
Expand Down
Loading

0 comments on commit be83305

Please sign in to comment.