-
Notifications
You must be signed in to change notification settings - Fork 89
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
Fix #183 (pre-ppxlib only): CI testing for our reverse dependencies (again!) #227
Fix #183 (pre-ppxlib only): CI testing for our reverse dependencies (again!) #227
Conversation
…dencies This should implement @gasche suggestion: ocaml-ppx#183 We should do that for `master` as well (I expect there will be more failures there!) but I begin here.
I don't see a Travis build here either. Could this be related to the multi-line string syntax? (The configuration file might not parse, which would prevent the build from running?) |
Ah, indeed: https://travis-ci.org/github/ocaml-ppx/ppx_deriving/requests seems to suggest a parse error. (I didn't know of this page before.) |
@gasche Thank you for having found this! I will try to fix that... |
This reverts commit d874295.
Fixed! The problem was the comment about 4.02 in the middle of the node. |
Thanks! |
It looks like this is working; only the 4.02 build completed, but it has these interesting bits in the log:
|
@thierry-martinez we might want to set TESTS=true to also run the testsuite of those packages. (But it may turn out that their tests are too fragile, slow, etc.) |
The previous commit (476b1e0) was already working, except for 4.11 (the most interesting one!). I am still surprised by the "installability" check. For instance, |
Well sometimes we have to accept that not everything is nice :-) |
Suggested by Gabriel Scherer.
I think that CI results on recent versions are often those that are the most interesting, so it is better to compute them first.
There does not seem to be a way to run reverse-dependencies tests currently. We would like to do that for ppx_deriving CI (see ocaml-ppx/ppx_deriving#227). In this commit, I propose to run tests on reverse-dependencies when `TESTS=true` (the default) and `REVDEPS` is `true` or lists some reverse dependencies to test (no by default).
It is the default. Here is a pull-request to allow reverse-dependencies to be tested. ocaml/ocaml-ci-scripts#338
Actually, |
All is green now! @gasche, are you ok if I merge this, even if revdeps testing is not available yet? |
Yes, please feel free to merge. Thanks! |
Merged! Thanks. |
Why do we have a v4.5 tag in the main repository now? See the releases page. We should only push the tag at the time where we do an actual release. (Are we sure that the current (This is a nitpick, but there is a lot of commit noise in the present PR, which is now in the branch history. I think it would be better to rebase to erase the CI golfing commits before merging, so that it is easier to review what is and isn't each branch through |
Oops, there is a misunderstanding: I thought we were ready for release, now that rev-dependencies were tested (both with Travis and opam-repository CI) and change-log updated. I can stop the process if you prefer: what is left to do before the release? |
Actually the misunderstanding may be on my side: it may be that we can release now but I haven't realized it. Ideally, a good release of ppx_deriving is such that plugins are compatible with the new release, and (in the case of new-ocaml-version support) can be easily adapted to the new OCaml version as well. If we realize when we start porting plugins that we would have needed a couple helpers, or different definitions, in ppx_deriving itself, we probably want those in the new release. (Or we released already and we do a patch-level release.) My understanding was that today:
I was assuming that we still have work left to do to port the plugins on 4.11. But actually, looking back at the revdeps result from the 4.11 CI run of the present PR, it looks like this is good. This suggests that when we merged the ppx_deriving_yojson fixes yesterday, it was the only thing left before we were release-ready. Can you confirm? I had not realized that. |
There is still ocaml-ppx/ppx_deriving_protobuf#36 but it seems it does not involve a change in ppx_deriving itself. I think therefore that we should be ready for the release! |
Precisely, here is what we know about our revdeps from the CI testing log for the pre-ppxlib branch:
This looks good, and I agree this was/is ready for a ppx_deriving release. Thanks! |
Are you also planning to take care of the opam-repository submission? I'm happy to take care of it otherwise. |
Gabriel Scherer reported that ppx_deriving_protocol does not depend on ppx_deriving. ocaml-ppx#227 (comment)
This is a new try for testing rev-deps, because Travis stops to work on #226 .