Closed GTrunSec closed 3 years ago
testing error output:
nix-build release.nix -A tests.k8s-1_11.testsByName.k8s-crd.test
building '/nix/store/qy5qpmsn4fp64fhmy317ys6jk817dmi0-closure-info.drv'...
building '/nix/store/ssg2rpy3n5znd0pxjyk30nj6xfxa613f-run-nixos-vm.drv'...
building '/nix/store/vxjy3826ffsw30kajhi8lwplfslm7c23-nixos-vm.drv'...
building '/nix/store/55lc647kbll0l3zc0ncd8bdyrzk5z3vb-nixos-test-driver-k8s-crd.drv'...
error: cannot format /nix/store/y5gb7axmjbyajl5wc4rwmvdb96knnkjc-nixos-test-driver-k8s-crd/test-script: Cannot parse: 3:0: $kube->waitUntilSucceeds("kubectl get node kube.my.xzy | grep -w Ready");
Oh no! 💥 💔 💥
1 file would fail to reformat.
error: builder for '/nix/store/55lc647kbll0l3zc0ncd8bdyrzk5z3vb-nixos-test-driver-k8s-crd.drv' failed with exit code 123;
last 3 log lines:
> error: cannot format /nix/store/y5gb7axmjbyajl5wc4rwmvdb96knnkjc-nixos-test-driver-k8s-crd/test-script: Cannot parse: 3:0: $kube->waitUntilSucceeds("kubectl get node kube.my.xzy | grep -w Ready");
> Oh no! 💥 💔 💥
> 1 file would fail to reformat.
For full logs, run 'nix log /nix/store/55lc647kbll0l3zc0ncd8bdyrzk5z3vb-nixos-test-driver-k8s-crd.drv'.
error: 1 dependencies of derivation '/nix/store/ns0zfxg5jw3vdshqskzxnjs1mpb9l9r2-vm-test-run-k8s-crd.drv' failed to build
nix-build release.nix -A test-results --show-trace
nix-build release.nix -A test-results --show-trace
error: stack overflow (possible infinite recursion)
By the way, Does the test in a specific rev of nixpkgs?
Nice!
That appears to be a python black
formatting error:
I might be suspecting it hits this code path:
WTF?
Ok stuff like this:
$kube->waitUntilSucceeds("kubectl get node kube.my.xzy | grep -w Ready");
Might need to become stuff like this
kube.wait_until_succeeds("kubectl get node kube.my.xzy | grep -w Ready")
After that, there seems to be an overzealous linting going on: https://github.com/NixOS/nixpkgs/issues/121066
@GTrunSec #28 has one additional commit to fix the issue.
nix flake show output: