Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove vector client #450

Merged
merged 2 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 0 additions & 64 deletions .github/workflows/on-pull-request-mvi.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
env:
TEST_API_KEY: ${{ secrets.ALPHA_TEST_AUTH_TOKEN }}
TEST_CACHE_NAME: python-integration-test-${{ matrix.python-version }}-${{ matrix.new-python-protobuf }}-${{ github.sha }}
TEST_VECTOR_INDEX_NAME: python-integration-test-vector-${{ matrix.python-version }}-${{ matrix.new-python-protobuf }}-${{ github.sha }}

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -60,7 +59,7 @@ jobs:
run: poetry run ruff format --check --diff src tests

- name: Run tests
run: poetry run pytest -p no:sugar -q --ignore=tests/momento/vector_index_client
run: poetry run pytest -p no:sugar -q

test-examples:
runs-on: ubuntu-20.04
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/on-push-to-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
env:
TEST_API_KEY: ${{ secrets.ALPHA_TEST_AUTH_TOKEN }}
TEST_CACHE_NAME: python-integration-test-${{ matrix.python-version }}-${{ matrix.new-python-protobuf }}-${{ github.sha }}
TEST_VECTOR_INDEX_NAME: python-integration-test-vector-${{ matrix.python-version }}-${{ matrix.new-python-protobuf }}-${{ github.sha }}

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -78,7 +77,7 @@ jobs:
run: poetry run ruff format --diff src tests

- name: Run tests
run: poetry run pytest -p no:sugar -q --ignore=tests/momento/vector_index_client
run: poetry run pytest -p no:sugar -q

publish:
runs-on: ubuntu-20.04
Expand Down
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ lint:
do-gen-sync:
@poetry run python src/momento/internal/codegen.py src/momento/internal/aio/_scs_control_client.py src/momento/internal/synchronous/_scs_control_client.py
@poetry run python src/momento/internal/codegen.py src/momento/internal/aio/_scs_data_client.py src/momento/internal/synchronous/_scs_data_client.py
@poetry run python src/momento/internal/codegen.py src/momento/internal/aio/_vector_index_control_client.py src/momento/internal/synchronous/_vector_index_control_client.py
@poetry run python src/momento/internal/codegen.py src/momento/internal/aio/_vector_index_data_client.py src/momento/internal/synchronous/_vector_index_data_client.py
@poetry run python src/momento/internal/codegen.py src/momento/cache_client_async.py src/momento/cache_client.py
@poetry run python src/momento/internal/codegen.py src/momento/vector_index_client_async.py src/momento/vector_index_client.py
@poetry run python src/momento/internal/codegen.py tests/momento/cache_client/shared_behaviors_async.py tests/momento/cache_client/shared_behaviors.py
@poetry run python src/momento/internal/codegen.py tests/momento/cache_client/test_init_async.py tests/momento/cache_client/test_init.py
@poetry run python src/momento/internal/codegen.py tests/momento/cache_client/test_control_async.py tests/momento/cache_client/test_control.py
Expand All @@ -40,8 +37,6 @@ do-gen-sync:
@poetry run python src/momento/internal/codegen.py tests/momento/cache_client/test_set_async.py tests/momento/cache_client/test_set.py
@poetry run python src/momento/internal/codegen.py tests/momento/cache_client/test_sorted_set_async.py tests/momento/cache_client/test_sorted_set.py
@poetry run python src/momento/internal/codegen.py tests/momento/cache_client/test_sorted_set_simple_async.py tests/momento/cache_client/test_sorted_set_simple.py
@poetry run python src/momento/internal/codegen.py tests/momento/vector_index_client/test_control_async.py tests/momento/vector_index_client/test_control.py
@poetry run python src/momento/internal/codegen.py tests/momento/vector_index_client/test_data_async.py tests/momento/vector_index_client/test_data.py

.PHONY: gen-sync
## Generate synchronous code and tests from asynchronous code.
Expand Down
20 changes: 0 additions & 20 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ MOMENTO_API_KEY=<YOUR_API_KEY> poetry run python -m py310.example
MOMENTO_API_KEY=<YOUR_API_KEY> poetry run python -m py310.example_async
```

To run the python version 3.10+ vector index examples:

```bash
MOMENTO_API_KEY=<YOUR_API_KEY> poetry run python -m py310.vector_index
MOMENTO_API_KEY=<YOUR_API_KEY> poetry run python -m py310.vector_index_async
```

To run the examples with SDK debug logging enabled:

```bash
Expand All @@ -69,13 +62,6 @@ MOMENTO_API_KEY=<YOUR_API_KEY> poetry run python -m prepy310.example
MOMENTO_API_KEY=<YOUR_API_KEY> poetry run python -m prepy310.example_async
```

To run the python version <3.10 vector index examples:

```bash
MOMENTO_API_KEY=<YOUR_API_KEY> poetry run python -m prepy310.vector_index
MOMENTO_API_KEY=<YOUR_API_KEY> poetry run python -m prepy310.vector_index_async
```

To run the examples with SDK debug logging enabled:

```bash
Expand Down Expand Up @@ -119,12 +105,6 @@ DEBUG=true MOMENTO_API_KEY=<YOUR_API_KEY> python -m prepy310.example
DEBUG=true MOMENTO_API_KEY=<YOUR_API_KEY> python -m prepy310.example_async
```

To run the vector index example:

```bash
MOMENTO_API_KEY=<YOUR_API_KEY> python -m vector_index.example
```

## Running the load generator example

This repo includes a very basic load generator, to allow you to experiment
Expand Down
149 changes: 0 additions & 149 deletions examples/prepy310/vector_index.py

This file was deleted.

Loading
Loading