• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Build has been canceled!

01org / ciao / 314 / 3
67%
master: 66%

Build:
Build:
LAST BUILD BRANCH: topic/config-subnet-bits
DEFAULT BRANCH: master
Ran 07 Sep 2016 08:29PM UTC
Files 75
Run time 4s
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

07 Sep 2016 07:54PM UTC coverage: 66.209% (-0.05%) from 66.261%
COVERALLS_TOKEN=mwTn1pOFqEOUT13vylZNHq53NanoMznO7

push

travis-ci

tpepper
osprepare: support context.Context for cancellation

The golang package "context" allows cancellation to flow across API
boundaries and processes.  Launcher spawns all manner of processes so
it takes extra care to allow for example clean exiting of both itself
and its children through a control-C of running launcher.

Since osprepare may do a long-running operation in the (ideally rare) case
that launcher dependencies are not present at start up.  The user may want
to break out of this and not let it run to completion and not actually
start launcher.  That is only possible if a context is passed.

For controller and scheduler I simply use the context.TODO() as the package
documentation says not to pass a nil context and rather one should use this
marker empty context.

NOTE: the context feature is new in golang 1.7's os/exec package, so
accepting this commit requires moving to a minimum of go 1.7.

Signed-off-by: Tim Pepper <timothy.c.pepper@linux.intel.com>

10714 of 16182 relevant lines covered (66.21%)

0.71 hits per line

Source Files on job 314.3 (COVERALLS_TOKEN=mwTn1pOFqEOUT13vylZNHq53NanoMznO7)
  • Tree
  • List 0
  • Changed 17
  • Source Changed 12
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 314
  • Travis Job 314.3
  • 842630e5 on github
  • Prev Job for COVERALLS_TOKEN=mwTn1pOFqEOUT13vylZNHq53NanoMznO7 on prepare (#296.3)
  • Next Job for COVERALLS_TOKEN=mwTn1pOFqEOUT13vylZNHq53NanoMznO7 on prepare (#316.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