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

Wasm_of_ocaml: fix the execution of tests in a sandbox #11304

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

vouillon
Copy link
Member

@vouillon vouillon commented Jan 15, 2025

The Wasm code is included in a separate .bc.wasm.assets directory that needs to be copied in the sandbox as well.

@vouillon vouillon force-pushed the wasm-sandboxing branch 2 times, most recently from cafa3fb to 3168dc3 Compare January 15, 2025 17:28
Signed-off-by: Jérôme Vouillon <[email protected]>
@vouillon vouillon changed the title Wasm_of_ocaml: test sandboxing Wasm_of_ocaml: fix the execution of tests in a sandbox Jan 15, 2025
@vouillon vouillon marked this pull request as ready for review January 15, 2025 19:50
@rgrinberg rgrinberg requested a review from hhugo January 15, 2025 23:11
@hhugo
Copy link
Collaborator

hhugo commented Jan 16, 2025

@rgrinberg, could this be including in a 3.17.* minor release ?

| `js Wasm ->
Bindings.Unnamed
(Dep_conf.File
(String_with_vars.make_text loc (s ^ Js_of_ocaml.Ext.wasm_dir)))
Copy link
Member

Choose a reason for hiding this comment

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

Is this tested at all? This should be accessible via %{deps} in some fields now I imagine.

Copy link
Member Author

Choose a reason for hiding this comment

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

I have added a test that does not pass without this change. Is it enough?

@rgrinberg
Copy link
Member

@rgrinberg, could this be including in a 3.17.* minor release ?

Best to ask one of the release managers. @maiste or @Leonidas-from-XIV?

@maiste
Copy link
Collaborator

maiste commented Jan 16, 2025

Thanks, @rgrinberg for pinging (and the promotion 😉)
If it is a bug fix, there is no issue with adding this in a release. We will have to do one for a patch with ocaml.5.3.0.

Copy link
Member

@rgrinberg rgrinberg left a comment

Choose a reason for hiding this comment

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

LGTM. Could you add a CHANGES entry?

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.

4 participants