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

fix(sourcemap): update sourcemap, remove checker #7823

Merged
merged 1 commit into from
Mar 24, 2024
Merged

Conversation

kwonoj
Copy link
Contributor

@kwonoj kwonoj commented Mar 22, 2024

Description

While debugging https://vercel.slack.com/archives/C03EWR7LGEN/p1711146825831219?thread_ts=1711143217.892349&cid=C03EWR7LGEN, found out sourcemap lookup fails on certain source and always returns synthetictoken only.

Weirdly, the guards in this PR https://github.com/vercel/turbo/pull/7823/files#diff-2ce67e28c5b3144ec6f7a89167f3c96da9f9e268abf3fd685ce881d75a4cd8a5L319 is preventing those lookup - removing it makes correct sourcemap lookup occurs. I updated pkg to the version what swc uses and removed + ran next.js tests, seems like most of tests are running just fine

(vercel/next.js#63624)

Still not 100% sure if this'll be ok or not, if not open to change for the correct fixes. Some related fixes getsentry/rust-sourcemap#60 might be the reason we don't see any regressions in the test.

Copy link

vercel bot commented Mar 22, 2024

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

Name Status Preview Comments Updated (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 23, 2024 0:30am
rust-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 23, 2024 0:30am
8 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Mar 23, 2024 0:30am
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Mar 23, 2024 0:30am
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Mar 23, 2024 0:30am
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Mar 23, 2024 0:30am
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Mar 23, 2024 0:30am
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Mar 23, 2024 0:30am
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Mar 23, 2024 0:30am
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Mar 23, 2024 0:30am

Copy link
Contributor

github-actions bot commented Mar 22, 2024

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

Logs

error: failed to select a version for `swc_core`.
    ... required by package `turbopack-binding v0.1.0 (https://github.com/vercel/turbo?rev=df08b4dd8ab8dbff10c158513c45a73d7610fe70#97950cd8)`
    ... which satisfies git dependency `turbopack-binding` (locked to 0.1.0) of package `next-swc-napi v0.0.0 (/root/actions-runner/_work/turbo/turbo/packages/next-swc/crates/napi)`
versions that meet the requirements `^0.90.24` are: 0.90.24

all possible versions conflict with previously selected packages.

  previously selected package `swc_core v0.90.22`
    ... which satisfies dependency `swc_core = "^0.90.22"` (locked to 0.90.22) of package `wasm v0.0.0 (/root/actions-runner/_work/turbo/turbo/packages/next-swc/crates/wasm)`

failed to select a version for `swc_core` which could resolve this conflict

See job summary for details

Copy link
Contributor

github-actions bot commented Mar 22, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

github-actions bot commented Mar 22, 2024

🟢 CI successful 🟢

Thanks

@kwonoj kwonoj changed the title test fix(sourcemap): update sourcemap, remove checker Mar 23, 2024
@kwonoj kwonoj marked this pull request as ready for review March 23, 2024 00:21
@kwonoj kwonoj requested review from a team as code owners March 23, 2024 00:21
Cargo.toml Show resolved Hide resolved
@kwonoj kwonoj merged commit d4cc4e0 into main Mar 24, 2024
49 of 50 checks passed
@kwonoj kwonoj deleted the test-update-sourcemap branch March 24, 2024 20:30
kdy1 added a commit to vercel/next.js that referenced this pull request Mar 25, 2024
# Turbopack

* vercel/turbo#7815 <!-- Tobias Koppers - fix
alias in getResolve -->
* vercel/turbo#7796 <!-- Donny/강동윤 - Update
`swc_core` to `v0.90.24` -->
* vercel/turbo#7775 <!-- Tobias Koppers - fix
single css chunks with import context -->
* vercel/turbo#7776 <!-- Tobias Koppers - change
port of trace-server -->
* vercel/turbo#7763 <!-- Tobias Koppers -
Tracing improvements -->
* vercel/turbo#7813 <!-- Tobias Koppers - fix
webpack loader incorrectly calling custom_evaluate -->
* vercel/turbo#7764 <!-- Tobias Koppers - fix
some small bugs in turbo-tasks that are required for GC -->
* vercel/turbo#7816 <!-- Chris Olszewski -
chore: remove some unused imports -->
* vercel/turbo#7823 <!-- OJ Kwon -
fix(sourcemap): update sourcemap, remove checker -->

### What?

Update SWC crates to
swc-project/swc@ad932f0

### Why?

To keep in sync.

### How?



 - Closes PACK-2807
 - Closes PACK-2819

---------

Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants