You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are running a test using GitHub Actions, which is written in Rust. During the test execution, no logs are printed to the terminal, and the test runs for a long time.
In our test process, there is a significant chance that the job will hang and eventually fail due to a timeout. After logging into the runner to investigate, we discovered that our script actually completes execution after 10 minutes, but the job remains in a "waiting" state until the 30-minute timeout is reached, seemingly unaware that the script has already finished. As a result, the runner hangs while waiting for the script to exit.
The step that causes runner to hang:
name: Run compaction tests
shell: bash
run: |
if [[ "${{ inputs.longtime }}" == "true" ]]; then
# Run tests in longtime mode.
bash -c ".github/e2e-config/run-compaction-tests.sh longtime -c .github/e2e-config/e2e-local-config.toml"
else
# Run tests in normal mode.
bash -c ".github/e2e-config/run-compaction-tests.sh normal -c .github/e2e-config/e2e-local-config.toml"
fi
Describe the bug
We are running a test using GitHub Actions, which is written in Rust. During the test execution, no logs are printed to the terminal, and the test runs for a long time.
In our test process, there is a significant chance that the job will hang and eventually fail due to a timeout. After logging into the runner to investigate, we discovered that our script actually completes execution after 10 minutes, but the job remains in a "waiting" state until the 30-minute timeout is reached, seemingly unaware that the script has already finished. As a result, the runner hangs while waiting for the script to exit.
The step that causes runner to hang:
Out test script:
Interestingly, we found that if the Rust program outputs logs intermittently to the terminal, the runner does not hang.
We suspect there may be an issue with how the GitHub runner waits for the script to complete.
To Reproduce
Sorry, we cannot provide a reproduction since our project is private.
Expected behavior
Github runner should always be notified that a script is completed
Runner Version and Platform
Version of your runner?
Unknown to me, sorry.
OS of the machine running the runner?
Linux
What's not working?
Job Log Output
Runner and Worker's Diagnostic Logs
The text was updated successfully, but these errors were encountered: