Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
e7cf732
Add options for specifying `deletionStrategy` in replication config m…
tsmith023 Oct 15, 2024
9ffedb4
Support backup cancellation
tsmith023 Oct 15, 2024
33f51a2
Remove unused img2vec-neural dependency
tsmith023 Oct 15, 2024
20c585a
Use different ports in mocks to avoid node18 issues
tsmith023 Oct 15, 2024
678a89a
Add back to img2vec-neural dependency, since there are tests of it
tsmith023 Oct 15, 2024
0473fb0
Merge pull request #206 from weaviate/1.27/backup-cancellation
tsmith023 Oct 16, 2024
db6ac51
Merge branch 'dev/1.27' of https://github.com/weaviate/typescript-cli…
tsmith023 Oct 16, 2024
acec9f0
Fix broken tests
tsmith023 Oct 16, 2024
c5b5573
Fix reconfigure.replication and add unit test for its usage
tsmith023 Oct 16, 2024
8ed6c24
Merge pull request #204 from weaviate/1.27/replication-object-deletion
tsmith023 Oct 16, 2024
f0920fd
Make the following changes:
tsmith023 Oct 18, 2024
d3dd935
Fix parsing and checking logic for old Weaviate versions with vector …
tsmith023 Oct 21, 2024
daadc96
Fix unit tests
tsmith023 Oct 21, 2024
de854b8
Make further fixes to BC checks and alter tightly coupled tests
tsmith023 Oct 21, 2024
2a4c2d2
Merge branch 'dev/1.27' of https://github.com/weaviate/typescript-cli…
tsmith023 Oct 21, 2024
c56afb2
Fix incorrect default deletionStrategy in test
tsmith023 Oct 21, 2024
071e21e
Fix checks when hybrid vector not provided
tsmith023 Oct 21, 2024
0e2d79f
Update to image that will pass 1.24 issue
tsmith023 Oct 22, 2024
142eb1a
Skip test that is currently broken in 1.27.0
tsmith023 Oct 22, 2024
54e01da
Add more tests for hybrid multi vector searches
tsmith023 Oct 22, 2024
edc11b2
Fix incorrect version check in test
tsmith023 Oct 22, 2024
dac64cd
Fix other incorrectly configured BC tests
tsmith023 Oct 22, 2024
578b4d5
Deprecated `xPalm` types and methods in favour of `xGoogle`
tsmith023 Oct 22, 2024
0eeccdf
Support new HNSW filtering strategy config options
tsmith023 Oct 22, 2024
3b1fbd7
Fix tests for BC with unsupported features
tsmith023 Oct 22, 2024
e11fd24
Rename `filteringStrategy` to `filterStrategy` everywhere
tsmith023 Oct 22, 2024
66114ac
Merge pull request #213 from weaviate/1.27/rename-palm-to-google
tsmith023 Oct 23, 2024
5dec0a9
Merge pull request #214 from weaviate/1.27/acorn-support
tsmith023 Oct 23, 2024
1f62379
Merge branch 'dev/1.27' of https://github.com/weaviate/typescript-cli…
tsmith023 Oct 23, 2024
aef7fa7
Merge pull request #209 from weaviate/1.27/multi-vector-search
tsmith023 Oct 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ on:
pull_request:

env:
WEAVIATE_124: 1.24.21
WEAVIATE_125: 1.25.8
WEAVIATE_126: 1.26.1
WEAVIATE_124: stable-v1.24-a8b364e
WEAVIATE_125: 1.25.21
WEAVIATE_126: 1.26.7
WEAVIATE_127: 1.27.0

jobs:
checks:
Expand All @@ -18,7 +19,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: '22.x'
- name: "Run checks"
run: |
npm ci
Expand All @@ -35,9 +36,10 @@ jobs:
versions: [
{ node: "22.x", weaviate: $WEAVIATE_124},
{ node: "22.x", weaviate: $WEAVIATE_125},
{ node: "18.x", weaviate: $WEAVIATE_126},
{ node: "20.x", weaviate: $WEAVIATE_126},
{ node: "22.x", weaviate: $WEAVIATE_126}
{ node: "22.x", weaviate: $WEAVIATE_126},
{ node: "18.x", weaviate: $WEAVIATE_127},
{ node: "20.x", weaviate: $WEAVIATE_127},
{ node: "22.x", weaviate: $WEAVIATE_127}
]
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -79,7 +81,7 @@ jobs:
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
Expand Down
26 changes: 16 additions & 10 deletions ci/run_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,24 @@ function wait(){

echo "Waiting for $1"
while true; do
if curl -s $1 > /dev/null; then
# first check if weaviate already responds
if ! curl -s $1 > /dev/null; then
continue
fi

# endpoint available, check if it is ready
HTTP_STATUS=$(curl -s -o /dev/null -w "%{http_code}" "$1/v1/.well-known/ready")

if [ "$HTTP_STATUS" -eq 200 ]; then
break
else
if [ $? -eq 7 ]; then
echo "Weaviate is not up yet. (waited for ${ALREADY_WAITING}s)"
if [ $ALREADY_WAITING -gt $MAX_WAIT_SECONDS ]; then
echo "Weaviate did not start up in $MAX_WAIT_SECONDS."
exit 1
else
sleep 2
let ALREADY_WAITING=$ALREADY_WAITING+2
fi
echo "Weaviate is not up yet. (waited for ${ALREADY_WAITING}s)"
if [ $ALREADY_WAITING -gt $MAX_WAIT_SECONDS ]; then
echo "Weaviate did not start up in $MAX_WAIT_SECONDS."
exit 1
else
sleep 2
let ALREADY_WAITING=$ALREADY_WAITING+2
fi
fi
done
Expand Down
3 changes: 2 additions & 1 deletion src/backup/backupCreateStatusGetter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Connection from '../connection/index.js';
import { WeaviateInvalidInputError } from '../errors.js';
import { BackupCreateStatusResponse } from '../openapi/types.js';
import { CommandBase } from '../validation/commandBase.js';
import { Backend } from './index.js';
Expand Down Expand Up @@ -29,7 +30,7 @@ export default class BackupCreateStatusGetter extends CommandBase {
do = (): Promise<BackupCreateStatusResponse> => {
this.validate();
if (this.errors.length > 0) {
return Promise.reject(new Error('invalid usage: ' + this.errors.join(', ')));
return Promise.reject(new WeaviateInvalidInputError('invalid usage: ' + this.errors.join(', ')));
}
return this.client.get(this._path()) as Promise<BackupCreateStatusResponse>;
};
Expand Down
3 changes: 2 additions & 1 deletion src/backup/backupCreator.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Connection from '../connection/index.js';
import { WeaviateInvalidInputError } from '../errors.js';
import {
BackupConfig,
BackupCreateRequest,
Expand Down Expand Up @@ -81,7 +82,7 @@ export default class BackupCreator extends CommandBase {
do = (): Promise<BackupCreateResponse> => {
this.validate();
if (this.errors.length > 0) {
return Promise.reject(new Error('invalid usage: ' + this.errors.join(', ')));
return Promise.reject(new WeaviateInvalidInputError('invalid usage: ' + this.errors.join(', ')));
}

const payload = {
Expand Down
3 changes: 2 additions & 1 deletion src/backup/backupGetter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Connection from '../connection/index.js';
import { WeaviateInvalidInputError } from '../errors.js';
import { BackupCreateResponse } from '../openapi/types.js';
import { CommandBase } from '../validation/commandBase.js';
import { Backend } from './index.js';
Expand All @@ -23,7 +24,7 @@ export default class BackupGetter extends CommandBase {
do = (): Promise<BackupCreateResponse[]> => {
this.validate();
if (this.errors.length > 0) {
return Promise.reject(new Error('invalid usage: ' + this.errors.join(', ')));
return Promise.reject(new WeaviateInvalidInputError('invalid usage: ' + this.errors.join(', ')));
}

return this.client.get(this._path());
Expand Down
3 changes: 2 additions & 1 deletion src/backup/backupRestoreStatusGetter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Connection from '../connection/index.js';
import { WeaviateInvalidInputError } from '../errors.js';
import { BackupRestoreStatusResponse } from '../openapi/types.js';
import { CommandBase } from '../validation/commandBase.js';
import { Backend } from './index.js';
Expand Down Expand Up @@ -29,7 +30,7 @@ export default class BackupRestoreStatusGetter extends CommandBase {
do = (): Promise<BackupRestoreStatusResponse> => {
this.validate();
if (this.errors.length > 0) {
return Promise.reject(new Error('invalid usage: ' + this.errors.join(', ')));
return Promise.reject(new WeaviateInvalidInputError('invalid usage: ' + this.errors.join(', ')));
}

return this.client.get(this._path());
Expand Down
3 changes: 2 additions & 1 deletion src/backup/backupRestorer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Connection from '../connection/index.js';
import { WeaviateInvalidInputError } from '../errors.js';
import {
BackupRestoreRequest,
BackupRestoreResponse,
Expand Down Expand Up @@ -81,7 +82,7 @@ export default class BackupRestorer extends CommandBase {
do = (): Promise<BackupRestoreResponse> => {
this.validate();
if (this.errors.length > 0) {
return Promise.reject(new Error('invalid usage: ' + this.errors.join(', ')));
return Promise.reject(new WeaviateInvalidInputError('invalid usage: ' + this.errors.join(', ')));
}

const payload = {
Expand Down
Loading
Loading