Skip to content

... Exec format error while running tests #584

@debtquity

Description

@debtquity

I have been noticing this issue while trying to run tests on darwin system:

# nixpkgs-review pr -p valkey.passthru.tests 486588
...
machine # [    4.947314] (s-server)[800]: redis.service: Failed to execute /nix/store/mm3ki4xxh3x6vbvv4494i6i96q2d2hkn-redis-8.2.3/bin/redis-server: Exec format error
machine # [    4.948803] (s-server)[800]: redis.service: Failed at step EXEC spawning /nix/store/mm3ki4xxh3x6vbvv4494i6i96q2d2hkn-redis-8.2.3/bin/redis-server: Exec format error
machine # [    4.949812] (s-server)[798]: redis-test.service: Failed to execute /nix/store/mm3ki4xxh3x6vbvv4494i6i96q2d2hkn-redis-8.2.3/bin/redis-server: Exec format error
machine # [    4.950495] (s-server)[798]: redis-test.service: Failed at step EXEC spawning /nix/store/mm3ki4xxh3x6vbvv4494i6i96q2d2hkn-redis-8.2.3/bin/redis-server: Exec format error
...

From what I gather, tests themselves are run inside of a qemu vm, so it should be copying aarch64-linux related binaries. But seems its using the host system binaries.

I end up having to run most, if not all, tests in NixOS VM (aarch64-linux). It's probably a macOS issue, but wonder if there's a fix.

nix-shell -p nix-info --run "nix-info -m"
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
 - system: `"aarch64-darwin"`
 - host os: `Darwin 24.6.0, macOS 15.7.3`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.31.3`
 - nixpkgs: `/nix/store/i88d8nffxs0n79mzgzrpnkiri3yi4isr-source`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions