From 4678dc7b4da3e08c41bf05f4b420fe37a6be2592 Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Tue, 21 Mar 2023 14:10:50 -0700 Subject: [PATCH] e2e: sleep to ensure logs are picked up (#16596) :( --- e2e/workload_id/input/identity.nomad | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/e2e/workload_id/input/identity.nomad b/e2e/workload_id/input/identity.nomad index 850278078..08d91e50c 100644 --- a/e2e/workload_id/input/identity.nomad +++ b/e2e/workload_id/input/identity.nomad @@ -14,7 +14,9 @@ job "identity" { driver = "docker" config { image = "bash:5" - args = ["-c", "wc -c < secrets/nomad_token; env | grep NOMAD_TOKEN; echo done"] + + #HACK(schmichael) without the ending `sleep 2` we seem to sometimes miss logs :( + args = ["-c", "wc -c < secrets/nomad_token; env | grep NOMAD_TOKEN; echo done; sleep 2"] } resources { cpu = 16 @@ -31,7 +33,9 @@ job "identity" { driver = "docker" config { image = "bash:5" - args = ["-c", "wc -c < secrets/nomad_token; env | grep NOMAD_TOKEN; echo done"] + + #HACK(schmichael) without the ending `sleep 2` we seem to sometimes miss logs :( + args = ["-c", "wc -c < secrets/nomad_token; env | grep NOMAD_TOKEN; echo done; sleep 2"] } resources { cpu = 16 @@ -51,7 +55,9 @@ job "identity" { driver = "docker" config { image = "bash:5" - args = ["-c", "wc -c < secrets/nomad_token; env | grep NOMAD_TOKEN; echo done"] + + #HACK(schmichael) without the ending `sleep 2` we seem to sometimes miss logs :( + args = ["-c", "wc -c < secrets/nomad_token; env | grep NOMAD_TOKEN; echo done; sleep 2"] } resources { cpu = 16 @@ -70,7 +76,9 @@ job "identity" { driver = "docker" config { image = "bash:5" - args = ["-c", "wc -c < secrets/nomad_token; env | grep NOMAD_TOKEN; echo done"] + + #HACK(schmichael) without the ending `sleep 2` we seem to sometimes miss logs :( + args = ["-c", "wc -c < secrets/nomad_token; env | grep NOMAD_TOKEN; echo done; sleep 2"] } resources { cpu = 16 @@ -90,7 +98,9 @@ job "identity" { driver = "docker" config { image = "bash:5" - args = ["-c", "wc -c < secrets/nomad_token; env | grep NOMAD_TOKEN; echo done"] + + #HACK(schmichael) without the ending `sleep 2` we seem to sometimes miss logs :( + args = ["-c", "wc -c < secrets/nomad_token; env | grep NOMAD_TOKEN; echo done; sleep 2"] } resources { cpu = 16