resultdb/

directory
v0.0.0-...-51f9457 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2021 License: Apache-2.0

README

Run Spanner integration tests using Cloud Spanner Emulator

Install Cloud Spanner Emulator

Linux

The Cloud Spanner Emulator is part of the bundled gcloud, to make sure it's installed:

cd infra
gclient runhooks
eval `./go/env.py`
which gcloud # should show bundled gcloud
gcloud components list # should see cloud-spanner-emulator is installed
Mac

If you are a Google employee, follow go/docker-for-mac first.

Run tests

From command line, first set environment variables:

export INTEGRATION_TESTS=1
export SPANNER_EMULATOR=1

Then run go test as usual.

Note: If you run tests on Mac, please start Docker Desktop before running tests.

Directories

Path Synopsis
cmd
rdb
artifactcontent
Package artifactcontent can serve artifact content via plain HTTP securely.
Package artifactcontent can serve artifact content via plain HTTP securely.
cron
Package cron can runs functions periodically.
Package cron can runs functions periodically.
services/deadlineenforcer
Package deadlineenforcer finalizes tasks with overdue deadlines.
Package deadlineenforcer finalizes tasks with overdue deadlines.
services/globalmetrics
Package globalmetrics reports metrics that are computationally heavy.
Package globalmetrics reports metrics that are computationally heavy.
services/purger
Package purger deletes expired test results from Spanner.
Package purger deletes expired test results from Spanner.
services/recorder
Package recorder implements a binary that hosts luci.resultdb.v1.Recorder service.
Package recorder implements a binary that hosts luci.resultdb.v1.Recorder service.
spanutil
Package span contains utility functions to interact with the underlying Spanner storage.
Package span contains utility functions to interact with the underlying Spanner storage.
testutil/insert
Package insert implements functions to insert rows for testing purposes.
Package insert implements functions to insert rows for testing purposes.
Package pbutil implements utility functions for ResultDB protobuf messages.
Package pbutil implements utility functions for ResultDB protobuf messages.
proto
bq
v1
Package sink provides a server for aggregating test results and sending them to the ResultDB backend.
Package sink provides a server for aggregating test results and sending them to the ResultDB backend.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL