koji assign-task for a channel #4466

Open
opened 2025-09-19 09:49:33 +00:00 by davidlt · 5 comments
Contributor

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.

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.
Owner

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/

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/
Owner

Metadata Update from @mikem:

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

Metadata Update from @mikem:

  • Issue set to the milestone: 1.36
**Metadata Update from @mikem**: - Issue set to the milestone: 1.36
Author
Contributor

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.

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.
Owner

Metadata Update from @mikem:

  • Issue set to the milestone: 1.36.1 (was: 1.36)
**Metadata Update from @mikem**: - Issue set to the milestone: 1.36.1 (was: 1.36)
mikem modified the milestone from 1.36.1 to 1.36.2 2026-06-18 18:59:50 +00:00
tkopecek modified the milestone from 1.36.2 to 1.37 2026-11-03 14:09:01 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
koji/koji#4466
No description provided.