Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
5d711f6
RedisJSON C API: initial commit (#291)
rafie Mar 27, 2021
f22d2f8
Added readies/wd40 + init fix (#294)
rafie Mar 29, 2021
dbaaf67
[feature-search-json] Updates to RAMP packages logic (#297)
rafie Apr 3, 2021
6cc0edf
Enhance RedisJSON APIs (#298)
oshadmi Apr 7, 2021
57f10c2
WIP Do not take ownership of RedisModuleString passed to JSONAPI_openKey
oshadmi Apr 11, 2021
d1a4f0c
Revert "WIP Do not take ownership of RedisModuleString passed to JSON…
oshadmi Apr 18, 2021
67a7ba4
update Cargo dependency redis-module to point at last commit (#310)
oshadmi Apr 20, 2021
fb1c205
update to refer to last redismodule-rs commit (#316)
oshadmi Apr 21, 2021
8ba39c7
QA automation and packaging fixes (#320)
rafie Apr 22, 2021
5ae16a8
[feature-search-json] Sync with master (1)
rafie Apr 25, 2021
4e80fee
Merge fixes (1)
rafie Apr 25, 2021
6e94ae1
Merge fixes (2)
rafie Apr 25, 2021
85ce45b
Merge pull request #328 from RedisJSON/rafi-sj-sync1
rafie Apr 26, 2021
bbe52c2
Fixed sync from master (1)
rafie Apr 26, 2021
37719a6
Merge pull request #330 from RedisJSON/rafi-fix1
rafie Apr 26, 2021
ed4e62e
Update dep to be on redismodule-rs from master (#331)
oshadmi Apr 28, 2021
0ddc9bf
CircleCI: fix in benchmark
rafie Apr 28, 2021
c722460
CircleCI: benchmark fix (2)
rafie Apr 28, 2021
795bcad
Fixed version to 99.99.99
rafie May 4, 2021
93e471f
[feature-search-json] Sync with master (2) (#344)
rafie May 5, 2021
92ffe37
fixes 1
rafie May 5, 2021
3b92a62
Merge remote-tracking branch 'origin/master' into rafi-sj-merge-to-ma…
rafie May 5, 2021
3b9662f
Update redis-module dependency to version 0.16
oshadmi May 5, 2021
8e70965
Changes per Guy's review
oshadmi May 6, 2021
c53d009
Updated readies
rafie May 8, 2021
267e346
Changes per Gavrie's review
oshadmi May 11, 2021
af386ad
Merge remote-tracking branch 'origin/master' into rafi-sj-merge-to-ma…
rafie May 11, 2021
5e1a387
Updated readies
rafie May 11, 2021
d1b6dc8
Merge branch 'rafi-sj-merge-to-master' of ssh://github.com/RedisJSON/…
rafie May 11, 2021
a2931f0
Merge from review branch (#356)
rafie May 12, 2021
dc1eed6
Merge remote-tracking branch 'origin/master' into rafi-sj-sync-from-m…
rafie May 12, 2021
f1ca7d1
Merge pull request #357 from RedisJSON/rafi-sj-sync-from-master-2
rafie May 12, 2021
168022c
Sanitizer support in Makefile
rafie May 12, 2021
4c0be9e
fixes 1
rafie May 12, 2021
da7490b
fixes 2
rafie May 12, 2021
7051ae6
fixes 3
rafie May 12, 2021
8c60216
fixes 4
rafie May 12, 2021
2d70666
Merge pull request #358 from RedisJSON/rafi-san1
rafie May 12, 2021
886fd6e
system-setup: skip clang setup if installed
rafie May 12, 2021
dba78a4
Update redisjson.rs
oshadmi May 19, 2021
45732ad
Add isJSON API (#363)
oshadmi May 23, 2021
79fc2d9
Merge remote-tracking branch 'origin/master' into rafi-sj-merge-to-ma…
rafie May 23, 2021
4f104ff
Merge remote-tracking branch 'origin/master' into feature-search-json
rafie May 23, 2021
85471e9
Fixes for merge from master
rafie May 23, 2021
db1a4d1
Fixes from sync with master
rafie May 24, 2021
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
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ commands:
apt-get -q install -y git openssh-client curl ca-certificates make tar gzip
bash <(curl -fsSL https://get.docker.com)
- setup_remote_docker:
version: 20.10.2
docker_layer_caching: true

setup-automation:
Expand Down
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.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ 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.15", features = ["experimental-api"]}
redis-module = { version="0.17", features = ["experimental-api"]}
# readies-wd40 = { path = "deps/readies/wd40" }
Comment thread
oshadmi marked this conversation as resolved.
Resolved

[features]
# Workaround to allow cfg(feature = "test") in redismodue-rs dependencies:
Expand Down
70 changes: 58 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,28 @@ $(error Submodules not present. Please run 'git submodule update --init --recurs
endif
include $(ROOT)/deps/readies/mk/main

ifneq ($(SAN),)
override DEBUG:=1
ifeq ($(SAN),mem)
else ifeq ($(SAN),memory)
else ifeq ($(SAN),addr)
else ifeq ($(SAN),address)
else ifeq ($(SAN),leak)
else ifeq ($(SAN),thread)
else
$(error SAN=mem|addr|leak|thread)
endif
endif

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

define HELP
make setup # install prerequisites

make build
DEBUG=1 # build debug variant
SAN=type # build with LLVM sanitizer (type=address|memory|leak|thread)
VALGRIND|VG=1 # build for testing with Valgrind
make clean # remove binary files
ALL=1 # remove binary directories

Expand All @@ -25,7 +40,7 @@ make pytest # run tests
AOF=0|1 # run AOF persistency tests on a standalone Redis topology
SLAVES=0|1 # run replication tests on standalone Redis topology
CLUSTER=0|1 # run general tests on a OSS Redis Cluster topology
VALGRIND|VD=1 # run specified tests with Valgrind
VALGRIND|VG=1 # run specified tests with Valgrind

make pack # build package (RAMP file)

Expand All @@ -44,6 +59,10 @@ make builddocs
make localdocs
make deploydocs

make nightly # set rust default to nightly
make stable # set rust default to stable


endef

#----------------------------------------------------------------------------------------------
Expand All @@ -58,9 +77,19 @@ include $(MK)/rules

MODULE_NAME=rejson.so

RUST_TARGET:=$(shell eval $$(rustc --print cfg | grep =); echo $$target_arch-$$target_vendor-$$target_os-$$target_env)
CARGO_TOOLCHAIN=
CARGO_FLAGS=

ifeq ($(DEBUG),1)
ifeq ($(SAN),)
TARGET_DIR=target/debug
else
TARGET_DIR=target/$(RUST_TARGET)/debug
CARGO_TOOLCHAIN = +nightly
CARGO_FLAGS += -Zbuild-std
endif
else
CARGO_FLAGS += --release
TARGET_DIR=target/release
endif
Expand Down Expand Up @@ -95,7 +124,13 @@ RUST_SOEXT.freebsd=so
RUST_SOEXT.macos=dylib

build:
ifeq ($(SAN),)
cargo build --all --all-targets $(CARGO_FLAGS)
else
export RUSTFLAGS=-Zsanitizer=$(SAN) ;\
export RUSTDOCFLAGS=-Zsanitizer=$(SAN) ;\
cargo $(CARGO_TOOLCHAIN) build --target $(RUST_TARGET) $(CARGO_FLAGS)
endif
cp $(TARGET_DIR)/librejson.$(RUST_SOEXT.$(OS)) $(TARGET)

clean:
Expand All @@ -115,29 +150,29 @@ pytest:
MODULE=$(abspath $(TARGET)) ./tests/pytest/tests.sh

cargo_test:
cargo test --features test --all
cargo $(CARGO_TOOLCHAIN) test --features test --all

.PHONY: pytest cargo_test

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

BENCHMARK_ARGS = redisbench-admin run-local

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

BENCHMARK_ARGS += --module_path $(realpath $(TARGET)) \
--required-module ReJSON
BENCHMARK_ARGS += --module_path $(realpath $(TARGET)) --required-module ReJSON

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

bench benchmark: $(TARGET)
cd ./tests/benchmarks ;\
redisbench-admin $(BENCHMARK_ARGS)

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

.PHONY: benchmark
.PHONY: bench benchmark

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

Expand Down Expand Up @@ -176,3 +211,14 @@ deploydocs: builddocs
mkdocs gh-deploy

.PHONY: builddocs localdocs deploydocs

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

nightly:
rustup default nightly
rustup component add rust-src

stable:
rustup default stable

.PHONY: nightly stable
Loading