Documentation
¶
Index ¶
- type Action
- type ActionCacheStatistic
- type ActionDatum
- type ActionSummary
- type ArtifactMetric
- type AuthenticatedUser
- type BazelInvocation
- type Build
- type BuildGraphMetric
- type BuildLogChunk
- type Configuration
- type ConnectionMetadatum
- type CreateBazelInvocationParams
- type CreateIncompleteBuildLogsParams
- type CreateInvocationTargetsBulkParams
- type CreateTargetKindMappingsBulkParams
- type CreateTargetsParams
- type CreateTargetsRow
- type CreateTestResultsBulkParams
- type CreateTestSummariesBulkParams
- type CumulativeMetric
- type DBTX
- type EvaluationStat
- type EventMetadatum
- type FindMappedTargetsParams
- type FindMappedTargetsRow
- type FindTargetsParams
- type FindTargetsRow
- type GarbageMetric
- type GetOrCreateEventMetadataRow
- type IncompleteBuildLog
- type InstanceName
- type InvocationFile
- type InvocationTarget
- type LockBazelInvocationCompletionRow
- type MemoryMetric
- type Metric
- type MissDetail
- type NetworkMetric
- type PackageLoadMetric
- type PackageMetric
- type Querier
- type Queries
- func (q *Queries) CreateBazelInvocation(ctx context.Context, arg CreateBazelInvocationParams) (int64, error)
- func (q *Queries) CreateIncompleteBuildLogs(ctx context.Context, arg CreateIncompleteBuildLogsParams) error
- func (q *Queries) CreateInstanceName(ctx context.Context, name string) (int64, error)
- func (q *Queries) CreateInvocationTargetsBulk(ctx context.Context, arg CreateInvocationTargetsBulkParams) error
- func (q *Queries) CreateTargetKindMappingsBulk(ctx context.Context, arg CreateTargetKindMappingsBulkParams) error
- func (q *Queries) CreateTargets(ctx context.Context, arg CreateTargetsParams) ([]CreateTargetsRow, error)
- func (q *Queries) CreateTestResultsBulk(ctx context.Context, arg CreateTestResultsBulkParams) (int64, error)
- func (q *Queries) CreateTestSummariesBulk(ctx context.Context, arg CreateTestSummariesBulkParams) (int64, error)
- func (q *Queries) FindMappedTargets(ctx context.Context, arg FindMappedTargetsParams) ([]FindMappedTargetsRow, error)
- func (q *Queries) FindTargets(ctx context.Context, arg FindTargetsParams) ([]FindTargetsRow, error)
- func (q *Queries) GetOrCreateEventMetadata(ctx context.Context, bazelInvocationID int64) (GetOrCreateEventMetadataRow, error)
- func (q *Queries) LockBazelInvocationCompletion(ctx context.Context, id int64) (LockBazelInvocationCompletionRow, error)
- func (q *Queries) UpdateCompletedInvocationWithEndTimeFromEventMetadata(ctx context.Context) (int64, error)
- func (q *Queries) UpdateEventMetadata(ctx context.Context, arg UpdateEventMetadataParams) (int64, error)
- func (q *Queries) UpdateTestSummariesBulk(ctx context.Context, arg UpdateTestSummariesBulkParams) (int64, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type RunnerCount
- type SourceControl
- type SystemNetworkStat
- type Target
- type TargetKindMapping
- type TargetMetric
- type TestResult
- type TestSummary
- type TimingMetric
- type UpdateEventMetadataParams
- type UpdateTestSummariesBulkParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
ID int64
Label string
Type sql.NullString
Success sql.NullBool
ExitCode sql.NullInt32
CommandLine pqtype.NullRawMessage
StartTime sql.NullTime
EndTime sql.NullTime
FailureCode sql.NullString
FailureMessage sql.NullString
StdoutHash sql.NullString
StdoutSizeBytes sql.NullInt64
StdoutHashFunction sql.NullString
StderrHash sql.NullString
StderrSizeBytes sql.NullInt64
StderrHashFunction sql.NullString
ConfigurationID int64
BazelInvocationID int64
}
type ActionCacheStatistic ¶
type ActionDatum ¶
type ActionSummary ¶
type ArtifactMetric ¶
type ArtifactMetric struct {
ID int64
SourceArtifactsReadSizeInBytes sql.NullInt64
SourceArtifactsReadCount sql.NullInt32
OutputArtifactsSeenSizeInBytes sql.NullInt64
OutputArtifactsSeenCount sql.NullInt32
OutputArtifactsFromActionCacheSizeInBytes sql.NullInt64
OutputArtifactsFromActionCacheCount sql.NullInt32
TopLevelArtifactsSizeInBytes sql.NullInt64
TopLevelArtifactsCount sql.NullInt32
MetricsArtifactMetrics sql.NullInt64
}
type AuthenticatedUser ¶
type AuthenticatedUser struct {
ID int64
UserUuid uuid.UUID
ExternalID string
DisplayName sql.NullString
UserInfo pqtype.NullRawMessage
}
type BazelInvocation ¶
type BazelInvocation struct {
ID int64
InvocationID uuid.UUID
StartedAt sql.NullTime
EndedAt sql.NullTime
ChangeNumber sql.NullInt64
PatchsetNumber sql.NullInt64
BepCompleted bool
StepLabel sql.NullString
UserEmail sql.NullString
UserLdap sql.NullString
Hostname sql.NullString
IsCiWorker sql.NullBool
NumFetches sql.NullInt64
ProfileName sql.NullString
BazelVersion sql.NullString
ExitCodeName sql.NullString
ExitCodeCode sql.NullInt32
CommandLineCommand sql.NullString
CommandLineExecutable sql.NullString
CommandLineResidual sql.NullString
CommandLine pqtype.NullRawMessage
ExplicitCommandLine pqtype.NullRawMessage
StartupOptions pqtype.NullRawMessage
ExplicitStartupOptions pqtype.NullRawMessage
ProcessedEventStarted bool
ProcessedEventBuildMetadata bool
ProcessedEventOptionsParsed bool
ProcessedEventBuildFinished bool
ProcessedEventStructuredCommandLine bool
ProcessedEventWorkspaceStatus bool
AuthenticatedUserBazelInvocations sql.NullInt64
BuildInvocations sql.NullInt64
InstanceNameBazelInvocations int64
}
type BuildGraphMetric ¶
type BuildGraphMetric struct {
ID int64
ActionLookupValueCount sql.NullInt32
ActionLookupValueCountNotIncludingAspects sql.NullInt32
ActionCount sql.NullInt32
ActionCountNotIncludingAspects sql.NullInt32
InputFileConfiguredTargetCount sql.NullInt32
OutputFileConfiguredTargetCount sql.NullInt32
OtherConfiguredTargetCount sql.NullInt32
OutputArtifactCount sql.NullInt32
PostInvocationSkyframeNodeCount sql.NullInt32
BuildGraphMetricsDirtiedValues sql.NullInt64
BuildGraphMetricsChangedValues sql.NullInt64
BuildGraphMetricsBuiltValues sql.NullInt64
BuildGraphMetricsCleanedValues sql.NullInt64
MetricsBuildGraphMetrics sql.NullInt64
}
type BuildLogChunk ¶
type Configuration ¶
type Configuration struct {
ID int64
ConfigurationID string
Mnemonic sql.NullString
PlatformName sql.NullString
Cpu sql.NullString
MakeVariables pqtype.NullRawMessage
IsTool sql.NullBool
BazelInvocationID int64
}
type ConnectionMetadatum ¶
type CreateTargetsParams ¶
type CreateTargetsRow ¶
type CreateTestResultsBulkParams ¶
type CreateTestResultsBulkParams struct {
InstanceNameID int64
Labels []string
ConfigIds []string
Runs []int32
Shards []int32
Attempts []int32
Statuses []string
StatusDetailss []string
CachedLocallys []bool
TestAttemptStarts []time.Time
TestAttemptDurations []int64
Warnings []string
Strategies []string
CachedRemotelys []bool
ExitCodes []int32
Hostnames []string
TimingBreakdowns []string
BazelInvocationID int64
}
type CumulativeMetric ¶
type EvaluationStat ¶
type EventMetadatum ¶
type FindMappedTargetsParams ¶
type FindMappedTargetsRow ¶
type FindTargetsParams ¶
type FindTargetsRow ¶
type GarbageMetric ¶
type IncompleteBuildLog ¶
type InstanceName ¶
type InvocationFile ¶
type InvocationFile struct {
ID int64
Name string
Content sql.NullString
Digest sql.NullString
SizeBytes sql.NullInt64
DigestFunction sql.NullString
BazelInvocationInvocationFiles sql.NullInt64
}
type InvocationTarget ¶
type InvocationTarget struct {
ID int64
Success bool
Tags pqtype.NullRawMessage
StartTimeInMs sql.NullInt64
EndTimeInMs sql.NullInt64
DurationInMs sql.NullInt64
FailureMessage sql.NullString
AbortReason string
BazelInvocationInvocationTargets int64
InvocationTargetConfiguration sql.NullInt64
TargetInvocationTargets int64
}
type MemoryMetric ¶
type MissDetail ¶
type NetworkMetric ¶
type PackageLoadMetric ¶
type PackageMetric ¶
type Querier ¶
type Querier interface {
//
// An idempotent function for creating bazel invocations. If the
// invocation already exists, it will return the existing id.
CreateBazelInvocation(ctx context.Context, arg CreateBazelInvocationParams) (int64, error)
CreateIncompleteBuildLogs(ctx context.Context, arg CreateIncompleteBuildLogsParams) error
//
// An idempotent function for creating an instance name. If the instance
// name already exists, it will return the existing id.
CreateInstanceName(ctx context.Context, name string) (int64, error)
CreateInvocationTargetsBulk(ctx context.Context, arg CreateInvocationTargetsBulkParams) error
CreateTargetKindMappingsBulk(ctx context.Context, arg CreateTargetKindMappingsBulkParams) error
// ORDER BY here is enforcing an insertion order for two reasons:
// 1. Prevent concurrent requests from deadlocking each other in case
// they have overlapping insertions of targets in different orders.
// 2. Explicitly collate to normalize sort order between database
// instantiations, otherwise golden file generation may have a different
// order than what's used during the test.
CreateTargets(ctx context.Context, arg CreateTargetsParams) ([]CreateTargetsRow, error)
// STAGE 2: Join the rest using the specific Target IDs we found
CreateTestResultsBulk(ctx context.Context, arg CreateTestResultsBulkParams) (int64, error)
// STAGE 2: Join the rest using the specific Target IDs we found
CreateTestSummariesBulk(ctx context.Context, arg CreateTestSummariesBulkParams) (int64, error)
FindMappedTargets(ctx context.Context, arg FindMappedTargetsParams) ([]FindMappedTargetsRow, error)
FindTargets(ctx context.Context, arg FindTargetsParams) ([]FindTargetsRow, error)
GetOrCreateEventMetadata(ctx context.Context, bazelInvocationID int64) (GetOrCreateEventMetadataRow, error)
LockBazelInvocationCompletion(ctx context.Context, id int64) (LockBazelInvocationCompletionRow, error)
UpdateCompletedInvocationWithEndTimeFromEventMetadata(ctx context.Context) (int64, error)
UpdateEventMetadata(ctx context.Context, arg UpdateEventMetadataParams) (int64, error)
UpdateTestSummariesBulk(ctx context.Context, arg UpdateTestSummariesBulkParams) (int64, error)
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateBazelInvocation ¶
func (q *Queries) CreateBazelInvocation(ctx context.Context, arg CreateBazelInvocationParams) (int64, error)
An idempotent function for creating bazel invocations. If the invocation already exists, it will return the existing id.
func (*Queries) CreateIncompleteBuildLogs ¶
func (q *Queries) CreateIncompleteBuildLogs(ctx context.Context, arg CreateIncompleteBuildLogsParams) error
func (*Queries) CreateInstanceName ¶
An idempotent function for creating an instance name. If the instance name already exists, it will return the existing id.
func (*Queries) CreateInvocationTargetsBulk ¶
func (q *Queries) CreateInvocationTargetsBulk(ctx context.Context, arg CreateInvocationTargetsBulkParams) error
func (*Queries) CreateTargetKindMappingsBulk ¶
func (q *Queries) CreateTargetKindMappingsBulk(ctx context.Context, arg CreateTargetKindMappingsBulkParams) error
func (*Queries) CreateTargets ¶
func (q *Queries) CreateTargets(ctx context.Context, arg CreateTargetsParams) ([]CreateTargetsRow, error)
ORDER BY here is enforcing an insertion order for two reasons:
- Prevent concurrent requests from deadlocking each other in case
they have overlapping insertions of targets in different orders.
- Explicitly collate to normalize sort order between database
instantiations, otherwise golden file generation may have a different order than what's used during the test.
func (*Queries) CreateTestResultsBulk ¶
func (q *Queries) CreateTestResultsBulk(ctx context.Context, arg CreateTestResultsBulkParams) (int64, error)
STAGE 2: Join the rest using the specific Target IDs we found
func (*Queries) CreateTestSummariesBulk ¶
func (q *Queries) CreateTestSummariesBulk(ctx context.Context, arg CreateTestSummariesBulkParams) (int64, error)
STAGE 2: Join the rest using the specific Target IDs we found
func (*Queries) FindMappedTargets ¶
func (q *Queries) FindMappedTargets(ctx context.Context, arg FindMappedTargetsParams) ([]FindMappedTargetsRow, error)
func (*Queries) FindTargets ¶
func (q *Queries) FindTargets(ctx context.Context, arg FindTargetsParams) ([]FindTargetsRow, error)
func (*Queries) GetOrCreateEventMetadata ¶
func (*Queries) LockBazelInvocationCompletion ¶
func (*Queries) UpdateCompletedInvocationWithEndTimeFromEventMetadata ¶
func (*Queries) UpdateEventMetadata ¶
func (*Queries) UpdateTestSummariesBulk ¶
type RunnerCount ¶
type RunnerCount struct {
ID int64
Name sql.NullString
ExecKind sql.NullString
ActionsExecuted sql.NullInt64
ActionSummaryRunnerCount sql.NullInt64
}
type SourceControl ¶
type SourceControl struct {
ID int64
Provider sql.NullString
InstanceUrl sql.NullString
Repo sql.NullString
Refs sql.NullString
CommitSha sql.NullString
Actor sql.NullString
EventName sql.NullString
Workflow sql.NullString
RunID sql.NullString
RunNumber sql.NullString
Job sql.NullString
Action sql.NullString
RunnerName sql.NullString
RunnerArch sql.NullString
RunnerOs sql.NullString
Workspace sql.NullString
BazelInvocationSourceControl sql.NullInt64
}
type SystemNetworkStat ¶
type SystemNetworkStat struct {
ID int64
BytesSent sql.NullInt64
BytesRecv sql.NullInt64
PacketsSent sql.NullInt64
PacketsRecv sql.NullInt64
PeakBytesSentPerSec sql.NullInt64
PeakBytesRecvPerSec sql.NullInt64
PeakPacketsSentPerSec sql.NullInt64
PeakPacketsRecvPerSec sql.NullInt64
NetworkMetricsSystemNetworkStats sql.NullInt64
}
type TargetKindMapping ¶
type TargetMetric ¶
type TestResult ¶
type TestResult struct {
ID int64
Run int32
Shard int32
Attempt int32
Status sql.NullString
StatusDetails sql.NullString
CachedLocally sql.NullBool
TestAttemptStart sql.NullTime
TestAttemptDurationInMs sql.NullInt64
Warning pqtype.NullRawMessage
Strategy sql.NullString
CachedRemotely sql.NullBool
ExitCode sql.NullInt32
Hostname sql.NullString
TimingBreakdown pqtype.NullRawMessage
TestSummaryTestResults int64
}
type TestSummary ¶
type TestSummary struct {
ID int64
OverallStatus sql.NullString
TotalRunCount sql.NullInt32
RunCount sql.NullInt32
AttemptCount sql.NullInt32
ShardCount sql.NullInt32
TotalNumCached sql.NullInt32
FirstStartTime sql.NullTime
LastStopTime sql.NullTime
TotalRunDurationInMs sql.NullInt64
InvocationTargetTestSummary int64
}
type TimingMetric ¶
type UpdateTestSummariesBulkParams ¶
type UpdateTestSummariesBulkParams struct {
InstanceNameID int64
Labels []string
ConfigIds []string
OverallStatuses []string
TotalRunCounts []int32
RunCounts []int32
AttemptCounts []int32
ShardCounts []int32
TotalNumCacheds []int32
StartTimes []time.Time
StopTimes []time.Time
Durations []int64
BazelInvocationID int64
}
Click to show internal directories.
Click to hide internal directories.