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

allow hmr tests to correctly detect hmr event #5469

Merged
merged 1 commit into from
Jul 6, 2023
Merged

Conversation

sokra
Copy link
Member

@sokra sokra commented Jul 6, 2023

Description

This currently makes some hmr test flaky or broken

@sokra sokra requested a review from a team as a code owner July 6, 2023 10:33
@vercel
Copy link

vercel bot commented Jul 6, 2023

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

Name Status Preview Comments Updated (UTC)
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 6, 2023 10:34am
10 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Jul 6, 2023 10:34am
examples-cra-web ⬜️ Ignored (Inspect) Jul 6, 2023 10:34am
examples-designsystem-docs ⬜️ Ignored (Inspect) Jul 6, 2023 10:34am
examples-gatsby-web ⬜️ Ignored (Inspect) Jul 6, 2023 10:34am
examples-kitchensink-blog ⬜️ Ignored (Inspect) Jul 6, 2023 10:34am
examples-native-web ⬜️ Ignored (Inspect) Jul 6, 2023 10:34am
examples-nonmonorepo ⬜️ Ignored (Inspect) Jul 6, 2023 10:34am
examples-svelte-web ⬜️ Ignored (Inspect) Jul 6, 2023 10:34am
examples-tailwind-web ⬜️ Ignored (Inspect) Jul 6, 2023 10:34am
examples-vite-web ⬜️ Ignored (Inspect) Jul 6, 2023 10:34am

@github-actions
Copy link
Contributor

github-actions bot commented Jul 6, 2023

⚠️ This change may fail to build next-swc.

Logs

packages/next-swc/crates/next-build/src/next_pages/node_context.rs:98:29: �[38;5;9merror[E0599]: no method named `generate_exported_chunk` found for struct `BuildChunkingContextVc` in the current scope
error: could not compile `next-build` (lib) due to previous error

See job summary for details

@github-actions
Copy link
Contributor

github-actions bot commented Jul 6, 2023

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Turbopack Rust tests (linux)
  • Turbopack Rust tests (mac/win, non-blocking)
  • Turbopack Typescript checks
  • Turbopack Rust benchmark tests (linux)
  • Turbopack Rust benchmark tests (mac/win, non-blocking)
  • Formatting

See workflow summary for details

@sokra sokra merged commit ab72398 into main Jul 6, 2023
34 of 45 checks passed
@sokra sokra deleted the sokra/next-tests-hmr branch July 6, 2023 10:48
@github-actions
Copy link
Contributor

github-actions bot commented Jul 6, 2023

Linux Benchmark for 338933f

Click to view benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 6152.50µs ± 46.21µs 6024.91µs ± 37.55µs -2.07%
bench_hmr_to_eval/Turbopack CSR/1000 modules 5621.60µs ± 21.40µs 5870.60µs ± 181.18µs +4.43%
bench_startup/Turbopack CSR/1000 modules 912.79ms ± 1.51ms 909.67ms ± 2.89ms -0.34%

@github-actions
Copy link
Contributor

github-actions bot commented Jul 6, 2023

MacOS Benchmark for 338933f

Test Base PR % Significant %
bench_hmr_to_eval/Turbopack CSR/1000 modules 26.94ms ± 0.15ms 27.98ms ± 0.33ms +3.85% +0.29%
Click to view full benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 28.61ms ± 0.09ms 28.20ms ± 0.20ms -1.44%
bench_hmr_to_eval/Turbopack CSR/1000 modules 26.94ms ± 0.15ms 27.98ms ± 0.33ms +3.85% +0.29%
bench_startup/Turbopack CSR/1000 modules 3560.15ms ± 33.53ms 3684.93ms ± 85.34ms +3.50%

feedthejim pushed a commit to vercel/next.js that referenced this pull request Jul 6, 2023
Depends on vercel/turbo#5398 (and downstack) on
the Turbo side.

This PR makes it so the output path of Node.js entry chunks for pages is
determined solely from the pathname. This isn't actually necessary for
pages, but it makes for easier debugging anyway. See the Turbo PR for
more details.

This also changes the page structure so it also works if there is no
`pages` directory. In this case, we still want to use pages' default
_app, _document, and _error pages, even with existing app routes. So an
empty page structure should still have an effect.

## Turbopack updates

* vercel/turbo#5415 <!-- Will Binns-Smith -
Turbopack: Execution tests in node.js -->
* vercel/turbo#5461 <!-- Tobias Koppers - use a
lock to ensure atomic invalidation from file changes -->
* vercel/turbo#5398 <!-- Alex Kirszenberg -
Configure the path of the Node.js entry chunk -->
* vercel/turbo#5469 <!-- Tobias Koppers - allow
hmr tests to correctly detect hmr event -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants