From bcc56d8d671867b765654c3c23d73baf65c36272 Mon Sep 17 00:00:00 2001 From: Anastasios Papagiannis Date: Wed, 12 Jun 2024 16:05:43 +0000 Subject: [PATCH 1/2] Add contrib/tester-progs/user-stacktrace to gitignore Signed-off-by: Anastasios Papagiannis --- contrib/tester-progs/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/tester-progs/.gitignore b/contrib/tester-progs/.gitignore index ee74dd59c03..d09711bef2d 100644 --- a/contrib/tester-progs/.gitignore +++ b/contrib/tester-progs/.gitignore @@ -22,3 +22,4 @@ enforcer-tester-32 drop-privileges change-capabilities direct-write-tester +user-stacktrace From 1b24ceaf8c8f2bf9ed317ba3e31ef7d90e0681f8 Mon Sep 17 00:00:00 2001 From: Anastasios Papagiannis Date: Wed, 12 Jun 2024 16:07:15 +0000 Subject: [PATCH 2/2] Increase maximum number of tries in WaitForTracingPolicy After merging https://github.com/cilium/tetragon/pull/2506 it seems that there are cases where 10 * 1 sec is not enough when waiting for a tracing policy to load (mainly in e2e tests). This patch increases that to 20 * 1 sec to avoid timeouts. Signed-off-by: Anastasios Papagiannis --- tests/e2e/helpers/grpc/grpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/helpers/grpc/grpc.go b/tests/e2e/helpers/grpc/grpc.go index f2c4615ae15..7d7b6d939e4 100644 --- a/tests/e2e/helpers/grpc/grpc.go +++ b/tests/e2e/helpers/grpc/grpc.go @@ -24,7 +24,7 @@ func WaitForTracingPolicy(ctx context.Context, policyName string) error { return fmt.Errorf("failed to find tetragon grpc forwarded ports") } - maxTries := 10 + maxTries := 20 for podName, grpcPort := range tetraPorts { addr := fmt.Sprintf("127.0.0.1:%d", grpcPort) // NB(kkourt): maybe it would make sense to cache the grpc connections in the