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 consistency issue with reading collectibles #3878

Merged
merged 4 commits into from
Feb 21, 2023

Conversation

sokra
Copy link
Member

@sokra sokra commented Feb 20, 2023

connect original task to collectibles reading to fix strongly consistency

move read collectibles tasks to task and scope instead of a separate cache

reading collectibles is no longer strongly consistent by default, it's opt-in now

connect original task to collectibles reading to fix strongly consistency

move read collectibles tasks to task and scope instead of a separate cache

reading collectibles is no longer strongly consistent by default, it's opt-in now
@vercel
Copy link

vercel bot commented Feb 20, 2023

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

Name Status Preview Comments Updated
examples-nonmonorepo 🔄 Building (Inspect) Feb 21, 2023 at 8:23AM (UTC)
examples-vite-web 🔄 Building (Inspect) Feb 21, 2023 at 8:23AM (UTC)
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 21, 2023 at 8:23AM (UTC)
7 Ignored Deployments
Name Status Preview Comments Updated
examples-basic-web ⬜️ Ignored (Inspect) Feb 21, 2023 at 8:23AM (UTC)
examples-cra-web ⬜️ Ignored (Inspect) Feb 21, 2023 at 8:23AM (UTC)
examples-designsystem-docs ⬜️ Ignored (Inspect) Feb 21, 2023 at 8:23AM (UTC)
examples-kitchensink-blog ⬜️ Ignored (Inspect) Feb 21, 2023 at 8:23AM (UTC)
examples-native-web ⬜️ Ignored (Inspect) Feb 21, 2023 at 8:23AM (UTC)
examples-svelte-web ⬜️ Ignored (Inspect) Feb 21, 2023 at 8:23AM (UTC)
examples-tailwind-web ⬜️ Ignored (Inspect) Feb 21, 2023 at 8:23AM (UTC)

@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 2023

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Turbopack Rust tests (mac/win, non-blocking)

See workflow summary for details

@github-actions
Copy link
Contributor

Benchmark for 95b72b1

Click to view benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 10.31ms ± 0.07ms 10.47ms ± 0.09ms +1.58%
bench_hmr_to_commit/Turbopack RCC/1000 modules 12.25ms ± 0.28ms 12.20ms ± 0.11ms -0.35%
bench_hmr_to_commit/Turbopack RSC/1000 modules 523.46ms ± 2.46ms 526.90ms ± 2.09ms +0.66%
bench_hmr_to_commit/Turbopack SSR/1000 modules 10.38ms ± 0.12ms 10.47ms ± 0.08ms +0.80%
bench_hmr_to_eval/Turbopack CSR/1000 modules 9374.45µs ± 94.34µs 9388.58µs ± 76.20µs +0.15%
bench_hmr_to_eval/Turbopack RCC/1000 modules 11.00ms ± 0.13ms 10.96ms ± 0.13ms -0.33%
bench_hmr_to_eval/Turbopack SSR/1000 modules 9321.70µs ± 69.79µs 9416.21µs ± 62.95µs +1.01%
bench_hydration/Turbopack RCC/1000 modules 3765.12ms ± 12.80ms 3771.59ms ± 28.49ms +0.17%
bench_hydration/Turbopack RSC/1000 modules 3445.37ms ± 9.39ms 3432.98ms ± 7.00ms -0.36%
bench_hydration/Turbopack SSR/1000 modules 3510.74ms ± 15.83ms 3498.61ms ± 9.87ms -0.35%
bench_startup/Turbopack CSR/1000 modules 2740.79ms ± 15.16ms 2727.94ms ± 7.59ms -0.47%
bench_startup/Turbopack RCC/1000 modules 2313.62ms ± 4.41ms 2335.72ms ± 8.10ms +0.96%
bench_startup/Turbopack RSC/1000 modules 2265.38ms ± 7.98ms 2252.57ms ± 7.75ms -0.57%
bench_startup/Turbopack SSR/1000 modules 2121.36ms ± 2.53ms 2128.53ms ± 3.87ms +0.34%

@github-actions
Copy link
Contributor

Benchmark for bdaf28b

Test Base PR % Significant %
bench_hydration/Turbopack RCC/1000 modules 3705.83ms ± 19.99ms 3784.51ms ± 15.17ms +2.12% +0.22%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 9964.35µs ± 73.08µs 10.04ms ± 0.05ms +0.74%
bench_hmr_to_commit/Turbopack RCC/1000 modules 11.50ms ± 0.13ms 11.75ms ± 0.12ms +2.15%
bench_hmr_to_commit/Turbopack RSC/1000 modules 514.50ms ± 1.95ms 516.00ms ± 2.40ms +0.29%
bench_hmr_to_commit/Turbopack SSR/1000 modules 9913.19µs ± 70.64µs 10.08ms ± 0.07ms +1.67%
bench_hmr_to_eval/Turbopack CSR/1000 modules 8940.76µs ± 71.08µs 9119.07µs ± 88.07µs +1.99%
bench_hmr_to_eval/Turbopack RCC/1000 modules 10.61ms ± 0.13ms 10.70ms ± 0.10ms +0.82%
bench_hmr_to_eval/Turbopack SSR/1000 modules 8980.70µs ± 74.78µs 9094.96µs ± 81.39µs +1.27%
bench_hydration/Turbopack RCC/1000 modules 3705.83ms ± 19.99ms 3784.51ms ± 15.17ms +2.12% +0.22%
bench_hydration/Turbopack RSC/1000 modules 3385.19ms ± 11.73ms 3402.77ms ± 11.01ms +0.52%
bench_hydration/Turbopack SSR/1000 modules 3442.68ms ± 12.17ms 3457.50ms ± 14.44ms +0.43%
bench_startup/Turbopack CSR/1000 modules 2693.93ms ± 8.15ms 2699.99ms ± 12.04ms +0.23%
bench_startup/Turbopack RCC/1000 modules 2282.01ms ± 3.21ms 2274.43ms ± 2.94ms -0.33%
bench_startup/Turbopack RSC/1000 modules 2222.44ms ± 3.90ms 2223.50ms ± 7.74ms +0.05%
bench_startup/Turbopack SSR/1000 modules 2099.02ms ± 2.66ms 2093.01ms ± 3.24ms -0.29%

@sokra sokra marked this pull request as ready for review February 21, 2023 10:46
@sokra sokra requested a review from a team as a code owner February 21, 2023 10:46
"Scope collectibles not correctly cleaned up: {:?}",
state.collectibles
);
// TODO read_collectibles_tasks need to be cleaned up
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a linear issue for this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sokra sokra added the pr: automerge Kodiak will merge these automatically after checks pass label Feb 21, 2023
@kodiakhq kodiakhq bot merged commit 22b056e into main Feb 21, 2023
@kodiakhq kodiakhq bot deleted the sokra/web-612-fix-consistency-issue-with-collectibles branch February 21, 2023 12:56
sokra added a commit to vercel/next.js that referenced this pull request Feb 21, 2023
# Performance Improvements

* improve performance of TaskScopes and collectibes ([#3849](https://github.com/vercel/turbo/pull3849/))
* fix consistency issue with reading collectibles ([#3878](vercel/turborepo#3878))
* change to NoHashHasher for ID keys ([#3864](https://github.com/vercel/turbo/pull3864/))

# Bug Fixes

* strip UNC prefix on windows paths ([#3847](https://github.com/vercel/turbo/pull3847/))
* make error overlay message scrollable ([#3861](vercel/turborepo#3861))
* alias @swc/helpers to the version within next.js ([#3865](https://github.com/vercel/turbo/pull3865/))
* add possible unknown mutation to objects and arrays ([#3882](vercel/turborepo#3882))

# Contributing

* Update profiling instructions for macOS ([#3837](https://github.com/vercel/turbo/pull3837/))
ijjk pushed a commit to vercel/next.js that referenced this pull request Feb 21, 2023
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 25, 2024
connect original task to collectibles reading to fix strongly consistency

move read collectibles tasks to task and scope instead of a separate cache

reading collectibles is no longer strongly consistent by default, it's opt-in now
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
connect original task to collectibles reading to fix strongly consistency

move read collectibles tasks to task and scope instead of a separate cache

reading collectibles is no longer strongly consistent by default, it's opt-in now
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 1, 2024
connect original task to collectibles reading to fix strongly consistency

move read collectibles tasks to task and scope instead of a separate cache

reading collectibles is no longer strongly consistent by default, it's opt-in now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: automerge Kodiak will merge these automatically after checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants