CI: Kill CI Test after 2 hours#14849
Merged
Merged
Conversation
CI Test will sometimes run for 6 hours (before getting auto-terminated by GitHub): - apache#14808 - apache#14680 This is a problem because: - It will increase our usage of GitHub Runners. Which may overrun the [GitHub Actions Budget](https://infra.apache.org/github-actions-policy.html) allocated by ASF. - Suppose right after CI Test there's another build. If CI Test runs for all 6 hours, then the build after CI Test will never run. For this PR: We assume that Every CI Job (e.g. risc-v-05) will complete normally within 2 hours. If any CI Job exceeds 2 hours: This PR will kill the CI Test Process `pytest` and allow the next build to run.
1 task
xiaoxiang781216
approved these changes
Nov 19, 2024
simbit18
approved these changes
Nov 19, 2024
simbit18
added a commit
to simbit18/nuttx-apps
that referenced
this pull request
Mar 19, 2025
added
CI: Kill CI Test after 2 hours
see apache/nuttx#14849
job msvc Windows native
see
apache/nuttx#13894
apache/nuttx#15989
Signed-off-by: simbit18 <simbit18@gmail.com>
simbit18
added a commit
to simbit18/nuttx-apps
that referenced
this pull request
Mar 20, 2025
added
CI: Kill CI Test after 2 hours
see apache/nuttx#14849
job msvc Windows native
see
apache/nuttx#13894
apache/nuttx#15989
Signed-off-by: simbit18 <simbit18@gmail.com>
simbit18
added a commit
to simbit18/nuttx-apps
that referenced
this pull request
Mar 20, 2025
added
CI: Kill CI Test after 2 hours
see apache/nuttx#14849
job msvc Windows native
see
apache/nuttx#13894
apache/nuttx#15989
Signed-off-by: simbit18 <simbit18@gmail.com>
lupyuen
pushed a commit
to apache/nuttx-apps
that referenced
this pull request
Mar 20, 2025
added
CI: Kill CI Test after 2 hours
see apache/nuttx#14849
job msvc Windows native
see
apache/nuttx#13894
apache/nuttx#15989
Signed-off-by: simbit18 <simbit18@gmail.com>
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CI Test will sometimes run for 6 hours (before getting auto-terminated by GitHub):
This is a problem because:
For this PR: We assume that Every CI Job (e.g. risc-v-05) will complete normally within 2 hours. If any CI Job exceeds 2 hours: This PR will kill the CI Test Process
pytestand allow the next build to run.Impact
CI Test will no longer run beyond 2 hours. When the CI Test is killed after 2 hours: The CI Job will be reported as a Failed Job, after the subsequent builds have completed.
Testing
We tested at the NuttX Mirror Repo for CI Job risc-v-05. rv-virt:citest terminates after 2 hours, and allows the next build (rv-virt:citest64) to proceed. GitHub Actions reports CI Job risc-v-05 as a Failed Job.
https://github.com/NuttX/nuttx/actions/runs/11900221153/job/33160708989#step:7:306