19 ms·
“Please don't waste maintainers' time on your KPI grabbing patches”
- airhead969 5y agoSecond-stringers do this. They can accumulate all of the certifications, bogus "patches," and patents they want, but they'll still have zero street-cred. What's more, companies who promote and advance based on these factors are only fooling and embarrassing themselves with weak staff. The other problem is a fair number of Eastern managers don't know or care about the business or management details, they all of want the prestige of a title with the least effort. A lot of no-name businesses in China are more BS than corporate ones elsewhere. After-all, why is there such a huge market for white business actors?
- sdesol 5y agoSince there are talks about padding numbers for KPI, I did a quick analysis of the linux kernel for single line changes that belong to commits with only one file change and this is what I got for the last 90 days: https://public-001.gitsense.com/insights/github/repos?q=commit-churn%3A1%2Bfile-churn%3A1%2Bwindow%3A90&r=github%3Atorvalds%2Flinux&v=repo https://public-001.gitsense.com/insights/github/repos?q=comm... Scroll down to the bottom for a breakdown of the file types. To review the file changes (click on the files) and commits, look at the following: https://public-001.gitsense.com/insights/github/repos?p=commits&q=commit-churn%3A1%2Bfile-churn%3A1%2Bwindow%3A90&r=github%3Atorvalds%2Flinux&v=repo https://public-001.gitsense.com/insights/github/repos?p=comm... Disclaimer: I'm the creator of GitSense and there is a bug where the window size won't show 90, but it is for 90 days.
- coldacid 5y agoLooks like LKML purged all mail of June 18?
- deleted 5y ago[deleted]
- _joel 5y agoThe thread is on the left, up to Jun 22.
- jabedude 5y agoWhat does "KPI" mean in this context? Never heard the term before
- wrren 5y agoKey Performance Indicator. The implication is that some Huawei engineers are rewarded for contributing to the kernel.
- deleted 5y ago[deleted]
- deleted 5y ago[deleted]
- hprotagonist 5y agoKey Performance Indicator: ie, someone at huawei’s job performance review depends on “made N open source contributions to major projects”, and Goodhart’s Law strikes again.
- travisgriggs 5y agoCame to the comments to learn what KPI was. And leaned about Goodharts law: https://en.m.wikipedia.org/wiki/Goodhart%27s_law https://en.m.wikipedia.org/wiki/Goodhart%27s_law
- ghoward 5y agoYou are one of today's lucky 10,000! https://xkcd.com/1053/ https://xkcd.com/1053/
- dharmaturtle 5y agoSaving someone a click > When a measure becomes a target, it ceases to be a good measure
- travisgriggs 5y ago
- tut-urut-utut 5y agoI see that these "cleanup" patches are not bringing much value, bust I also don't see why fixing spelling mistakes or log messages is considered as harmful, KPI boosting or not. The maintainer even said if someone else sent those patches it would be OK, but not if Huawei employees do it. If they distrust Huawei so much, why not just ban them from committing, the same way they did recently with university "security researchers".
- exdsq 5y agoI guess if you have hundreds of trivial patches it'd take ages to review and merge them, and due to kpis Huawei are being deliberately inefficient
- marcinzm 5y agoIs this an issue with the workflow that the kernel uses in terms of time spent per patch? In most workflows this seems like it'd take under a minute to review, approve and merge each one although the CI/CD might add some computing cost.
- swiley 5y agoIt takes more time because they're not just being rubber stamped.
- ma2rten 5y agoThese small patches create some overhead for maintainers. He actually said in the follow up message that grouping them together is fine. Please at least merge all those small fixes into a larger patchset, and with a good cover letter to explain the reason (and auto-tool to do the change if possible) for all the involved maintainers, so that all of us are on the same page.
- hundchenkatze 5y agoI understand the overhead, but it seems like bundling lots of unrelated cleanup fixes into one large commit would make it easier to sneak in something nefarious.
- hashhar 5y agoWithout any context it looks like someone overreacted. It's essentially saying anybody else than Huawei sending cleanup patches is welcome but Huawei is not. Then they try to backtrack that statement by putting out a long list of things which aren't comparable in complexity to the original topic. Without more context I bet this thread is going to go off-topic.
- MichaelRazum 5y agoSounds like he is saying. Huawei is doing a lot of trivial cleanups to be able to say like they are a major contributor. Basically the argument is: - trivial patches are ok, if you are just doing it for practice. Like a student. - trivial patches are not ok, if you are doing a lot of them and only for the purpose to get a higher contribution ranking (like commits per company)
- szszrk 5y agoFor me as well. This discussion plus recent 'kernel should use github or similar" articles recently makes me think about sponsors. Doesn't Kernel use sponsors approach, like Debian used to for packages? You can push anything, but you find yourself a competent maintainer who filters your work. Like puts your trivial commits in bulk ;)
- hashhar 5y agoI don't think Qu says that Huawei isn't a major contributor. See: > > My contributions to the kernel in the past have mainly been on optimizing the performance of the ARM64 SMMU driver, > > including the iova optimization, strict mode optimization, and the lazy mode optimization. Also working on the > > development of some ARM SoC drivers. > You indeed have done solid contribution to the kernel in the past, thus > better could have been done. Also: > Even without checking the git log, I can easily think of some big > contributions from your employer, like EROFS and F2FS. > Thus I don't have any doubt about that.
- buran77 5y agoThe remark close to the end, that this is just further damages Huawei's already damaged reputation, especially after beginning with "I did the same at some point", hints at a personal issue rather than professional objection. There's no professional reason to take such an unrelated jab so it feels more like this individual just found an opportunity to settle a score, or has a different problem with Huawei that's harder to support publicly.
- deleted 5y ago[deleted]
- quyleanh 5y ago> "you're really just damaging the already broken reputation." Actually, with this email and the viral on HN, I think this quotation is true for Qu Wenruo. He/she has just damaged the already broken reputation. Not only Huawei, but also other companies will take a look at this accident to get the learned lessons.
- layoutIfNeeded 5y agoOh no! Won't somebody please think of the companies?!
- wwarner 5y agoThe committer defends his patch, and Qu responds very constructively with this list of more important work to tackle https://lkml.org/lkml/2021/6/21/342 https://lkml.org/lkml/2021/6/21/342
- chapium 5y agoQu sounds incredibly awesome.
- specialist 5y agoCan we measure "impact" of changes? PKI measuring just commit count is pretty silly. Like SLOC. Cite folklore.org story of -10,000 lines added. Whereas Qu's suggestions are useful, important. Am totally ignorant about Linux, kernel, etc. But maybe there's already a leaderboard where the hivemind helps prioritize work.
- iicc 5y agoA measure of the ratio of patch effort to review effort (as subjectively judged by the reviewer, perhaps to the nearest order of magnitude) might be informative.
- specialist 5y agoBelated reply. Sorry. I really like this notion. But I can't imagine what it'd look like. Please post anything you come up with. Thanks.
- squiggleblaz 5y agoThat was a shockingly productive and constructive resolution. Are we doing Hacker News wrong? Should we have a system to encourage models of good and productive interchanges, which leave the participants happy and the product better? I think hostility is easier but I guess it's also addictive, even for us. I don't want to be shocked by seeing this. I want to see more of this.
- Nexxxeh 5y ago
- aritmo 5y agoThere is much hostility against Huawei. In the email, the message title was really offensive and even assumed something about KPI, as if the Huawei engineer was inventing patches in order to count as more contributions. Even the editorialized subject of the post on HN is polemic. What is this problem with Huawei? It is the US government that is doing the economic war against China and because of that, decided to cripple Huawei.
- queuebert 5y agoOne KPI in which Linux dominates: drama.
- viraptor 5y agoThis happened quite often in openstack too. Since any contributor with a merged change a few months before the annual conference got a free entry ticket, you could see people doing trivial formatting fixes at a certain time of the year. Similar to the issue with Digital Ocean and Hacktoberfest https://blog.domenic.me/hacktoberfest/ https://blog.domenic.me/hacktoberfest/ People are always going to try to game metrics.
- jayofdoom 5y agofrom an Ironic core. There were several months where I think we had contributors running a spell checker against patches as a review. They would miss obvious code syntax issues but would request lots of spelling changes (including British->American spelling). You get what you measure. There's always going to be someone trying to do the absolute minimum to increment the number they get judged on.
- roenxi 5y agoIs there anything going on here that suggests this is not a routine maintenance issue? The Kernel maintainers have a lot of people who want to submit code to the kernel, and have to maintain standards. I'd imagine there are a lot of emails like this one. Good on Huawei if they are incentivising open source contributions. Shame on them if they are wasting OSS maintainer time. Presumably well done Qu for promoting some order in a chaotic world.
- nevinera 5y agoIt's not nefarious, it's a pattern of a particular company trying to game a metric, to boost their reputation. Pretend you were a dev, and your effectiveness was mostly described within your 500-engineer department in terms of "how many pull-requests" you merged each month. In the abstract, that seems like a reasonable metric to use - it does seem to correlate with actual output, and encourages smaller slicing (which is generally positive). But two years down the line, you find this one guy, consistently in the top 10 rankings, and you feel like he's just not accomplishing that much, so you start looking into his actual workstream. And you find that he does do normal work, but he produces 10 times as many 1-5 line PRs as the average, each of them adjusting some bit of copy or changing an error message. For the better! And his QA isn't bothered, because his work is very easy to verify. But he's not actually one of the most effective devs in the company, and it's really irritating that his process-games (a) seem to work (the VP of engineering definitely knows him as a 'high output engineer') and (b) impose some unnecessary load on other bits of the company's process (like the QAs and burning CI credits). That's the emotion in play here. "Stop wasting our time, we can see what you're doing."
- roenxi 5y agoThis looks boring. This is a scene that plays out in every company weekly. The stakes are trivial, there is no evidence of ill intent anywhere. Nobody has done anything particularly badly behaved. Nothing here is a shining example of good behaviour. There isn't a feel-good aspect. I suppose the question is, who are the 100+ people who upvoted this, and why?
- 5y ago
- zeusk 5y agoHi Leizhen, and guys in the mail list, Recently I find one patch removing a debug OOM error message from btrfs selftest. It's nothing special, some small cleanup work from some kernel newbie. But the mail address makes me cautious, "@huawei.com". The last time we got some similar patches from the same company, doing something harmless "cleanup". But those "fixes" are also useless. This makes me wonder, what is really going on here. After some quick search, more and more oom error message "cleanup" patches just show up, even some misspell fixes. It's OK for first-time/student developers to submit such patches, and I really hope such patches would make them become a long term contributor. In fact, I started my kernel contribution exactly by doing such "cleanups". But what you guys are doing is really KPI grabbing, I have already see several maintainers arguing with you on such "cleanups", and you're always defending yourself to try to get those patches merged. You're sending the patch representing your company, by doing this you're really just damaging the already broken reputation. Please stop this KPI grabbing behavior, and do real contribution to fix the damaged reputation. ^^ Original message Not sure where he said it'd be okay if anyone else sent it - but I can see why a string of "cleanup" from a company can be seen as more as metric manipulation than any actual worthwhile contribution.
- dang 5y agoCan you please not copy the entire OP like that? It's confusing, obscures your specific point, and leads other commenters to reply to random things in the OP, which is fine of course, but that's what the thread is for in the first place. We detached this comment from https://news.ycombinator.com/item?id=27630257 https://news.ycombinator.com/item?id=27630257.
- zeusk 5y agoWell the reply was to a comment that didn't seem to have read the link so I felt it was apt but alright.
- zealsham 5y agoThe tone of the email reminds me a lot of Linus Torvald’s brutal code review comments in the google group back then. Can it be said that the “no nonsense” behavior often exhibited by maintainers of Linux kernel could be one of the reason the project grew to become what it is today
- williesleg 5y agocan't say china bots here?
- duxup 5y agoOpen Source is such a surprisingly high trust ecosystem. I really hope that isn't something that has to be changed in the future. I can 100% understand the concern here. Possibly there is some sort of internal corporate metric or just personal bragging rights get tied to these kinds of patches. It costs the company nothing to incentivize this and the maintainers get all the work associated with it. Like all metrics "When a measure becomes a target, it ceases to be a good measure." (Goodhart's law). There's really no reason for huawei to change other than for the maintainers to ask them to not do that thing. I recall a talk from a maintainer once gave at some company (I forget where). He detailed what kind of patches get accepted and what don't. They were pretty straight forward standards, some more obvious than others (you know ... say what the patch does accurately). It wasn't stated but he clearly expected some level of professionalism or just efficiency from the folks giving him work to look through their code on behalf of their company. I don't think that's too much to expect.
- nacs 5y agoThere's an external metric too -- there are public lists of "Biggest company contributions to Linux" where the likes of Intel/Google/Red Hat/NVIDIA appear: https://news.itsfoss.com/huawei-kernel-contribution/ https://news.itsfoss.com/huawei-kernel-contribution/ It's good for PR.
- lmilcin 5y agoI have worked in team with some kernel developers at Samsung, years ago, so let me put some perspective for those who do not understand the dynamics. In some companies, the amount of patents or Linux kernel patches you get accepted is direct measure of your success. As you know, whatever you measure becomes a target -- these guys feel very pressed to get ANY kernel commits accepted, no matter how small, irrelevant or nonsensical. Because in the very end almost nobody sees the amount of value that a company creates for Linux users. What everybody is looking at is that "Company X is nth on the list of biggest kernel contributors". So "KPI grabbing" is meant to mean the practice of not caring for the value or quality of your contributions but rather for the count of the commits or LoC you can get accepted. This is damaging to Linux kernel developer community because it just creates work for maintainers without creating much or any value at all. These maintainers are absolutely critical resource for the project and their number and availability translates directly to how much stuff can actually be done. So no wonder people are irked by it.
- newsclues 5y agoMaintainers need their own metrics that are effective, and publish them and work to have partners use them.
- duxup 5y agoI like this idea, but the gamification / rules / meta around it sounds like it would be even more work. And like all metrics it would quickly become a target and... Goodhart's law. This is one of those ideas that I think should totally be a thing, and yet I think wouldn't work and thus shouldn't be a thing.
- newsclues 5y agoI’m not knowledgeable enough to define what good work looks like but, simply, whenever maintainers see good work, give that user a golden star. People will work for the carrot, so give carrots for the work maintainers want to see.
- markus_zhang 5y agoDiscussion in Chinese online community zhihu if anyone is interested: https://www.zhihu.com/question/466111598/answer/1951896502 https://www.zhihu.com/question/466111598/answer/1951896502
- epage 5y agoTo save English speakers a couple of clicks to translate: https://translate.google.com/translate?hl=en&sl=zh-CN&u=https://www.zhihu.com/question/466111598/answer/1951896502&prev=search&pto=aue https://translate.google.com/translate?hl=en&sl=zh-CN&u=http...
- belter 5y agoKeep in mind this community is probably censored: https://qz.com/1063073/in-china-you-now-have-to-provide-your-real-identity-if-you-want-to-comment-online/ https://qz.com/1063073/in-china-you-now-have-to-provide-your... From the online translation, the mention by one the commentators that the Kernel Maintainer is also Chinese...give me a bit of a chill... To make it clear ...Not that I would not trust the maintainer, instead, my concern is that depending where he is based a window could be open to unpleasant pressure...
- markus_zhang 5y agoYeah real identity has been going on for a while and recently I had to submit my id number too but I don't think it affects most of the discussion on Zhihu as long as it's not too politically sensitive. It's an annoyance for many people in oversea though.
- belter 5y agoAs I am not a Chinese speaker..do you confirm there is in the thread a comment that the maintainer is also Chinese ? I am concerned about possible pressure from Huawei and its "shareholders": https://www.bbc.com/news/business-53172057 https://www.bbc.com/news/business-53172057 to a Kernel maintainer. Looking at the heavy down votes my post got its not a concern here...
- HILTER 5y agolmao literally btfo
- lifeisstillgood 5y agoThere is an old story of two surgeons - one with a near zero patient death rate and one with a much higher patient death rate. But the surgeon with the higher death rate is tackling harder more complex surgery on sicker patients - while the other avoids the complex stuff. There is nothing wrong with either.
- liuw 5y agoQu Wenruo is not a Linux kernel maintainer. The submission title is incorrect and over dramatic.
- moron4hire 5y agoWell, nice to see this kind of bullshit isn't just happening to small Open Source projects. Unfortunately, it seems like these kinds of commits are the vast majority of the commits I get on my projects.
- paganel 5y ago> already broken reputation. What's that "broken reputation"? Apart from the media circus about 5G. Anything that Huawei has done wrong related to the Linux kernel or the open source community generally speaking?
- HarryHirsch 5y agoMetric brushing, clearly, not the nationalistic panic over 5G and spying concerns. The maintainer says there has been a torrent of trivial fixes from Huawei, and this is just more of the same. Someone wants to get ahead at work on the back of Linux maintainers, just like in the recent example with the University of Minnesota.
- hn8788 5y agoYou can look through their wikipedia page and see that a lot of early success for the company was based on stolen information from companies like Cisco.
- arvigeus 5y agohttps://securityboulevard.com/2020/12/was-this-huaweis-failed-attempt-at-a-linux-backdoor/ https://securityboulevard.com/2020/12/was-this-huaweis-faile...
- severino 5y agoHey, give this maintainer a break! Can't trumpists work in the kernel?
- deleted 5y ago[deleted]
- jvanderbot 5y agoThe sense I got from the post was: "It's fine for noobs to cut their teeth on small issues, but as one of the largest tech companies, I'd expect more from your commits. It's obvious you're not even trying".
- matheusmoreira 5y agoI agree with this. It's reasonable to expect more from well-paid professionals.
- pmcollins 5y agoThe point of the email is that the submitter is indeed trying, trying to improve their stats within their organization, at the expense of maintainers’ time, rather than working on the kernel in good faith.
- deleted 5y ago[deleted]
- camjohnson26 5y agoAlso from the thread posted earlier: > I'm not saying cleanup is not important, in fact we have routinely cleanups of typos/grammar for btrfs. (And I guess mostly caused by myself?) > Please at least merge all those small fixes into a larger patchset, and with a good cover letter to explain the reason (and auto-tool to do the change if possible) for all the involved maintainers, so that all of us are on the same page.
- vesche 5y agoIn case anyone forgot about this: https://grsecurity.net/huawei_hksp_introduces_trivially_exploitable_vulnerability https://grsecurity.net/huawei_hksp_introduces_trivially_expl...
- anzlq 5y agoHappens in CPython as well, I like the term "KPI grabbing". If you complain, the central committee will denounce you as non-inclusive. Nice that there is still some sanity on LKML.
- tomrod 5y agoThis is going to become a more common theme. Geopolitics spill into everyday life in all sorts of unexpected ways.
- turminal 5y agoThis issue doesn't have anything to do with geopolitics.
- tomrod 5y agoI believe that it does on a second order condition. Huawei is under tighter scrutiny because of current events in geopolitics. Were it Google or MIT, I believe it reasonable to expect that the maintainers wouldn't be as prescriptive.
- nneonneo 5y agoThe fellow who is being named in this particular PR has been _quite_ busy lately, submitting mostly typo fixes and whitespace fixes: https://lore.kernel.org/lkml/?q=f%3Athunder.leizhen https://lore.kernel.org/lkml/?q=f%3Athunder.leizhen Sometimes their patches aren't even valid - they tried to fix "borken" to "broken" and the maintainer was not happy: https://lore.kernel.org/lkml/YK3wOkX6I78j73zD@gmail.com/ https://lore.kernel.org/lkml/YK3wOkX6I78j73zD@gmail.com/ (this does come down to not being familiar with this particular bit of slang - but they push back and argue a bit which doesn't help) Sometimes the maintainers are not happy just getting a patch that fixes one line of whitespace: https://lore.kernel.org/lkml/20210608105943.2376328c@oasis.local.home/ https://lore.kernel.org/lkml/20210608105943.2376328c@oasis.l...
- sdesol 5y agoHere is this person's commit history for the last year for additional context: https://public-001.gitsense.com/insights/github/repos?q=authors%3Athunder.leizhen%40huawei.com%2Bwindow%3A365&r=github%3Atorvalds%2Flinux&v=repo https://public-001.gitsense.com/insights/github/repos?q=auth... They do appear to contribute regularly enough (relatively speaking) and based on some of the busfactor metrics, they are the sole maintainer or main maintainers for about 50 files. And if you look at their one line change commits, they do seem to be valid: https://public-001.gitsense.com/insights/github/repos?p=commits&q=authors%3Athunder.leizhen%40huawei.com%2Bcommit-churn%3A1%2Bfile-churn%3A1%2Bwindow%3A365&r=github%3Atorvalds%2Flinux&v=repo https://public-001.gitsense.com/insights/github/repos?p=comm... Disclaimer: I'm the creator of the tool for the links above
- delroth 5y ago> And if you look at their one line change commits, they do seem to be valid By construction, yes. You're only looking at their commits that were merged into Linus's tree.
- sdesol 5y agoYes you are right. I was more establishing this person's successful contributions and that they appear to provide meaningful contributions. What is happening now with all the new proposed changes that is causing a stir is something that I really can't speak too since there is no easy way to navigate their proposed changes.
- red_trumpet 5y ago> It's OK for first-time/student developers to submit such patches
- zeusk 5y agoThat's not the same as "anyone but huawei" as the parent comment noted. Huawei is not being singled out here because huawei or china but because of a specific behavior that's being called out here.
- joelkevinjones 5y agoLLVM has quite a number of people who have "review after commit" privilege. These are people who are trusted to know the difference between changes needing review and those that don't. As a result, people can fix typos, fix formatting, etc. without burdening reviewers. Those sorts of changes don't go through the usual review process, but on occasion may be reverted, by either the committer or someone else who has commit privilege.
- a-and 5y agoIt's unfortunate since ideally any contribution is a good contribution, but the Linux kernel has been so highly dependent on maintainers, that them being highly protective of their time is totally warranted. As someone who works at a big corp with regular OSS contributions, this doesn't surprise me at all. Recently a "Look at how amazing we are" e-mail was sent out to my team touting the number of PRs submitted to a widely-used OSS project. If your management incentivizes it, you'll try to game the system.
- h_anna_h 5y agoRemember when they tried to push a backdoor into the kernel last year? I am surprised with how they kept allowing them to submit patches. They acted much more boldly with the issue with the university of Minnesota. I am not a grsec fan but here https://grsecurity.net/huawei_hksp_introduces_trivially_exploitable_vulnerability https://grsecurity.net/huawei_hksp_introduces_trivially_expl...
- Tainnor 5y agoSimilar thing happened with the Hacktoberfest incident last year: https://blog.domenic.me/hacktoberfest/ https://blog.domenic.me/hacktoberfest/ In short, DigitalOcean unwisely incentivised a bunch of people to make PRs on open source repositories unaffiliated with DO so they could get a T-Shirt. It went so far that some guy actually made a very popular YT video about how you can make a PR for a small typo fix (I guess I still fail to understand why you'd need a YT video to explain that). Maintainers were none too pleased.
- vzaliva 5y agoIt looks like fundamental problem is that contributors are rated based on number of commits vs. qulaity of their contirbutions. They should fix that instead of discouraging contributiors.
- jxramos 5y agoCan someone explain this line to me please what you guys are doing is really KPI grabbing.
- gdulli 5y agoThere's a movement away from evaluating people or teams qualitatively, which is difficult and prone to dumb biases, and towards quantitative measures, which are easy and prone to dumber biases. Presumably here (I don't know if it's been proven) people in that org are being measured by how many commits they make, ignoring the depth or quality of the commits. Because it's someone's idea of a Key Performance Indicator (KPI.) So people are "grabbing" easy commits.
- Rapzid 5y agoGot hit a while back with a GitHub account that was "bombing" OSS projects with Docker image "best practice" fixes related to Deb "recommends" or some other such stuff. Most of their history for the past year was exclusively opening these PRs with canned messages. Some of the projects were very large(Apache Arrow, a large Google project IIRC), and they were opening commits up against largely test images.. And a LOT of them. On one of the larger projects somebody rightfully asked "What's the value add here?" who was promptly ignored by what I can only assume is a project manager who start humoring the submitter by trying to help them get this entirely useless work merged. It turned into an epic fail-whale causing all the projects tests to fail and that initial dev spent "too much time" trying to untangle it all before putting their foot down and reverted the changes. Other project maintainers got wise to these fishy PRs and after inspecting the submitters history just started telling them to sod off.
- powerapple 5y agoNow I understand the story: Qu was salty because his debug message was deleted by the person from Huawei. Qu was mad. Such a trivial event, and still made to HN because of a few keywords.
- dustinevan 5y agoThis same sort of thing is killing stackoverflow haha.
- mrtweetyhack 5y agoTypical China cheaters
- sigjuice 5y agoAren't these sorts of trivial fixes best sent to the kernel janitors mailing list? https://lore.kernel.org/kernel-janitors/ https://lore.kernel.org/kernel-janitors/
- ngikngok 5y agolololololol