Skip to content

sage: sage-tests take too long to run (24+ hrs) on aarch64-darwin #545650

Description

@t0yv0

Nixpkgs version

  • Unstable (26.11)

Describe the bug

When building nix build .#sage on an Apple Macbook Air M2, the tests take a prohibitively long time. I have not been able to see them complete in more than 24 hours of 100% CPU use. I believe hydra builds also time out on these tests, presumably using a more powerful CPU version.

I have not dug too much deeper yet but perhaps it could be beneficial to look into it some more; if linux completes the tests on time it's likely something specific to the math libraries on darwin. Even if the root cause cannot be eliminated perhaps doing some darwin-scoped exemptions to some of the most long running tests can get the system back to green on hydra which can be helpful in flagging regressions.

Steps to reproduce

nix build .sage on aarch64-darwin

Expected behaviour

Testing completes in reasonable time-frame (4 hours? 2 hours?).

Screenshots

No response

Relevant log output

Sampled the long-running process, logs here:

https://gist.github.com/t0yv0/5ae1e536b4b145bb0ddafcd381791a7d

Additional context

No response

System metadata

 - system: `"aarch64-darwin"`
 - host os: `Darwin 25.5.0, macOS 26.5.2`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.28.1`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/store/v68j0dy4xi3k9bv9fxn09pc5l03b1jhl-source`

Are you using nix-darwin?

Yes, I am using nix-darwin.

Notify maintainers

@collares appreciate your thoughts on the right course of action here.


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: darwinRunning or building packages on Darwin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions