-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
elixir 1.5.1 dialyzer_test.exs fails on GNU Guix #6586
Comments
In what ways GNU Guix is restricted? Some tests require us to work with temporary directories and if those are not available, disabling the tests is the way to go. |
Restrictions apply to using files outside the build tree and there should be no outside network access. All with reproducibility in mind (deterministic builds). Creating files in the build tree should be OK. Above tests want to copy to, for example,
The directory $src/lib/elixir/tmp does not exist at test time. Any idea why? I have more failing tests, but would like to resolve them one by one. Or disable them, as you say, but I think we should only disable when there is no other way. Patches are hard to maintain. Note that Erlang has no patches against its source tree and tests in GNU Guix. It is possible. And getting it to work with Guix will make it bullet proof in other environments. |
@pjotrp sure. But how being unable to create a temporary directory is going to help us? A lot of our tests are asserting we are able to perform some operations against the file system. After all, we need to assert we can create directories, files, links, etc. |
No worries, you can create temporary directories in the build tree. But not outside. What is not clear to me is how it is getting done in above case. I guess I have to dig a little deeper. |
@pjotrp thank you, I understand it now. I misread the original report, it seems it is trying to create something in |
Actually the build system is in /tmp. It is not that bad. Looks like mkdir_p! misses out on creating the dir. I'll check why this is. Maybe it is a permission thing. |
I am closing this issue because it is a Guix environment thing and I have trouble replicating it outside the Guix build system. I will look into it again and post a fix when there is one. |
I am trying to update the installation of elixir 1.5.1 GNU Guix. The following dialyzer tests fail with
The GNU Guix build environment is restricted and I disabled these tests. Is there a way to fix them?
The text was updated successfully, but these errors were encountered: