e2e: shorten restart delay in docker registry task (#26729)

tests that use this local docker registry (docker and podman tests)
occasionally flake, I think due to the timeout being reached,
despite passing after a restart.

> jobs3.go:658: tg 'create-files' task 'create-auth-file' event: Task received by client
> jobs3.go:658: tg 'create-files' task 'create-auth-file' event: Building Task Directory
> jobs3.go:658: tg 'create-files' task 'create-auth-file' event: Task started by client
> jobs3.go:658: tg 'create-files' task 'create-auth-file' event: Exit Code: 1
> jobs3.go:658: tg 'create-files' task 'create-auth-file' event: Task restarting in 16.212149445s
> jobs3.go:658: tg 'create-files' task 'create-auth-file' event: Task started by client
> jobs3.go:658: tg 'create-files' task 'create-auth-file' event: Exit Code: 0

setting the delay lower will (hopefully) keep within the job timeout.

I'm not sure why the `pledge` task apparently flakes like this;
I could find no useful info in the logs.
This commit is contained in:
Daniel Bennett
2025-09-08 15:21:08 -04:00
committed by GitHub
parent db8ecac20d
commit cb3e49f3e4

View File

@@ -47,6 +47,10 @@ job "registry-auths" {
group "create-files" { group "create-files" {
restart {
delay = "2s"
}
# write out the test.sh file into var.helper_dir # write out the test.sh file into var.helper_dir
task "create-helper-file" { task "create-helper-file" {
driver = "pledge" driver = "pledge"