Skip to content

Commit 680185c

Browse files
committed
Move backup tests to normal integration test folder
1 parent 4766a39 commit 680185c

File tree

3 files changed

+4
-61
lines changed

3 files changed

+4
-61
lines changed

.github/workflows/main.yaml

+2-61
Original file line numberDiff line numberDiff line change
@@ -114,65 +114,6 @@ jobs:
114114
name: coverage-report-integration-embedded
115115
path: coverage-integration-embedded.xml
116116

117-
integration-tests-v3:
118-
name: Run Integration Tests v3
119-
runs-on: ubuntu-latest
120-
strategy:
121-
fail-fast: false
122-
matrix:
123-
versions: [
124-
{ py: "3.9", weaviate: $WEAVIATE_126},
125-
{ py: "3.10", weaviate: $WEAVIATE_126},
126-
{ py: "3.11", weaviate: $WEAVIATE_123},
127-
{ py: "3.11", weaviate: $WEAVIATE_124},
128-
{ py: "3.11", weaviate: $WEAVIATE_125},
129-
{ py: "3.11", weaviate: $WEAVIATE_126},
130-
{ py: "3.12", weaviate: $WEAVIATE_127}
131-
]
132-
optional_dependencies: [false]
133-
steps:
134-
- uses: actions/checkout@v4
135-
with:
136-
fetch-depth: 0
137-
fetch-tags: true
138-
- uses: actions/setup-python@v5
139-
with:
140-
python-version: ${{ matrix.versions.py }}
141-
cache: 'pip' # caching pip dependencies
142-
- name: Login to Docker Hub
143-
uses: docker/login-action@v3
144-
if: ${{ !github.event.pull_request.head.repo.fork && github.triggering_actor != 'dependabot[bot]' }}
145-
with:
146-
username: ${{secrets.DOCKER_USERNAME}}
147-
password: ${{secrets.DOCKER_PASSWORD}}
148-
- run: |
149-
pip install -r requirements-devel.txt
150-
pip install .
151-
- name: free space
152-
run: sudo rm -rf /usr/local/lib/android
153-
- name: start weaviate
154-
run: /bin/bash ci/start_weaviate.sh ${{ matrix.versions.weaviate }}
155-
- name: Run integration tests with auth secrets
156-
if: ${{ !github.event.pull_request.head.repo.fork }}
157-
env:
158-
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
159-
OKTA_CLIENT_SECRET: ${{ secrets.OKTA_CLIENT_SECRET }}
160-
WCS_DUMMY_CI_PW: ${{ secrets.WCS_DUMMY_CI_PW }}
161-
OKTA_DUMMY_CI_PW: ${{ secrets.OKTA_DUMMY_CI_PW }}
162-
# OPENAI_APIKEY: ${{ secrets.OPENAI_APIKEY }} disabled until we have a working key
163-
run: pytest -v --cov --cov-report=term-missing --cov=weaviate --cov-report xml:coverage-integration-v3.xml integration_v3
164-
- name: Run integration tests without auth secrets (for forks)
165-
if: ${{ github.event.pull_request.head.repo.fork }}
166-
run: pytest -v --cov --cov-report=term-missing --cov=weaviate --cov-report xml:coverage-integration-v3.xml integration_v3
167-
- name: Archive code coverage results
168-
if: matrix.versions.py == '3.10' && (github.ref_name != 'main')
169-
uses: actions/upload-artifact@v4
170-
with:
171-
name: coverage-report-integration-v3
172-
path: coverage-integration-v3.xml
173-
- name: stop weaviate
174-
run: /bin/bash ci/stop_weaviate.sh ${{ matrix.versions.weaviate }}
175-
176117
integration-tests:
177118
name: Run Integration Tests
178119
runs-on: ubuntu-latest
@@ -219,7 +160,7 @@ jobs:
219160
WCS_DUMMY_CI_PW: ${{ secrets.WCS_DUMMY_CI_PW }}
220161
OKTA_DUMMY_CI_PW: ${{ secrets.OKTA_DUMMY_CI_PW }}
221162
# OPENAI_APIKEY: ${{ secrets.OPENAI_APIKEY }} disabled until we have a working key
222-
run: pytest -n auto -v --cov --cov-report=term-missing --cov=weaviate --cov-report xml:coverage-integration.xml integration
163+
run: pytest -n auto --dist loadgroup -v --cov --cov-report=term-missing --cov=weaviate --cov-report xml:coverage-integration.xml integration
223164
- name: Run integration tests without auth secrets (for forks)
224165
if: ${{ github.event.pull_request.head.repo.fork }}
225166
run: pytest -v --cov --cov-report=term-missing --cov=weaviate --cov-report xml:coverage-integration.xml integration
@@ -269,7 +210,7 @@ jobs:
269210
run: /bin/bash ci/stop_weaviate.sh ${{ matrix.versions.weaviate }}
270211

271212
Codecov:
272-
needs: [Unit-Tests, Integration-Tests, Integration-Tests-v3]
213+
needs: [Unit-Tests, Integration-Tests]
273214
runs-on: ubuntu-latest
274215
if: github.ref_name != 'main'
275216
steps:

integration_v3/test_backup_v4.py renamed to integration/test_backup_v4.py

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
BackupFailedException,
2020
)
2121

22+
pytestmark = pytest.mark.xdist_group(name="backup")
23+
2224
BACKEND = BackupStorage.FILESYSTEM
2325

2426
PARAGRAPHS_IDS = [

integration_v3/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)