nix remote jobs are not working correctly on CI
Closed this issue · 0 comments
avdv commented
Describe the bug
I noticed that the nix remote CI jobs (withNixRemote = true
) actually don't run remotely since the NIX_REMOTE_ENABLED
variable which is checked here:
rules_nixpkgs/.github/workflows/workflow.yaml
Lines 60 to 63 in c1afab1
is actually set to
matrix.withNixRemote && matrix.os == 'ubuntu-latest'
verbatim, so the condition is never true.
After fixing that problem (see 5046b7d), the jobs fail with:
Return code: 1
Error output:
> warning: unknown setting 'always-allow-substitutes'
> ssh: connect to host localhost port 2222: Connection refused
> error: failed to start SSH connection to 'nix-server'
See https://github.com/tweag/rules_nixpkgs/actions/runs/9875397903/job/27271997561
To Reproduce
Expected behavior
CI jobs should be able to use the nix server that is started inside a Docker container.
Environment
- OS name + version: ubuntu-latest
- Version of the code:
Additional context
I am going to disable the jobs for now. @z8v could you have a look to see what's going on?