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

ICRAR / ngas
65%
master: 69%

Build:
Build:
LAST BUILD BRANCH: config_use_prepared_stmts_for_clients
DEFAULT BRANCH: master
Repo Added 30 Jun 2017 02:01AM UTC
Files 165
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

LAST BUILD ON BRANCH macos-hostnames
branch: macos-hostnames
CHANGE BRANCH
x
Reset
  • macos-hostnames
  • 98-query-ignore
  • NGAS-163
  • aiosmtpd
  • avoid-installing-bsddb3-in-py27
  • bbcp_fixes
  • c_client_warning_fixes
  • centos7-compatibility-changes
  • clone-fix
  • clone-order-fixes
  • correct-janitor-init
  • correct-logging-c
  • coverage-stability
  • direct_sql
  • doc-updates
  • docs-fix
  • document-future-removal-of-27
  • fits_optional_arcfile
  • fix-requests-dependency-specs
  • fs-monitor
  • fs-monitor-fixes
  • github-actions
  • improve-register-error-message
  • issue-103
  • issue-13
  • issue-38
  • issue-44
  • issue-50
  • issue-51
  • janitor-thread-startup
  • macos-travis-fix
  • macos-travis-update
  • master
  • netifaces-fix
  • next
  • no-create-venv
  • none-reg-parameters
  • partner_sites
  • plugins-importing
  • py311
  • py39
  • python-client-improvements
  • relaxed-netifaces
  • release-12.0
  • remove-2.7-builds
  • remove-test-generic-registration-plugin
  • requests-pinning
  • richer-archiving-event
  • separate-test-servers
  • servers-flag
  • small-improvements
  • smtp-testing
  • stream-proxy-request
  • subscription-def
  • subscription_thread_ng
  • travis-errors
  • travis-fixes
  • travis-focal
  • update-travis-matrix
  • uwe-fixes
  • v11
  • v12
  • v12.0
  • various_improvements
  • volumes

pending completion
283

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>

12466 of 19204 relevant lines covered (64.91%)

3.88 hits per line

Relevant lines Covered
Build:
Build:
19204 RELEVANT LINES 12466 COVERED LINES
3.88 HITS PER LINE
Source Files on macos-hostnames
  • List 0
  • Changed 29
  • Source Changed 0
  • Coverage Changed 29
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
283 macos-hostnames 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 functio... push 13 Mar 2019 09:18AM UTC rtobar travis-ci pending completion  
282 macos-hostnames Moving port check into its own function This has the side-effect that the socket object is immediately destroyed, which might or might not have to do with some failures we are suffering in MacOS where this check passes, but the NGAS server actual... push 08 Mar 2019 06:22AM UTC rtobar travis-ci pending completion  
281 macos-hostnames Workaround, try 1 Signed-off-by: Rodrigo Tobar <rtobar@icrar.org> push 08 Mar 2019 05:25AM UTC rtobar travis-ci pending completion  
280 macos-hostnames More findings, correct scutil invocation Signed-off-by: Rodrigo Tobar <rtobar@icrar.org> push 08 Mar 2019 04:31AM UTC rtobar travis-ci pending completion  
278 macos-hostnames Finding out reported hostnames in MacOS Signed-off-by: Rodrigo Tobar <rtobar@icrar.org> push 08 Mar 2019 04:15AM UTC rtobar travis-ci pending completion  
See All Builds (534)
  • Repo on GitHub
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

© 2025 Coveralls, Inc