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

Skip packing compression in tests #57671

Open
wants to merge 1 commit into
base: canary
Choose a base branch
from

Conversation

jankaifer
Copy link
Contributor

@jankaifer jankaifer commented Oct 28, 2023

I saw that you guys updated to pnpm@8, which means you are able to use this flag that I added into pnpm when I was digging into next speed improvements.

Especially when running in dev move the longest thing is packing our packages that are later installed in the isolated test environment. It can be sped up by a lot if you skip the compression because we don't care about the sizes in our tests.

You can see the speed improvement by running test tracing:

pnpm build && NEXT_TEST_TRACE=1  pnpm test-dev test/e2e/test-utils-tests/basic/basic.test.ts && pnpm node scripts/trace-to-tree.mjs test/.trace/trace

When I measured the impact half-year ago it should speed up each test run by ~4 seconds.

I tried to do this myself, but I was not able to get the test suite to run (even on canary).
Also testing doc is outdated, the example commands use non-existent tests.
The issue was that next build running in the test got stuck and never finished.

@jankaifer jankaifer requested review from a team as code owners October 28, 2023 13:25
@jankaifer jankaifer requested review from ismaelrumzan and StephDietz and removed request for a team October 28, 2023 13:25
@ijjk ijjk added the created-by: Next.js team PRs by the Next.js team label Oct 28, 2023
@ijjk
Copy link
Member

ijjk commented Oct 28, 2023

Allow CI Workflow Run

  • approve CI run for commit: a2698ea

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

2 similar comments
@ijjk
Copy link
Member

ijjk commented Oct 28, 2023

Allow CI Workflow Run

  • approve CI run for commit: a2698ea

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@ijjk
Copy link
Member

ijjk commented Oct 28, 2023

Allow CI Workflow Run

  • approve CI run for commit: a2698ea

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
created-by: Next.js team PRs by the Next.js team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants