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

Re: [RFC/PATCH v1] Add Travis CI support

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 4, 2015, 17:46 UTC
Message-ID
<xmqqmvvy1q83.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<vpq1tdb83nt.fsf@grenoble-inp.fr>
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
Show 7 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>>
>> I still don't see a reason why git/git needs to be the one that is
>> used,
>
> The very nice thing with Travis-CI is that it does not only test the
> repository's branches, but also all pull-requests.

OK, that is the first real argument I heard for enabling it on git/git that is worth listening to.

Practically, it has little value to run CI (whose only test is to run "make test") on branches that I publish in that repository. By the time a change hits that repository, "make test" has been run on my end already, and the only thing the CI would catch is platform dependent glitches (e.g. Windows and Mac), dependency-related ones (e.g. p4), or breakages I already know about [*1*].

But we _do_ want to see tested patches submitted to the list so that reviewers do not have to waste time on obviously bogus patches reviewing (and the integrator wasting time on deconflicting). A test that is PR-initiated would give us a real value there.

The repository that is used for the PR-initiated test does not have to be git/git (it only has to be a central well-known repository), but similar to arrangement for SubmitGit, I agree that git/git would be a good candidate for that "central well-known" one. There is not much point in introducing another "if you want your topics tested, throw a PR against this other repository".

So,... I would not mind a patch that adds a CI configuration file (I would really prefer it to be a battle-tested one, though) to my tree, and I would not mind if CI is enabled on git/git, if Peff or somebody more security-minded than me thinks it is safe to do so.

One final question. Which configuration file does the CI use when running a PR-initiated test? The one already in the repository i.e. the target of the proposed pull, or the one that is possibly updated by the PR?

I am wondering if that can be an avenue for a possible mischief.
Thanks.
[Footnote]

*1* I occasionally do push out 'pu' with known breakages (e.g. the recent 'lmdb' one) to make sure people are running the test suite so that they will work with the topic author to resolve the issue without having to wait for me to tell the topic author about it; letting CI catch that kind of breakage would not add much value, because it is already known ;-)

Previous: Matthieu MoyNext: Dennis Kaarsemaker
Message 20 of 31 in “Add Travis CI support”
  1. Add Travis CI supportlarsxschneider@gmail.com, Sep 24, 2015
  2. Add Travis CI supportlarsxschneider@gmail.com, Sep 24, 2015
  3. Junio C HamanoSep 25, 2015
  4. Dennis KaarsemakerSep 25, 2015
  5. Johannes SchindelinSep 25, 2015
  6. Luke DiamandSep 25, 2015
  7. Junio C HamanoSep 25, 2015
  8. Lars SchneiderSep 26, 2015
  9. Matthieu MoySep 27, 2015
  10. Stefan BellerSep 28, 2015
  11. Matthieu MoySep 28, 2015
  12. Junio C HamanoSep 28, 2015
  13. Matthieu MoySep 28, 2015
  14. Roberto TyleyOct 3, 2015
  15. Junio C HamanoOct 4, 2015
  16. Junio C HamanoOct 4, 2015
  17. Dennis KaarsemakerOct 4, 2015
  18. Johannes SchindelinOct 4, 2015
  19. Matthieu MoyOct 4, 2015
  20. Junio C HamanoOct 4, 2015
  21. Dennis KaarsemakerOct 4, 2015
  22. Matthieu MoyOct 5, 2015
  23. Junio C HamanoOct 5, 2015
  24. Sebastian SchuberthOct 12, 2015
  25. Junio C HamanoOct 4, 2015
  26. Jeff KingOct 4, 2015
  27. Sebastian SchuberthOct 2, 2015
  28. Jeff KingSep 25, 2015
  29. Junio C HamanoSep 25, 2015
  30. Jeff KingSep 25, 2015
  31. Shawn PearceSep 26, 2015

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.