- 15 Jun, 2024 5 commits
-
-
vercel-release-bot authored
-
Zack Tanner authored
Accidentally introduced in #66888
-
Zack Tanner authored
This is only available at runtime, so wouldn't be in build logs.
-
Tobias Koppers authored
### What? * adds next-build-test to the workspace * use multiple turbo-tasks root tasks to be more realistic * add tracing support * run pages in order * add development mode with HMR * updates for RcStr ### Why? ### How?
-
Benjamin Woodruff authored
Revert "Revert "Use turbo-tasks-malloc on all platforms" (#66884)", fix aarch64 compilation in CI (#66885) We either need GCC >= 4.9 or we need to link with libatomic: https://github.com/microsoft/mimalloc/issues/443 Unfortunately, manylinux2014-cross ships with GCC 4.8.5: https://github.com/rust-cross/manylinux-cross/blob/main/manylinux2014/aarch64/Dockerfile#L71 We already appear to override the compiler toolchain in CI for x86_64 to use clang (which is why mimalloc works there), so let's go ahead and do that here too. This at least means we're using the same compiler across both architectures. I'm leaving the aarch64-musl codepath the same (using gcc) because (1) we don't use mimalloc there yet and (2) it's a bit harder for me to test as thoroughly. # Testing ## Local Compilation Run bash inside the docker image (I also had to install rosetta2 inside my Linux VM, as this is an x86_64 image used for cross-compilation to aarch64): ``` podman run --platform=linux/amd64 -t -i ghcr.io/napi-rs/napi-rs/nodejs-rust:stable-2023-09-17-aarch64 bash -l ``` ``` git clone https://github.com/vercel/next.js.git --filter=blob:none --branch canary --single-branch cd next.js git checkout 6ae9828c ``` Run the build locally: ``` apt update && apt install -y pkg-config xz-utils dav1d libdav1d-dev && export JEMALLOC_SYS_WITH_LG_PAGE=16 && rustup show && rustup target add aarch64-unknown-linux-gnu && npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" && export CC_aarch64_unknown_linux_gnu=/usr/bin/clang && export CFLAGS_aarch64_unknown_linux_gnu="--target=aarch64-unknown-linux-gnu --sysroot=/usr/aarch64-unknown-linux-gnu" && cd packages/next-swc && npm run build-native-release -- --target aarch64-unknown-linux-gnu && llvm-strip -x native/next-swc.*.node && objdump -T native/next-swc.*.node | grep GLIBC_ ``` Sanity check that the result is an aarch64 binary ``` $ file native/next-swc.linux-arm64-gnu.node native/next-swc.linux-arm64-gnu.node: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, not stripped ``` ## Verifying the binary works Copy the next-swc binary into a copy of shadcn-ui I have sitting around: ``` podman cp 4e8f61b17965:/next.js/packages/next-swc/native/next-swc.linux-arm64-gnu.node ~/ui/node_modules/.pnpm/file+..+nextpack+tarballs+next-swc.tar/node_modules/@next/swc/native/next-swc.linux-arm64-gnu.node ``` and then try running the dev server and loading pages from it in the browser: ``` pnpm --filter=www dev --turbo ``` ## In CI https://github.com/vercel/next.js/actions/runs/9523143080/job/26254016137
-
- 14 Jun, 2024 19 commits
-
-
vercel-release-bot authored
-
Zack Tanner authored
Splitting these workflows up to improve readability & control the `workflow_run` condition a bit better.
-
JJ Kasper authored
This handles the case where a middleware rewrite causes us to fail to resolve the correct dynamic route params for an action sent to a prerendered ISR path since the matched path wouldn't be the original source path like we expect and instead is the prerendered path so we need to parse the params out instead. --------- Co-authored-by:Zack Tanner <1939140+ztanner@users.noreply.github.com>
-
Kevin Mårtensson authored
### What? Sometimes, probably when you have a lot of tests, I've noticed that some tests are failing with the error `browserContext.route: Test ended`. After some debugging I found that `page.route(…)` needs to be awaited before continuing. ### Why? So that Playwright works correctly with the `next` fixture. Co-authored-by:JJ Kasper <jj@jjsweb.site>
-
vercel-release-bot authored
-
JJ Kasper authored
Reverting while we investigate further Reverts vercel/next.js#66815
-
Zack Tanner authored
This navigation event is timing out in Turbopack builds, but not for any particularly good reason: I think the link click is just taking a while, due to builds still being fairly experimental. Rather than clicking a link to navigate to the client side test suite, this just starts the test there, which is similar to how the server test works anyway and still accomplishes what this test is intended for. Flakes: [1](https://github.com/vercel/next.js/actions/runs/9520142937/job/26245881436) [2](https://github.com/vercel/next.js/actions/runs/9520142937/job/26245558183) [3](https://github.com/vercel/next.js/actions/runs/9520142937/job/26244822150) [4](https://github.com/vercel/next.js/actions/runs/9519242919/job/26244323363)
-
Zack Tanner authored
Accidentally inverted these
-
Sam Ko authored
## Why? Update the labeler list.
-
Ankit Tiwari authored
Updates the with-supertokens example to replace `getSSRSession` usage with manual JWT parsing in SSR as shown in https://github.com/supertokens/create-supertokens-app/pull/107Co-authored-by:
Sam Ko <sam@vercel.com>
-
Eng Zer Jun authored
The filenames of the last two code blocks on this page https://nextjs.org/docs/app/building-your-application/configuring/absolute-imports-and-module-aliases#module-aliases are written as comment instead of using the `filename` prop.  Signed-off-by:
Eng Zer Jun <engzerjun@gmail.com> Co-authored-by:
JJ Kasper <jj@jjsweb.site>
-
Albert Chang authored
add missing 'use client' to the example code in https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams <!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change(s) that you're making: ## For Contributors ### Improving Documentation - Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide ### Adding or Updating Examples - The "examples guidelines" are followed from our contributing doc https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md - Make sure the linting passes by running `pnpm build && pnpm lint`. See https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md ### Fixing a bug - Related issues linked using `fixes #number` - Tests added. See: https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs - Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md ### Adding a feature - Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. (A discussion must be opened, see https://github.com/vercel/next.js/discussions/new?category=ideas) - Related issues/discussions are linked using `fixes #number` - e2e tests added (https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) - Documentation added - Telemetry added. In case of a feature if it's used or not. - Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md ## For Maintainers - Minimal description (aim for explaining to someone not on the team to understand the PR) - When linking to a Slack thread, you might want to share details of the conclusion - Link both the Linear (Fixes NEXT-xxx) and the GitHub issues - Add review comments if necessary to explain to the reviewer the logic behind a change ### What? ### Why? ### How? Closes NEXT- Fixes # --> --------- Co-authored-by:
Sam Ko <sam@vercel.com>
-
Zack Tanner authored
- remove fail fast so we can get a full picture of what's failing - remove alerting/retrying to existing job --------- Co-authored-by:JJ Kasper <jj@jjsweb.site>
-
Jiachi Liu authored
-
vercel-release-bot authored
-
Hendrik Liebau authored
Users that experiment with PPR and might have seen #61798, or #62703, or most recently #65483, may try the `__nextppronly=1` query param to debug the static shell. This will lead to the following uncaught error and blank page: <img width="1045" alt="static shell debugging hydration error" src="https://github.com/vercel/next.js/assets/761683/ed382d97-82ae-4a23-9930-bb4d4419e88e"> It might not be immediately obvious that javascript must be disabled to see the static shell. To improve the DX in this scenario we can omit the bootstrap script to skip hydration, and thus prevent the error. Then debugging the static shell works even without disabling javascript in the devtools. <img width="1045" alt="static shell debugging without hydration" src="https://github.com/vercel/next.js/assets/761683/57f6cb88-f5b4-473f-963f-7fda8c8e7f00"> In addition, we should add the closing body and html tags to the shell so that a valid HTML document is returned.
-
Benjamin Woodruff authored
This was previously disabled on `aarch64-unknown-linux-musl` and `wasm`, due to compilation errors. I moved the logic to disable `mimalloc` on these platforms into the `turbo-tasks-malloc` crates in https://github.com/vercel/turbo/pull/8462 (which this PR depends on). In addition to centralizing mimalloc platform support logic, this means that we can get allocation data from these platforms while using the system allocator. **Depends on:** https://github.com/vercel/turbo/pull/8462 Included turbopack changes: * https://github.com/vercel/turbo/pull/8409 <!-- hrmny - fix(turbopack-ecmascript-runtime): prevent hanging when top level await is skipped --> * https://github.com/vercel/turbo/pull/8466 <!-- hrmny - fix(turbopack): make external module wrapper return not found instead of panicking --> * https://github.com/vercel/turbo/pull/8469 <!-- hrmny - fix(turbopack): add ecmascript options to mdx --> * https://github.com/vercel/turbo/pull/8447 <!-- Donny/강동윤 - build: Update `swc_core` to `v0.93.4` --> * https://github.com/vercel/turbo/pull/8472 <!-- Donny/강동윤 - feat: Reduce the number of parts created by tree shaking --> * https://github.com/vercel/turbo/pull/8480 <!-- Will Binns-Smith - Publish `@vercel/devlow-bench` --> * https://github.com/vercel/turbo/pull/8481 <!-- Will Binns-Smith - chore: release npm packages --> * https://github.com/vercel/turbo/pull/8462 <!-- Benjamin Woodruff - Update mimalloc, enable for glibc Linux aarch64, explicitly disable for wasm and musl --> -
Zack Tanner authored
All deployed apps looked/worked fine -- I think just weren't handling the timing right in this test. When replaying locally, it seemed the browser was clicking the various links pre-hydration and missing the route interception cue. <details> <summary>View Runs</summary> - Run 1  - Run 2  - Run 3  </details>
-
vercel-release-bot authored
-
- 13 Jun, 2024 10 commits
-
-
Zack Tanner authored
Switches to reading action result from state rather than runtime logs.
-
Zack Tanner authored
`node_modules` gets ignored when deployed unless explicitly allowed, and the regular install command will clobber what was in there. This allowlists the `node_modules` directory and copies it into a new folder, runs the install command, and then merges the patched `node_modules` in so the patched modules are available in the test.
-
Zack Tanner authored
Only 1 test suite in this suite is failing and it's related to file tracing, which should be fixed in a follow-up. For now this enables deploy tests for everything else to make sure we don't regress. This also simplifies the original test to not require stopping the server & patching a file.
-
Zack Tanner authored
- Fixed redirects tests not working when deployed because they were `POST` requests to a static page - Skipped 404 test for a similar reason: a `POST` to the static not found page is handled differently, and we won't have access to the runtime logs anyway - Refactored interception routes test to not rely on runtime logs - Fixed revalidation test & removed comment about flakiness <details> <summary>Validated Run Summary</summary>  </details>
-
Jiachi Liu authored
-
Zack Tanner authored
These 2 tests use an in-memory data store that won't be necessarily shared across invocations of the lambda. This skips the tests that rely on that functionality as testing it in `next start` should be sufficient.
-
Zack Tanner authored
Since `next.cliOutput` won't have access to runtime logs we can refactor this test to render text on the page instead.
-
Zack Tanner authored
I missed that this was used by the comment webhook when I removed it in #66721. This restores the existing code and adds a better comment explaining why it's there.
-
Donny/강동윤 authored
### What? Update `swc_core` to `v0.93.4`. ### Why? To apply https://github.com/swc-project/swc/pull/9036 and https://github.com/swc-project/swc/pull/9037. Those PR makes parsing of some files 5x faster. ### How?
-
Zack Tanner authored
This gates the part that depends on runtime logs. This test is still valuable without this particular check.
-
- 12 Jun, 2024 6 commits
-
-
Zack Tanner authored
This test was only failing because `vercel logs` limit the output to 100 lines, and telemetry debugging was adding a lot of verbosity to the build logs. This bumps the log lines to a higher value to give some more breathing room, and did a drive-by `check` -> `retry` refactor.
-
vercel-release-bot authored
-
Will Binns-Smith authored
https://github.com/vercel/turbo/pull/8165 introduced plugins that operate before resolving occurs, meaning that plugins like `InvalidImportResolvePlugin` which never use the initial resolve result and report issues can avoid that work. Test Plan: `TURBOPACK_DEV=1 TURBOPACK=1 pnpm test-dev test/development/acceptance-app/invalid-imports.test.ts`
-
Zack Tanner authored
The rest of this test is valid for a deployed environment, we just won't have access to runtime logs.
-
Sam Ko authored
## Why? This pull request bumps turborepo from 1.13.3-canary.2 to [2.0.3](https://github.com/vercel/turbo/releases/tag/v2.0.3) across multiple GitHub workflows and configuration files. Re-attempting after we [reverted](https://github.com/vercel/next.js/pull/66775).
-
Ivan Torres authored
Upgrade devdependecy commander to latest versio. Now in command, the optional argument is with [] and the required argument is with <>. --------- Co-authored-by:
torresgol10.itd <torresgol10.itd@gmail.com> Co-authored-by:
Sam Ko <sam@vercel.com>
-