updater

package
v0.0.52 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package updater reads the latest test results and saves updated state.

Index

Constants

This section is empty.

Variables

View Source
var AllowMultiplePaths = map[string]bool{}

AllowMultiplePaths enables combining multiple jobs together using a comma.

This feature is undocumented and poorly tested, so restrict to specific groups. TODO(fejta): redesign this feature (using symlinks?), ensure it works correctly.

Functions

func Update

func Update(parent context.Context, client gcs.ConditionalClient, configPath gcs.Path, gridPrefix string, groupConcurrency int, group string, updateGroup GroupUpdater) error

Update performs a single update pass of all all test groups specified by the config.

Types

type GroupUpdater added in v0.0.29

type GroupUpdater func(parent context.Context, log logrus.FieldLogger, client gcs.Client, tg *configpb.TestGroup, gridPath gcs.Path) error

GroupUpdater will compile the grid state proto for the specified group and upload it.

This typically involves downloading the existing state, dropping old columns, compiling any new columns and inserting them into the front and then uploading the proto to GCS.

func GCS added in v0.0.29

func GCS(groupTimeout, buildTimeout time.Duration, concurrency int, write bool) GroupUpdater

GCS returns a GCS-based GroupUpdater, which knows how to process result data stored in GCS.

Jump to

Keyboard shortcuts

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