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

Restore compatibility with Alcotest 1.4.0 #22

Merged
merged 1 commit into from
Apr 16, 2021

Conversation

craigfe
Copy link
Member

@craigfe craigfe commented Apr 15, 2021

The Alcotest 1.4.0 release adds optional arguments to Alcotest.fail. Eta-expansion is necessary to use this function with the continuation printers.

The Alcotest 1.4.0 release adds optional arguments to Alcotest.fail.
Eta-expansion is necessary to use this function with the continuation
printers.
@craigfe craigfe requested a review from hannesm as a code owner April 15, 2021 10:07
Copy link
Member

@dinosaure dinosaure left a comment

Choose a reason for hiding this comment

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

LGTM

@hannesm
Copy link
Member

hannesm commented Apr 16, 2021

Thanks @craigfe. I'm curious seeing the amount of failures in ocaml/opam-repository#18509 (and the API change in alcotest 1.4.0) whether:

  • it should be 2.0.0 (for the believers of semantic versioning)
  • the 1.4.0 release could be revised to avoid this API break?

But of course I'm as well fine to merge this as is once alcotest 1.4.0 is merged into opam-repository as is. :)

@craigfe
Copy link
Member Author

craigfe commented Apr 16, 2021

Hi @hannesm.

The rev-dep failures in this release were all due to this line of code (Fmt.kstrf Alcotest.fail), which seems to have propagated throughout the Mirage codebases. (This surprised me a bit, since Alcotest.failf has been available for a while.) If I'd been aware, I'd probably have held back this change for a major release.

Now that I've gotten this far it seems most efficient for me to make PRs to fix the few packages that still have this line in their dev versions, but I can still drop the Alcotest.fail change if you have a strong preference. (I'd rather not bump to 2.0.0 just for this, since I'd like to leave room for potential major breaking changes to be given more weight in the versioning scheme.)

@hannesm
Copy link
Member

hannesm commented Apr 16, 2021

@craigfe as said, I'm fine with pushing 1.4.0 as is, and merging this (and similar PRs) across the mirage repositories.

@hannesm hannesm merged commit 7ba8e6d into mirage:master Apr 16, 2021
hannesm added a commit to hannesm/opam-repository that referenced this pull request Apr 22, 2021
CHANGES:

* Compatibility with alcotest 1.4.0 (mirage/arp#22 @craigfe)
* Minor updates for CI (mirage/arp#23 @hannesm)
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.

3 participants