Error "Failed to compute dynamic data: get() returned more than one CollectionItem" with a sbuild task and some task configuration
The sbuild work requests in this workflow failed to be assigned a worker with:
2025-08-27 16:28:47,982 [scheduler/3058121/139873338077248] ERROR: Error assigning work request Worker/sbuild (150942): Failed to compute dynamic data: get() returned more than one CollectionItem -- it returned 2!
(this is the log on the server side, there's no attached traceback)
At that time, I had this task configuration in place (my goal was to test the task configuration feature): https://salsa.debian.org/freexian-team/debusine.debian.net/task-configuration-developers/-/blob/0c6af6abb2926956e91b8f05a544c846fcf4ee3a/sbuild.yaml
This was shortly after a first try with build_options (but it's not implemented and it failed with a validation error):
- Task configuration: https://salsa.debian.org/freexian-team/debusine.debian.net/task-configuration-developers/-/blob/a2484a9d5c5d5d3f043dcc9d5993b5e47bae43fa/sbuild.yaml
- Workflow: https://debusine.debian.net/debian/developers/work-request/150835/
I dropped it given the problem it seemed to generate and I replaced it with something similar on hello and hello-debhelper, but there I did not get any error (except that the sbuild task doesn't like backend incus-lxc apparently):
- Task configuration: https://salsa.debian.org/freexian-team/debusine.debian.net/task-configuration-developers/-/blob/3bbbdfe81a90060f427e06c4ebdfea74f77c309e/test.yaml
- Workflow: https://debusine.debian.net/debian/developers/work-request/150968/
/cc @enrico