ci: add timeout-minutes to scheduled workflow jobs
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.
@Ayushmore1214 @Warashi @khanhtc1202 If you find this issue valid , I can raise a PR immediately.
@Yashagarwal9798 you have been already assigned 2 issues lets keep this one for other contributors as well especially new contributors
@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?
Hey @Yashagarwal9798 @Ayushmore1214 i, I'd like to contribute to this issue. Is anyone currently working on it?
@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!
@kunal-yelgate yes assigning it to you! you can discuss approaches with @Yashagarwal9798 first before opening a PR
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!
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!
Thanks for your response @Ayushmore1214 ! just for confirmation , the next biweekly meet will be on 21st Oct right??
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.