Skip to content

Commit

Permalink
skip: fix env var
Browse files Browse the repository at this point in the history
  • Loading branch information
DnPlas committed Jun 7, 2024
1 parent 1056462 commit 08c8843
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 30 deletions.
6 changes: 3 additions & 3 deletions agent/tests/test_rock.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ def test_rock():
check_rock = CheckRock("rockcraft.yaml")
rock_image = check_rock.get_name()
rock_version = check_rock.get_version()
LOCAL_rock_IMAGE = f"{rock_image}:{rock_version}"
LOCAL_ROCK_IMAGE = f"{rock_image}:{rock_version}"

# assert the rock contains the expected files
subprocess.run(
[
"docker",
"run",
"--rm",
LOCAL_rock_IMAGE,
LOCAL_ROCK_IMAGE,
"exec",
"ls",
"-la",
Expand All @@ -35,7 +35,7 @@ def test_rock():
"docker",
"run",
"--rm",
LOCAL_rock_IMAGE,
LOCAL_ROCK_IMAGE,
"exec",
"ls",
"-la",
Expand Down
6 changes: 3 additions & 3 deletions controller/tests/test_rock.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ def test_rock():
check_rock = CheckRock("rockcraft.yaml")
rock_image = check_rock.get_name()
rock_version = check_rock.get_version()
LOCAL_rock_IMAGE = f"{rock_image}:{rock_version}"
LOCAL_ROCK_IMAGE = f"{rock_image}:{rock_version}"

# assert the rock contains the expected files
subprocess.run(
[
"docker",
"run",
"--rm",
LOCAL_rock_IMAGE,
LOCAL_ROCK_IMAGE,
"exec",
"ls",
"-la",
Expand All @@ -31,6 +31,6 @@ def test_rock():
)

subprocess.run(
["docker", "run", "--rm", LOCAL_rock_IMAGE, "exec", "ls", "-la", "/manager"],
["docker", "run", "--rm", LOCAL_ROCK_IMAGE, "exec", "ls", "-la", "/manager"],
check=True,
)
8 changes: 4 additions & 4 deletions lgbserver/tests/test_rock.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_rock(rock_test_env):
check_rock = CheckRock("rockcraft.yaml")
rock_image = check_rock.get_name()
rock_version = check_rock.get_version()
LOCAL_rock_IMAGE = f"{rock_image}:{rock_version}"
LOCAL_ROCK_IMAGE = f"{rock_image}:{rock_version}"

# assert we have the expected files
subprocess.run(
Expand All @@ -40,7 +40,7 @@ def test_rock(rock_test_env):
"run",
"--entrypoint",
"/bin/bash",
LOCAL_rock_IMAGE,
LOCAL_ROCK_IMAGE,
"-c",
"ls -la /usr/local/lib/python3.10/dist-packages/lgbserver",
],
Expand All @@ -52,7 +52,7 @@ def test_rock(rock_test_env):
"run",
"--entrypoint",
"/bin/bash",
LOCAL_rock_IMAGE,
LOCAL_ROCK_IMAGE,
"-c",
"ls -la /usr/local/lib/python3.10/dist-packages/kserve",
],
Expand All @@ -64,7 +64,7 @@ def test_rock(rock_test_env):
"run",
"--entrypoint",
"/bin/bash",
LOCAL_rock_IMAGE,
LOCAL_ROCK_IMAGE,
"-c",
"ls -la /third_party",
],
Expand Down
8 changes: 4 additions & 4 deletions paddleserver/tests/test_rock.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_rock(rock_test_env):
check_rock = CheckRock("rockcraft.yaml")
rock_image = check_rock.get_name()
rock_version = check_rock.get_version()
LOCAL_rock_IMAGE = f"{rock_image}:{rock_version}"
LOCAL_ROCK_IMAGE = f"{rock_image}:{rock_version}"

# assert we have the expected files
subprocess.run(
Expand All @@ -45,7 +45,7 @@ def test_rock(rock_test_env):
"run",
"--entrypoint",
"/bin/bash",
LOCAL_rock_IMAGE,
LOCAL_ROCK_IMAGE,
"-c",
"ls -la /usr/local/lib/python3.10/dist-packages/paddleserver",
],
Expand All @@ -57,7 +57,7 @@ def test_rock(rock_test_env):
"run",
"--entrypoint",
"/bin/bash",
LOCAL_rock_IMAGE,
LOCAL_ROCK_IMAGE,
"-c",
"ls -la /usr/local/lib/python3.10/dist-packages/kserve",
],
Expand All @@ -69,7 +69,7 @@ def test_rock(rock_test_env):
"run",
"--entrypoint",
"/bin/bash",
LOCAL_rock_IMAGE,
LOCAL_ROCK_IMAGE,
"-c",
"ls -la /third_party",
],
Expand Down
8 changes: 4 additions & 4 deletions pmmlserver/tests/test_rock.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_rock(rock_test_env):
check_rock = CheckRock("rockcraft.yaml")
rock_image = check_rock.get_name()
rock_version = check_rock.get_version()
LOCAL_rock_IMAGE = f"{rock_image}:{rock_version}"
LOCAL_ROCK_IMAGE = f"{rock_image}:{rock_version}"

# assert we have the expected files
subprocess.run(
Expand All @@ -45,7 +45,7 @@ def test_rock(rock_test_env):
"run",
"--entrypoint",
"/bin/bash",
LOCAL_rock_IMAGE,
LOCAL_ROCK_IMAGE,
"-c",
"ls -la /usr/local/lib/python3.10/dist-packages/pmmlserver",
],
Expand All @@ -57,7 +57,7 @@ def test_rock(rock_test_env):
"run",
"--entrypoint",
"/bin/bash",
LOCAL_rock_IMAGE,
LOCAL_ROCK_IMAGE,
"-c",
"ls -la /usr/local/lib/python3.10/dist-packages/kserve",
],
Expand All @@ -69,7 +69,7 @@ def test_rock(rock_test_env):
"run",
"--entrypoint",
"/bin/bash",
LOCAL_rock_IMAGE,
LOCAL_ROCK_IMAGE,
"-c",
"ls -la /third_party",
],
Expand Down
8 changes: 4 additions & 4 deletions sklearnserver/tests/test_rock.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_rock(rock_test_env):
check_rock = CheckRock("rockcraft.yaml")
rock_image = check_rock.get_name()
rock_version = check_rock.get_version()
LOCAL_rock_IMAGE = f"{rock_image}:{rock_version}"
LOCAL_ROCK_IMAGE = f"{rock_image}:{rock_version}"

# assert we have the expected files
subprocess.run(
Expand All @@ -45,7 +45,7 @@ def test_rock(rock_test_env):
"run",
"--entrypoint",
"/bin/bash",
LOCAL_rock_IMAGE,
LOCAL_ROCK_IMAGE,
"-c",
"ls -la /usr/local/lib/python3.10/dist-packages/sklearnserver",
],
Expand All @@ -57,7 +57,7 @@ def test_rock(rock_test_env):
"run",
"--entrypoint",
"/bin/bash",
LOCAL_rock_IMAGE,
LOCAL_ROCK_IMAGE,
"-c",
"ls -la /usr/local/lib/python3.10/dist-packages/kserve",
],
Expand All @@ -69,7 +69,7 @@ def test_rock(rock_test_env):
"run",
"--entrypoint",
"/bin/bash",
LOCAL_rock_IMAGE,
LOCAL_ROCK_IMAGE,
"-c",
"ls -la /third_party",
],
Expand Down
8 changes: 4 additions & 4 deletions storage-initializer/tests/test_rock.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_rock(rock_test_env):
check_rock = CheckRock("rockcraft.yaml")
rock_image = check_rock.get_name()
rock_version = check_rock.get_version()
LOCAL_rock_IMAGE = f"{rock_image}:{rock_version}"
LOCAL_ROCK_IMAGE = f"{rock_image}:{rock_version}"

# assert we have the expected files
subprocess.run(
Expand All @@ -40,7 +40,7 @@ def test_rock(rock_test_env):
"run",
"--entrypoint",
"/bin/bash",
LOCAL_rock_IMAGE,
LOCAL_ROCK_IMAGE,
"-c",
"ls -la /usr/local/lib/python3.10/dist-packages/kserve",
],
Expand All @@ -52,7 +52,7 @@ def test_rock(rock_test_env):
"run",
"--entrypoint",
"/bin/bash",
LOCAL_rock_IMAGE,
LOCAL_ROCK_IMAGE,
"-c",
"ls -la /third_party",
],
Expand All @@ -64,7 +64,7 @@ def test_rock(rock_test_env):
"run",
"--entrypoint",
"/bin/bash",
LOCAL_rock_IMAGE,
LOCAL_ROCK_IMAGE,
"-c",
"ls -la /storage-initializer/scripts/initializer-entrypoint",
],
Expand Down
8 changes: 4 additions & 4 deletions xgbserver/tests/test_rock.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_rock(rock_test_env):
check_rock = CheckRock("rockcraft.yaml")
rock_image = check_rock.get_name()
rock_version = check_rock.get_version()
LOCAL_rock_IMAGE = f"{rock_image}:{rock_version}"
LOCAL_ROCK_IMAGE = f"{rock_image}:{rock_version}"

# assert we have the expected files
subprocess.run(
Expand All @@ -45,7 +45,7 @@ def test_rock(rock_test_env):
"run",
"--entrypoint",
"/bin/bash",
LOCAL_rock_IMAGE,
LOCAL_ROCK_IMAGE,
"-c",
"ls -la /usr/local/lib/python3.10/dist-packages/xgbserver",
],
Expand All @@ -57,7 +57,7 @@ def test_rock(rock_test_env):
"run",
"--entrypoint",
"/bin/bash",
LOCAL_rock_IMAGE,
LOCAL_ROCK_IMAGE,
"-c",
"ls -la /usr/local/lib/python3.10/dist-packages/kserve",
],
Expand All @@ -69,7 +69,7 @@ def test_rock(rock_test_env):
"run",
"--entrypoint",
"/bin/bash",
LOCAL_rock_IMAGE,
LOCAL_ROCK_IMAGE,
"-c",
"ls -la /third_party",
],
Expand Down

0 comments on commit 08c8843

Please sign in to comment.