Debian Codegraph @

Documentation/README.maintainer

raw
1 # Merge with git instead of github UI
2
3 If someone sends patches by email apply them on top of latest master, and
4 push to upstream. Github pull requests are best to get as extra remote
5 repositories to your working clone, where commits can be rebased, tidied up,
6 and so on, before pushing to upstream.
7
8 See also https://github.com/iputils/iputils/issues/155
9
10 # Do not steal contributions
11
12 Use git commit --author 'Contributor <email>' when receiving changes that
13 are not applicable as-is. Not stealing contributions applies even if change
14 has to be worked out, that is common case with commit message.
15
16 Exception to this rule is a change that is a good idea, but has to be
17 completely rewrote to be acceptable for the project. In this case
18 maintainer should attribute the person who gave the idea in commit message.
19
20 # Use references in commit messages
21
22 For example when a change fixes a distribution bug add link to the bug
23 report. Links to reference materials can also be useful when in future
24 trying to understand why something was done. It is also nice when commit id
25 of the change that caused a bug is referred in commit message. That helps
26 understanding what versions are impacted by an issue.
27
28 # How to make a release
29
30 Go to release listings https://github.com/iputils/iputils/releases and check
31 what was said in previous release message. Draft release message - remember
32 if you have nothing to say then you don't have good enough reason to publish
33 release.
34
35 Update 'iputils.pot' and translated po files (use 'tools/update-po-files.sh'
36 script) and push this change and ask translators to update translations.
37
38 Update CHANGES file. It should list the most notable changes and important or
39 security related fixes. Create pull request with these changes to give people
40 chance to review and test upcoming release. Notify distro maintainers, ask
41 community for testing.
42
43 NOTE: There is 'tools/tag-release.sh' script, which automates the following
44 steps of tagging git (it does also various sanity checks).
45
46 Create release commit and tag.
47
48 tag="$(date +%Y%m%d)"
49 sed --in-place "s/version : '.*')/version : '$tag')/" meson.build
50 git add meson.build CHANGES
51 git commit -S --signoff --message "release: iputils-$tag"
52 git tag --sign --annotate $tag --message iputils-$tag
53
54 Check that the commit and tag looks ok.
55
56 git show $tag --show-signature
57
58 Assuming things are great push to github.
59
60 git push origin master:master
61 git push origin $tag
62
63 Go to github https://github.com/iputils/iputils/releases and paste
64 the content of CHANGES file for upcoming release to the text box.
65 Add there also credit for all contributors.
66 NOTE: 'tools/create-tarballs.sh' script creates also skeleton of the credit.
67
68 Many thanks to the people contributing to this release:
69
70 old_tag="$(git describe --abbrev=0 $tag^)"
71 git shortlog -sen $old_tag..
72
73 Also thanks to patch reviewers:
74
75 git log $old_tag.. | grep -Ei '(reviewed|acked)-by:' | sed 's/.*by: //' | sort | uniq -c | sort -n -r
76
77 and testers:
78
79 git log $old_tag.. | grep -Ei 'tested-by:' | sed 's/.*by: //' | sort | uniq -c | sort -n -r
80
81 Create release tarballs (tar.xz, tar.gz and zip) and checksums with
82 'tools/create-tarballs.sh' script. Run it with a reasonably new meson
83 to avoid failures on old version (see minimal version in the file).
84
85 NOTE: github also produces tar.gz and zip files. We consider them unsecure, do
86 not recommend to use them and don't produce checksums for it.
87 Choose the tag you just created. Download the release files, compute sha256 hash:
88
89 The release should be ready. People tend to react to releases, so expect bug
90 reports and pull requests after release. Assuming release has fatal flaw(s)
91 make another one sometime soon.
92
93 # Maintainers' GPG public keys
94
95 All maintainers' GPG public keys used for signing tags, releases, commits, etc.
96 are stored in Documentation/project-keys.gpg. When adding new maintainer, add
97 his/her key into 'tools/update-project-keyring.sh', run it to update keyring and
98 push the result.
99
100 # Branches in git
101
102 The upstream repository has exactly one branch and it is 'master'. If a
103 maintainer wants to use work in progress branches they need to be kept in
104 personal clone. There are two reasons to do this. For contributors it is
105 nice not to see random branches when cloning upstream repo. Secondly when
106 maintainer wants to add a contributor repo as additional remote it is easier
107 to see what is going on there.