Skip to content
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
61 changes: 61 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,16 @@ commands:
- run:
name: Build release
command: bash -l -c "make build pack <<parameters.build_params>>"
- save_cache:
key: v2-dependencies-{{ arch }}-{{ checksum "Cargo.lock" }}
paths:
- "~/.cargo"
- "./target"

test-steps:
steps:
- abort-for-docs
- checkout-all
- run:
name: Run all tests
command: bash -l -c "make pytest"
Expand Down Expand Up @@ -143,12 +153,51 @@ commands:
make publish OSNICK=<<parameters.platform>> VERSION=$CIRCLE_TAG BRANCH=$CIRCLE_BRANCH OFFICIAL=0 SHOW=1 VERBOSE=1
- persist-artifacts

benchmark-steps:
parameters:
github_actor:
type: string
default: $CIRCLE_USERNAME
module_path:
type: string
default: ../../target/release/rejson.so
steps:
- run:
name: Install remote benchmark tool dependencies
command: |
mkdir -p /workspace
TF_EXE_FILE_NAME=/workspace/terraform ./tests/benchmarks/remote/install_deps.sh
- run:
name: Install remote benchmark python dependencies
command: python3 -m pip install -r ./tests/benchmarks/requirements.txt
- run:
name: Run CI benchmarks on aws
command: |
cd ./tests/benchmarks
export AWS_ACCESS_KEY_ID=$PERFORMANCE_EC2_ACCESS_KEY
export AWS_SECRET_ACCESS_KEY=$PERFORMANCE_EC2_SECRET_KEY
export AWS_DEFAULT_REGION=$PERFORMANCE_EC2_REGION
export EC2_PRIVATE_PEM=$PERFORMANCE_EC2_PRIVATE_PEM

redisbench-admin run-remote \
--terraform_bin_path /workspace/terraform \
--module_path << parameters.module_path >> \
--github_actor << parameters.github_actor >> \
--github_repo $CIRCLE_PROJECT_REPONAME \
--github_org $CIRCLE_PROJECT_USERNAME \
--github_sha $CIRCLE_SHA1 \
--github_branch $CIRCLE_BRANCH \
--upload_results_s3 \
--triggering_env circleci \
--push_results_redistimeseries

jobs:
build:
docker:
- image: redisfab/rmbuilder:6.2.1-x64-buster
steps:
- build-steps
- test-steps

platforms-build:
parameters:
Expand All @@ -165,6 +214,7 @@ jobs:
xcode: 11.3.0
steps:
- build-steps
- test-steps

deploy-artifacts:
parameters:
Expand Down Expand Up @@ -212,6 +262,12 @@ jobs:
name: Run QA Automation
command: MODULE_VERSION=$CIRCLE_BRANCH VERBOSE=1 TEST=nightly QUICK=1 ./tests/qa/run

performance-automation:
docker:
- image: redisfab/rmbuilder:6.2.1-x64-bionic
steps:
- build-steps
- benchmark-steps

on-any-branch: &on-any-branch
filters:
Expand Down Expand Up @@ -303,6 +359,9 @@ workflows:
<<: *on-version-tags
requires:
- deploy_release
- performance-automation:
<<: *on-integ-and-version-tags
context: common

nightly:
triggers:
Expand All @@ -315,3 +374,5 @@ workflows:
- /^feature-.*$/
jobs:
- nightly-automation
- performance-automation:
context: common
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ serde_json = "1.0"
serde = "1.0"
libc = "0.2"
jsonpath_lib = { git="https://github.com/RedisJSON/jsonpath.git", branch="public-parser" }
# redis-module = { version="0.12.0", features = ["experimental-api"]}
# redis-module = { version="0.15.0", features = ["experimental-api"]}
redis-module = { git = "https://github.com/RedisLabsModules/redismodule-rs", branch = "feature-search-json", features = ["experimental-api"] }
lazy_static = "1.4.0"
# readies-wd40 = { path = "deps/readies/wd40" }
Expand All @@ -24,4 +24,4 @@ lazy_static = "1.4.0"
# https://github.com/RedisLabsModules/redismodule-rs/pull/68
# This requires running the tests with `--features test`
test = ["redis-module/test"]
experimental-api = []
# experimental-api = []
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,25 @@ cargo_test:

#----------------------------------------------------------------------------------------------

BENCHMARK_ARGS = redisbench-admin run-local

ifneq ($(REMOTE),)
BENCHMARK_ARGS = redisbench-admin run-remote
endif

BENCHMARK_ARGS += --module_path $(realpath $(TARGET))
ifneq ($(BENCHMARK),)
BENCHMARK_ARGS += --test $(BENCHMARK)
endif


benchmark: $(TARGET)
cd ./tests/benchmarks; $(BENCHMARK_ARGS) ; cd ../../

.PHONY: benchmark

#----------------------------------------------------------------------------------------------

pack:
./sbin/pack.sh

Expand Down
6 changes: 3 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Before using RedisJSON, you should familiarize yourself with its commands and sy

### With `redis-cli`

This example will use [`redis-cli`](http://redis.io/topics/rediscli) as the Redis client. The first RedisJSON command to try out is [`JSON.SET`](/commands#jsonset), which sets a Redis key with a JSON value. All JSON values can be used, for example a string:
This example will use [`redis-cli`](http://redis.io/topics/rediscli) as the Redis client. The first RedisJSON command to try out is [`JSON.SET`](commands.md#jsonset), which sets a Redis key with a JSON value. All JSON values can be used, for example a string:

```
127.0.0.1:6379> JSON.SET foo . '"bar"'
Expand All @@ -70,7 +70,7 @@ string

```

[`JSON.STRLEN`](/commands#jsonstrlen) tells you the length of the string, and you can append another string to it with [`JSON.STRAPPEND`](/commands#jsonstrappend). Numbers can be [incremented](/commands#jsonnumincrby) and [multiplied](/commands#jsonnummultby):
[`JSON.STRLEN`](commands.md#jsonstrlen) tells you the length of the string, and you can append another string to it with [`JSON.STRAPPEND`](commands.md#jsonstrappend). Numbers can be [incremented](commands.md#jsonnumincrby) and [multiplied](commands.md#jsonnummultby):

```
127.0.0.1:6379> JSON.SET num . 0
Expand Down Expand Up @@ -100,7 +100,7 @@ OK
"[true,{\"answer\":42}]"
```

The handy [`JSON.DEL`](/commands#jsondel) command deletes anything you tell it to. Arrays can be manipulated with a dedicated subset of RedisJSON commands:
The handy [`JSON.DEL`](commands.md#jsondel) command deletes anything you tell it to. Arrays can be manipulated with a dedicated subset of RedisJSON commands:

```
127.0.0.1:6379> JSON.SET arr . []
Expand Down
1 change: 1 addition & 0 deletions ramp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ capabilities:
- persistence_rdb
- hash_policy
- clustering
- intershard_tls
4 changes: 1 addition & 3 deletions sbin/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ export OSNICK=$($READIES/bin/platform --osnick)
# RLEC naming conventions
[[ $ARCH == x64 ]] && ARCH=x86_64
[[ $OS == linux ]] && OS=Linux
if [[ $OSNICK == focal ]]; then
OSNICK=ubuntu20.04
elif [[ $OSNICK == bionic ]]; then
if [[ $OSNICK == bionic ]]; then
OSNICK=ubuntu18.04
elif [[ $OSNICK == xenial ]]; then
OSNICK=ubuntu16.04
Expand Down
Loading