Skip to content

Comments

ocamlPackages.ocamlmod: disable tests if ounit is not available#113771

Merged
vbgl merged 1 commit intoNixOS:masterfrom
sternenseemann:ocamlmod-evaluation
Feb 21, 2021
Merged

ocamlPackages.ocamlmod: disable tests if ounit is not available#113771
vbgl merged 1 commit intoNixOS:masterfrom
sternenseemann:ocamlmod-evaluation

Conversation

@sternenseemann
Copy link
Member

When we redid ounit and ounit2, the minimumOCamlVersion was also pushed
to OCaml 4.04. ocamlmod builds on earlier versions as well, but doesn't
evaluate if we pull in ounit.

Therefore we conditionally disable tests for OCaml < 4.04 which means
for example oasis is available for those versions again as well.

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

When we redid ounit and ounit2, the minimumOCamlVersion was also pushed
to OCaml 4.04. ocamlmod builds on earlier versions as well, but doesn't
evaluate if we pull in ounit.

Therefore we conditionally disable tests for OCaml < 4.04 which means
for example oasis is available for those versions again as well.
@sternenseemann sternenseemann requested a review from vbgl February 20, 2021 12:12
@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Feb 20, 2021
@r-rmcgibbo
Copy link

r-rmcgibbo commented Feb 20, 2021

Result of nixpkgs-review pr 113771 at 6211213 run on x86_64-linux 1

4 packages built:

Result of nixpkgs-review pr 113771 at 6211213 run on aarch64-linux 1

4 packages built:

@sternenseemann sternenseemann added the 6.topic: ocaml OCaml is a general-purpose, high-level, multi-paradigm programming language. label Feb 20, 2021
@vbgl vbgl merged commit cdb97ba into NixOS:master Feb 21, 2021
@sternenseemann sternenseemann deleted the ocamlmod-evaluation branch February 21, 2021 11:49
@sternenseemann sternenseemann restored the ocamlmod-evaluation branch July 24, 2021 13:36
sternenseemann added a commit to sternenseemann/nixpkgs that referenced this pull request Jul 24, 2021
These packages have been failing to evaluate for some time now for two
reasons:

* ocamlmod doesn't evaluate for OCaml < 4.04 which is fixed in NixOS#113771
* We have no ppx_core version for OCaml < 4.03 which is a fundamental
  issue.

Since this situation has been going on for some time now, I don't really
see the need to figure out how to fix these legacy versions of some
janestreet packages. There is also additional motivation:

* These packages reference the janeStreet set directly which I'd like
  to deprecate, as it spells trouble for the overriding possibilities
  introduced in NixOS#113696.
* These packages are patched in awkwardly into the janeStreet set
  without forming one themselves. By removing them we can move closer to
  having all janestreet packages managed uniformly in their own
  janestreet sets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: ocaml OCaml is a general-purpose, high-level, multi-paradigm programming language. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants