Skip to content

Commit 10d96fc

Browse files
kevjumbaachals
authored andcommitted
fix: Remove redis service to prevent more conflicts and add redis node to master_only (feast-dev#2354)
* Fix redis on master.yml Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Remove hack in make_feature_store_yaml Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix error Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix tests Signed-off-by: Kevin Zhang <kzhang@tecton.ai> Signed-off-by: Achal Shah <achals@gmail.com>
1 parent c4de236 commit 10d96fc

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

.github/workflows/master_only.yml

+4-10
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,6 @@ jobs:
6666
env:
6767
OS: ${{ matrix.os }}
6868
PYTHON: ${{ matrix.python-version }}
69-
services:
70-
redis:
71-
image: redis
72-
ports:
73-
- 6379:6379
74-
options: >-
75-
--health-cmd "redis-cli ping"
76-
--health-interval 10s
77-
--health-timeout 5s
78-
--health-retries 5
7969
steps:
8070
- uses: actions/checkout@v2
8171
- name: Setup Python
@@ -129,6 +119,10 @@ jobs:
129119
export GOPATH=${HOME}/work/feast/go
130120
export PATH=${PATH}:`go env GOPATH`/bin
131121
make install-python-ci-dependencies
122+
- name: Start Redis
123+
uses: supercharge/redis-github-action@1.4.0
124+
with:
125+
redis-port: 12345
132126
- name: Setup Redis Cluster
133127
run: |
134128
docker pull vishnunair/docker-redis-cluster:latest

sdk/python/tests/integration/registration/test_cli.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,11 @@ def make_feature_store_yaml(project, test_repo_config, repo_dir_name: Path):
134134
isinstance(config_dict["online_store"], dict)
135135
and "redis_type" in config_dict["online_store"]
136136
):
137-
del config_dict["online_store"]["redis_type"]
137+
if str(config_dict["online_store"]["redis_type"]) == "RedisType.redis_cluster":
138+
config_dict["online_store"]["redis_type"] = "redis_cluster"
139+
elif str(config_dict["online_store"]["redis_type"]) == "RedisType.redis":
140+
config_dict["online_store"]["redis_type"] = "redis"
138141
config_dict["repo_path"] = str(config_dict["repo_path"])
139-
140142
return yaml.safe_dump(config_dict)
141143

142144

0 commit comments

Comments
 (0)