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 4 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 (though there aren't logs printing).

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-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2024 5:24am
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2024 5:24am
examples-gatsby-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2024 5:24am
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2024 5:24am
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2024 5:24am
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2024 5:24am
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2024 5:24am
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2024 5:24am
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2024 5:24am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
rust-docs ⬜️ Ignored (Inspect) Visit Preview Nov 22, 2024 5:24am

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants