-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add ocaml-mdx verification of the tutorials #7
Conversation
2db678b
to
8ebf4fb
Compare
c4e77a3
to
931683c
Compare
931683c
to
d20920e
Compare
Rebased. If realworldocaml/mdx#161 is merged, we can use it as a temporary solution to avoid fixing the network issues with |
realworldocaml/mdx#161 is merged -- can also add our custom CI instead of Travis to make the tests quicker. |
The Travis CI here is doing JS linting via |
5b7d0ac
to
b245a6c
Compare
41a6969
to
d82c6dd
Compare
7ff1afa
to
d9d93ce
Compare
CI is now green. Build times are ~16mins; would be nice to get the new CI on here ASAP 🙂 |
done ;-) |
The new CI fails the build with |
Done; looks like it's still failing for some reason however...
??? |
|
c67f431
to
ba93fc4
Compare
Can be 'fixed' by not exercising the Redis backend, as in ba93fc4, although clearly this is a bad idea. I'm not familiar with the Redis backend being constructed here. Perhaps @icristescu or @zshipko will have ideas? |
If we want to run the code in the Redis backend then there are some bits missing, like instantiating the |
We could add more testing, but this would likely require some external unit tests because, as you say, the code isn't very interesting from a tutorial perspective. I am interested in keeping the blocks that currently exist, which I believe construct an instance of the store and show how to start/stop a server. These run just fine on Travis CI, but something about them causes a segfault when running on the new CI. |
All green! @craigfe could you remove |
It's all green but with two skipped blocks (which are skipped only because they fail to run on the new CI). Can merge as-is, but I think we should at least make new issues tracking that these blocks are currently untested. |
Also, we still need the JS section of the Travis configuration file, but this shouldn't be a problem as this only takes around 1 min to run. |
These blocks fail to run on ocaml-ci: mirage#7 (comment). This issue should be investigated in future.
ba93fc4
to
4384473
Compare
This block fails to run on Travis CI, presumably due to issues with the network configuration. The quick-and-dirty solution is just to skip it; this requires using the dev version of `mdx`: realworldocaml/mdx#161.
The markdown parser reads "```ocaml skip" as using the "ocamlskip" language. This alias is a quick hack to retain syntax highlighting for skipped code blocks.
Co-authored-by: Thomas Leonard <[email protected]>
These blocks fail to run on ocaml-ci: mirage#7 (comment). This issue should be investigated in future.
4384473
to
88b96c2
Compare
Great, many thanks for all the fixes! |
This adds opam/dune configuration to run
ocaml-mdx pp
over the tutorials (and then run the result). As a side-effect, also verifies that the main example on the homepage compiles.