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

Re: Reducing redundant build at Travis?

From
Lars Schneider <larsxschneider@gmail.com>
Date
Jul 21, 2017, 16:11 UTC
Message-ID
<333FEA3F-BB43-4183-ADD1-14E73E668EA3@gmail.com>
In-Reply-To
<xmqq4lu7m94h.fsf@gitster.mtv.corp.google.com>
Show 30 quoted lines
> On 20 Jul 2017, at 17:16, Junio C Hamano <gitster@pobox.com> wrote:
> 
> Lars Schneider <larsxschneider@gmail.com> writes:
> 
>>> On 14 Jul 2017, at 17:32, Jeff King <peff@peff.net> wrote:
>>> 
>>> I don't know if Travis's cache storage is up to that challenge. We could
>>> probably build such a lock on top of third-party storage, but things are
>>> rapidly getting more complex.
>> 
>> I think we shouldn't go there because of the complexity. I reached out
>> to TravisCI and asked about the "hash build twice" problem [1]. Unfortunately,
>> I got no response, yet. The issue could also be considered a feature as you
>> could perform different actions in your TravisCI configuration based on
>> the branch name.
> 
> Oh, no doubt that it is a feature, and a very useful one at that.
> With that, we can change actions depending on the branch name in
> such a way that normally we do our build and test, but when we are
> on a branch (not testing a tag) and its tip is tagged, we become
> no-op to avoid the cost of testing.  That is the feature we exactly
> want.
> 
> The question I had, and wanted a help from you, was if there was a
> way we can write that "are we on a branch (not testing a tag) and is
> its tip tagged?" test only once in .travis.yml, even though we have
> quite a many items in the matrix.  With the current way .travis.yml
> is laid out, without such a facility, we'd need the logic sprinkled
> to at the beginning of all "before_install:" or something like that,
> which is not quite optimal.
To answer your question: I don't see an easy solution to the problem.

However, maybe it is solvable with a creative usage of "build-stages"? https://blog.travis-ci.com/2017-05-11-introducing-build-stages

Sorry, Lars

Previous: Junio C HamanoNext: Junio C Hamano
Message 9 of 12 in “Reducing redundant build at Travis?”
  1. Junio C HamanoJul 12, 2017
  2. Lars SchneiderJul 13, 2017
  3. Junio C HamanoJul 13, 2017
  4. Jeff KingJul 14, 2017
  5. Junio C HamanoJul 14, 2017
  6. Jeff KingJul 14, 2017
  7. Lars SchneiderJul 20, 2017
  8. Junio C HamanoJul 20, 2017
  9. Lars SchneiderJul 21, 2017
  10. Junio C HamanoJul 21, 2017
  11. Lars SchneiderJul 26, 2017
  12. Junio C HamanoJul 26, 2017

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.