In case any of the source files changed, openSUSE Build Service rebuilds the dependent packages regardless of whether that particular modification affects the dependency. This makes our resources footprint bigger (and the electrical power bills higher). It also affects users, because every new package build causes the package manager to include that package in the next update thus consuming network bandwidth and resources of users' computers.

Current OBS controls for package rebuild triggers

It is possible to control dependent packages build triggers on a per repository basis (see OBS build scheduling strategies). You will find an explanation on that page that any setting other than the default, which is "always rebuild", is not safe and should not be used if the packages are to be distributed. Apparently, the concern is more of a "this repository is official/testing" kind.

Which modifications justify rebuilding

First, we need to define the modifications which justify rebuilding the dependencies. This is a list which should be amended by the more knowledgeable on software builds:

  • new library versions or binary API changes (the latter should always cause the former?)

  • changes in #includes files (in case of library development packages); it is preferable to verify if the dependencies can build with these modifications sooner rather than later

Possible improvements

Extend the checkin command

I suppose that this is a hard problem to solve automatically, so it is good to start small with some infrastructure to allow managing the dependencies rebuild process. We could add the "don't rebuild/must rebuild dependencies" option to the checkin command.

Make builds reproducible

There are ongoing efforts to get reproducible builds, that is if the source has not changed, then the built package should be exactly equal to the previous build too.

According to osc triggerreason on several packages in the openSUSE Build Service reference instance, quite a few rebuilds were due to md5 sum not matching. If more builds were reproducible that would obviously reduce the total number of builds. More, a reproducible build would (almost) completely remove transitive builds (see the build project attribute).

See the following pages for more information:

Questions

  • Is there a facility in OBS similar to the Debian's dh_buildinfo? Would that be useful in OBS? Is there a way to keep that information within the existing infrastructure?

  • How are md5 sums produced?

Resources

  • osc triggerreason --help

  • osc jobhistory --help

Looking for hackers with the skills:

obs perl buildservice parsing

This project is part of:

Hack Week 10 Hack Week 11

Activity

  • over 8 years ago: aspiers liked this project.
  • over 9 years ago: im_unbob liked this project.
  • over 9 years ago: dmuhamedagic added keyword "parsing" to this project.
  • over 9 years ago: dmuhamedagic added keyword "buildservice" to this project.
  • over 9 years ago: dmuhamedagic added keyword "perl" to this project.
  • over 9 years ago: dmuhamedagic added keyword "obs" to this project.
  • over 9 years ago: dmuhamedagic added keyword "obs" to this project.
  • over 9 years ago: dmuhamedagic started this project.
  • over 10 years ago: keichwa liked this project.
  • over 10 years ago: dmuhamedagic added keyword "obs" to this project.
  • over 10 years ago: dmuhamedagic originated this project.

  • Comments

    • aspiers
      over 8 years ago by aspiers | Reply

      There's also now a nice distro-agnostic website.

    Similar Projects

    Elixir LiveView clone of Etherpad (running on ALP) by socon

    Project Description

    Etherpad (etherpad.org)...


    Adapt Bootstrap code in OBS to support theming by enavarro_suse

    Project Description

    After the release of ...


    Support for OVA build in OBS and better support for vmdk disks in kiwi by gmoro

    Project Description

    Implement support for O...


    Reduce the amount of TODOs for RuboCop in OBS by enavarro_suse

    Project Description

    The OBS project has a...


    Improve database_cleaner.rb script in OBS by enavarro_suse

    Project Description

    There is some code to...


    opensuse-redir-cache by bmwiedemann

    [comment]: # (Please use the project descriptio...


    Grab precise changes in log file/s between system events by smhalas

    [comment]: # (Please use the project descriptio...