Skip to content

Commit 43a1bd4

Browse files
kevjumbaadchia
authored andcommitted
fix: Remove redis service to prevent more conflicts and add redis node to master_only (#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>
1 parent 003819b commit 43a1bd4

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

.github/workflows/master_only.yml

+5-10
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,6 @@ jobs:
6565
env:
6666
OS: ${{ matrix.os }}
6767
PYTHON: ${{ matrix.python-version }}
68-
services:
69-
redis:
70-
image: redis
71-
ports:
72-
- 6379:6379
73-
options: >-
74-
--health-cmd "redis-cli ping"
75-
--health-interval 10s
76-
--health-timeout 5s
77-
--health-retries 5
7868
steps:
7969
- uses: actions/checkout@v2
8070
- name: Setup Python
@@ -120,6 +110,11 @@ jobs:
120110
run: pip install pip-tools
121111
- name: Install dependencies
122112
run: make install-python-ci-dependencies
113+
- name: Start Redis
114+
uses: supercharge/redis-github-action@1.4.0
115+
with:
116+
redis-version: ${{ matrix.redis-version }}
117+
redis-port: 12345
123118
- name: Setup Redis Cluster
124119
run: |
125120
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
@@ -135,9 +135,11 @@ def make_feature_store_yaml(project, test_repo_config, repo_dir_name: Path):
135135
isinstance(config_dict["online_store"], dict)
136136
and "redis_type" in config_dict["online_store"]
137137
):
138-
del config_dict["online_store"]["redis_type"]
138+
if str(config_dict["online_store"]["redis_type"]) == "RedisType.redis_cluster":
139+
config_dict["online_store"]["redis_type"] = "redis_cluster"
140+
elif str(config_dict["online_store"]["redis_type"]) == "RedisType.redis":
141+
config_dict["online_store"]["redis_type"] = "redis"
139142
config_dict["repo_path"] = str(config_dict["repo_path"])
140-
141143
return yaml.safe_dump(config_dict)
142144

143145

0 commit comments

Comments
 (0)