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

ispc: set doCheck to false. #71134

Closed
wants to merge 1 commit into from
Closed

ispc: set doCheck to false. #71134

wants to merge 1 commit into from

Conversation

athas
Copy link
Contributor

@athas athas commented Oct 14, 2019

Motivation for this change

The ispc test suite is brittle because it compares results to results computed with C. This is sensitive to things like non-associative floating point summation, using the x87 FPU, and vagaries of the system math library (functions like sqrt() are apparently not guaranteed by IEEE to be bit-exact).

The test suite has caused problems before (#70260) and is causing problems again (#70846).

It makes little sense to refuse to install a compiler because a single test in its test suite fails. Besides, running the test suite also takes a relatively long time, and there is no guarantee it won't take even longer in the future.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • 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 nix-review --run "nix-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.
Notify maintainers

cc @aristidb

@jonringer
Copy link
Contributor

Is there a way to filter the flakey tests? I would rather not discard tests which help in an automated fashion that something is broken.

@athas
Copy link
Contributor Author

athas commented Oct 15, 2019

Possibly by hacking the test runner script, but it'd have to be done differently for different platforms (the SSE4 failures I fixed in #70260 are not the same as the failures in #70846). I think it is the wrong approach, and will just result in more maintenance in the future, so someone else would have to do it. Considering that ispc is an obscure package and essentially unmaintained in nixpkgs, I recommend slimming it down and maximising the likelihood that it will merely continue building.

@marsam marsam closed this in 22378e6 Nov 4, 2019
dtzWill pushed a commit to dtzWill/nixpkgs that referenced this pull request Nov 4, 2019
ispc: add x86_64-darwin to platforms.

Closes NixOS#71134

(cherry picked from commit 22378e6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants