Skip to content

Conversation

yuhr
Copy link
Contributor

@yuhr yuhr commented Mar 31, 2025

Closes #28680. Sorry for submitting this without awaiting a response.

@yuhr yuhr force-pushed the fix/deno-os-worker branch from 8d88fd7 to 43791ca Compare April 1, 2025 09:20
@yuhr
Copy link
Contributor Author

yuhr commented Apr 1, 2025

Tests are super flaky. My every local run of cargo test --locked --lib succeeds but on CI it fails here and there.

EDIT: Now the main branch already seems to be failing.

@yuhr yuhr force-pushed the fix/deno-os-worker branch from 43791ca to 9d55ce1 Compare April 2, 2025 07:26
@yuhr
Copy link
Contributor Author

yuhr commented Apr 16, 2025

For reviewers: please consider which one is a better solution:

  1. This PR
  2. WebWorker without snapshot fails to spawn due to absence of ext:deno_os/30_os.js #28680 (comment)

@dsherret dsherret requested a review from bartlomieju April 16, 2025 18:40
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

The solution proposed in the issue is a better one in this case - the change in this PR makes it so an accidental refactor could break the worker code - having ExitCode present in the OpState is an invariant that we expect to be upheld. I would suggest to shim out these two ES modules in your code instead.

nathanwhit pushed a commit that referenced this pull request Apr 24, 2025
This addresses [#28680](#28680)
where the esm modules are not found when instantiating a WebWorker with
snapshots disabled.

This is an alternative solution to another PR,
#28693
@yuhr yuhr closed this Apr 24, 2025
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.

WebWorker without snapshot fails to spawn due to absence of ext:deno_os/30_os.js
2 participants