-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Tests have been failing on macos for a while now, with two (presumably) different problems:
- Timeouts (GitHub cancels the test after 6 hours). I'm not sure whether this is a real issue or a GitHub infrastructure problem.
- Test failures like
equal-contents-name> --- /nix/store/pab7cbfqzymhbxld1fv6hga8pm2ylrxw-interactive
equal-contents-name> +++ /nix/store/kkwwsc553616kw0lk911w499ynpnwdrb-doom-expected
equal-contents-name> ├── stat {}
equal-contents-name> │ @@ -1,7 +1,7 @@
equal-contents-name> │
equal-contents-name> │ Size: 14 Blocks: 8 IO Block: 4096 regular file
equal-contents-name> │ -Device: 1,20 Access: (0444/-r--r--r--) Uid: ( 0/ root) Gid: ( 0/ wheel)
equal-contents-name> │ +Device: 1,20 Access: (0444/-r--r--r--) Uid: ( 0/ root) Gid: ( 350/ nixbld)
equal-contents-name> │
equal-contents-name> │ Modify: 1970-01-01 00:00:01.000000000 +0000
...
equal-contents-name> Contents must be equal, but were not!
equal-contents-name> +: expected, at /nix/store/kkwwsc553616kw0lk911w499ynpnwdrb-doom-expected
equal-contents-name> -: unexpected, at /nix/store/pab7cbfqzymhbxld1fv6hga8pm2ylrxw-interactive
I do not understand this failure (unless it's either a MacOS or Nix bug): on Linux, everything in the store is root-owned, and I'd expect everything on MacOS to also be owned by some consistent group... at first glance this looks like something is still owned by a group used by the builder user that I'd really expect to have had its (user and group) ownership changed to root before this next build step can see it. Instead it's owned by the root user (which hopefully it wasn't built as) but the nixbld group...
I may end up disabling tests on MacOS (and ask users to file issues if things are actually broken on MacOS) as I don't have a dev environment set up in which I can reproduce and test this, and troubleshooting this in CI is likely to be cumbersome.