Skip to content

ci: Export GitHub Actions Workflows traces to Honeycomb.io - #6492

Merged
gerhard merged 2 commits into
mainfrom
trace-ci-jobs
Jan 25, 2024
Merged

gerhard merged 2 commits into
mainfrom
trace-ci-jobs

Conversation

@gerhard

@gerhard gerhard commented Jan 24, 2024 •

Copy link
Copy Markdown
Contributor

The goal is for us to better understand where our workflows spend time, including:

  • How long are jobs waiting for available runners?
  • How long do steps before & after Dagger take?
  • How do we check that Dagger Cloud reporting is accurate?

The last one is especially important to me since it's directly related to always run 2 of everything, where Dagger Cloud is 1/2, and this would be 2/2 (a check for the check).

Without this addition, it's very difficult to know where our workflows as a whole spend most time, and therefore where we should focus our next optimisations.


Having wired this up in my fork - a new workflow needs to run on the default repo branch before it gets recognised - this is what the end-result looks like:

image

This is the view that I really wanted us to have:
image


I wanted this view for so long, and now finally have it! Note, this is using the free runners. Once we merge it, we will see how our dagger-runners compare:
image


There are bunch more things that will stem out of this, but for now this gives us everything that we need to better understand the health of our GitHub Actions workflows.

Follow-ups:

@gerhard
gerhard force-pushed the trace-ci-jobs branch 2 times, most recently from fd79272 to dd6d7fa Compare January 24, 2024 18:32
@gerhard
gerhard marked this pull request as ready for review January 24, 2024 19:01
Comment thread .github/workflows/publish.yml Outdated

- name: "ALWAYS print engine logs - especially useful on failure"
if: always()
- name: "Print Engine logs on failure"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

IMO, we should keep these to always if we can.

I've found it really useful to go back through old successful runs and compare logs to new failing runs.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

OK, will change this before merging.

@jedevc jedevc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎉 this looks awesome! Just one small comment!

@gerhard

gerhard commented Jan 25, 2024

Copy link
Copy Markdown
Contributor Author

Thank you for the review & 👍

Will change back to always() before merging.

Gerhard Lazu added 2 commits January 25, 2024 18:09
Signed-off-by: Gerhard Lazu <[email protected]>
The goal is for us to better understand where our workflows spend time, including:
- How long are jobs waiting for available runners?
- How long do steps before & after Dagger take?
- How do we check that Dagger Cloud reporting is accurate?

The last one is especially important to me since it's directly related
to **always run 2 of everything**, where Dagger Cloud is 1/2, and this
would be 2/2 (a check for the check).

Without this addition, it's very difficult to know where our workflows
as a whole spend most time, and therefore where we should focus our next
optimisations.

Signed-off-by: Gerhard Lazu <[email protected]>
@gerhard

gerhard commented Jan 25, 2024

Copy link
Copy Markdown
Contributor Author

I dropped the commit which changed always()

Waiting for all checks to pass before merging this.

@gerhard
gerhard merged commit bfac941 into main Jan 25, 2024
@gerhard
gerhard deleted the trace-ci-jobs branch January 25, 2024 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants