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

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.

2 participants