e2e: sleep to ensure logs are picked up (#16596)

:(
This commit is contained in:
Michael Schurter 2023-03-21 14:10:50 -07:00 committed by GitHub
parent ad774ccfa1
commit 4678dc7b4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 5 deletions

View File

@ -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