resultdb/

directory
v0.0.0-...-ef45db5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 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
Package bqutil contains utility functions for BigQuery.
Package bqutil contains utility functions for BigQuery.
cmd
rdb
artifactcontent
Package artifactcontent can serve artifact content via plain HTTP securely.
Package artifactcontent can serve artifact content via plain HTTP securely.
baselines
Package baselines captures baseline objects and basic interactions with them.
Package baselines captures baseline objects and basic interactions with them.
baselines/testvariants
Package baselinetestvariant provides crud operations for baseline test variants.
Package baselinetestvariant provides crud operations for baseline test variants.
config
Package config validates and gives access to ResultDB LUCI config.
Package config validates and gives access to ResultDB LUCI config.
cron
Package cron can runs functions periodically.
Package cron can runs functions periodically.
exportroots
Package exportroots contains methods for reading and writing export root records in Spanner.
Package exportroots contains methods for reading and writing export root records in Spanner.
gsutil
Package gsutil contains utility functions for Google Storage.
Package gsutil contains utility functions for Google Storage.
invocations/graph
Package graph contains methods to explore reachable invocations.
Package graph contains methods to explore reachable invocations.
rpcquota
Package rpcquota is a wrapper around LUCI quota for ResultDB.
Package rpcquota is a wrapper around LUCI quota for ResultDB.
rpcutil
Package rpcutil contains utility functions for RPC handlers.
Package rpcutil contains utility functions for RPC handlers.
services/artifactexporter
Package artifactexporter handles uploading artifacts to BigQuery.
Package artifactexporter handles uploading artifacts to BigQuery.
services/baselineupdater
Package baselineupdater marks test variants from an invocation as submitted by adding the test variants to the set of tests for its baseline identifier.
Package baselineupdater marks test variants from an invocation as submitted by adding the test variants to the set of tests for its baseline identifier.
services/deadlineenforcer
Package deadlineenforcer finalizes tasks with overdue deadlines.
Package deadlineenforcer finalizes tasks with overdue deadlines.
services/exportnotifier
Package exportnotifier is responsible for dispatching "invocation ready for export" notifications, used to trigger low-latency exports from ResultDB.
Package exportnotifier is responsible for dispatching "invocation ready for export" notifications, used to trigger low-latency exports from ResultDB.
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.
services/resultdb
Package resultdb provides implementation for luci.resultdb.v1.ResultDB service.
Package resultdb provides implementation for luci.resultdb.v1.ResultDB service.
services/testmetadataupdator
Package testmetadataupdator implements a task which ingest test metadata from invocations.
Package testmetadataupdator implements a task which ingest test metadata from invocations.
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.
tasks
Package tasks contains task class definitions for ResultDB.
Package tasks contains task class definitions for ResultDB.
testmetadata
Package testmetadata implements methods to query from TestMetadata spanner table.
Package testmetadata implements methods to query from TestMetadata spanner table.
testutil
Package testutil provides utility functions for writing unit tests.
Package testutil provides utility functions for writing unit tests.
testutil/insert
Package insert implements functions to insert rows for testing purposes.
Package insert implements functions to insert rows for testing purposes.
tracing
Package tracing contains helper for reporting OpenTelemetry tracing spans.
Package tracing contains helper for reporting OpenTelemetry tracing spans.
Package pbutil implements utility functions for ResultDB protobuf messages.
Package pbutil implements utility functions for ResultDB protobuf messages.
proto
bq
v1
Package resultpb contains public ResultDB proto API.
Package resultpb contains public ResultDB proto API.
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.
Package util contains utility functions.
Package util contains utility functions.

Jump to

Keyboard shortcuts

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