Closed hhugo closed 3 years ago
I think I'm done with this PR. CI is happy on my repo. Appveyor is complaining because I've removed its config file (I suspect you need to go to setting to fully remove it)
The macos CI is a bit flaky, cc @smorimoto
I've just removed the appveyor integration
I think it will be stabilized by removing the dune cache field to disabling it. The dune 2's cache is quite unstable except on Linux, and you may not want to use it too aggressively until dune 3 is released...
Another small papercut: the node Alcotest output (on my terminal at least) contains some extra trailing dots after each test case:
This was caused by a bug in the javascript stubs. I've pushed a fix.
I'm surprised by that, since man node is fairly clear that -- isn't passed to the script. Is this Cmdliner behaving weirdly?
What you want is
$ node -- _build/default/examples/floats.bc.js --compact
Testing `Float tests'.
This run has ID `IGDG6PKU'.
...
Can someone approve the workflows to test the CI one more time ?
Seems to be all green now!
one last approval for the CI ? @samoht ? @CraigFe ?
Now that we're not pin-depending on jsoo, we'll need some way to express a dependency on 3.11 (the Windows CI picked up 3.10 and is failing with it). Is there a way to do this without making Jsoo a hard dependency / breaking switches that were previously using pre-3.11?
edit: perhaps we need an alcotest-js
virtual package that just specifies a dependency on the right version of js_of_ocaml
?
Seems broken on windows?
-Testing `test/e2e/alcotest/passing/verbose_newlines.ml'.
-This run has ID `<uuid>'.
+D:\a\alcotest\alcotest\_build\default\test\e2e\alcotest\passing\verbose_newlines.<ext>:
+internal error, uncaught exception:
+Failure("win_filedescr_of_channel not implemented")
@smorimoto, any idea why an older version of jsoo would be picked up in the Window CI ?
One need to update the window opam repo. https://github.com/fdopen/opam-repository-mingw/tree/opam2/packages/js_of_ocaml-compiler
Should ocaml-setup start using the official opam-repository on windows ?
We have plans to do it this year, but we are not ready yet. I'm also a maintainer of the Windows repository, so if you could open a PR for 3.11 there I can check and merge it.
Now 3.11 is available on Windows!
Windows in now happy again
Thanks @hhugo and @smorimoto for this excellent contribution. Merging now.
I intend to cut a release containing these changes by the end of the day.
alcotest
tests under nodejs, using js_of_ocaml.