Integrated: 2226: Make it possible to avoid "forward backports"
Erik Duveblad
ehelin at openjdk.org
Sat Apr 27 13:46:47 UTC 2024
On Fri, 12 Apr 2024 08:54:03 GMT, Erik Duveblad <ehelin at openjdk.org> wrote:
> Hi all,
>
> please review this re-implementation of avoiding so called "forward backports", this time around in the `IssueNotifier`, meaning that Skara will avoid to create a "forward backport" _after_ a pull request has been integrated. Solving the problem in the `IssueNotifier` turned out to be a much more natural fit, so thanks @zhaosongzs and @erikj79 for the discussion in #1630.
>
> The new implementation will avoid creating a "foward backport" if _no_ suitable backport (or "forward backport") is found. That is, if JBS already contains a backport (or "forward backport") that can be used, then that backport (or "forward backport") will be used. This makes sense to me because in this scenario the user has (most likely) set up the issues in JBS for this to happen. But when Skara decides to create a _new_ backport, then (if `"avoidforwardports"` is `true` in the configuration) the code will never create "forward backport", instead opting to create a backport with the primary issue's `fixVersions` and setting `fixVersions` of the primary issue to the value found in the repository's `.jcheck/conf`.
>
> I also added a number of new unit tests. Note that this pull request depends on #1636 in order for the tests to pass, so the tests will fail until #1636 is integrated.
>
> Thanks,
> Erik
This pull request has now been integrated.
Changeset: 052f7e01
Author: Erik Duveblad <ehelin at openjdk.org>
URL: https://git.openjdk.org/skara/commit/052f7e0132a18f369164ca5c613df3be93eb80d4
Stats: 284 lines in 4 files changed: 280 ins; 0 del; 4 mod
2226: Make it possible to avoid "forward backports"
Reviewed-by: zsong, erikj
-------------
PR: https://git.openjdk.org/skara/pull/1637
More information about the skara-dev
mailing list