Skip to content

Commit

Permalink
Vec 283 Add the ability to Insert,Update,Upsert,Query (#10)
Browse files Browse the repository at this point in the history
* !feat: Merge AdminClient and Client

* fix: Do not recreate clients (grpc stubs) for each request.

* feat: VEC-284 add the ability to insert, update, and upsert.

* feat: VEC-283 add the ability to perform a VectorSearch
This also add integration tests that spin up an avs cluster.

* ci: Add codecov integration and test workflow
  • Loading branch information
Jesse S authored Aug 27, 2024
1 parent 9fc7010 commit b7ab11d
Show file tree
Hide file tree
Showing 64 changed files with 5,515 additions and 1,031 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Test
on:
push:
branches:
- '**' # Run on every branch
# pull_request:
# branches-ignore:
# - '**' # Ignore all branches for pull requests
workflow_call:

jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get go version from go.mod
run: |
echo "GO_VERSION=$(grep '^go ' go.mod | cut -d " " -f 2)" >> $GITHUB_ENV
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Write feature keys
env:
FEATURES_CONF : ${{secrets.FEATURES_CONF}}

run: |
echo "$FEATURES_CONF" > docker/multi-node/config/features.conf
echo "$FEATURES_CONF" > docker/tls/config/features.conf
echo "$FEATURES_CONF" > docker/mtls/config/features.conf
echo "$FEATURES_CONF" > docker/auth/config/features.conf
# - name: Login to Aerospike Jfrog
# run: |
# docker login aerospike.jfrog.io --username ${{ secrets.JFROG_USERNAME }} --password ${{ secrets.JFROG_ACCESS_TOKEN }}
- name: Run tests
run: |
make coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
files: ./coverage/total.cov
verbose: false
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@

# Test binary, built with `go test -c`
*.test
/docker/*
features.conf
coverage/

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
Expand All @@ -20,3 +21,4 @@

# Go workspace file
go.work
.vscode/
11 changes: 6 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ linters-settings:
allow:
- $gostd
- github.com/aerospike/avs-client-go/protos
- 'github.com/stretchr/testify/assert'

linters:
disable-all: true
Expand Down Expand Up @@ -69,8 +70,11 @@ run:
# skip-files:
# - sample

# issues:
# exclude-rules:
issues:
exclude-rules:
- path: '(.+)test\.go'
linters:
- govet # Test code field alignment for sake of space is not a concern
# - path: dir/sample\.go
# linters:
# - lll # Test code is allowed to have long lines
Expand All @@ -80,9 +84,6 @@ run:
# - path: dir/sample\.go
# linters:
# - dupl # Test code is allowed to have duplicate code
# - path: '(.+)test\.go'
# linters:
# - govet # Test code field alignment for sake of space is not a concern
# - linters:
# - lll
# source: "// "
Loading

0 comments on commit b7ab11d

Please sign in to comment.