retry icon indicating copy to clipboard operation
retry copied to clipboard

after timeout, the whole run fails without another attempt

Open gingerlime opened this issue 1 year ago • 1 comments

Describe the bug after timeout, the whole run fails without another attempt

Expected behavior as far as I can tell from the documentation, the timeout applies to each retry, so if it times-out on the first time, it will retry again etc

Screenshots

      - name: run bats tests
        uses: nick-fields/retry@v2
        with:
          timeout_minutes: 2
          max_attempts: 3
          command: |
            docker image ls -a
            for filename in tests/*.bats; do sudo bats --tap "$filename" || exit 1; done
/home/runner/work/_actions/nick-fields/retry/v2/dist/index.js:3199
            throw err;
            ^

Error: kill EPERM
    at process.kill (node:internal/process/per_thread:220:13)
    at killPid (/home/runner/work/_actions/nick-fields/retry/v2/dist/index.js:3209:17)
    at /home/runner/work/_actions/nick-fields/retry/v2/dist/index.js:3186:21
    at Array.forEach (<anonymous>)
    at /home/runner/work/_actions/nick-fields/retry/v2/dist/index.js:3184:23
    at Array.forEach (<anonymous>)
    at killAll (/home/runner/work/_actions/nick-fields/retry/v2/dist/index.js:3183:27)
    at /home/runner/work/_actions/nick-fields/retry/v2/dist/index.js:3174:13
    at ChildProcess.onClose (/home/runner/work/_actions/nick-fields/retry/v2/dist/index.js:3230:17)
    at ChildProcess.emit (node:events:527:28) {
  errno: -1,
  code: 'EPERM',
  syscall: 'kill'
}

Logs run

raw log with debug

gingerlime avatar Jun 14 '23 09:06 gingerlime

same thing here

image

My code:

https://github.com/bigbluebutton/bigbluebutton/blob/2b9870bea815d8aade79d088d966e5b804b377bf/.github/workflows/automated-tests.yml#L259

gustavotrott avatar Sep 10 '24 16:09 gustavotrott