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

Re: [PATCH v4 4/4] Add Travis CI support

From
Lars Schneider <larsxschneider@gmail.com>
Date
Nov 6, 2015, 13:28 UTC
Message-ID
<D71ED634-382A-4835-AF65-D16FEFF17270@gmail.com>
In-Reply-To
<CAHGBnuNwzGNjfh57zFOtwr6qU1PCsc7rgOniY8-Mz5Jgnv2QTg@mail.gmail.com>
Show 29 quoted lines
> On 06 Nov 2015, at 14:20, Sebastian Schuberth <sschuberth@gmail.com> wrote:
> 
> On Fri, Nov 6, 2015 at 2:11 PM, Lars Schneider <larsxschneider@gmail.com> wrote:
> 
>> Per platform/compiler (Linux&Mac/clang&gcc) we run two configurations. One
>> normal configuration (see the lonely "-" right under "matrix:") and one
>> configuration with all sorts of things are disabled ("NO...").
>> 
>> You can see all 8 configurations ([linux, mac] * [clang, gcc] * [normal,
>> NO_...]) here:
>> https://travis-ci.org/larsxschneider/git/builds/89598194
> 
> Aren't these 8 configurations a bit too much? I see the total running
> time is about 2 hours. For my taste, this is way to much to give
> developers feedback about the status of their PR. It should be
> something < 30 minutes.
> 
> IMO, the purpose of the Travis CI configuration mainly is to 1) save
> developers work by not requiring to build manually, 2) build on other
> platforms than the developer has access to. I doubt that the average
> developer manually builds anything close to these 8 configurations
> before we had this job, so I wouldn't make it a requirement for Travis
> to do much more than a developer could / would to manually.
> 
> On the other hand, I see the point in letting a CI system test more
> configurations than manually feasible. But that should be done as part
> of a different job then. E.g. we could have a "fast" PR validation
> job, and a "slow" nightly build job.
> 
Well, I partly agree. Right now the running time is ~20 min (that means less than your 30min target!). After ~10min you even have all Linux results, Mac takes a bit longer. Travis shows you 2h because that is the time that would be required if all builds where run one after another (we run builds in parallel).
That being said, I see your point of to avoiding to burn Travis CI resources meaningless. If I am not mistaken then you can configure Travis in a way that it runs different configurations for different branches. E.g. I would like to run all 8 configurations on maint, master, next and maybe pu. All other branches on peoples own forks should be fine with the default Linux build (~10min).
What do you think?

Thanks, Lars

Previous: Sebastian SchuberthNext: Sebastian Schuberth
Message 16 of 20 in “Add Travis CI support”
  1. 0/4 Add Travis CI supportlarsxschneider@gmail.com, Nov 6, 2015
  2. 1/4 add function test_must_fail_or_sigpipe and use it to fix flaky testslarsxschneider@gmail.com, Nov 6, 2015
  3. Junio C HamanoNov 6, 2015
  4. Junio C HamanoNov 6, 2015
  5. 2/4 git-p4: add p4d timeout in testslarsxschneider@gmail.com, Nov 6, 2015
  6. Eric SunshineNov 6, 2015
  7. Lars SchneiderNov 6, 2015
  8. 3/4 git-p4: retry kill/cleanup operations in tests with timeoutlarsxschneider@gmail.com, Nov 6, 2015
  9. Eric SunshineNov 6, 2015
  10. Lars SchneiderNov 6, 2015
  11. Lars SchneiderNov 6, 2015
  12. 4/4 Add Travis CI supportlarsxschneider@gmail.com, Nov 6, 2015
  13. Eric SunshineNov 6, 2015
  14. Lars SchneiderNov 6, 2015
  15. Sebastian SchuberthNov 6, 2015
  16. Lars SchneiderNov 6, 2015
  17. Sebastian SchuberthNov 6, 2015
  18. Lars SchneiderNov 6, 2015
  19. Sebastian SchuberthNov 6, 2015
  20. Lars SchneiderNov 6, 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.