tests.build-environment-info: init

We just had a marathon session trying to fix `ulimit -n` on Hydra and
have no easy way to test that it worked.
This commit is contained in:
Emily 2024-10-28 01:57:16 +00:00
parent f366c7cf5a
commit 298b92814b
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,11 @@
{ runCommand }:
# Prints information about the state of the build environment for
# assistance debugging Hydra. Feel free to add anything you would find
# useful to this.
runCommand "build-environment-info" { } ''
ulimit -a
# Always fail so that this job can easily be restarted.
exit 1
''

View File

@ -185,4 +185,6 @@ with pkgs;
replaceVars = recurseIntoAttrs (callPackage ./replace-vars { });
substitute = recurseIntoAttrs (callPackage ./substitute { });
build-environment-info = callPackage ./build-environment-info { };
}