• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ICRAR / ngas / 283 / 2
65%
master: 69%

Build:
Build:
LAST BUILD BRANCH: config_use_prepared_stmts_for_clients
DEFAULT BRANCH: master
Ran 13 Mar 2019 09:20AM UTC
Files 161
Run time 8s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Mar 2019 09:07AM UTC coverage: 64.699% (+0.02%) from 64.683%
DB=mysql

push

travis-ci

rtobar
Generating consistent hostname in Travis's MacOS

It turns out that using `hostname <X>` to set the hostname doesn't
produce a consistent state after which one can reliably get the same
hostname out of the different socket-related hostname functions. I'm not
entirely sure why this is the case, but there are people online claiming
it had to do with flushing DNS caches and similar things. In particular
there are other people experiencing this same sort of behaviour in
python@MacOS when plugging their computers to some network.

Anyway, the de-facto workaround for this situations seems unanimously to
explicitly set the HostName system configuration setting via the scutil
tool. To make sure things are working I'm not only adding this extra
call, but also printing to the screen (just for debugging) the output
from several hostname-querying python functions and tools.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>

12428 of 19209 relevant lines covered (64.7%)

0.65 hits per line

Source Files on job 283.2 (DB=mysql)
  • Tree
  • List 0
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 264
  • Travis Job 283.2
  • 9a568110 on github
  • Prev Job for DB=mysql on macos-hostnames (#282.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc