Skip to content

core: Attempt to repair databases with wrong host type#4619

Queued
kim wants to merge 3 commits intomasterfrom
kim/core/repair-host-type
Queued

core: Attempt to repair databases with wrong host type#4619
kim wants to merge 3 commits intomasterfrom
kim/core/repair-host-type

Conversation

@kim
Copy link
Contributor

@kim kim commented Mar 11, 2026

Prior to #4549 the host type in st_module was always set to wasm. We now correctly use the host type from the database, but the module may in fact be a JS module. So if launching it as a wasm module fails, try JS instead. If this succeeds, the module is definitely a JS module, so attempt to repair st_module in this case.

Expected complexity level and risk

2

Testing

  • Added smoketest

Prior to #4549 the host type in `st_module` was always set to wasm. We
now correctly use the host type from the database, but the module may in
fact be a JS module. So if launching it as a wasm module fails, try JS
instead. If this succeeds, the module is definitely a JS module, so
attempt to repair `st_module` in this case.
@kim kim force-pushed the kim/core/repair-host-type branch from 7cf0742 to 2287476 Compare March 11, 2026 21:51
@joshua-spacetime joshua-spacetime linked an issue Mar 12, 2026 that may be closed by this pull request
@kim kim enabled auto-merge March 12, 2026 09:11
@kim kim added this pull request to the merge queue Mar 12, 2026
Any commits made after this event will not be merged.
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.

TS 2.0.4 Migration Failed - WASM Bad Magic Number

2 participants