RFR: 2226: Make it possible to avoid "forward backports" [v2]
Zhao Song
zsong at openjdk.org
Wed Apr 24 19:37:46 UTC 2024
On Wed, 24 Apr 2024 14:54:38 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
>
> Erik Duveblad has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
>
> - Merge branch 'master' into issue-notifier-avoid-forwardport
> - Fix comment in test
> - skara-2226
Marked as reviewed by zsong (Reviewer).
-------------
PR Review: https://git.openjdk.org/skara/pull/1637#pullrequestreview-2020767563
More information about the skara-dev
mailing list