- Loading...
...
It mentions jdk11u, but also applies to jdk17u and to certain extend all other updates projects.
Also see The OpenJDK Developers' Guide which covers all aspects of contributing to OpenJDK. Especially it covers Backports and how to Backout a Backport. Also read how to Request push approvals for fixes .
There are two general types of fixes:
...
/backport jdk11u-dev"git checkout -b my-backport-branch master""git backport --from https://github.com/openjdk/jdk <commit-sha>". See the SKARA Wiki for more info.git checkout -b my-backport-branch master""git fetch --no-tags https://github.com/openjdk/jdk <commit-sha>"git cherry-pick --no-commit <commit-sha>"git commit -a -m "Backport <commit sha>""make run-test TEST=tier1" to run"make run-test TEST=tier2" to run"make run-test TEST=<path-to-tests>" to run specific testsgit pr create --publish". If it is a backport, make sure the title of the PR is "Backport <SHA hash of original commit>" to have the bots correctly recognize your change as a backport.clean by the bots), get the change reviewed by some jdk-updates reviewer/label command.It is helpful to state in the PR description what changes were needed and why: the difference against original patch, motivations for doing things differently, etc.. The description is addressed to the reviewers of the change who assess whether the change is correct for the update release.
| Code Block | ||||
|---|---|---|---|---|
| ||||
Hi, This is a backport of JDK-8888888: My Hovercraft Is Full Of Eels Original patch does not apply cleanly to 11u, because eels are all different sizes and shapes. Notably, I had to change the com/antioch/holy/Grenade.cpp to avoid API that only exists in 12+. Testing: x86_64 build, affected tests, tier1 Thanks, -Monty |
jdk11u-fix-request label on the JBS issue. Now the JBS issue will appear in the filters used by the maintainers. The maintainers might remove the label if the issue is not ready to be decided upon. Add the label again if all preconditions are fulfilled.Wait for maintainer approval, which would manifest as jdk11u-fix-yes label on the issue. If the maintainers think the change is not good for an update they will add a jdk11u-fix-no label.
| Code Block | ||||
|---|---|---|---|---|
| ||||
Fix Request 11u Backporting this patch eliminates the critical eel overflow. Patch does not apply cleanly to 11u and requires adjustments. Backport requires JDK-8423421 and JDK-8771177 to be applied first. PR was acked by monty. |
| Code Block | ||||
|---|---|---|---|---|
| ||||
Fix Request 11u Backporting this patch eliminates the critical eel overflow. Patch applies cleanly to 11u. New test fails without the product patch, and passes with it. Backport requires JDK-8423421 and JDK-8771177 to be applied first. tier1 and tier2 tests pass with the patch. |
In case of a larger change or backport, you might not want to invest the work for steps 1-5. and only then find out that the change is not accepted. In this case you can add the "Fix Request" comment and label in advance or address the maintainers for advice in some other ways.
What to do with changes depending on each other?
After pushing the first pull request, the second will be retargeted to master. See also the description in this Mail.
What if the change needs a CSR?
...