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
singularity: add checkPhase #42374
singularity: add checkPhase #42374
Conversation
You can use |
added correct checkPhase, but fails to run correctly in nixpkgs
9d56526
to
eb148c5
Compare
@jtojnar excellent, but I am getting some somewhat expected problems do to some suid issues:
And output of the tmp directory:
But, I'm running this in a slightly odd environment (a container that uses sudo from the base OS image), so maybe it works for others on NixOS... |
@jtojnar I'm at a bit of a loss still - can you easily confirm if the issue exists on NixOS, or can we ask @GrahamcOfBorg to do a build with |
I do not think builders should ever run sudo. Not even sure what would the expected behaviour be. |
How does one run tests that require the suid bit set, then? I wonder if
there is a precedent.
…On Mon, Jul 2, 2018, 4:36 PM Jan Tojnar ***@***.***> wrote:
I do not think builders should ever run sudo. Not even sure what would the
expected behaviour be.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#42374 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AgI-Cwt_yUIUGQytSGNhv7nW2MTS6jB9ks5uCoRMgaJpZM4Uz17H>
.
|
You should be able to do so in NixOS tests, see nixos/tests directory. And the security.wrappers option. |
@GrahamcOfBorg build singularity |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: singularity Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: singularity Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: singularity Partial log (click to expand)
|
@GrahamcOfBorg build singularity |
Success on aarch64-linux (full log) Attempted: singularity Partial log (click to expand)
|
Our build sandbox does not allow to create setuid binaries. |
Success on x86_64-linux (full log) Attempted: singularity Partial log (click to expand)
|
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: singularity Partial log (click to expand)
|
Approach with |
added correct checkPhase, but fails to run correctly in nixpkgs
Motivation for this change
Currently singularity checks aren't run when
doCheck=true
is specified since we need to runmake test
, and because some aspects of singularity require many system tools, SUID, etc, it will be good to test.Things done
Currently, there is an issue; when
checkPhase
is run, it appears to be trying to look into a directory in the/nix/store
that may not exist yet. Can I have confirmation on if this is the likely problem, and suggestions for possible workarounds? It may require fixes on the Singularity code base, but i'll try to get them in.eventually resulted in:
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)