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

fix: properly propigate internal errors #8113

Merged
merged 2 commits into from
May 8, 2024

Conversation

chris-olszewski
Copy link
Contributor

@chris-olszewski chris-olszewski commented May 8, 2024

Description

I believe this addresses JavaScriptBach's issue in #8088

We weren't properly propagating unrecoverable errors to turbo's exit code. So things like writing a log file failing could cause a zero exit code even though turbo had a failure that left us in a bad state. This PR now propigates internal errors up to the run command so it will have a non-zero exit when these are encountered.

Testing Instructions

Force an internal failure like making a log file owned by root

Before
Screenshot 2024-05-08 at 11 45 19 AM
(Note exit code and the fact that run summary is displayed)

After

Screenshot 2024-05-08 at 11 39 52 AM

(Note the non-zero exit code)

Closes TURBO-3034

Copy link

vercel bot commented May 8, 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 May 8, 2024 6:50pm
examples-vite-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback May 8, 2024 6:50pm
rust-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2024 6:50pm
7 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview May 8, 2024 6:50pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview May 8, 2024 6:50pm
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview May 8, 2024 6:50pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview May 8, 2024 6:50pm
examples-native-web ⬜️ Ignored (Inspect) Visit Preview May 8, 2024 6:50pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview May 8, 2024 6:50pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview May 8, 2024 6:50pm

Copy link
Contributor

github-actions bot commented May 8, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

github-actions bot commented May 8, 2024

🟢 CI successful 🟢

Thanks

@chris-olszewski chris-olszewski merged commit 2ce4f75 into main May 8, 2024
56 checks passed
@chris-olszewski chris-olszewski deleted the olszewski/fix_log_internal_errors branch May 8, 2024 19:30
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.

None yet

2 participants