I was looking at the data returned by the patches endpoint, /rest/v2/projects/<project>/patches. One section of the data is "variants_tasks", I assume that this is supposed to be which tasks are being run in each build variant. However, all of the tasks appear in each variant, which greatly reduces the value of this data (we already have all the variants and all the tasks in other parts of the data).
This seems like a bug. It seems like each entry should only list the tasks that are contained in that variant.
Here is an example from a server commit-queue patch:
The lint tasks only exist in the 'enterprise-rhel-62-64-bit' variant, so seeing them in the 'commit-queue' variant is surprising. And the 'compile_core_tools' and 'commit_queue_placeholder' only exist in the 'commit-queue' variant.