On 12/30/19 11:46 AM, Claudio Jeker wrote: > On Sun, Dec 29, 2019 at 01:29:12PM +0100, Henry Jensen wrote: >> Greetings, >> >> for those who didn't watched it, there is an accompanied site at >> https://isopenbsdsecu.re/ >> >> Summary: There are a lot of claims. The speaker basically said, that >> some mitigations are "cool", but other, more or less, useless. >> >> Further accusations are, that OpenBSD still uses e-mail and cvs and not >> more advanced CI tools. >> >> I can't say anything to the more technical claims about useless >> mitigations, since I am not a OS developer. Is there going to be a >> response from the OpenBSD team? >> > > One thing that everyone can check is the claim that 50% of our commit > messages are less than 10 chars long and 75% are less than 20 chars. > Using the git repo you can run something like this and get the numbers > yourself. > > openbsd-git> git log --log-size --format="%B" | grep '^log size ' | cut -f > 3 -d ' ' | awk '{ t++; if ($1 <= 10) s++; if ($1 <= 20) m++; else l++; } > END { print s " <= 10 char"; print m " <= 20 char"; print l " rest"; print > t " total" }' > > 12386 <= 10 char > 25894 <= 20 char > 176304 rest > 202198 total > > Sorry but 25k is no where close to 75% of 202198. > Seems he did count words not characters. > And of those messages the vast majority are sync and regen which are done to whip the built/sets infrastructure back into shape after a major change (addition or deletion) and don't need any additional information.
$ git log --log-size --format="%B" | \ awk '/^log size/{ if (matches == 1) {messages[line]++; line = ""} matches = 0; if ($3 <= 10) { matches = 1} } { if (matches == 1 && $0 !~ /^log size/) {line = line tolower($0)} } END { for (line in messages){ print messages[line]": "line} }' | \ sort -n | tail 107: tweaks; 115: spelling 117: regen. 135: indent 183: oops 249: spacing 416: knf 441: typo 1902: regen 4915: sync