skylab_swarming_worker: Add buffer to signal channel

Needed since Notify doesn't block on send

BUG=None
TEST=None

Change-Id: Ia36c3997e6dab429a20b883913e4f9a21a3a59d4
Reviewed-on: https://chromium-review.googlesource.com/1070878
Commit-Ready: Allen Li <ayatane@chromium.org>
Tested-by: Allen Li <ayatane@chromium.org>
Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
1 file changed
tree: e03682017c7512879ed423d85da1579b07876160
  1. scripts/
  2. src/
  3. .gitignore
  4. COMMIT-QUEUE.ini
  5. Makefile
  6. PRESUBMIT.cfg
  7. README.md
README.md

Lucifer

Chromium OS test running infrastructure.

Overview

The project provides two binaries.

lucifer_run_job runs a test job. It is intended to be run by a parent wrapper process. lucifer_run_job prints status update events to stdout, and the calling process should perform the necessary updates for the scheduling system in use (e.g. Autotest or Swarming).

skylab_swarming_worker is such a wrapper for Swarming.

Development

Required tools

Install necessary tools:

sudo apt-get install go

Install go dep. Find the right binary for your system on the releases page and download it to somewhere on your path.

Common tasks

For all Go commands run for this project, you need to set GOPATH to the project root:

export GOPATH=$(pwd)

Install Lucifer dependency packages:

(cd src/lucifer && dep ensure)

To serve documentation:

godoc -port 5000

To build binaries:

make

To run unit tests:

make check

To run all tests, including slow and/or flaky tests:

make check_all

To check test coverage of a package:

scripts/check_coverage lucifer/event