From e3300956119be48af4d1d4167a01f4e3906c5b0b Mon Sep 17 00:00:00 2001 From: Piotr Gankiewicz Date: Wed, 19 Aug 2026 16:38:05 +0200 Subject: [PATCH] chore: update to laser-sdk 0.3.0 --- .env.example | 6 +++--- compose.yaml | 2 +- scripts/smoke | 21 ++++++++++++++++----- 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.env.example b/.env.example index 8dc34ad..e940c08 100644 --- a/.env.example +++ b/.env.example @@ -1,8 +1,8 @@ # Tested component versions. -LASER_IGGY_VERSION=0.8.108-ld -LASER_PLANE_VERSION=0.15.0 +LASER_IGGY_VERSION=0.8.109-ld +LASER_PLANE_VERSION=0.16.0 # The published SDK the managed smoke installs and runs against the stack. -LASER_SDK_VERSION=0.2.0 +LASER_SDK_VERSION=0.3.0 # Runtime images. LASER_IGGY_IMAGE=docker.io/laserdatainc/iggy-server:latest diff --git a/compose.yaml b/compose.yaml index eb3ccdb..0b6ffd5 100644 --- a/compose.yaml +++ b/compose.yaml @@ -9,7 +9,7 @@ services: context: ./images dockerfile: iggy/Dockerfile args: - IGGY_VERSION: ${LASER_IGGY_VERSION:-0.8.108-ld} + IGGY_VERSION: ${LASER_IGGY_VERSION:-0.8.109-ld} IGGY_CPU: ${LASER_IGGY_CPU:-skylake} restart: unless-stopped init: true diff --git a/scripts/smoke b/scripts/smoke index c7b07d4..7055057 100755 --- a/scripts/smoke +++ b/scripts/smoke @@ -14,13 +14,13 @@ plane_id="$(compose ps -q plane)" [[ -n "${iggy_id}" && -n "${plane_id}" ]] || die "the stack is not running. Run ./scripts/up first" -if ! docker exec "${iggy_id}" /usr/local/bin/iggy-healthcheck; then +if ! MSYS_NO_PATHCONV=1 docker exec "${iggy_id}" /usr/local/bin/iggy-healthcheck; then diagnostics die "Iggy TCP health check failed" fi printf 'Iggy TCP check passed.\n' -if ! docker exec "${plane_id}" /usr/local/bin/plane-healthcheck >/dev/null; then +if ! MSYS_NO_PATHCONV=1 docker exec "${plane_id}" /usr/local/bin/plane-healthcheck >/dev/null; then diagnostics die "plane /ready check failed" fi @@ -32,7 +32,7 @@ printf 'Plane readiness check passed.\n' username="$(env_value LASER_IGGY_USERNAME iggy)" password="$(env_value LASER_IGGY_PASSWORD)" port="$(env_value LASER_IGGY_PORT 8090)" -sdk_version="$(env_value LASER_SDK_VERSION 0.1.0)" +sdk_version="$(env_value LASER_SDK_VERSION 0.3.0)" sdk_spec="${LASER_SMOKE_SDK_SPEC:-@laserdata/laser-sdk@${sdk_version}}" timeout="$(env_value LASER_SMOKE_TIMEOUT 300)" node_image="$( @@ -40,9 +40,20 @@ node_image="$( 'node:22-alpine@sha256:c610fcdfb1d5b4740dd70c284ed3cb16bb857e0f7166196e36a5501df7a3aa32' )" container_name="laser-stack-smoke-$$" +smoke_script="${SCRIPT_DIR}/smoke.mjs" declare -a sdk_mount=() + +case "$(uname -s)" in + CYGWIN* | MINGW* | MSYS*) + smoke_script="$(cygpath -am "${smoke_script}")" + ;; +esac + if [[ -f "${sdk_spec}" ]]; then sdk_file="$(CDPATH='' cd -- "$(dirname -- "${sdk_spec}")" && pwd)/$(basename -- "${sdk_spec}")" + case "$(uname -s)" in + CYGWIN* | MINGW* | MSYS*) sdk_file="$(cygpath -am "${sdk_file}")" ;; + esac sdk_mount=(-v "${sdk_file}:/smoke/laser-sdk.tgz:ro") sdk_spec=/smoke/laser-sdk.tgz fi @@ -68,11 +79,11 @@ trap cleanup_smoke EXIT trap abort_smoke INT TERM retry docker pull --quiet "${node_image}" >/dev/null || die "could not pull the smoke runtime image" -docker run --rm \ +MSYS_NO_PATHCONV=1 docker run --rm \ --name "${container_name}" \ "${network_args[@]}" \ "${sdk_mount[@]}" \ - -v "${SCRIPT_DIR}/smoke.mjs:/smoke/smoke.mjs:ro" \ + -v "${smoke_script}:/smoke/smoke.mjs:ro" \ -e LASER_CONNECTION_STRING="${username}:${password}@${host}:${port}" \ -e LASER_SMOKE_SDK_SPEC="${sdk_spec}" \ "${node_image}" \