|
|
Subscribe / Log in / New account

Pulling GitHub into the kernel process

Pulling GitHub into the kernel process

Posted Jul 1, 2021 22:07 UTC (Thu) by mblinov (guest, #135953)
Parent article: Pulling GitHub into the kernel process

I just had a "great" idea: Why doesn't the Linux Foundation provide a Docker container, which will contain a small email server that forwards your email to the "real" kernel mailing list, but before doing so will run all the checks and do all the formatting for you?

So I can do "git format-patch", send it to localhost:14121 (or wherever I launch the Docker instance), and then the Docker instance, upon receipt of the patch, will:
- Check the formatting,
- Check the "CC" list,
- Forward to lkml, etc.

And if anything isn't quite right, it just sends it right back to you and documents why and what needs changing, e.g. "Hey, your patch touched subsystem X but you didn't add X@so-and-so.org in the CC", and if you know what you're doing, I suppose you could have some mechanism for passing "flags" to the server to override warnings...

And then if you're really paranoid, it could contain a mirror of the linux mailing list, and you could choose to "emulate" sending your patch, which would really just send it to this internal mirrored mailing list. That way you can convince yourself that it really does get sent the way you want and expect it to.

Come to think of it, you could put a mini-webserver in it with all the clicky buttons anyone could want.

Too crazy?


to post comments

Pulling GitHub into the kernel process

Posted Jul 3, 2021 2:37 UTC (Sat) by mathstuf (subscriber, #69389) [Link]

FWIW, adding these kinds of things to ghostflow[1] seems like something within its wheelhouse. Willing to discuss if anyone is interested in implementing these actions (which can then be exposed through the `ghostflow-cli` tool). FWIW, format checking is already supported on a "check the whole file" level, but I suppose it can be checked if it conflicts with the diff to know if the modified lines need updated (rather than forcing the whole file to be formatted all the time; something not really feasible with the kernel).

[1]https://gitlab.kitware.com/utils/rust-ghostflow


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds