From 6c8c1227d3cc5e5fb9125fefcf90896dc9b9bf4f Mon Sep 17 00:00:00 2001 From: Erik Taubeneck Date: Wed, 15 May 2024 13:54:09 -0700 Subject: [PATCH] add gate-type and stall-detection to binary name for proper caching (#25) --- 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,