Skip to content

Commit 0f43304

Browse files
authored
Merge pull request #510 from weaviate/v6-minimal-version-update
v6: Update to latest Weaviate versions
2 parents 053e586 + e42446d commit 0f43304

4 files changed

Lines changed: 29 additions & 4 deletions

File tree

.github/workflows/test.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@ jobs:
3333
path: ${{ env.DOCKER_IMAGES_TAR }}
3434
key: ${{ env.DOCKER_CACHE_KEY }}
3535
lookup-only: true # Only check if cache exists, don't download
36+
- name: Free Disk Space (Ubuntu)
37+
uses: jlumbroso/free-disk-space@v1.3.1
38+
with:
39+
tool-cache: false
40+
android: true
41+
dotnet: true
42+
haskell: true
43+
large-packages: true
44+
docker-images: false
45+
swap-storage: false
3646
- name: Pull images
3747
if: steps.cache-check.outputs.cache-hit != 'true'
3848
run: |
@@ -68,7 +78,7 @@ jobs:
6878
strategy:
6979
fail-fast: false
7080
matrix:
71-
WEAVIATE_VERSION: ["1.32.0", "1.33.0"]
81+
WEAVIATE_VERSION: ["1.32.16", "1.33.4", "1.34.0"]
7282
steps:
7383
- uses: actions/checkout@v4
7484

@@ -78,6 +88,16 @@ jobs:
7888
with:
7989
path: ${{ env.DOCKER_IMAGES_TAR }}
8090
key: ${{ env.DOCKER_CACHE_KEY }}
91+
- name: Free Disk Space (Ubuntu)
92+
uses: jlumbroso/free-disk-space@v1.3.1
93+
with:
94+
tool-cache: false
95+
android: true
96+
dotnet: true
97+
haskell: true
98+
large-packages: true
99+
docker-images: false
100+
swap-storage: false
81101
- name: Load Docker images
82102
run: |
83103
if [ -f $DOCKER_IMAGES_TAR ]; then

src/it/java/io/weaviate/containers/Weaviate.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
public class Weaviate extends WeaviateContainer {
2626
public static final String DOCKER_IMAGE = "semitechnologies/weaviate";
27-
public static final String LATEST_VERSION = "1.33.0";
27+
public static final String LATEST_VERSION = Version.V134.semver.toString();
2828
public static final String VERSION;
2929

3030
static {
@@ -37,7 +37,8 @@ public class Weaviate extends WeaviateContainer {
3737

3838
public enum Version {
3939
V132(1, 32),
40-
V133(1, 33);
40+
V133(1, 33),
41+
V134(1, 34);
4142

4243
public final SemanticVersion semver;
4344

@@ -415,6 +416,7 @@ private void bindNodes(int gossip, int data, int raft) {
415416
nodes.forEach(node -> node
416417
.withEnv("CLUSTER_GOSSIP_BIND_PORT", String.valueOf(gossip))
417418
.withEnv("CLUSTER_DATA_BIND_PORT", String.valueOf(data))
419+
.withEnv("REPLICA_MOVEMENT_ENABLED", "true")
418420
.withEnv("RAFT_PORT", String.valueOf(raft))
419421
.withEnv("RAFT_BOOTSTRAP_EXPECT", "1"));
420422

src/it/java/io/weaviate/integration/ClusterITest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import io.weaviate.client6.v1.api.cluster.replication.ReplicationState;
1515
import io.weaviate.client6.v1.api.cluster.replication.ReplicationType;
1616
import io.weaviate.containers.Weaviate;
17+
import io.weaviate.containers.Weaviate.Version;
1718

1819
public class ClusterITest extends ConcurrentTest {
1920
private static final WeaviateClient client = Weaviate.cluster(3).getClient();
@@ -58,6 +59,8 @@ public void test_listNodes() throws IOException {
5859

5960
@Test
6061
public void test_replicateLifecycle() throws IOException {
62+
Version.V132.orSkip();
63+
6164
// Arrange
6265

6366
// We must create the collection first before any shards exist on the nodes.

src/main/java/io/weaviate/client6/v1/api/backup/Backup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public record Backup(
3434
/** Time at which the backup was completed, successfully or otherwise. */
3535
@SerializedName("completedAt") OffsetDateTime completedAt,
3636
/** Backup size in GiB. */
37-
@SerializedName("size") Integer sizeGiB,
37+
@SerializedName("size") Float sizeGiB,
3838
/**
3939
* This value indicates if a backup is being created or restored from.
4040
* For operations like LIST this value is null.

0 commit comments

Comments
 (0)