buildkitereporter: add owner to annotations#76
Conversation
|
|
||
| for _, task := range failedTasks { | ||
| if task.Owner != "" { | ||
| fmt.Fprintf(&buf, "Owner: %s\n", task.Owner) |
There was a problem hiding this comment.
This is great. It would be so nice if we could include a link to the Slack ask channel.
There was a problem hiding this comment.
Agreed - unsure if we want to keep adding attributes to these tasks with say, a link to reach the owner, or if we want to encourage teams to include their communication details in the owner string? hard to say since I think it's a bit unknown how others pulling in Taskrunner use it.
| if task.Owner != "" { | ||
| fmt.Fprintf(&buf, "Owner: %s\n", task.Owner) | ||
| } | ||
| fmt.Fprintf(&buf, "<details><summary><code>%s</code></summary>\n<pre>", task.Name) |
There was a problem hiding this comment.
minor: In the interest of hopefully making it a bit clearer what the "owner" actually owns, I'd suggest something like:
ownerMsg := ""
if task.Owner != "" {
ownerMsg = " (task owner: " + task.Owner + ")"
}
fmt.Fprintf(&buf, "<details><summary><code>%s</code>%s</summary>\n<pre>", task.Name, ownerMsg)
There was a problem hiding this comment.
Task owner makes sense! I'll update. Do you prefer the owner message below the code summary then?
There was a problem hiding this comment.
I had thought to put it inside the summary, but come to think of it, maybe it does make more sense to put it below the summary, so that you see it when you expand? (Not sure.)
There was a problem hiding this comment.
I think I like it out of the summary just so it's easy to discern amongst the actual log output - but below makes sense, you should be able to see it both when the summary is expanded and not expanded. Will update!
2d93fc2 to
0c4f703
Compare
Pull Request Test Coverage Report for Build 15310622079Details
💛 - Coveralls |
0c4f703 to
ba1bf47
Compare
Now that we have added optional owners to Taskrunner tasks, in the event a task fails in a Buildkite workflow, this will include the owner in the resulting annotation.
ba1bf47 to
a761df5
Compare
Now that we have added optional owners to Taskrunner tasks, in the event a task fails in a Buildkite workflow, this will include the owner in the resulting annotation.
Example:

Above task has an owner, task below does not
Update to put owner below summary:
![Uploading Screenshot 2025-05-28 at 2.03.51 PM.png…]()