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

Re: Travis not looking so good

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Jun 29, 2019, 17:01 UTC
Message-ID
<20190629170108.GF21574@szeder.dev>
In-Reply-To
<xmqqy31nasck.fsf@gitster-ct.c.googlers.com>
On Thu, Jun 27, 2019 at 09:46:51AM -0700, Junio C Hamano wrote:
Show 18 quoted lines
> SZEDER Gábor <szeder.dev@gmail.com> writes:
> 
> > However, we've always used the macOS build jobs as "build and test
> > with the latest and greatest", i.e. they install the latest available
> > Perforce and Git-LFS.  To keep up with this tradition we'd need to run
> > 'brew update' and in turn would need to 'brew install gcc'.
> >
> > [1] See e.g. a1ccaedd62 (travis-ci: make the OSX build jobs' 'brew
> >     update' more quiet, 2019-02-02) or
> >
> >     https://public-inbox.org/git/20180907032002.23366-1-szeder.dev@gmail.com/T/#u
> 
> Is the reason why you did not submit your bonus patch [*1*] in the series at
> 
>   https://public-inbox.org/git/20190614100059.13540-1-szeder.dev@gmail.com/
> 
> because it goes the opposite way, i.e. "build and test with whatever
> happens to be in the image"?

Basically yes... with the other factor being that when I'm not particularly happy with any of the possible solutions for an issue, then it tends to end up on a back burner and forgotten for a while...

> Unless what happens to come in the image at travis-ci.org is
> hopelessly outdated and does not match what normal users run,

We explicitly specify which macOS image we want to use in our builds on Travis CI, see 2000ac9fbf (travis-ci: switch to Xcode 10.1 macOS image, 2019-01-17), so it's up to us to change that.

Travis CI's current default macOS image is still Xcode 9.4, as it was at the time of 2000ac9fbf, and the newest is 10.2, which now comes with GCC 8.3 properly preinstalled (i.e. no 'brew link gcc@8' necessary).

> isn't
> it is better to test with "whatever happens to be there" than not to
> test at all due to missing compiler?
Better, sure...  Right?  I'm not sure.
Show 7 quoted lines
> [Reference]
> 
> *1* ... what I picked up from your branch reproduced here
> 
>   https://public-inbox.org/git/xmqqy324t4g0.fsf@gitster-ct.c.googlers.com/
> 
> It is missing explanation and sign-off,

And that patch should be split into two, of course: setting HOMEBREW_NO_AUTO_UPDATE first to fix the build, and then set HOMEBREW_NO_INSTALL_CLEANUP separately for a bit of additional speedup.

> but if it lets the build
> jobs run, even in a tad stale environment, it may be worth
> resurrecting until those who want macOS port working can come up
> with a real "with the latest and greatest" alternative.

'brew update && brew install gcc && export CC=gcc-9' will do it... but then we'll still spend that ~2.5 minutes spent on updating Homebrew itself, and there's the possibility that Homebrew breaks, and eventually GCC 10 will be released and we'll need to update that CC variable.

Anyway, will look into this again later during the weekend.
Previous: Junio C HamanoNext: SZEDER Gábor
Message 7 of 18 in “Travis not looking so good”
  1. Johannes SchindelinMay 30, 2019
  2. brian m. carlsonJun 1, 2019
  3. SZEDER GáborJun 2, 2019
  4. Taylor BlauJun 26, 2019
  5. SZEDER GáborJun 27, 2019
  6. Junio C HamanoJun 27, 2019
  7. SZEDER GáborJun 29, 2019
  8. 1/2 ci: don't update HomebrewSZEDER Gábor, Jul 3, 2019
  9. 2/2 ci: disable Homebrew's auto cleanupSZEDER Gábor, Jul 3, 2019
  10. Johannes SchindelinJul 3, 2019
  11. Thomas BraunJul 3, 2019
  12. SZEDER GáborJul 3, 2019
  13. Junio C HamanoJul 3, 2019
  14. ci/lib.sh: update a comment about installed P4 and Git-LFS versionsSZEDER Gábor, Jul 6, 2019
  15. ci/lib.sh: update a comment about installed P4 and Git-LFS versionsSZEDER Gábor, Jul 6, 2019
  16. Johannes SchindelinJul 8, 2019
  17. Taylor BlauJul 9, 2019
  18. Junio C HamanoJul 10, 2019

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.