Skip to content

Commit

Permalink
test: HOME looks to be missing??
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed Oct 31, 2023
1 parent 3bf2098 commit 6a86a99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ai/backend/common/redis_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@

log = BraceStyleAdapter(logging.getLogger(__spec__.name)) # type: ignore[name-defined]

# DUMMY TEXT


class ConnectionNotAvailable(Exception):
pass
Expand Down
4 changes: 4 additions & 0 deletions tests/common/redis_helper/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ async def make_cluster(self) -> AsyncIterator[RedisClusterInfo]:

compose_file = compose_cfg_dir / "redis-cluster.yml"

print(f"HOME = {os.environ.get('HOME', '???????')!r}")
async with async_timeout.timeout(30.0):
cmdargs = [
*compose_cmd,
Expand Down Expand Up @@ -233,6 +234,7 @@ async def make_cluster(self) -> AsyncIterator[RedisClusterInfo]:
"--format",
"json",
],
env=os.environ,
cwd=compose_cfg_dir,
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.DEVNULL,
Expand Down Expand Up @@ -273,6 +275,7 @@ async def make_cluster(self) -> AsyncIterator[RedisClusterInfo]:
"inspect",
*cids,
],
env=os.environ,
cwd=compose_cfg_dir,
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.DEVNULL,
Expand Down Expand Up @@ -365,6 +368,7 @@ async def make_cluster(self) -> AsyncIterator[RedisClusterInfo]:
"down",
"-v",
],
env=os.environ,
cwd=compose_cfg_dir,
stdout=asyncio.subprocess.DEVNULL,
stderr=asyncio.subprocess.DEVNULL,
Expand Down

0 comments on commit 6a86a99

Please sign in to comment.