From 298b92814bf842164b71c8697f2b873a93b85a0c Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 28 Oct 2024 01:57:16 +0000 Subject: [PATCH] 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. --- pkgs/test/build-environment-info/default.nix | 11 +++++++++++ pkgs/test/default.nix | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 pkgs/test/build-environment-info/default.nix diff --git a/pkgs/test/build-environment-info/default.nix b/pkgs/test/build-environment-info/default.nix new file mode 100644 index 000000000000..f0c71d8d1eaf --- /dev/null +++ b/pkgs/test/build-environment-info/default.nix @@ -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 +'' diff --git a/pkgs/test/default.nix b/pkgs/test/default.nix index e300672ddcac..bb910013d3ce 100644 --- a/pkgs/test/default.nix +++ b/pkgs/test/default.nix @@ -185,4 +185,6 @@ with pkgs; replaceVars = recurseIntoAttrs (callPackage ./replace-vars { }); substitute = recurseIntoAttrs (callPackage ./substitute { }); + + build-environment-info = callPackage ./build-environment-info { }; }