Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gha: Set timeout-minutes on build-dind and labeler jobs#52806

Merged
thaJeztah merged 1 commit into
moby:masterfrom
takumi12311123:45233-add-timeout-minutes
Jun 12, 2026
Merged

gha: Set timeout-minutes on build-dind and labeler jobs#52806
thaJeztah merged 1 commit into
moby:masterfrom
takumi12311123:45233-add-timeout-minutes

Conversation

@takumi12311123

@takumi12311123 takumi12311123 commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary

The build-dind job in ci.yml and the labeler job in labeler.yml were the only two jobs running directly via runs-on: that did not have a timeout-minutes guardrail. This adds a 120-minute timeout to both, following the maintainer guidance in the issue to use 120 minutes as a conservative starting point to prevent runaway jobs:

I think we used the 2-hours to prevent "runaway jobs", and that could be a good start already.

Per-job tuning to each job's usual runtime is left as a follow-up, as also suggested in the issue.

Other workflow files (bin-image.yml, vm.yml, zizmor.yml, windows-2022.yml, windows-2025.yml) only call reusable workflows via uses:, so timeout-minutes cannot be set on those caller jobs — the reusable workflows they call (.dco.yml, .vm.yml, .windows.yml) already define their own timeout-minutes.

Release notes (optional)

Comment thread .github/workflows/labeler.yml Outdated
contents: read
pull-requests: write
runs-on: ubuntu-latest
timeout-minutes: 120

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We can keep this one even lower - like 5 minutes?

@takumi12311123 takumi12311123 Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated to 5 minutes. Thanks!

@takumi12311123 takumi12311123 force-pushed the 45233-add-timeout-minutes branch from b41b45f to 1da00ff Compare June 12, 2026 03:40
@takumi12311123 takumi12311123 requested a review from vvoland June 12, 2026 03:44
@thaJeztah

Copy link
Copy Markdown
Member

CI is failing on the commit message;

Error: Commit 1da00ffe9975ffa94008099bd479c3facd70dd8e contains a GitHub issue or PR reference. Reference commit hashes instead.

Can you remove the Closes #xxx line from the commit message? We try to avoid those to prevent PRs from pre-maturely closing tickets and GitHub tends to be noisy when commits get back ported (which can be in forks);

gha: Set timeout-minutes on build-dind and labeler jobs

These were the only two jobs running directly via `runs-on:` that did
not have a `timeout-minutes` guardrail. Add 120 minutes as a starting
point to prevent runaway jobs, matching the existing convention used
elsewhere in the workflows. Tuning each job's timeout to its usual
runtime is left as a follow-up, as suggested in the issue.

Closes #45233

These were the only two jobs running directly via `runs-on:` that did
not have a `timeout-minutes` guardrail. Add 120 minutes as a starting
point to prevent runaway jobs, matching the existing convention used
elsewhere in the workflows. Tuning each job's timeout to its usual
runtime is left as a follow-up, as suggested in the issue.

Signed-off-by: Takumi Akasaka <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added this to the 29.6.0 milestone Jun 12, 2026
@thaJeztah thaJeztah force-pushed the 45233-add-timeout-minutes branch from 1da00ff to 7e8d2d1 Compare June 12, 2026 14:11

@thaJeztah thaJeztah left a comment

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.

LGTM (removed the ticket reference from the commit message)

@thaJeztah thaJeztah merged commit a2bb71a into moby:master Jun 12, 2026
66 of 69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gha: configure timeouts for all checks

3 participants