androidbuild

package
v0.0.0-...-b95a7b5 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: BSD-3-Clause Imports: 15 Imported by: 1

Documentation

Overview

androidbuild implements a simple interface to look up skia git commit hashes from android buildIDs.

Index

Constants

View Source
const (
	NUM_RETRIES    = 10
	PAGE_SIZE      = 5
	SLEEP_DURATION = 3

	// TARGETS_KEY is the key for the list of space separated branch:targets we are monitoring.
	TARGETS_KEY = "android_ingest_targets"

	// LAST_BUILD_FOR_TARGET_TEMPLATE is expanded with the branch and target name to build they key for the last buildID seen for that target.
	LAST_BUILD_FOR_TARGET_TEMPLATE = "android_ingest_last_build:%s:%s"
)

Variables

This section is empty.

Functions

func CommitsFromChanges

func CommitsFromChanges(changes []*androidbuildinternal.Change) []*vcsinfo.ShortCommit

Types

type Info

type Info interface {
	Get(branch, target, buildID string) (*vcsinfo.ShortCommit, error)
}

Info is an inferface for querying for commit info from an Android branch, target, and buildID.

func New

func New(dir string, client *http.Client) (Info, error)

New creates a new *info as Info.

dir is the directory where the leveldb that caches responses will be written. client must be an authenticated client to make requests to the Android Build API.

Jump to

Keyboard shortcuts

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