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

include omit entries in hash #3552

Merged
merged 4 commits into from
Feb 1, 2023
Merged

include omit entries in hash #3552

merged 4 commits into from
Feb 1, 2023

Conversation

sokra
Copy link
Member

@sokra sokra commented Jan 31, 2023

The omit entries need to be included into chunk hashing to avoid conflicting filenames when only omit entries differ

@sokra sokra requested a review from a team as a code owner January 31, 2023 17:31
@vercel
Copy link

vercel bot commented Jan 31, 2023

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

10 Ignored Deployments
Name Status Preview Comments Updated
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Feb 1, 2023 at 3:10PM (UTC)
examples-cra-web ⬜️ Ignored (Inspect) Visit Preview Feb 1, 2023 at 3:10PM (UTC)
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Feb 1, 2023 at 3:10PM (UTC)
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Feb 1, 2023 at 3:10PM (UTC)
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Feb 1, 2023 at 3:10PM (UTC)
examples-nonmonorepo ⬜️ Ignored (Inspect) Visit Preview Feb 1, 2023 at 3:10PM (UTC)
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Feb 1, 2023 at 3:10PM (UTC)
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Feb 1, 2023 at 3:10PM (UTC)
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Feb 1, 2023 at 3:10PM (UTC)
turbo-site ⬜️ Ignored (Inspect) Visit Preview Feb 1, 2023 at 3:10PM (UTC)

@@ -977,6 +977,8 @@ impl Asset for EcmascriptChunk {
hasher.write_value(id.await?);
need_hash = true;
}
// Marker to end evaluate
hasher.write_value(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this have written a length header instead of a bool footer?

Copy link
Contributor

Choose a reason for hiding this comment

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

Both evaluate and omit could write length headers (or 0 when N/A).

@github-actions
Copy link
Contributor

Benchmark for 29569da

Test Base PR % Significant %
bench_startup/Turbopack RCC/1000 modules 2579.51ms ± 20.70ms 2654.67ms ± 11.29ms +2.91% +0.43%
bench_startup/Turbopack RSC/1000 modules 2552.54ms ± 9.86ms 2485.16ms ± 9.57ms -2.64% -1.13%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 9263.17µs ± 121.09µs 9498.21µs ± 139.73µs +2.54%
bench_hmr_to_commit/Turbopack RCC/1000 modules 9637.96µs ± 85.39µs 9571.73µs ± 103.94µs -0.69%
bench_hmr_to_commit/Turbopack RSC/1000 modules 473.96ms ± 2.19ms 474.05ms ± 1.97ms +0.02%
bench_hmr_to_commit/Turbopack SSR/1000 modules 9679.28µs ± 99.58µs 9548.11µs ± 107.09µs -1.36%
bench_hmr_to_eval/Turbopack CSR/1000 modules 8852.64µs ± 114.06µs 9130.23µs ± 116.29µs +3.14%
bench_hmr_to_eval/Turbopack RCC/1000 modules 8837.85µs ± 60.61µs 8607.19µs ± 131.32µs -2.61%
bench_hmr_to_eval/Turbopack SSR/1000 modules 8770.03µs ± 66.82µs 8999.03µs ± 86.76µs +2.61%
bench_hydration/Turbopack RCC/1000 modules 3747.76ms ± 12.58ms 3746.33ms ± 9.17ms -0.04%
bench_hydration/Turbopack RSC/1000 modules 3281.69ms ± 10.10ms 3268.72ms ± 12.03ms -0.40%
bench_hydration/Turbopack SSR/1000 modules 3077.86ms ± 16.18ms 3074.06ms ± 10.99ms -0.12%
bench_startup/Turbopack CSR/1000 modules 2045.91ms ± 12.53ms 2038.15ms ± 8.16ms -0.38%
bench_startup/Turbopack RCC/1000 modules 2579.51ms ± 20.70ms 2654.67ms ± 11.29ms +2.91% +0.43%
bench_startup/Turbopack RSC/1000 modules 2552.54ms ± 9.86ms 2485.16ms ± 9.57ms -2.64% -1.13%
bench_startup/Turbopack SSR/1000 modules 2045.34ms ± 9.15ms 2044.01ms ± 7.77ms -0.07%

@github-actions
Copy link
Contributor

github-actions bot commented Jan 31, 2023

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Rust tests
  • Rust benchmark tests

See workflow summary for details

@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2023

Benchmark for 4f716e0

Test Base PR % Significant %
bench_startup/Turbopack SSR/1000 modules 2005.30ms ± 5.51ms 2038.42ms ± 5.29ms +1.65% +0.57%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 9145.20µs ± 55.03µs 9106.90µs ± 71.21µs -0.42%
bench_hmr_to_commit/Turbopack RCC/1000 modules 9566.26µs ± 111.47µs 9611.21µs ± 71.08µs +0.47%
bench_hmr_to_commit/Turbopack RSC/1000 modules 495.92ms ± 3.65ms 494.71ms ± 3.22ms -0.24%
bench_hmr_to_commit/Turbopack SSR/1000 modules 9485.85µs ± 110.42µs 9411.65µs ± 73.48µs -0.78%
bench_hmr_to_eval/Turbopack CSR/1000 modules 8334.29µs ± 80.38µs 8234.72µs ± 65.87µs -1.19%
bench_hmr_to_eval/Turbopack RCC/1000 modules 8460.13µs ± 56.79µs 8397.84µs ± 74.59µs -0.74%
bench_hmr_to_eval/Turbopack SSR/1000 modules 8440.77µs ± 94.17µs 8582.50µs ± 55.90µs +1.68%
bench_hydration/Turbopack RCC/1000 modules 3755.56ms ± 9.27ms 3749.84ms ± 6.83ms -0.15%
bench_hydration/Turbopack RSC/1000 modules 3286.09ms ± 8.53ms 3253.33ms ± 8.88ms -1.00%
bench_hydration/Turbopack SSR/1000 modules 3065.63ms ± 12.46ms 3061.81ms ± 6.74ms -0.12%
bench_startup/Turbopack CSR/1000 modules 2068.23ms ± 6.90ms 2011.78ms ± 22.31ms -2.73%
bench_startup/Turbopack RCC/1000 modules 2480.43ms ± 9.28ms 2485.09ms ± 9.31ms +0.19%
bench_startup/Turbopack RSC/1000 modules 2386.52ms ± 7.45ms 2376.38ms ± 4.88ms -0.42%
bench_startup/Turbopack SSR/1000 modules 2005.30ms ± 5.51ms 2038.42ms ± 5.29ms +1.65% +0.57%

@sokra sokra added the pr: automerge Kodiak will merge these automatically after checks pass label Feb 1, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2023

Benchmark for f00ca10

Test Base PR % Significant %
bench_hydration/Turbopack RCC/1000 modules 3771.48ms ± 9.71ms 3817.16ms ± 10.56ms +1.21% +0.14%
bench_startup/Turbopack SSR/1000 modules 2040.41ms ± 4.80ms 2020.16ms ± 4.17ms -0.99% -0.11%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 9552.98µs ± 59.10µs 9710.83µs ± 95.27µs +1.65%
bench_hmr_to_commit/Turbopack RCC/1000 modules 9983.45µs ± 71.22µs 10.05ms ± 0.07ms +0.62%
bench_hmr_to_commit/Turbopack RSC/1000 modules 488.63ms ± 1.23ms 483.14ms ± 2.05ms -1.12%
bench_hmr_to_commit/Turbopack SSR/1000 modules 9850.29µs ± 74.12µs 9869.18µs ± 63.45µs +0.19%
bench_hmr_to_eval/Turbopack CSR/1000 modules 8680.85µs ± 62.93µs 8519.30µs ± 101.45µs -1.86%
bench_hmr_to_eval/Turbopack RCC/1000 modules 8885.44µs ± 108.40µs 8863.89µs ± 78.18µs -0.24%
bench_hmr_to_eval/Turbopack SSR/1000 modules 8854.39µs ± 72.25µs 8892.87µs ± 113.50µs +0.43%
bench_hydration/Turbopack RCC/1000 modules 3771.48ms ± 9.71ms 3817.16ms ± 10.56ms +1.21% +0.14%
bench_hydration/Turbopack RSC/1000 modules 3316.53ms ± 11.20ms 3341.06ms ± 11.47ms +0.74%
bench_hydration/Turbopack SSR/1000 modules 3084.55ms ± 15.61ms 3080.99ms ± 10.26ms -0.12%
bench_startup/Turbopack CSR/1000 modules 2060.74ms ± 10.46ms 2059.91ms ± 18.48ms -0.04%
bench_startup/Turbopack RCC/1000 modules 2497.19ms ± 6.45ms 2510.03ms ± 9.72ms +0.51%
bench_startup/Turbopack RSC/1000 modules 2417.84ms ± 10.91ms 2407.36ms ± 4.77ms -0.43%
bench_startup/Turbopack SSR/1000 modules 2040.41ms ± 4.80ms 2020.16ms ± 4.17ms -0.99% -0.11%

@sokra sokra merged commit 4aad1d0 into main Feb 1, 2023
@sokra sokra deleted the sokra/fix-chunk-hashing branch February 1, 2023 16:51
mehulkar pushed a commit that referenced this pull request Feb 1, 2023
The omit entries need to be included into chunk hashing to avoid
conflicting filenames when only omit entries differ
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.

None yet

3 participants