Skip to content

test: server-only-modules e2e -> reset qwik duplicate-import guard between in-process vite servers - #8722

Merged
maiieul merged 1 commit into
build/v2from
test/server-only-modules-q30-isolation
Jun 18, 2026
Merged

test: server-only-modules e2e -> reset qwik duplicate-import guard between in-process vite servers#8722
maiieul merged 1 commit into
build/v2from
test/server-only-modules-q30-isolation

Conversation

@maiieul

@maiieul maiieul commented Jun 11, 2026

Copy link
Copy Markdown
Member

What is it?

  • Docs / tests / types / typos

Description

The server-only-modules e2e spec creates multiple in-process Vite dev servers, and core's duplicate-import guard (globalThis.__qwik) survives server.close(), so the next server's module runner threw Q30 — "dev ssr mode allows server-only imports used only by routeLoader$" failed when run after the development-mode test. Reset the guard in a beforeEach. Only visible with --retries=0 since a retry re-runs the serial group in a fresh worker.

@maiieul
maiieul requested a review from a team as a code owner June 11, 2026 19:16
@changeset-bot

changeset-bot Bot commented Jun 11, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: fb23822

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@maiieul maiieul self-assigned this Jun 11, 2026
@maiieul maiieul moved this to Waiting For Review in Qwik Development Jun 11, 2026
@pkg-pr-new

pkg-pr-new Bot commented Jun 11, 2026

Copy link
Copy Markdown

Open in StackBlitz

@qwik.dev/core

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/core@8722

@qwik.dev/router

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/router@8722

eslint-plugin-qwik

npm i https://pkg.pr.new/QwikDev/qwik/eslint-plugin-qwik@8722

create-qwik

npm i https://pkg.pr.new/QwikDev/qwik/create-qwik@8722

@qwik.dev/optimizer

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/optimizer@8722

commit: fb23822


test.skip(({ browserName }) => browserName !== 'chromium', 'Runs once in Chromium e2e.');

test.beforeEach(() => {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Once merged, we should rebase #8609 and remove it in there for cleanup.

@maiieul maiieul changed the title test: reset qwik duplicate-import guard between in-process vite servers test: server-only-modules e2e -> reset qwik duplicate-import guard between in-process vite servers Jun 18, 2026
@maiieul
maiieul merged commit 01555e5 into build/v2 Jun 18, 2026
46 checks passed
@maiieul
maiieul deleted the test/server-only-modules-q30-isolation branch June 18, 2026 07:12
@github-project-automation github-project-automation Bot moved this from Waiting For Review to Done in Qwik Development Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants