Open shivaraj-bh opened 5 months ago
Is it just darwin
? wouldn’t it also affect linux
?
Edit: So far, there hasn’t been any issue reported about the inconsistencies happening on Linux but stdenv
in Linux could also have packages which the host machine will not during runtime
Is this something to do with sandbox being disabled by default on darwin?
Is this something to do with sandbox being disabled by default on darwin?
No, it is to do with some packages (belonging to stdenv-darwin
) being present in the runCommand
’s environment (making the CI pass), while not being present in the environment while nix run
ing the service. Leading to regressions like:
https://github.com/juspay/services-flake/pull/163 https://github.com/juspay/services-flake/pull/164
CI uses
nix flake check
, which calls theprocess-compose
app wrapped insidepkgs.runCommand
. The apps that run insiderunCommand
gets a few packages by default, for examplereadlink
fromcoreutils
. This behaviour could make the tests pass in CI but fail on runtime (when ran usingnix run
), if the service doesn’t pass those packages in its environment.For more detailed analysis, see: https://github.com/juspay/services-flake/pull/164#issuecomment-2053876700