Skip to content

Commit

Permalink
save hostname to db
Browse files Browse the repository at this point in the history
  • Loading branch information
Trey Ivy committed Nov 20, 2024
1 parent 41bb280 commit a7bb26e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/processing/save.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,12 @@ func (act SaveActor) saveBazelInvocation(
SetBepCompleted(summary.BEPCompleted).
SetStepLabel(summary.StepLabel).
SetUserEmail(summary.UserEmail).
SetUserLdap(summary.UserLDAP).
SetCPU(summary.CPU).
SetConfigurationMnemonic(summary.ConfigrationMnemonic).
SetPlatformName(summary.PlatformName).
SetNumFetches(summary.NumFetches).
SetUserLdap(summary.UserLDAP).
SetHostname(summary.Hostname).
SetRelatedFiles(summary.RelatedFiles)

if eventFile != nil {
Expand Down
3 changes: 3 additions & 0 deletions pkg/summary/summarizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,9 @@ func (s Summarizer) handleBuildMetadata(metadataProto *bes.BuildMetadata) {
s.summary.IsCiWorker = true
}
}
if hostnameVal, ok := metadataMap[hostnameKey]; ok {
s.summary.Hostname = hostnameVal
}
}

// handleBuildMetrics
Expand Down

0 comments on commit a7bb26e

Please sign in to comment.