Skip to content

[feat] add check for Weaviate version at instantiation - #299

Merged
dirkkul merged 6 commits into
mainfrom
add-instance-version-warning
May 15, 2023
Merged

dirkkul merged 6 commits into
mainfrom
add-instance-version-warning

Conversation

@databyjp

Copy link
Copy Markdown
Collaborator

Addresses #287 (partly - client-side version check not implemented) by checking the current Weaviate instance version against a (hard-coded) minimum threshold.

*Note: Initially it was set up to grab the latest version from GitHub and compare against a threshold difference (e.g. 3 minor versions). But this causes issues with GH rate limits during tests (every instance is a GH API request).

@databyjp
databyjp requested a review from dirkkul April 21, 2023 09:06
Comment thread test/test_util.py Resolved
Comment thread weaviate/util.py Resolved
@codecov-commenter

codecov-commenter commented Apr 30, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch coverage: 96.40% and project coverage change: -0.15 ⚠️

Comparison is base (8f7e154) 96.14% compared to head (7fb2bfb) 96.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #299      +/-   ##
==========================================
- Coverage   96.14%   96.00%   -0.15%     
==========================================
  Files          61       64       +3     
  Lines        7295     7582     +287     
==========================================
+ Hits         7014     7279     +265     
- Misses        281      303      +22     
Flag Coverage Δ
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
integration/test_timeout.py 100.00% <ø> (ø)
weaviate/backup/backup.py 100.00% <ø> (ø)
weaviate/schema/crud_schema.py 79.42% <85.71%> (+0.41%) ⬆️
weaviate/gql/multi_get.py 86.36% <86.36%> (ø)
integration/test_authentication.py 89.34% <92.85%> (+0.25%) ⬆️
weaviate/connect/connection.py 90.61% <93.33%> (+0.55%) ⬆️
weaviate/util.py 95.69% <94.11%> (-0.16%) ⬇️
weaviate/embedded.py 96.26% <96.26%> (ø)
test/test_embedded.py 97.56% <97.56%> (ø)
integration/test_graphql.py 93.70% <100.00%> (+5.12%) ⬆️
... and 11 more

... and 10 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment thread test/test_util.py Resolved
@dirkkul

dirkkul commented May 15, 2023 •

Copy link
Copy Markdown
Collaborator

Sadly a few things in the client have changed and you need to either rebase or merge current main into your branch

@databyjp

Copy link
Copy Markdown
Collaborator Author

All good; merged now :)

@dirkkul
dirkkul merged commit 95d44e1 into main May 15, 2023
@dirkkul
dirkkul deleted the add-instance-version-warning branch May 15, 2023 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants