From 3e1360b02f484fec0f025d3da82f6614d82899c1 Mon Sep 17 00:00:00 2001 From: Erik Taubeneck Date: Wed, 3 Apr 2024 15:34:29 -0700 Subject: [PATCH] remove multithreading and step generation --- sidecar/app/query/ipa.py | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/sidecar/app/query/ipa.py b/sidecar/app/query/ipa.py index 0d7f2ed..ff894ec 100644 --- a/sidecar/app/query/ipa.py +++ b/sidecar/app/query/ipa.py @@ -171,36 +171,13 @@ def build_from_query(cls, query: IPAQuery): def build_command(self) -> LoggerOutputCommand: return LoggerOutputCommand( cmd=f"cargo build --bin helper --manifest-path={self.manifest_path} " - f'--features="web-app real-world-infra compact-gate stall-detection ' - f'multi-threading" --no-default-features --target-dir={self.target_path} ' + f'--features="web-app real-world-infra compact-gate stall-detection" ' + f"--no-default-features --target-dir={self.target_path} " f"--release", logger=self.logger, ) -@dataclass(kw_only=True) -class IPAHelperCollectStepsStep(CommandStep): - repo_path: Path - logger: loguru.Logger = field(repr=False) - status: ClassVar[Status] = Status.COMPILING - - @classmethod - def build_from_query(cls, query: IPAQuery): - repo_path = query.paths.repo_path - return cls( - repo_path=repo_path, - logger=query.logger, - ) - - def build_command(self) -> FileOutputCommand: - output_file_path = self.repo_path / Path("ipa-core/src/protocol/step/steps.txt") - return FileOutputCommand( - cmd="python3 scripts/collect_steps.py -m", - cwd=self.repo_path, - output_file_path=output_file_path, - ) - - @dataclass(kw_only=True) class IPACoordinatorGenerateTestDataStep(CommandStep): output_file_path: Path @@ -412,6 +389,5 @@ class IPAHelperQuery(IPAQuery): IPAFetchUpstreamStep, IPACheckoutCommitStep, IPAHelperCompileStep, - IPAHelperCollectStepsStep, IPAStartHelperStep, ]