#4426 Need a way to set SOURCE_DATE_EPOCH environment variable for tasks
Opened by ngompa. Modified

For reproducible builds, we need a way to optionally set the value of SOURCE_DATE_EPOCH for tasks. This is particularly important for non-package-build tasks that don't have a way of automatically setting this.

Ideally, this would be a global parameter to koji, so that things like Pungi can set one value and have it set in a uniform fashion for all tasks executed in Koji.


There is currently no global way to pass options to tasks. Every task has its own signature. Many accept an opts dict, but not all. Building out a new layer for this outside of task params is a big ask.

That said, I suspect most of the tasks you are concerned with probably do accept an opts dict. This would of course require the individual handlers to process a new opt. That's probably necessary anyway, since the necessary steps to propagate could easily vary.

Perhaps we could start with a list of the methods you have in mind.

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

Well, mainly the tasks related to package and image builds are what I'm concerned about. So that's the rpm tasks, livecd/lmc tasks, and kiwi tasks in the Koji sources.

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

Please continue any further discussion there.

Metadata