From e3ac7058bee7243ffd96efd29f21c739e7cf711a Mon Sep 17 00:00:00 2001 From: Patrick Wang Date: Mon, 30 Dec 2024 13:56:13 -0500 Subject: [PATCH] deleted append_group --- benchmark/cli.py | 2 +- benchmark/job/cli.py | 2 +- benchmark/tpch/cli.py | 2 +- dbms/cli.py | 2 +- dbms/postgres/cli.py | 2 +- util/workspace.py | 5 ----- 6 files changed, 5 insertions(+), 10 deletions(-) diff --git a/benchmark/cli.py b/benchmark/cli.py index 1cf63418..45943a16 100644 --- a/benchmark/cli.py +++ b/benchmark/cli.py @@ -8,7 +8,7 @@ @click.group(name="benchmark") @click.pass_obj def benchmark_group(dbgym_workspace: DBGymWorkspace) -> None: - dbgym_workspace.append_group("benchmark") + pass benchmark_group.add_command(tpch_group) diff --git a/benchmark/job/cli.py b/benchmark/job/cli.py index 136c0b19..661ed938 100644 --- a/benchmark/job/cli.py +++ b/benchmark/job/cli.py @@ -136,7 +136,7 @@ @click.group(name="job") @click.pass_obj def job_group(dbgym_workspace: DBGymWorkspace) -> None: - dbgym_workspace.append_group("job") + pass @job_group.command(name="tables") diff --git a/benchmark/tpch/cli.py b/benchmark/tpch/cli.py index af8531b2..014401da 100644 --- a/benchmark/tpch/cli.py +++ b/benchmark/tpch/cli.py @@ -26,7 +26,7 @@ @click.group(name="tpch") @click.pass_obj def tpch_group(dbgym_workspace: DBGymWorkspace) -> None: - dbgym_workspace.append_group("tpch") + pass @tpch_group.command(name="tables") diff --git a/dbms/cli.py b/dbms/cli.py index 6d97c5e2..2804b79b 100644 --- a/dbms/cli.py +++ b/dbms/cli.py @@ -7,7 +7,7 @@ @click.group(name="dbms") @click.pass_obj def dbms_group(dbgym_workspace: DBGymWorkspace) -> None: - dbgym_workspace.append_group("dbms") + pass dbms_group.add_command(postgres_group) diff --git a/dbms/postgres/cli.py b/dbms/postgres/cli.py index 91e17469..702285ea 100644 --- a/dbms/postgres/cli.py +++ b/dbms/postgres/cli.py @@ -47,7 +47,7 @@ @click.group(name="postgres") @click.pass_obj def postgres_group(dbgym_workspace: DBGymWorkspace) -> None: - dbgym_workspace.append_group("postgres") + pass @postgres_group.command( diff --git a/util/workspace.py b/util/workspace.py index 83f1a399..a49547eb 100644 --- a/util/workspace.py +++ b/util/workspace.py @@ -83,7 +83,6 @@ def __init__(self, dbgym_workspace_path: Path): ), f"DBGymWorkspace has been created {DBGymWorkspace._num_times_created_this_run} times. It should only be created once per run." self.base_dbgym_repo_path = get_base_dbgym_repo_path() - self.cur_path_list: list[str] = ["dbgym"] self.app_name = ( "dbgym" # TODO: discover this dynamically. app means dbgym or an agent ) @@ -295,10 +294,6 @@ def open_and_save(self, open_path: Path, mode: str = "r") -> IO[Any]: # Open return open(open_path, mode=mode) - # `append_group()` is used to mark the "codebase path" of an invocation of the CLI. The "codebase path" is explained further in the documentation. - def append_group(self, name: str) -> None: - self.cur_path_list.append(name) - def get_workspace_path_from_config(dbgym_config_path: Path) -> Path: """