INNER CODE UNIT · Go
gitHeadSHA
redpanda-data/connect · benchmarking/aws/runner/main.go:781
func gitHeadSHA() string {
out, err := exec.Command("git", "rev-parse", "HEAD").Output()
if err != nil {
return ""
}
return strings.TrimSpace(string(out))
}
// buildSoakIndexEntry computes the small per-run record uploadSoakResult
// archives under soak-index/<scenario>/ from sessionID, the scenario, and
// its Result — pure, so both uploadSoakResult and the rolling-baseline
// comparator's caller (see runBench) can build the SAME entry without a
// round trip through S3.
//
// A soak scenario is validated (see Scenario.Validate) to have exactly one
// cpu_points entry and engines=connect, so result.Points has exactly one
// element in the success path — but this degrades to zero values rather
// than panicking if that ever changes.