Skip to content

Commit ef8c652

Browse files
committed
default version
1 parent 43a1cb2 commit ef8c652

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.github/workflows/cluster-test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: ScalarDB Cluster Test (dispatch)
33
on:
44
workflow_dispatch:
55
inputs:
6+
scalardb_cluster_version:
7+
description: 'ScalarDB Cluster version'
8+
type: string
9+
default: "3.15.3"
610
time_limit:
711
description: 'Test duration in second'
812
required: true
@@ -53,6 +57,9 @@ jobs:
5357
cluster:
5458
runs-on: ubuntu-latest
5559

60+
env:
61+
SCALARDB_CLUSTER_VERSION: ${{ github.event.inputs.scalardb_cluster_version }}
62+
5663
steps:
5764
- uses: actions/checkout@v4
5865

scalardb/project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
com.azure/azure-cosmos
2323
io.grpc/grpc-core
2424
com.scalar-labs/scalardb-rpc]]]}
25-
:cluster {:dependencies [[com.scalar-labs/scalardb-cluster-java-client-sdk "3.15.3"
25+
:cluster {:dependencies [[com.scalar-labs/scalardb-cluster-java-client-sdk "4.0.0-SNAPSHOT"
2626
;; avoid the netty dependency issue
2727
:exclusions [software.amazon.awssdk/*
2828
com.oracle.database.jdbc/ojdbc8-production

scalardb/src/scalardb/db/cluster.clj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
(:import (java.io File)))
1111

1212
(def ^:private ^:const CLUSTER_VALUES_YAML "scalardb-cluster-custom-values.yaml")
13+
(def ^:private ^:const DEFAULT_SCALARDB_CLUSTER_VERSION "3.15.3")
1314
(def ^:private ^:const DEFAULT_CHAOS_MESH_VERSION "2.7.1")
1415

1516
(def ^:private ^:const TIMEOUT_SEC 600)
@@ -83,7 +84,8 @@
8384
:--set "primary.service.type=LoadBalancer")
8485

8586
;; ScalarDB Cluster
86-
(let [version (env :scalardb-cluster-version)
87+
(let [version (or (some-> (env :scalardb-cluster-version) not-empty)
88+
DEFAULT_SCALARDB_CLUSTER_VERSION)
8789
chart-version (->> (c/exec :helm :search
8890
:repo "scalar-labs/scalardb-cluster" :-l)
8991
str/split-lines

0 commit comments

Comments
 (0)