Bug 11557 - Create a task for forcing PR bumps on the PR server
Summary: Create a task for forcing PR bumps on the PR server
Status: RESOLVED WONTFIX
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: Future
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-05-22 16:27 UTC by Bevenson
Modified: 2019-06-06 15:07 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bevenson 2017-05-22 16:27:37 UTC
When a package is updated, it is possible that the package update causes an issue for future package upgrades.  A sensible way to test this is to manually bump the PR and attempt installing the updated package.  This is not too difficult for just one package, but doing so for every package installed on an image is not easy.  It would be helpful to have a Bitbake task for bumping the PR on the PR server.

There are two use cases that I think would be useful.  The first is:

    bitbake -c bump_pr <recipe>

which then only bumps the PR on the packages generated by the listed recipe.  The second is:

    bitbake -c bump_pr <image>

which then bumps the PR on all packages which are installed on <image>.  This would then make full system upgrades easier to test.
Comment 1 Ross Burton 2017-06-07 19:07:28 UTC
I'm not convinced this needs to be done in bitbake itself, it should be relatively simple to write a script that uses tinfoil to do the PR increments outside of bitbake.
Comment 2 Richard Purdie 2019-06-06 15:07:31 UTC
We don't feel this API would make sense.

You can cause all packages to rebuild (and hence bump PR) by changing common code like the package_rpm class, even by just adding whitespace.

There are therefore other ways you would do this and the API as stated doesn't make sense.

If we were to do something it would make sense through tinfoil API as Ross mentions.