Skip to content

Commit

Permalink
Merge branch '1.28/add-support-for-rbac' of https://github.com/weavia…
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmith023 committed Dec 4, 2024
2 parents 364c1f0 + 5d93093 commit e0f25c5
Show file tree
Hide file tree
Showing 101 changed files with 172 additions and 21,844 deletions.
66 changes: 3 additions & 63 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,66 +113,6 @@ jobs:
name: coverage-report-integration-embedded
path: coverage-integration-embedded.xml

integration-tests-v3:
name: Run Integration Tests v3
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
versions: [
{ py: "3.9", weaviate: $WEAVIATE_128},
{ py: "3.10", weaviate: $WEAVIATE_128},
{ py: "3.11", weaviate: $WEAVIATE_125},
{ py: "3.11", weaviate: $WEAVIATE_126},
{ py: "3.11", weaviate: $WEAVIATE_127},
{ py: "3.11", weaviate: $WEAVIATE_128},
{ py: "3.12", weaviate: $WEAVIATE_128},
{ py: "3.13", weaviate: $WEAVIATE_128}
]
optional_dependencies: [false]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.versions.py }}
cache: 'pip' # caching pip dependencies
- name: Login to Docker Hub
uses: docker/login-action@v3
if: ${{ !github.event.pull_request.head.repo.fork && github.triggering_actor != 'dependabot[bot]' }}
with:
username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_PASSWORD}}
- run: |
pip install -r requirements-devel.txt
pip install .
- name: free space
run: sudo rm -rf /usr/local/lib/android
- name: start weaviate
run: /bin/bash ci/start_weaviate.sh ${{ matrix.versions.weaviate }}
- name: Run integration tests with auth secrets
if: ${{ !github.event.pull_request.head.repo.fork }}
env:
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
OKTA_CLIENT_SECRET: ${{ secrets.OKTA_CLIENT_SECRET }}
WCS_DUMMY_CI_PW: ${{ secrets.WCS_DUMMY_CI_PW }}
OKTA_DUMMY_CI_PW: ${{ secrets.OKTA_DUMMY_CI_PW }}
# OPENAI_APIKEY: ${{ secrets.OPENAI_APIKEY }} disabled until we have a working key
run: pytest -v --cov --cov-report=term-missing --cov=weaviate --cov-report xml:coverage-integration-v3.xml integration_v3
- name: Run integration tests without auth secrets (for forks)
if: ${{ github.event.pull_request.head.repo.fork }}
run: pytest -v --cov --cov-report=term-missing --cov=weaviate --cov-report xml:coverage-integration-v3.xml integration_v3
- name: Archive code coverage results
if: matrix.versions.py == '3.10' && (github.ref_name != 'main')
uses: actions/upload-artifact@v4
with:
name: coverage-report-integration-v3
path: coverage-integration-v3.xml
- name: stop weaviate
run: /bin/bash ci/stop_weaviate.sh ${{ matrix.versions.weaviate }}

integration-tests:
name: Run Integration Tests
runs-on: ubuntu-latest
Expand Down Expand Up @@ -220,7 +160,7 @@ jobs:
WCS_DUMMY_CI_PW: ${{ secrets.WCS_DUMMY_CI_PW }}
OKTA_DUMMY_CI_PW: ${{ secrets.OKTA_DUMMY_CI_PW }}
# OPENAI_APIKEY: ${{ secrets.OPENAI_APIKEY }} disabled until we have a working key
run: pytest -n auto -v --cov --cov-report=term-missing --cov=weaviate --cov-report xml:coverage-integration.xml integration
run: pytest -n auto --dist loadgroup -v --cov --cov-report=term-missing --cov=weaviate --cov-report xml:coverage-integration.xml integration
- name: Run integration tests without auth secrets (for forks)
if: ${{ github.event.pull_request.head.repo.fork }}
run: pytest -v --cov --cov-report=term-missing --cov=weaviate --cov-report xml:coverage-integration.xml integration
Expand Down Expand Up @@ -271,7 +211,7 @@ jobs:
run: /bin/bash ci/stop_weaviate.sh ${{ matrix.versions.weaviate }}

Codecov:
needs: [Unit-Tests, Integration-Tests, Integration-Tests-v3]
needs: [Unit-Tests, Integration-Tests]
runs-on: ubuntu-latest
if: github.ref_name != 'main'
steps:
Expand Down Expand Up @@ -371,7 +311,7 @@ jobs:
OKTA_CLIENT_SECRET: ${{ secrets.OKTA_CLIENT_SECRET }}
WCS_DUMMY_CI_PW: ${{ secrets.WCS_DUMMY_CI_PW }}
OKTA_DUMMY_CI_PW: ${{ secrets.OKTA_DUMMY_CI_PW }}
run: pytest -v -n auto integration
run: pytest -v -n auto --dist loadgroup integration
- name: Run integration tests without auth secrets (for forks)
if: ${{ github.event.pull_request.head.repo.fork }}
run: pytest -v -n auto integration
Expand Down
15 changes: 15 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
Changelog
=========

Version 4.9.6
--------------

This release is the last release that supports weaviate v1.23 and v1.24

This patch version includes:
- Add support for the new ``Kagame_JA`` tokenizer


Version 4.9.5
--------------
This patch version includes:
- Add support for the new ``text2vec-weaviate`` module
- Wrap ``tenant.get`` ``AioRpcError`` in a specific exception

Version 4.9.4
--------------
This patch version includes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
BackupFailedException,
)

pytestmark = pytest.mark.xdist_group(name="backup")

BACKEND = BackupStorage.FILESYSTEM

PARAGRAPHS_IDS = [
Expand Down
Empty file removed integration_v3/__init__.py
Empty file.
133 changes: 0 additions & 133 deletions integration_v3/people_schema.json

This file was deleted.

Loading

0 comments on commit e0f25c5

Please sign in to comment.