What is Daisy?
Daisy is a solution for running multi-step workflows on GCE.
The current Daisy stepset includes support for creating/deleting GCE resources, waiting for signals from GCE VMs, streaming GCE VM logs, uploading local files to GCE and GCE VMs, and more.
For example, Daisy is used to create Google Official Guest OS images. The workflow:
- Creates a Debian 8 disk and another empty disk.
- Creates and boots a VM with the two disks.
- Runs and waits for a script on the VM.
- Creates an image from the previously empty disk.
- Automatically cleans up the VM and disks.
Other use-case examples:
- Workflows for importing external physical or virtual disks to GCE.
- GCE environment deployment.
- Ad hoc GCE testing environment deployment and test running.
Daisy documentation can be found here.
Infrastructure has been set up to perform presubmit testing on PRs and periodic continuous integration tests against HEAD.
Presubmit checks unit tests,
go fmt, and
go vet against PRs
with changes to Daisy source code. Unit test coverage is reported to
codecov.io, which posts coverage reports on the PR. Presubmit tests are
gated by repo owners. Repo owners have the following commands available on
/go test: runs unit tests and reports coverage.
/go fmt: runs
/go vet: runs
/ok-to-test: gives Prow the go-ahead to run the entire suite automatically.
/retest: reruns failed tests, only available after Prow reports failures.
Periodic tests run every 6 hours. Currently, periodic tests include the e2e tests here: ../test-infra/prow/config.yaml. You can see the test results for the e2e tests in testgrid: [https://k8s-testgrid.appspot.com/google-gce-compute-image-tools#ci-daisy-e2e].