Skip to content

Commit 9456b34

Browse files
committed
Update owner name
1 parent 40ff027 commit 9456b34

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tools/flakeguard/reports/owner_mapper.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ func MapTestResultsToOwners(report *TestReport, codeOwnersPath string) error {
1313
// Assign owners to each test result
1414
for i, result := range report.Results {
1515
if result.TestPath != "NOT FOUND" {
16-
report.Results[i].TestOwners = codeowners.FindOwners(result.TestPath, codeOwnerPatterns)
16+
report.Results[i].CodeOwners = codeowners.FindOwners(result.TestPath, codeOwnerPatterns)
1717
} else {
1818
// Mark owners as unknown for unmapped tests
19-
report.Results[i].TestOwners = []string{"UNKNOWN"}
19+
report.Results[i].CodeOwners = []string{"UNKNOWN"}
2020
}
2121
}
2222

tools/flakeguard/reports/reports.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type TestResult struct {
4444
Durations []time.Duration // Stores elapsed time for each run of the test
4545
PackageOutputs []string `json:"package_outputs,omitempty"` // Stores package-level outputs
4646
TestPath string // Path to the test file
47-
TestOwners []string // Owners of the test
47+
CodeOwners []string // Owners of the test
4848
}
4949

5050
// FilterFailedTests returns a slice of TestResult where the pass ratio is below the specified threshold.
@@ -210,16 +210,16 @@ func PrintTests(
210210
"**Package**",
211211
"**Package Panicked?**",
212212
"**Avg Duration**",
213-
"**Test Owners**",
213+
"**Code Owners**",
214214
}
215215

216216
// Build test rows and summary data
217217
rows := [][]string{}
218218
for _, test := range tests {
219219
if test.PassRatio < maxPassRatio {
220220
owners := "None"
221-
if len(test.TestOwners) > 0 {
222-
owners = strings.Join(test.TestOwners, ", ")
221+
if len(test.CodeOwners) > 0 {
222+
owners = strings.Join(test.CodeOwners, ", ")
223223
}
224224

225225
rows = append(rows, []string{

0 commit comments

Comments
 (0)