Skip to content

chore: test Vite 8.1.3 with stack column fix #10736

Closed
hi-ogawa wants to merge 10 commits into
vitest-dev:mainfrom
hi-ogawa:test/vite-8.1-stack-column
Closed

chore: test Vite 8.1.3 with stack column fix #10736
hi-ogawa wants to merge 10 commits into
vitest-dev:mainfrom
hi-ogawa:test/vite-8.1-stack-column

Conversation

@hi-ogawa

@hi-ogawa hi-ogawa commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Description

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

  • It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
  • Ideally, include a test that fails without this PR but passes with it.
  • Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.
  • Please check Allow edits by maintainers to make review process faster. Note that this option is not available for repositories that are owned by Github organizations.

Tests

  • Run the tests with pnpm test:ci.

Documentation

  • If you introduce new functionality, document it. You can run documentation with pnpm run docs command.

Changesets

  • Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with feat:, fix:, perf:, docs:, or chore:.

hi-ogawa and others added 10 commits July 7, 2026 15:30
…e map lookup

`parseStacktrace` fed the browser's 1-based `error.stack` column straight
into the source map lookup (0-based), then returned the mapped column
without converting back. The off-by-one was normally masked by wide
mapping segments, but oxc now emits a segment boundary for closing
delimiters, so Safari (which anchors call frames at the open paren) could
cross into the adjacent segment and drift, causing webkit-only column
differences.

Subtract 1 before the lookup and add 1 to the result, matching vite's SSR
stack rewriter (`ssrStacktrace.ts`).

Co-authored-by: OpenCode (claude-opus-4-8) <[email protected]>
Re-baseline the non-browser suites affected by the parseStacktrace column
fix (+1 on source-map-remapped stack columns): e2e stacktraces/reporters/
aria snapshots, coverage source-maps, and the UI trace editor cursor.

Co-authored-by: OpenCode (claude-opus-4-8) <[email protected]>
Re-baseline browser spec expectations after the parseStacktrace 1-based
to 0-based column fix. Columns now resolve to the correct 1-based source
position, so chromium/firefox shift by +1 and webkit converges onto the
same source column across browsers.

Co-authored-by: OpenCode (claude-opus-4-8) <[email protected]>
After the stacktrace column fix, several browser-specific expectations
resolve to the same source column. Collapse the webkit/else branches in
playwright-trace-mark and remove the duplicated safari branch in the
"logs have stack traces" runner test.

Co-authored-by: OpenCode (claude-opus-4-8) <[email protected]>
The non-rolldown webkit branches (nested under `if (rolldownVersion)`)
were not exercised by the rolldown-vite run used to re-baseline, so they
kept pre-fix columns and would fail the vite@7 CI job. Verified against a
local `vite@7` (non-rolldown) run: they converge to the same source
column as the rolldown/other-browser branches.

Co-authored-by: OpenCode (claude-opus-4-8) <[email protected]>
With the stacktrace column fix, the rolldown and non-rolldown stack
columns resolve to the same source position, so the `if (rolldownVersion)`
branches in aria-snapshot, errors, playwright-trace-mark and the runner
timeout-hooks test are now redundant. Collapse them into a single
snapshot each and drop the unused `rolldownVersion` imports. Verified on
both rolldown-vite and vite@7 (non-rolldown) runs.

Co-authored-by: OpenCode (claude-opus-4-8) <[email protected]>
@netlify

netlify Bot commented Jul 8, 2026

Copy link
Copy Markdown

Deploy Preview for vitest-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 68f8ac5
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6a4d9862a350d30008839db6
😎 Deploy Preview https://deploy-preview-10736--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@hi-ogawa hi-ogawa closed this Jul 14, 2026
@hi-ogawa
hi-ogawa deleted the test/vite-8.1-stack-column branch July 14, 2026 08:44
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.

1 participant