From 710215705535dac3235e0e291f4ff232a0fa8c08 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Mon, 6 May 2024 21:03:58 +0200 Subject: [PATCH] chore(schedule): generalize `source` Signed-off-by: Raito Bezarius --- buildbot_nix/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/buildbot_nix/__init__.py b/buildbot_nix/__init__.py index 0ebe20c..a4303d7 100644 --- a/buildbot_nix/__init__.py +++ b/buildbot_nix/__init__.py @@ -153,8 +153,9 @@ class BuildTrigger(steps.BuildStep): # todo: check ITriggerableScheduler return sch - def schedule_one(self, build_props, job): - source = f"nix-eval-lix" + def schedule_one(self, build_props: Properties, job): + project_name = build_props.getProperty('event.project') + source = f"{project_name}-eval-lix" attr = job.get("attr", "eval-error") name = attr name = f"{FLAKE_TARGET_ATTRIBUTE_FOR_JOBS}.{name}" @@ -314,7 +315,7 @@ class BuildTrigger(steps.BuildStep): self.all_deps[dep].remove(job.get("drvPath")) yield logs.addHeader('Done!\n') yield logs.finish() - build_props.setProperty("failed_builds", failed, "nix-eval-lix") + build_props.setProperty("failed_builds", failed, "nix-eval") if self.ended: return util.CANCELLED return all_results