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

Turbo tasks: Reuse aggregation context and apply queued updates #7847

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

wbinnssmith
Copy link
Member

@wbinnssmith wbinnssmith commented Mar 26, 2024

This resolves an issue that caused Turbopack to panic with

panic!("TaskAggregationContext dropped without notifying all tasks");

When marking a task dirty:

  • Reuse the aggregation context instead of creating
  • Apply queued updates

Closes PACK-2846

This resolves an issue that caused Turbopack to panic with https://github.com/vercel/turbo/blob/04e2a9f0cb9439913975a325ce3eb59b46380ff8/crates/turbo-tasks-memory/src/task/aggregation.rs#L211

When marking a task dirty:
- Reuse the aggregation context instead of creating
- Apply queued updates
Copy link

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

@wbinnssmith wbinnssmith requested a review from sokra March 26, 2024 20:37
Copy link
Contributor

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

✅ This change can build next-swc

Copy link
Contributor

github-actions bot commented Mar 26, 2024

🟢 CI successful 🟢

Thanks

@wbinnssmith wbinnssmith merged commit 5f0cd3e into main Mar 26, 2024
47 checks passed
@wbinnssmith wbinnssmith deleted the wbinnssmith/reuse-aggregation-apply branch March 26, 2024 21:18
timneutkens pushed a commit to vercel/next.js that referenced this pull request Mar 27, 2024
* vercel/turbo#7797 <!-- Tobias Koppers - fix
externals in side-effect optimized modules -->
* vercel/turbo#7830 <!-- Tobias Koppers - Avoid
showing import map description in resolving issue when there is no
import map mapping -->
* vercel/turbo#7833 <!-- Tobias Koppers - add
next.js trace format -->
* vercel/turbo#7835 <!-- Tobias Koppers -
correct global start by first start time -->
* vercel/turbo#7812 <!-- Will Binns-Smith -
Turbopack docs: Fix broken webpack loaders link -->
* vercel/turbo#7847 <!-- Will Binns-Smith -
Turbo tasks: Reuse aggregation context and apply queued updates -->
* vercel/turbo#7840 <!-- Tobias Koppers - add
concurrency corrected duration -->
* vercel/turbo#7854 <!-- Tobias Koppers - fix
size_hint on count hash set -->
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