Skip to content

Commit

Permalink
added --workload-name-suffix param to e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
wangpatrick57 committed Nov 6, 2024
1 parent 94f1ede commit c4a4018
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/run_protox_e2e_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def run_e2e_for_benchmark(benchmark_name: str, intended_dbdata_hardware: str) ->
if Stage.EmbeddingData in STAGES_TO_RUN:
assert not traindata_dpath.exists()
subprocess.run(
f"python task.py tune {AGENT} embedding datagen {benchmark_name} --scale-factor {scale_factor} {embedding_datagen_args} --intended-dbdata-hardware {intended_dbdata_hardware}".split(),
f"python task.py tune {AGENT} embedding datagen {benchmark_name} --workload-name-suffix {workload_name_suffix} --scale-factor {scale_factor} {embedding_datagen_args} --intended-dbdata-hardware {intended_dbdata_hardware}".split(),
check=True,
)
assert traindata_dpath.exists()
Expand All @@ -150,7 +150,7 @@ def run_e2e_for_benchmark(benchmark_name: str, intended_dbdata_hardware: str) ->
if Stage.EmbeddingModel in STAGES_TO_RUN:
assert not embedder_dpath.exists()
subprocess.run(
f"python task.py tune {AGENT} embedding train {benchmark_name} --scale-factor {scale_factor} {embedding_train_args}".split(),
f"python task.py tune {AGENT} embedding train {benchmark_name} --workload-name-suffix {workload_name_suffix} --scale-factor {scale_factor} {embedding_train_args}".split(),
check=True,
)
assert embedder_dpath.exists()
Expand All @@ -161,7 +161,7 @@ def run_e2e_for_benchmark(benchmark_name: str, intended_dbdata_hardware: str) ->
if Stage.TuneHPO in STAGES_TO_RUN:
assert not hpoed_agent_params_fpath.exists()
subprocess.run(
f"python task.py tune {AGENT} agent hpo {benchmark_name} --scale-factor {scale_factor} {tune_hpo_args} --intended-dbdata-hardware {intended_dbdata_hardware}".split(),
f"python task.py tune {AGENT} agent hpo {benchmark_name} --workload-name-suffix {workload_name_suffix} --scale-factor {scale_factor} {tune_hpo_args} --intended-dbdata-hardware {intended_dbdata_hardware}".split(),
check=True,
)
assert hpoed_agent_params_fpath.exists()
Expand All @@ -172,7 +172,7 @@ def run_e2e_for_benchmark(benchmark_name: str, intended_dbdata_hardware: str) ->
if Stage.TuneTune in STAGES_TO_RUN:
assert not tuning_steps_dpath.exists()
subprocess.run(
f"python task.py tune {AGENT} agent tune {benchmark_name} --scale-factor {scale_factor}".split(),
f"python task.py tune {AGENT} agent tune {benchmark_name} --workload-name-suffix {workload_name_suffix} --scale-factor {scale_factor}".split(),
check=True,
)
assert tuning_steps_dpath.exists()
Expand All @@ -184,7 +184,7 @@ def run_e2e_for_benchmark(benchmark_name: str, intended_dbdata_hardware: str) ->
if Stage.Replay in STAGES_TO_RUN:
assert not replay_data_fpath.exists()
subprocess.run(
f"python3 task.py tune {AGENT} agent replay {benchmark_name} --scale-factor {scale_factor}".split(),
f"python3 task.py tune {AGENT} agent replay {benchmark_name} --workload-name-suffix {workload_name_suffix} --scale-factor {scale_factor}".split(),
check=True,
)
assert replay_data_fpath.exists()
Expand Down

0 comments on commit c4a4018

Please sign in to comment.