Return a unique build result title per result

This commit is contained in:
Graham Christensen 2019-01-24 14:39:37 -05:00
parent 0d286dea6a
commit a49060133d
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -136,7 +136,7 @@ fn result_to_check(result: &LegacyBuildResult, timestamp: DateTime<Utc>) -> Chec
images: None, images: None,
summary: summary.join("\n"), summary: summary.join("\n"),
text: Some(text), text: Some(text),
title: "Build Results".to_string(), title: result.status.clone().into(),
}), }),
status: Some(CheckRunState::Completed), status: Some(CheckRunState::Completed),
} }
@ -651,7 +651,7 @@ No partial log is available.
external_id: Some("neatattemptid".to_string()), external_id: Some("neatattemptid".to_string()),
head_sha: "abc123".to_string(), head_sha: "abc123".to_string(),
output: Some(Output { output: Some(Output {
title: "Build Results".to_string(), title: "Success".to_string(),
summary: "Attempted: foo summary: "Attempted: foo
The following builds were skipped because they don't evaluate on x86_64-linux: bar The following builds were skipped because they don't evaluate on x86_64-linux: bar
@ -733,7 +733,7 @@ patching script interpreter paths in /nix/store/pcja75y9isdvgz5i00pkrpif9rxzxc29
external_id: Some("neatattemptid".to_string()), external_id: Some("neatattemptid".to_string()),
head_sha: "abc123".to_string(), head_sha: "abc123".to_string(),
output: Some(Output { output: Some(Output {
title: "Build Results".to_string(), title: "Failure".to_string(),
summary: "Attempted: foo summary: "Attempted: foo
" "
.to_string(), .to_string(),
@ -812,7 +812,7 @@ patching script interpreter paths in /nix/store/pcja75y9isdvgz5i00pkrpif9rxzxc29
external_id: Some("neatattemptid".to_string()), external_id: Some("neatattemptid".to_string()),
head_sha: "abc123".to_string(), head_sha: "abc123".to_string(),
output: Some(Output { output: Some(Output {
title: "Build Results".to_string(), title: "Timed out, unknown build status".to_string(),
summary: "Attempted: foo summary: "Attempted: foo
Build timed out." Build timed out."
@ -892,7 +892,7 @@ error: build of '/nix/store/l1limh50lx2cx45yb2gqpv7k8xl1mik2-gdb-8.1.drv' failed
external_id: Some("neatattemptid".to_string()), external_id: Some("neatattemptid".to_string()),
head_sha: "abc123".to_string(), head_sha: "abc123".to_string(),
output: Some(Output { output: Some(Output {
title: "Build Results".to_string(), title: "Success".to_string(),
summary: "".to_string(), summary: "".to_string(),
text: Some( text: Some(
"## Partial log "## Partial log
@ -970,7 +970,7 @@ patching script interpreter paths in /nix/store/pcja75y9isdvgz5i00pkrpif9rxzxc29
external_id: Some("neatattemptid".to_string()), external_id: Some("neatattemptid".to_string()),
head_sha: "abc123".to_string(), head_sha: "abc123".to_string(),
output: Some(Output { output: Some(Output {
title: "Build Results".to_string(), title: "Failure".to_string(),
summary: "".to_string(), summary: "".to_string(),
text: Some( text: Some(
"## Partial log "## Partial log
@ -1034,7 +1034,7 @@ patching script interpreter paths in /nix/store/pcja75y9isdvgz5i00pkrpif9rxzxc29
external_id: Some("neatattemptid".to_string()), external_id: Some("neatattemptid".to_string()),
head_sha: "abc123".to_string(), head_sha: "abc123".to_string(),
output: Some(Output { output: Some(Output {
title: "Build Results".to_string(), title: "No attempt".to_string(),
summary: "The following builds were skipped because they don\'t evaluate on x86_64-linux: not-attempted summary: "The following builds were skipped because they don\'t evaluate on x86_64-linux: not-attempted
".to_string(), ".to_string(),
text: Some("## Partial log text: Some("## Partial log
@ -1087,7 +1087,7 @@ foo
external_id: Some("neatattemptid".to_string()), external_id: Some("neatattemptid".to_string()),
head_sha: "abc123".to_string(), head_sha: "abc123".to_string(),
output: Some(Output { output: Some(Output {
title: "Build Results".to_string(), title: "No attempt".to_string(),
summary: "The following builds were skipped because they don\'t evaluate on x86_64-linux: not-attempted summary: "The following builds were skipped because they don\'t evaluate on x86_64-linux: not-attempted
".to_string(), ".to_string(),
text: Some("No partial log is available.".to_string()), text: Some("No partial log is available.".to_string()),