From c15cf70306763d81aee964499f29c110a8377060 Mon Sep 17 00:00:00 2001 From: Erik Taubeneck Date: Wed, 15 May 2024 13:11:23 -0700 Subject: [PATCH] add gate-type and stall-detection to binary name for proper caching --- sidecar/app/query/ipa.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sidecar/app/query/ipa.py b/sidecar/app/query/ipa.py index 431da46..096a3a3 100644 --- a/sidecar/app/query/ipa.py +++ b/sidecar/app/query/ipa.py @@ -169,9 +169,12 @@ class IPAHelperCompileStep(LoggerOutputCommandStep): @classmethod def build_from_query(cls, query: IPAHelperQuery): manifest_path = query.paths.repo_path / Path("Cargo.toml") - target_path = query.paths.repo_path / Path(f"target-{query.paths.commit_hash}") gate_type = query.gate_type stall_detection = query.stall_detection + target_path = query.paths.repo_path / Path( + f"target-{query.paths.commit_hash}-{gate_type}" + f"{'-stall-detection' if stall_detection else ''}" + ) return cls( manifest_path=manifest_path, target_path=target_path,