Skip to content

evals: Add per-task timeout to k8s-bench#566

Merged
droot merged 1 commit into
GoogleCloudPlatform:mainfrom
noahlwest:task-timeout
Oct 7, 2025
Merged

evals: Add per-task timeout to k8s-bench#566
droot merged 1 commit into
GoogleCloudPlatform:mainfrom
noahlwest:task-timeout

Conversation

@noahlwest
Copy link
Copy Markdown
Collaborator

Adds default 5 minute timeout to any task. Per-task timeout can also be set in the task.yaml

@noahlwest noahlwest changed the title feat: Add per-task timeout to k8s-bench evals: Add per-task timeout to k8s-bench Oct 7, 2025
Comment thread k8s-bench/eval.go

// Run the agent
agentOutput, err := x.runAgent(ctx)
agentOutput, err := x.runAgent(taskCtx)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering reusing the same ctx is a good idea ? will this stack up the timeouts ? or will the overall setup/run will have a deadline of 5 mins or individually 5 min. deadline ?

Copy link
Copy Markdown
Collaborator Author

@noahlwest noahlwest Oct 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have a deadline of 5 minutes total per eval (create-canary gets 5m, fix-image-pull gets 5m, etc.) and the 5 minute limit is for the setup, run, and cleanup. We could up it to 10 to be safer since it includes the setup, run, and cleanup.

@droot droot merged commit 9e84c54 into GoogleCloudPlatform:main Oct 7, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants