Skip to content

Commit

Permalink
Add identifier to tests target overrides created in copr end handler (#…
Browse files Browse the repository at this point in the history
…2661)

Add identifier to tests target overrides created in copr end handler

Reviewed-by: Laura Barcziová
  • Loading branch information
softwarefactory-project-zuul[bot] authored Nov 28, 2024
2 parents daca72a + 03c0f11 commit 6fb1e2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions packit_service/worker/handlers/copr.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,12 +479,13 @@ def handle_testing_farm(self):
and self.copr_event.chroot
in self.copr_build_helper.build_targets_for_test_job(job_config)
):
event_dict["tests_targets_override"] = list(
self.copr_build_helper.build_target2test_targets_for_test_job(
event_dict["tests_targets_override"] = [
(target, job_config.identifier or "")
for target in self.copr_build_helper.build_target2test_targets_for_test_job(
self.copr_event.chroot,
job_config,
),
)
)
]
signature(
TaskName.testing_farm.value,
kwargs={
Expand Down
2 changes: 1 addition & 1 deletion packit_service/worker/handlers/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def copr_build_helper(self) -> CoprBuildJobHelper:
# when reporting state of SRPM build built in Copr
build_targets_override = (
{
(build.target, build.identifier)
(build.target, build.identifier or "")
for build in CoprBuildTargetModel.get_all_by_build_id(
str(self.copr_event.build_id),
)
Expand Down

0 comments on commit 6fb1e2f

Please sign in to comment.