Debian Codegraph @

Documentation/stable.md

raw
1 # Stable Branch Release
2
3
4 ## General
5
6 Current Maintainer: Nicolas Morey <[email protected]>
7
8 Upstream rdma-core is considered stable after each mainline release.
9 Branched stable releases, off a mainline release, are on as-needed basis and limited to bug fixes only.
10
11 All bug fixes are to be backported from mainline and applied by stable branch maintainer.
12
13 Branched stable releases will append an additional release number (e.g. 15.1) and will ensure that Azure Pipelines CI reports a successful build.
14
15 Regular stable releases are usually generated at the same time as a mainline release.
16 Some mainline release are however skipped if not enough significant patches have been queued.
17 Additional stable releases can be generated if the need arise (Needed by distributions or OFED).
18 Please contact the maintainer if a stable release is needed outside of the regular schedule.
19
20 Stable branches are named stable-vXX where XX is the base version number.
21 Once older release are no longer supported, their branch will be deleted but the stable release tags will be kept.
22
23 Branches are maintained for about 4 years.
24
25 ## Patch Rules
26
27 * It must be obviously correct and tested.
28 * It cannot be bigger than 100 lines, with context.
29 * It must fix only one thing.
30 * It must fix a real bug that bothers people (not a, "This could be a problem..." type thing).
31 * ABI must NOT be changed by the fix.
32
33 ## Submitting to the stable branch
34
35 Submissions to the stable branch follow the same process as [kernel-stable](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/stable-kernel-rules.rst).
36
37 ### Option 1
38
39 Patches sent to master should add the tag:
40
41 `Cc: [email protected]`
42
43 in the sign-off area. Once the patch is merged, it will be applied to the stable tree
44 without anything else needing to be done by the author or subsystem maintainer.
45
46 If the patch should be applied to more than one release, add the info version as such:
47
48 `Cc: [email protected] # v15.1 v14`
49
50
51 ### Option 2
52
53 After the patch has been merged to master, send an email to
54 [email protected] containing the subject of the patch, the commit ID,
55 why you think it should be applied, and what rdma-core version you wish it to
56 be applied to.
57
58 ### Option 3
59
60 Send the patch, after verifying that it follows the above rules, to [email protected].
61 You must note the upstream commit ID in the changelog of your submission,
62 as well as the rdma-core version you wish it to be applied to.
63
64 Option 1 is strongly preferred, is the easiest and most common.
65 Option 2 and Option 3 are more useful if the patch isn't deemed worthy at the time it is applied to a public git tree (for instance, because it deserves more regression testing first).
66 Option 3 is especially useful if the patch needs some special handling to apply to an older version.
67
68 Note that for Option 3, if the patch deviates from the original upstream patch (for example because it had to be backported) this must be very clearly documented and justified in the patch description.
69
70 ## Versioning
71
72 See versioning.md for setting package version on a stable branch.
73
74
75 ## Creating a stable branch
76
77 Stable branch should be created from a release tag of the master branch.
78 The first thing to do on a master branch is to commit the mainstream release ABI infos
79 so that later patches/fixes can be checked against this reference.
80
81 To do that, the creator of the branch should run
82 ```
83 ./buildlib/cbuild build-images azp
84 mkdir ABI
85 touch ABI/.gitignore
86 git add ABI/.gitignore
87 echo " changeLogCompareToRelease: lastNonDraftReleaseByTag" >> buildlib/azure-pipelines-release.yml
88 echo " changeLogCompareToReleaseTag: $(git describe HEAD --match="v*.0" --abbrev=0 | sed 's/0$/*/')" >> buildlib/azure-pipelines-release.yml
89 git add buildlib/azure-pipelines-release.yml
90 git commit -s -m "stable branch creation" -m "Add ABI files and tune Azure pipeline for changelog generation"
91 ./buildlib/cbuild pkg azp
92 git add ABI/*
93 git commit --amend
94 ```
95
96 'cbuild pkg azp' will fail as the ABI verification step files, but it will
97 produce the ABI reference files.
98
99 Note that the ABI directory must NOT be committed at any point in the master branch.