Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(logging): Improved logs when using errors-only. #8889

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

anthonyshew
Copy link
Contributor

@anthonyshew anthonyshew commented Jul 31, 2024

Question: Will this create log groups in CI that previously didn't exist? Leaving as draft until I learn more on this (and if the team thinks this is a good change).

Description

Previously, errors-only wouldn't log anything on a successful task. Your tasks would be running, but turbo appeared to be hanging. The task would only print the "leader log" that its running when it errors so you'd get no visual feedback that it even started.

With a few more thoughtful logs, we can make it more clear that your tasks are currently running in a successful state.

Considerations

This is a bit of a spiritual departure from truly being logging with strictly only errors but I'm of the opinion that the trade is worth it after reading #4042. I've also played with this in a few larger repos to find out how it feels and I'm finding it to be an improvement (though I'm open to feedback otherwise!)

Testing Instructions

👀

Screenshots

Note that these screenshots don't show the timing of the logs well. You'd previously only get the log that the task was happening after it already errored but now it shows when the task starts.

  • Mix of cache misses and hits
    CleanShot 2024-07-30 at 23 11 29

  • All successful hits
    CleanShot 2024-07-30 at 23 14 42

  • With cache disabled and failures
    CleanShot 2024-07-30 at 23 12 13

  • With cache disabled and successes
    CleanShot 2024-07-30 at 23 13 57

Copy link

vercel bot commented Jul 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 31, 2024 5:34am
9 Skipped Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Jul 31, 2024 5:34am
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Jul 31, 2024 5:34am
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Jul 31, 2024 5:34am
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Jul 31, 2024 5:34am
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Jul 31, 2024 5:34am
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Jul 31, 2024 5:34am
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Jul 31, 2024 5:34am
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Jul 31, 2024 5:34am
rust-docs ⬜️ Ignored (Inspect) Visit Preview Jul 31, 2024 5:34am

Copy link
Contributor

github-actions bot commented Jul 31, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

github-actions bot commented Jul 31, 2024

🟢 CI successful 🟢

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant