Chain scratch builds in koji using a module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi folks,

I found this thing and thought it might be useful for testing depended packages before committing, something similar to the chain scratch builds in koji, that are not available (to my knowledge).

I didn't realize before we can use module builds for any package set, that does not even relate to any existing module in Fedora, so sharing for anybody who finds this useful.

The use case here is that we have two or more packages that we want to test before changes land in production branch in dist-git, and where copr is not enough (for example we want all koji arches). (yes, for many things copr is much more powerful tool)

The idea is to run a modular scratch build that picks the packages from concrete dist-git branches and build them in an expected order.

The changes must be in a branch in dist-git (not in a fork), but it can be a private branch. Then we need a modulemd file like this:

    $ cat > testmodule.yaml <<EOF
    ---
    document: modulemd
    version: 2
    data:
      name: testmodule
      stream: 1.0
      summary: Testing a thing
      description: Just for a testing purposes
      license:
        module: [MIT]
      dependencies:
        - buildrequires:
            platform: [f34]
          requires:
            platform: [f34]
      components:
        rpms:
          autoconf:
            rationale: autoconf-2.71
            ref: cb2040cb # this can be a specific hash or a branch name
            buildorder: 0
          dovecot:
            rationale: package to be tested
            ref: f34
            buildorder: 1
    EOF
    $ fedpkg module-build --scratch --file testmodule.yaml  --watch

Enjoy ;)

Honza
_______________________________________________
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
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux