#3914 RFE: Add macros support to chain builds
Opened by churchyard. Modified

Sometimes, I want to do this sequence:

koji edit-sidetag --rpm-macro _with_bootstrap=1 <tag>
koji wait-repo <tag>
koji build <tag> --fail-fast 'git+https://src.fedoraproject.org/rpms/<pkg>.git#<ref>'
koji edit-sidetag --remove-rpm-macro _with_bootstrap <tag>
koji wait-repo <tag> --build=<nvr>
koji build <tag> --nowait --fail-fast 'git+https://src.fedoraproject.org/rpms/<pkg>.git#<ref>'

It would be super cool If I could do this (or even advanced sequences) via a chain build.

cc @vondruch


A few remarks:

  • My vision always was to have the whole package set build once with _with_bootstrap=1 while second time without that macro. Under such conditions, chain build could work, but not sure about your specific scenario.
  • @mizdebsk proposed workflow with two side tags, one with _with_bootstrap=1 and the other without bootstrapping and tagging the build(s) between those side tags. This should be doable without any AFAIK.

But I have never really been user of chainbuild.

This feels well outside the scope of chain-build

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

This feels well outside the scope of chain-build

Why? It is a chain of builds. They just need to be built with different macros. The chain is either simple:

  1. build this with bootstrap on
  2. wait for it
  3. build this with bootstrap off

Or it can be more complex (contain multiple packages).

With the problems of #4226, the convenience this would provide is all the more evident.

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

Please continue any further discussion there.

Metadata