#4466 koji assign-task for a channel
Opened by davidlt. Modified

In Fedora/RISCV we have different machines and we schedule builds based on their requirements (strong single-thread performance, many-cores, memory to core ratio, and in general high-memory systems). We do a lot of individual assignments to the builders.

It would be a convenient if we could directly assign a task to a channel instead of a builder/host.

All builders are in 'default' channel, but we want to have more precision to target specific subset of those builders based on their specifications as described above. In some rare cases we also schedule builds based on geographical location (e.g. to avoid high-priority long-running tasks landing on builders where we have active weather event).

Today we can create channels and assign builders to them, but the logic to pick a builder would still be outside Koji.


This sounds like a useful and reasonable feature. So, sure, I 'll have a look.

OTOH, I want to make sure you're aware of the channel policy. The hub uses this policy on every new task to determine the channel. The available data for policy tests is a bit limited here, but you can still get a lot done. It's better to have the task scheduling data correct out of the gate.

You can read a bit more here -- https://docs.pagure.org/koji/defining_hub_policies/

Metadata Update from @mikem:
- Custom field Size adjusted to None

Metadata Update from @mikem:
- Issue set to the milestone: 1.36

Maybe one more suggestion would be to allow koji build command to list a channel too.

We have looked at Hub policies, but so far we only managed to break operations playing with it.

Metadata Update from @mikem:
- Issue set to the milestone: 1.36.1 (was: 1.36)

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/4466

Please continue any further discussion there.

Metadata