Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crud intergration tests: docidcache-centric (#1613)
* test: add cache-centric integration tests for crud
- Loading branch information
1 parent
c35296e
commit 90b779d
Showing
16 changed files
with
573 additions
and
42 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
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
Empty file.
Empty file.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
!BaseExecutor | ||
with: {} | ||
metas: | ||
name: merge_matches_topk | ||
requests: | ||
on: | ||
[SearchRequest, TrainRequest, IndexRequest, DeleteRequest, UpdateRequest]: | ||
- !ReduceAllDriver | ||
with: | ||
traversal_paths: ['m'] | ||
- !SliceQL | ||
with: | ||
start: 0 | ||
end: $JINA_TOPK | ||
traversal_paths: ['m'] | ||
ControlRequest: | ||
- !ControlReqDriver {} |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
!DocIDCache | ||
with: | ||
field: $JINA_CACHE_FIELD | ||
index_filename: cache | ||
metas: | ||
workspace: $JINA_TEST_CACHE_CRUD_WORKSPACE | ||
name: cache | ||
requests: | ||
on: | ||
IndexRequest: | ||
- !TaggingCacheDriver | ||
with: | ||
executor: cache | ||
traversal_paths: [r, c] | ||
tags: | ||
is_indexed: true | ||
UpdateRequest: | ||
- !BaseCacheDriver | ||
with: | ||
method: update | ||
executor: cache | ||
traversal_paths: [r, c] | ||
DeleteRequest: | ||
- !BaseCacheDriver | ||
with: | ||
method: delete | ||
executor: cache | ||
traversal_paths: [r, c] | ||
|
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
!Flow | ||
pods: | ||
cache: | ||
uses: cache.yml | ||
show_exc_info: true | ||
vector: | ||
uses: vector.yml | ||
shards: $JINA_SHARDS | ||
separated_workspace: True | ||
uses_after: '_merge_matches' | ||
polling: $JINA_POLLING | ||
timeout_ready: '-1' | ||
show_exc_info: true | ||
needs: cache | ||
kv: | ||
uses: kv.yml | ||
shards: $JINA_SHARDS | ||
separated_workspace: True | ||
uses_after: '_merge_matches' | ||
polling: $JINA_POLLING | ||
timeout_ready: '-1' | ||
show_exc_info: true | ||
needs: $JINA_KV_NEEDS | ||
final: | ||
needs: $JINA_MERGER_NEEDS | ||
workspace: $JINA_TEST_CACHE_CRUD_WORKSPACE | ||
show_exc_info: true | ||
|
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
!Flow | ||
pods: | ||
vector: | ||
uses: vector.yml | ||
shards: $JINA_SHARDS | ||
separated_workspace: True | ||
uses_after: '_merge_matches_topk.yml' | ||
polling: $JINA_POLLING | ||
timeout_ready: '-1' | ||
show_exc_info: true | ||
kv: | ||
uses: kv.yml | ||
shards: $JINA_SHARDS | ||
separated_workspace: True | ||
uses_after: '_merge_matches_topk.yml' | ||
polling: $JINA_POLLING | ||
timeout_ready: '-1' | ||
show_exc_info: true | ||
needs: $JINA_KV_NEEDS |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
!CompoundIndexer | ||
components: | ||
- !BinaryPbIndexer | ||
with: | ||
index_filename: doc.gz | ||
metas: | ||
workspace: $JINA_TEST_CACHE_CRUD_WORKSPACE | ||
name: $JINA_KV_IDX_NAME | ||
metas: | ||
name: inc_docindexer | ||
workspace: $JINA_TEST_CACHE_CRUD_WORKSPACE | ||
requests: | ||
on: | ||
UpdateRequest: | ||
- !KVIndexDriver | ||
with: | ||
method: update | ||
executor: $JINA_KV_IDX_NAME | ||
traversal_paths: [r, c] | ||
DeleteRequest: | ||
- !KVIndexDriver | ||
with: | ||
method: delete | ||
executor: $JINA_KV_IDX_NAME | ||
traversal_paths: [r, c] | ||
IndexRequest: | ||
- !FilterQL | ||
with: | ||
lookups: {tags__is_indexed__neq: true} | ||
- !KVIndexDriver | ||
with: | ||
executor: $JINA_KV_IDX_NAME | ||
traversal_paths: [r, c] | ||
SearchRequest: | ||
- !KVSearchDriver | ||
with: | ||
is_merge: false | ||
executor: $JINA_KV_IDX_NAME | ||
top_k: $JINA_TOPK | ||
traversal_paths: [m] |
Oops, something went wrong.