Skip to content

Conversation

OlivierNicole
Copy link
Contributor

This takes into account the new js_of_ocaml --effects={cps,double-translation} flag, introduced in ocsigen/js_of_ocaml#1461.

@OlivierNicole
Copy link
Contributor Author

Note: I have used failwith when a dune rule is asking to pass --effects=double-translation with a version of jsoo/wasmoo that doesn’t support it, because I don’t know what the proper way of erroring in this code path is.

@vouillon
Copy link
Member

Note: I have used failwith when a dune rule is asking to pass --effects=double-translation with a version of jsoo/wasmoo that doesn’t support it, because I don’t know what the proper way of erroring in this code path is.

I think you can just use --enable=effects in that case, and let the invocations of js_of_ocaml --effects=double-translation fail.

@OlivierNicole OlivierNicole force-pushed the jsoo-effects branch 3 times, most recently from 9501684 to 00390c3 Compare December 20, 2024 10:31
@OlivierNicole
Copy link
Contributor Author

I’m not sure to understand where the last CI failure comes from.

@OlivierNicole OlivierNicole marked this pull request as ready for review December 20, 2024 14:04
@OlivierNicole OlivierNicole force-pushed the jsoo-effects branch 3 times, most recently from 4b0b255 to 9181230 Compare January 23, 2025 15:14
@OlivierNicole
Copy link
Contributor Author

Thank you for your reviews, I think I have addressed the ones made up to now.

@hhugo
Copy link
Collaborator

hhugo commented Jan 24, 2025

I think you should add some tests that you would run manually now and that would run in the CI once jsoo.6.0 is released.

I've tested this PR manually and it doesn't quite work because the --effects flags is sometime repeated (which is treated as an error by jsoo)

@OlivierNicole
Copy link
Contributor Author

Can you share how you encountered the bug?

@hhugo
Copy link
Collaborator

hhugo commented Jan 29, 2025

I've just tried to use this PR to run test in jsoo. Same behavior in https://github.com/ocsigen/js_of_ocaml/actions/runs/13032240200/job/36353967506?pr=1821

@OlivierNicole
Copy link
Contributor Author

I think it should be fixed now.

I will look at adding tests, should they be in this PR?

@OlivierNicole OlivierNicole force-pushed the jsoo-effects branch 2 times, most recently from 7f6f913 to 2b62627 Compare January 29, 2025 16:47
@OlivierNicole OlivierNicole force-pushed the jsoo-effects branch 4 times, most recently from eefd6d0 to 6d3bb7e Compare February 13, 2025 14:00
@OlivierNicole
Copy link
Contributor Author

I have added a test but for it to work, it would require to use JSOO 6.0.1 in CI.

The other failures seem unrelated to this PR.

@OlivierNicole
Copy link
Contributor Author

I have added a test but for it to work, it would require to use JSOO 6.0.1 in CI.

Oh in fact, it’s already the case.

@hhugo
Copy link
Collaborator

hhugo commented Mar 24, 2025

I don't really like the current situation but it's not the fault of this PR. Sadly I don't have time to spend on this right now. @vouillon would you have time to review this and approve if it's ok.

@hhugo hhugo added this to the 3.18.0 milestone Mar 31, 2025
@hhugo
Copy link
Collaborator

hhugo commented Mar 31, 2025

@OlivierNicole, @vouillon we should probably try to have this part of the next 3.18 release.

@vouillon
Copy link
Member

I don't really like the current situation but it's not the fault of this PR. Sadly I don't have time to spend on this right now. @vouillon would you have time to review this and approve if it's ok.

I'm not really happy with that either. Each time we add some options in js_of_ocaml/wasm_of_ocaml, we need to update Dune as well. But I think this is ok for now.

@hhugo
Copy link
Collaborator

hhugo commented Apr 11, 2025

@OlivierNicole, can you rebase the PR ? hoping it will fix the CI

@maiste maiste modified the milestones: 3.18.0, 3.19 Apr 14, 2025
@hhugo
Copy link
Collaborator

hhugo commented Apr 27, 2025

ping @OlivierNicole

@OlivierNicole
Copy link
Contributor Author

@hhugo Sorry for the delay; I have rebased.

@rgrinberg
Copy link
Member

@hhugo or @vouillon is this good to go?

@hhugo
Copy link
Collaborator

hhugo commented Apr 29, 2025

@hhugo or @vouillon is this good to go?

I think so

@hhugo
Copy link
Collaborator

hhugo commented Apr 29, 2025

I'm testing it in ocsigen/js_of_ocaml#1957

@hhugo
Copy link
Collaborator

hhugo commented May 1, 2025

good to merge

@rgrinberg rgrinberg merged commit a13eebb into ocaml:main May 1, 2025
24 of 25 checks passed
@OlivierNicole OlivierNicole deleted the jsoo-effects branch May 1, 2025 12:58
maxim092001 pushed a commit to maxim092001/dune that referenced this pull request May 3, 2025
Sudha247 pushed a commit to Sudha247/dune that referenced this pull request Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants