git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: 0 bot for Git

From
FWFengguang Wu <lkp@intel.com>
Date
Apr 13, 2016, 13:44 UTC
Message-ID
<20160413134427.GA21158@wfg-t540p.sh.intel.com>
In-Reply-To
<xmqqmvoypn7g.fsf@gitster.mtv.corp.google.com>
Show 11 quoted lines
> > I don't know how 0 bot solves this, but the obvious issue with this
> > approach is to allow dealing with someone sending a patch like
> >
> > +++ Makefile
> > --- Makefile
> > +all:
> > +	rm -fr $(HOME); sudo rm -fr /
> >
> > to the list. One thing that Travis gives us for free is isolation:
> > malicious code in the build cannot break the bot, only the build
> > itself.

Sure, isolation is a must have for public test services like Travis or 0day. We optimize the 0day infrastructure for good behaviors and also have ways to isolate malicious ones.

Show 10 quoted lines
> True, presumably the Travis integration already solves that part, so
> I suspect it is just the matter of setting up:
> 
>  - a fork of git.git and have Travis monitor any and all new
>    branches;
> 
>  - a bot that scans the list traffic, applies each series it sees to
>    a branch dedicated for that series and pushes to the above fork.
> 
> isn't it?

Right. 0day bot could auto maintain a patch-representing git tree for Travis to monitor and test. As how we already did for the linux kernel project, creating one git branch per patchset posted to the lists:

        https://github.com/0day-ci/linux/branches

In principle the git project should have more simple rules to decide "which base should the robot apply a patch to". But we do need some hints about the git community's rules in order to start the work. If without such hints from the community, we may start with dumb rules like "apply to latest origin/master" or "apply to latest release tag".

Thanks, Fengguang

Previous: Junio C HamanoNext: Duy Nguyen
Message 26 of 41 in “Re: 0 bot for Git”
  1. Stefan BellerApr 12, 2016
  2. Greg KHApr 12, 2016
  3. Matthieu MoyApr 12, 2016
  4. Stefan BellerApr 12, 2016
  5. Philip LiApr 12, 2016
  6. Matthieu MoyApr 12, 2016
  7. Junio C HamanoApr 12, 2016
  8. Matthieu MoyApr 13, 2016
  9. Lars SchneiderApr 13, 2016
  10. Matthieu MoyApr 13, 2016
  11. Lars SchneiderApr 13, 2016
  12. Junio C HamanoApr 13, 2016
  13. Lars SchneiderApr 13, 2016
  14. Junio C HamanoApr 13, 2016
  15. Lars SchneiderApr 13, 2016
  16. Stefan BellerApr 13, 2016
  17. Greg KHApr 13, 2016
  18. Lars SchneiderApr 16, 2016
  19. Junio C HamanoApr 16, 2016
  20. Lars SchneiderApr 22, 2016
  21. Junio C HamanoApr 22, 2016
  22. Johannes SchindelinApr 24, 2016
  23. SZEDER GáborApr 24, 2016
  24. Johannes SchindelinApr 24, 2016
  25. Junio C HamanoApr 13, 2016
  26. Fengguang WuApr 13, 2016
  27. Duy NguyenApr 12, 2016
  28. Stefan BellerApr 12, 2016
  29. Christian CouderApr 14, 2016
  30. Parallel checkout (Was Re: 0 bot for Git)Duy Nguyen, Apr 15, 2016
  31. Christian CouderApr 15, 2016
  32. Duy NguyenApr 15, 2016
  33. Jeff KingApr 15, 2016
  34. Junio C HamanoApr 15, 2016
  35. Jeff KingApr 15, 2016
  36. Michael HaggertyApr 16, 2016
  37. Stefan BellerApr 15, 2016
  38. Duy NguyenApr 16, 2016
  39. Duy NguyenApr 26, 2016
  40. Johannes SchindelinApr 24, 2016
  41. Johannes SchindelinApr 25, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.