pipecd icon indicating copy to clipboard operation
pipecd copied to clipboard

ci: add timeout-minutes to scheduled workflow jobs

Open Yashagarwal9798 opened this issue 5 months ago • 11 comments

What would you like to be added?

Some scheduled GitHub Actions workflow jobs should define timeout-minutes.

These scheduled workflow jobs currently do not define one:

  • .github/workflows/codeql-analysis.yaml: analyze
  • .github/workflows/stale.yaml: stale

I suggest adding explicit timeouts to these jobs, for example:

timeout-minutes: 60

For stale.yaml, a shorter timeout such as 15 minutes may be enough because it only runs actions/stale.

The repository already uses explicit job timeouts in other workflows, such as .github/workflows/build_tool.yaml and .github/workflows/publish_tool.yaml.

Why is this needed?

Scheduled workflows run without direct user interaction, so a stuck job can occupy a runner until the default GitHub Actions timeout is reached.

Adding explicit timeouts makes these jobs fail faster when they hang and keeps runner usage bounded.

Yashagarwal9798 avatar Jun 07 '26 21:06 Yashagarwal9798

@Ayushmore1214 @Warashi @khanhtc1202 If you find this issue valid , I can raise a PR immediately.

Yashagarwal9798 avatar Jun 07 '26 21:06 Yashagarwal9798

@Yashagarwal9798 you have been already assigned 2 issues lets keep this one for other contributors as well especially new contributors

Ayushmore1214 avatar Jun 21 '26 06:06 Ayushmore1214

@Warashi @Ayushmore1214 Since I have already raised PRs for all my previously assigned issues, I have the time to take this one on. Alternatively, could you suggest a better issue for me to tackle?

Yashagarwal9798 avatar Jun 21 '26 11:06 Yashagarwal9798

Hey @Yashagarwal9798 @Ayushmore1214 i, I'd like to contribute to this issue. Is anyone currently working on it?

kunal-yelgate avatar Jun 23 '26 15:06 kunal-yelgate

@Yashagarwal9798 can you plz take other issues, you can now take any issue from the repo as you have some context around the project, you can help @kunal-yelgate with his PR if you want to thanks!

Ayushmore1214 avatar Jun 23 '26 15:06 Ayushmore1214

@kunal-yelgate yes assigning it to you! you can discuss approaches with @Yashagarwal9798 first before opening a PR

Ayushmore1214 avatar Jun 23 '26 15:06 Ayushmore1214

Hi maintainers! I noticed that PR #6940 was closed due to inactivity, and the discussion mentioned that this change might need further consideration at a biweekly meeting.

I checked the current master branch and found that the analyze job in codeql-analysis.yaml and the stale job in stale.yaml still don't have explicit timeout-minutes configured.

Would this change still be useful to the project? If so, I'd be happy to work on a small PR addressing this issue while keeping the changes limited to the two timeout additions.

Thanks!

Rahul2245 avatar Oct 14 '26 14:10 Rahul2245

Hey @Rahul2245 thanks for showing interest here, as you know this needs further discussion in the meet it is better to attend the meet first and share your thoughts and approach there before opening any issue!

Ayushmore1214 avatar Oct 14 '26 14:10 Ayushmore1214

Thanks for your response @Ayushmore1214 ! just for confirmation , the next biweekly meet will be on 21st Oct right??

Rahul2245 avatar Oct 14 '26 15:10 Rahul2245

the next biweekly meet will be on 21st Oct right??

that's correct - joining link, see you there!!

rahulshendre avatar Oct 14 '26 15:10 rahulshendre

Hi maintainers! I have attended the meeting today, I have shared the thoughts about this issue with @rahulshendre. Can I go with submitting an idea working on this issue or keep awaiting for discussions on future meetings.

Rahul2245 avatar Oct 21 '26 13:10 Rahul2245