Documentation ¶
Overview ¶
poprepo is a package for populating a git repo with commits that associate a git commit with a buildid, a monotonically increasing number maintained by a external build system. This is needed because Perf only knows how to associate measurement values with git commits.
Index ¶
Constants ¶
View Source
const (
BUILDID_FILENAME = "BUILDID"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PopRepo ¶
type PopRepo struct {
// contains filtered or unexported fields
}
PopRepo implements PopRepoI.
func NewPopRepo ¶
NewPopRepo returns a *PopRepo that writes and reads BuildIds into the 'checkout'.
If not 'local' then the HOME environment variable is set for running on the server.
type PopRepoI ¶
type PopRepoI interface { // GetLast returns the last committed buildid, its timestamp, and git hash. GetLast(ctx context.Context) (int64, int64, string, error) // Add a new buildid to the repo. Add(ctx context.Context, buildid, ts int64) error // LookupBuildID looks up a buildid and branch from the git hash. LookupBuildID(ctx context.Context, hash string) (int64, error) }
PopRepoI is the interface that PopRepo supports.
It supports adding and reading BuildIDs from a git repo.
Click to show internal directories.
Click to hide internal directories.