I often run into issues where the somewhat leaky hermeticity of bazel hits hard hermeticity enforcements in NixOS, so things that sorta compile with bazel on 'regular' Linux machines are breaking on NixOS.
This often results in BCR modules being broken on NixOS because they exploit some hidden assumptions of the target system. Problem of course is, that this platform is not available as presubmit platform in BCR -- so many modules are broken silently with an uphill battle to fix them one PR at a time by users of a hermetic system.
It would be a real benefit if it was possible to have a NixOS CI platform to choose from (in particular in the BCR so that it is possible to fix things and be sure that they don't backslide.
I suspect the BCR choices of available presubmit platforms hinges on bazelbuild/continuous-integration, hence I file an issue here.
I see that there was work towards a Nix set-up available (#1703) , but then looks like it got removed again. I don't know all the context, but it would be good if this can be re-activated (and stay stuck). I am happy to help if needed.
This is what I see happened before:
CC @rickvanprim as he did a lot of work here
I often run into issues where the somewhat leaky hermeticity of bazel hits hard hermeticity enforcements in NixOS, so things that sorta compile with bazel on 'regular' Linux machines are breaking on NixOS.
This often results in BCR modules being broken on NixOS because they exploit some hidden assumptions of the target system. Problem of course is, that this platform is not available as presubmit platform in BCR -- so many modules are broken silently with an uphill battle to fix them one PR at a time by users of a hermetic system.
It would be a real benefit if it was possible to have a NixOS CI platform to choose from (in particular in the BCR so that it is possible to fix things and be sure that they don't backslide.
I suspect the BCR choices of available presubmit platforms hinges on
bazelbuild/continuous-integration, hence I file an issue here.I see that there was work towards a Nix set-up available (#1703) , but then looks like it got removed again. I don't know all the context, but it would be good if this can be re-activated (and stay stuck). I am happy to help if needed.
This is what I see happened before:
CC @rickvanprim as he did a lot of work here