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
Describe the bug
When timeout is reached, the action tries to kill the child process, but it throws an EPERM error
/home/runner/work/poco/poco/.github/actions/retry-action/dist/index.js:3353
throw err;
^
Error: kill EPERM
at process.kill (node:internal/process/per_thread:221:13)
at killPid (/home/runner/work/poco/poco/.github/actions/retry-action/dist/index.js:3363:17)
at /home/runner/work/poco/poco/.github/actions/retry-action/dist/index.js:3340:21
at Array.forEach (<anonymous>)
at /home/runner/work/poco/poco/.github/actions/retry-action/dist/index.js:3338:23
at Array.forEach (<anonymous>)
at killAll (/home/runner/work/poco/poco/.github/actions/retry-action/dist/index.js:3337:27)
at /home/runner/work/poco/poco/.github/actions/retry-action/dist/index.js:3328:13
at ChildProcess.onClose (/home/runner/work/poco/poco/.github/actions/retry-action/dist/index.js:3384:17)
at ChildProcess.emit (node:events:513:28) {
errno: -1,
code: 'EPERM',
syscall: 'kill'
}
## 📜 Description
Fixed an issue when additional runtime installation can not be
terminated after 10 minutes.
## 💡 Motivation and Context
When using [nick-fields/retry](https://github.com/nick-fields/retry) and
we interrupt sudo command then we are getting errors like this
nick-fields/retry#114 or
nick-fields/retry#124
To overcome this problem I decided to create own script for retrying a
command. This PR delivers that.
## 📢 Changelog
<!-- High level overview of important changes -->
<!-- For example: fixed status bar manipulation; added new types
declarations; -->
<!-- If your changes don't affect one of platform/language below - then
remove this platform/language -->
### CI
- replace `nick-fields/retry` with own action;
## 🤔 How Has This Been Tested?
Reduced timeout to 2 minutes and verified that action was repeated 3
times with 1 minute delay between attempts.
## 📸 Screenshots (if appropriate):
<img width="1312" alt="image"
src="https://github.com/user-attachments/assets/051aea2e-32d1-4878-bf8f-b6831948c7c2">
## 📝 Checklist
- [x] CI successfully passed
- [x] I added new mocks and corresponding unit-tests if library API was
changed
Describe the bug
When timeout is reached, the action tries to kill the child process, but it throws an EPERM error
Configuration:
Expected behavior
Should not throw, and the command should be retried
The text was updated successfully, but these errors were encountered: