diff options
author | Yurii Matsiuk <ymatsiuk@users.noreply.github.com> | 2021-08-04 14:00:16 +0200 |
---|---|---|
committer | Yurii Matsiuk <ymatsiuk@users.noreply.github.com> | 2021-08-04 14:06:51 +0200 |
commit | 7614ffb774c25674ddee5a7ffc5d4f7d7d047e4b (patch) | |
tree | 3785c03d3cffca85cb9f27be6e971e0a8689e410 /pkgs | |
parent | 677dc1b93b3c33f66ea66444516baf3c3e2d0aad (diff) |
teleport: 6.2.7 -> 6.2.8
Patch tests to lower the number of active connections to fix: --- FAIL: TestResolveDefaultAddrTimeoutBeforeAllRacersLaunched (0.28s) panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: socket: too many open files
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/servers/teleport/default.nix | 16 | ||||
-rw-r--r-- | pkgs/servers/teleport/test.patch | 13 |
2 files changed, 23 insertions, 6 deletions
diff --git a/pkgs/servers/teleport/default.nix b/pkgs/servers/teleport/default.nix index ad96798133b55..57866388b465c 100644 --- a/pkgs/servers/teleport/default.nix +++ b/pkgs/servers/teleport/default.nix @@ -4,21 +4,21 @@ let webassets = fetchFromGitHub { owner = "gravitational"; repo = "webassets"; - rev = "8a30ee4e3570c7db0566028b6b562167aa40f646"; - sha256 = "sha256-noMVcB1cjiMcRke6/qJIzDaEh4uPIewsedLQRdPbzIQ="; + rev = "c63397375632f1a4323918dde78334472f3ffbb9"; + sha256 = "sha256-6YKk0G3s+35PRsUBkKgu/tNoSSwjJ5bTn8DACF4gYr4="; }; in buildGoModule rec { pname = "teleport"; - version = "6.2.7"; + version = "6.2.8"; # This repo has a private submodule "e" which fetchgit cannot handle without failing. src = fetchFromGitHub { owner = "gravitational"; repo = "teleport"; rev = "v${version}"; - sha256 = "0ychs2pqi3awbr0vraz0ksddwk5hihrd1d9raq8mxyw5dz5124ki"; + sha256 = "sha256-TVjdz97CUXBKCQh9bYrvtcH4StblBMsXiQ9Gix/NIm4="; }; vendorSha256 = null; @@ -27,8 +27,12 @@ buildGoModule rec { nativeBuildInputs = [ zip makeWrapper ]; - # https://github.com/NixOS/nixpkgs/issues/120738 - patches = [ ./tsh.patch ]; + patches = [ + # https://github.com/NixOS/nixpkgs/issues/120738 + ./tsh.patch + # https://github.com/NixOS/nixpkgs/issues/132652 + ./test.patch + ]; postBuild = '' pushd . diff --git a/pkgs/servers/teleport/test.patch b/pkgs/servers/teleport/test.patch new file mode 100644 index 0000000000000..49f5a17663e1c --- /dev/null +++ b/pkgs/servers/teleport/test.patch @@ -0,0 +1,13 @@ +diff --git a/tool/tsh/resolve_default_addr_test.go b/tool/tsh/resolve_default_addr_test.go +index d5976f156..aec5199aa 100644 +--- a/tool/tsh/resolve_default_addr_test.go ++++ b/tool/tsh/resolve_default_addr_test.go +@@ -237,7 +237,7 @@ func TestResolveDefaultAddrTimeoutBeforeAllRacersLaunched(t *testing.T) { + + blockingHandler, doneCh := newWaitForeverHandler() + +- servers := make([]*httptest.Server, 1000) ++ servers := make([]*httptest.Server, 100) + for i := 0; i < len(servers); i++ { + servers[i] = makeTestServer(t, blockingHandler) + } |