dnf icon indicating copy to clipboard operation
dnf copied to clipboard

Build dnf and libdnf with packit

Open inknos opened this issue 1 year ago • 4 comments

Let's consider using packit to build dnf/libdnf.

Actions that packit could takeover:

  • [x] Build coprs in PRs
    • [x] createrepo_c
    • [x] dnf
    • [x] dnf5
    • [x] libdnf
  • [ ] Run the ci-stack using packit from the source repo of each project
    • [x] createrepo_c
    • [ ] dnf
    • [x] dnf5
    • [x] libdnf
  • [x] Run the tests from the ci-stack
  • [ ] Run propose_downsream jobs
  • [ ] Run bodhi updates

Build coprs in PRs:

  • Quick to implement, few lines of code

Run tests with tmt:

  • Quick to implement
  • Some tweaks might be necessary to run dnf/dnf5 tests (currently the tests are set just for dnf5)

Run propose_downsream jobs:

  • Tweaks in the specfile are necessary to have a nice changelog
  • There might be problems when dnf depends on other components. Manual intervention necessary

Run bodhi updates

  • Easy to implement
  • Depend on propose_downstream mostly
  • Have to be run manually when the previous step is also run manually

inknos avatar Nov 21 '23 13:11 inknos

The first item, "Build coprs in PRs" is quick to address and will unblock the second part

https://github.com/rpm-software-management/dnf/pull/2023 https://github.com/rpm-software-management/libdnf/pull/1636 https://github.com/rpm-software-management/createrepo_c/pull/409

inknos avatar Nov 29 '23 15:11 inknos

To run tests from ci-dnf-stack an approach like this should be taken and it will satisfy partially the step "Run tests with tmt and integrate with dnf5 recent changes in testing" https://github.com/rpm-software-management/ci-dnf-stack/pull/1415

inknos avatar Nov 29 '23 16:11 inknos

The step "Run the ci-stack using packit from the source repo of each project" is covered in these PRs

https://github.com/rpm-software-management/dnf/pull/2034 https://github.com/rpm-software-management/createrepo_c/pull/417 https://github.com/rpm-software-management/libdnf/pull/1639

inknos avatar Jan 04 '24 18:01 inknos

The step "Run the ci-stack using packit from the source repo of each project" requires a fix for the dnf4 stack

https://github.com/rpm-software-management/ci-dnf-stack/pull/1435

inknos avatar Jan 09 '24 14:01 inknos