Report correction repair operations and outcomes
This commit is contained in:
@@ -53,6 +53,16 @@ func Markdown(snapshot Snapshot, secrets ...string) []byte {
|
||||
fmt.Fprintln(&b)
|
||||
writeMatrix(&b, snapshot, r, true)
|
||||
fmt.Fprintln(&b)
|
||||
if len(snapshot.RepairOutcomes) > 0 {
|
||||
fmt.Fprintln(&b, "## Correction repair")
|
||||
fmt.Fprintln(&b)
|
||||
fmt.Fprintln(&b, "| Stage | Chunk | Proposal index | Attempts | Outcome |")
|
||||
fmt.Fprintln(&b, "| ---: | ---: | ---: | ---: | --- |")
|
||||
for _, row := range snapshot.RepairOutcomes {
|
||||
fmt.Fprintf(&b, "| %d | %d | %d | %d | %s |\n", row.StageIndex+1, row.ChunkIndex+1, row.ProposalIndex, row.Attempts, safe(row.Outcome))
|
||||
}
|
||||
fmt.Fprintln(&b)
|
||||
}
|
||||
fmt.Fprintln(&b, "Legend: `—` = not started; `n*` = interrupted with n recorded errors or recoveries. Completed error cells are 0 or 1.")
|
||||
fmt.Fprintln(&b)
|
||||
writeReasons(&b, "Error reasons", errorReasons(snapshot.Errors), safe)
|
||||
|
||||
Reference in New Issue
Block a user