-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove redis/tikv maindb drivers (#2254)
- Loading branch information
1 parent
17d54bb
commit 0d8bc56
Showing
59 changed files
with
82 additions
and
35,250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ name: nucliadb (py) | |
|
||
env: | ||
COMPONENT: nucliadb | ||
TESTING_TIKV_LOCAL: "true" | ||
GCP_WORKLOAD_IDENTITY_PROVIDER: "projects/224545243904/locations/global/workloadIdentityPools/gh-nuclia/providers/gh-nuclia-provider" | ||
GCP_SERVICE_ACCOUNT: "[email protected]" | ||
|
||
|
@@ -32,7 +31,7 @@ jobs: | |
max-parallel: 6 | ||
matrix: | ||
python-version: ["3.12"] | ||
maindb_driver: ["tikv", "tikv_2", "tikv_3", "pg", "pg_2", "pg_3"] | ||
maindb_driver: ["pg", "pg_2", "pg_3"] | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v3 | ||
|
@@ -46,10 +45,6 @@ jobs: | |
- name: Install the package | ||
run: make -C nucliadb/ install-dev | ||
|
||
- name: Install tikv | ||
if: matrix.maindb_driver == 'tikv' || matrix.maindb_driver == 'tikv_2' || matrix.maindb_driver == 'tikv_3' | ||
run: sudo cp ./scripts/pingcap-com.pem /usr/local/share/ca-certificates/pingcap.crt && sudo update-ca-certificates && ./scripts/run-tikv.sh | ||
|
||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
|
@@ -120,45 +115,6 @@ jobs: | |
command: | | ||
make -C nucliadb test-cov-nucliadb pytest_extra_flags="--shard-id=2 --num-shards=3" | ||
- name: Run Tikv tests 1/2 | ||
# These tests can be flaky, let's retry them... | ||
uses: nick-fields/retry@v2 | ||
if: matrix.maindb_driver == 'tikv' | ||
env: | ||
TESTING_MAINDB_DRIVERS: tikv | ||
with: | ||
max_attempts: 2 | ||
retry_on: error | ||
timeout_minutes: 10 | ||
command: | | ||
make -C nucliadb test-cov-nucliadb pytest_extra_flags="--shard-id=0 --num-shards=3" | ||
- name: Run Tikv tests 2/3 | ||
# These tests can be flaky, let's retry them... | ||
uses: nick-fields/retry@v2 | ||
if: matrix.maindb_driver == 'tikv_2' | ||
env: | ||
TESTING_MAINDB_DRIVERS: "tikv" | ||
with: | ||
max_attempts: 2 | ||
retry_on: error | ||
timeout_minutes: 10 | ||
command: | | ||
make -C nucliadb test-cov-nucliadb pytest_extra_flags="--shard-id=1 --num-shards=3" | ||
- name: Run Tikv tests 3/3 | ||
# These tests can be flaky, let's retry them... | ||
uses: nick-fields/retry@v2 | ||
if: matrix.maindb_driver == 'tikv_3' | ||
env: | ||
TESTING_MAINDB_DRIVERS: "tikv" | ||
with: | ||
max_attempts: 2 | ||
retry_on: error | ||
timeout_minutes: 10 | ||
command: | | ||
make -C nucliadb test-cov-nucliadb pytest_extra_flags="--shard-id=2 --num-shards=3" | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
0d8bc56
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
tests/search/unit/search/test_fetch.py::test_highligh_error
2272.3236091721974
iter/sec (stddev: 0.0000010364428255285909
)2841.0684406726436
iter/sec (stddev: 0.000004954958228416619
)1.25
This comment was automatically generated by workflow using github-action-benchmark.
0d8bc56
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
tests/search/unit/search/test_fetch.py::test_highligh_error
2272.6777182105557
iter/sec (stddev: 0.000007636428617192043
)2841.0684406726436
iter/sec (stddev: 0.000004954958228416619
)1.25
This comment was automatically generated by workflow using github-action-benchmark.