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 tests for the Nix build #791
Conversation
Allow a Nixpkgs version tag to be passed at the command line. Update the version of Nix to 20.09.
Seems to be possible to run completely separate configurations using the jobs -> include syntax. Trying with a Nix build.
Only seems to be running a single version of the Travis osx tests |
The following is failing on the Nix build so need to fix that. Also failing locally. Might be to do with the Gmsh version. Should be able to get to the bottom of this one.
The other failures on Travis aren't to do with these changes, but VTK. Getting
|
Can you tell if it's a different version of Gmsh or something? |
It's giving
Is that supported? |
It looks like it stopped working between Gmsh 4.4 and 4.5. I think that failure shouldn't stop you from merging this PR. |
I'll try and fix it. This is an issue that arose from introducing a newer version of Gmsh than Conda's (or whatever FIPy conda recipe is using) version so should be fixed. Is Gmsh fixed in FiPy's conda recipe? At least one of the conda tests is using 3.06. |
I think the "fix" is just to relax the tolerance of the test. We definitely should support Gmsh 4.x and, largely, we do.1 I've often seen we get sporadic failures when different versions of Gmsh tweak their meshing algorithms. We either need to find a more robust metric to test, or just (continue to) drop the tolerances. 1 Remaining issues with Gmsh 4.x
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Also, add sanitize file for nbval
shell.nix
Outdated
pkgs = import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/${tag}.tar.gz") {}; | ||
pypkgs = pkgs.python3Packages; | ||
|
||
nixes_src = builtins.fetchTarball "https://github.com/wd15/nixes/archive/9a757526887dfd56c6665290b902f93c422fd6b1.zip"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this magic tarball zip file, and is a user account the proper source for it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. It's a bunch of Jupyter dependencies, here. I don't know why I thought that was a good idea. They can just be listed directly here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[TODO]: check if nixpkgs has some sort of built in jupyter-complete expression with all Jupyter add ons.
Stop using remote repository for Jupyter install with Nix.
@tkphd should be better now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Remaining CI failure is due to PETSc 3.18 or some CI glitch (for example, why is the |
Seems to be possible to run completely independent configurations on Travis with the jobs / include syntax.