Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

ci: annotate Honeycomb events with buildkite metadata #38641

Merged
merged 1 commit into from
Jul 12, 2022

Conversation

jhchabran
Copy link
Contributor

@jhchabran jhchabran commented Jul 12, 2022

This morning, we had a quick sync with @valerybugakov to explore the dataset from Buildkite to showcase the improvement led by the efforts in #37616.

Trying to narrow down the exact steps that were covered by the efforts led to the creation of a derived field, because the step spans have no status attribute, so the only way to get the failures is to look at the cmd spans. But those have no step key attribute, so it's quite inconvenient.

In the end, what we did was to create a derived field, so we could work with the existing dataset.

CleanShot 2022-07-12 at 14 00 17@2x

➡️ Nevertheless, this is not very practical and prevents to create better graphs. Buildevents has a way of adding other attributes, through the BUILDEVENT_FILE=path/logfmtlikeattributes env var.

This PR adds a bunch of additional metadata on all spans sent by Buildkite during jobs execution. See the buildevent_file for the full list. As the pricing is just based on the events count, we're fine having a bit more than what we need.

Were we to attempt at creating the same graphs in the future, that would be much simpler and reliable than trying to identify who is owning what solely on the command that was run.

Test plan

Got our new attributes buildkite.* in the trace created by this build:

CleanShot 2022-07-12 at 13 50 58@2x

@cla-bot cla-bot bot added the cla-signed label Jul 12, 2022
@jhchabran jhchabran requested a review from a team July 12, 2022 11:59
@sourcegraph-bot
Copy link
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff 85b85e7...d8f39c1.

Notify File(s)
@bobheadxi enterprise/dev/ci/scripts/buildevent_file

@sourcegraph-bot
Copy link
Contributor

Codenotify: Notifying subscribers in OWNERS files for diff 85b85e7...d8f39c1.

Notify File(s)
@sourcegraph/dev-experience enterprise/dev/ci/scripts/buildevent_file

Copy link
Contributor

@burmudar burmudar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks cool!

@jhchabran jhchabran merged commit f851841 into main Jul 12, 2022
@jhchabran jhchabran deleted the devx/add-more-fields-to-honeycomb-ci-events branch July 12, 2022 13:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants