On Fri, Jan 29, 2021 at 03:49:28PM +0100, Miro Hrončok wrote: > > Currently a Koji task says: > > Source: git+https://src.fedoraproject.org/rpms/python3.9.git#563b4f4b59a9f81095acfe30899fdc4b040c1b9b > Build Target: f34-rebuild > Options: > fail_fast = True > wait_builds = > > Example taken from https://koji.fedoraproject.org/koji/taskinfo?taskID=60654655 > > With this feature, it would say: > > Source: git+https://src.fedoraproject.org/rpms/python3.9.git#563b4f4b59a9f81095acfe30899fdc4b040c1b9b > Build Target: f34-rebuild > Options: > fail_fast = True > wait_builds = > Macro overrides: > _with_bootstrap: 1 > > And when reproducing, you'd just run the same command, e.g. > > $ koji build f34-rebuild --fail-fast --macro '_with_bootstrap 1' 'git+https://src.fedoraproject.org/rpms/python3.9.git#563b4f4b59a9f81095acfe30899fdc4b040c1b9b' > > The Koji web interface could even display the command. > > That's very much as reproduce as now. So, koji already can set macros per tag. For example, eln sig uses this: ➜ ~ koji taginfo eln-build Tag: eln-build [22493] Arches: i686 x86_64 aarch64 ppc64le s390x Groups: appliance-build, build, livecd-build, livemedia-build, srpm-build Tag options: mock.new_chroot : 0 [f34] mock.package_manager : 'dnf' [f34] rpm.macro.dist : ('%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do ' 'print("%{?distprefix" .. i .."}") ' 'end}}.eln%{eln}%{?with_bootstrap:~bootstrap}') rpm.macro.eln : 108 rpm.macro.rhel : 9 This tag is a buildroot for one or more targets Current repo: repo#2902927: 2021-01-30 19:46:56.747509+00:00 Targets that build from this tag: eln-rebuild eln eln-candidate Inheritance: 0 .... eln [22492] 5 .... f34-build [27045] We had a request to enable this for side-tags: https://pagure.io/fedora-infrastructure/issue/9048 but didn't want to due to how this could be used. My thought was to try and ask koji developers to add some kind of 'non-mergable' bit on side-tags. So, if you want to use a side tag to play around with/test something you could, but if you adjusted things beyond some whitelist, the side-tag would not be mergable back into rawhide, and we could allow _with_bootstrap. Ideally though this could be something in rpm... so it keeps track of what was passed in for the build so if you just had the src.rpm you could figure out what was going on? kevin
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx