Open ghostwriter opened 1 year ago
That's really strange as actions/cache@v3 has 2 timeout (since at least 4 months now) :
So your step should have been stopped after max 1 hour (even 10 minutes if it was a segment stuck).
Anyway, the segment timeout can be configured on actions/cache with env var SEGMENT_DOWNLOAD_TIMEOUT_MINS
(default to 10 min), but I'm not sure if it is handled without any change into composer-install action.
Edit: that comment is because I had the same problem, except the cache action had a timeout after 10 minutes.
It happened again, timed out after 6 hours.
What does “closed as not planned” mean?
"Closed as not planned" is just GitHub UI string.
In this case, the issue was closed because there was no response from you (the author), at all, and it was deemed by us as stale and unreproducible now based on the information available in the GitHub logs.
I assure you that I have no alternative motives or hidden intentions.
The alternative would mark this issue as resolved.
Additionally, I no longer have this issue and do not want to keep it open.
Oh, interesting. I didn't realize they had added that to the "close" button.
I had not been able to reproduce this, so I was waiting to see if others found this issue and reported they were experiencing similar things.
So, to confirm, you're no longer able to reproduce this?
That is correct.
Something is still causing this to run for up to 6 hours, but I personally am no longer able to reproduce this.
Job execution time - Each job in a workflow can run for up to 6 hours of execution time. If a job reaches this limit, the job is terminated and fails to complete.
Do you think the problem that causes it to run that long is in this project or somewhere else?
The problem that causes it to run that long is not in this project, it's in actions/cache
.
However, this project runs actions/cache
internally and the issue here is not properly handling actions/cache
issues.
As stated above,
https://github.com/actions/cache/blob/f7ebb81a3f195b4fb88dab7c14e2f7aff52045aa/README.md#L26-L28
SEGMENT_DOWNLOAD_TIMEOUT_MINS
. Default is 10 minutes.eg. There is currently no way to use SEGMENT_DOWNLOAD_TIMEOUT_MINS
using this project.
Hey @ramsey,
Thank you for creating this tool, it has been very helpful.
I wanted to report finding this GitHub Action running for 3+ hours and had to manually cancel it.
Description
It had the following warning:
Then it continued to run for 3+ hours (not sure doing what) until manually canceled.
Steps to reproduce
I have a reusable workflow defined in
ghostwriter/compliance
https://github.com/ghostwriter/compliance/#/.github/workflows/automation.yml#L60-L63
That workflow is used in
ghostwriter/psalm-plugin-tester
https://github.com/ghostwriter/psalm-plugin-tester/actions/runs/5432766284/workflowIt generated these jobs
https://github.com/ghostwriter/psalm-plugin-tester/actions/runs/5432766284/jobs/9880024230
Expected behavior
Continue to the next step or fail gracefully when it fails to restore the cache.
Screenshots or output
https://github.com/ghostwriter/psalm-plugin-tester/actions/runs/5432766284/jobs/9880024230
Click to view Raw Logs
``` 2023-07-01T19:43:18.1919234Z Requested labels: ubuntu-latest 2023-07-01T19:43:18.1919467Z Job defined at: ghostwriter/compliance/.github/workflows/automation.yml@refs/heads/v1 2023-07-01T19:43:18.1919645Z Reusable workflow chain: 2023-07-01T19:43:18.1919746Z ghostwriter/psalm-plugin-tester/.github/workflows/compliance.yml@refs/heads/main (a608ac19d07733d8ef207a8bd34bb45adc7cd93e) 2023-07-01T19:43:18.1919840Z -> ghostwriter/compliance/.github/workflows/automation.yml@refs/heads/v1 (3bf14b28b941722c423f8171861d927f41466e4b) 2023-07-01T19:43:18.1919920Z Waiting for a runner to pick up this job... 2023-07-01T19:43:19.2499773Z Job is waiting for a hosted runner to come online. 2023-07-01T19:43:21.0940986Z Job is about to start running on the hosted runner: GitHub Actions 5 (hosted) 2023-07-01T19:43:23.7566335Z Current runner version: '2.305.0' 2023-07-01T19:43:23.7595345Z ##[group]Operating System 2023-07-01T19:43:23.7595848Z Ubuntu 2023-07-01T19:43:23.7596147Z 22.04.2 2023-07-01T19:43:23.7596495Z LTS 2023-07-01T19:43:23.7596754Z ##[endgroup] 2023-07-01T19:43:23.7597102Z ##[group]Runner Image 2023-07-01T19:43:23.7597482Z Image: ubuntu-22.04 2023-07-01T19:43:23.7597778Z Version: 20230625.1.0 2023-07-01T19:43:23.7598346Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20230625.1.0/images/linux/Ubuntu2204-Readme.md 2023-07-01T19:43:23.7599046Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20230625.1.0 2023-07-01T19:43:23.7599464Z ##[endgroup] 2023-07-01T19:43:23.7599819Z ##[group]Runner Image Provisioner 2023-07-01T19:43:23.7600164Z 2.0.238.1 2023-07-01T19:43:23.7600444Z ##[endgroup] 2023-07-01T19:43:23.7601154Z ##[group]GITHUB_TOKEN Permissions 2023-07-01T19:43:23.7601691Z Contents: read 2023-07-01T19:43:23.7602203Z Metadata: read 2023-07-01T19:43:23.7602642Z Packages: read 2023-07-01T19:43:23.7602970Z ##[endgroup] 2023-07-01T19:43:23.7606591Z Secret source: Actions 2023-07-01T19:43:23.7607216Z Prepare workflow directory 2023-07-01T19:43:23.8343540Z Prepare all required actions 2023-07-01T19:43:23.8534827Z Getting action download info 2023-07-01T19:43:24.0881944Z Download action repository 'actions/checkout@v3' (SHA:c85c95e3d7251135ab7dc9ce3241c5835cc595a9) 2023-07-01T19:43:24.9608826Z Download action repository 'shivammathur/setup-php@v2' (SHA:4bd44f22a98a19e0950cbad5f31095157cc9621b) 2023-07-01T19:43:25.6319014Z Download action repository 'ramsey/composer-install@v2' (SHA:12e7194f379a3773679641adfdfdade1eea3c086) 2023-07-01T19:43:26.1771532Z Getting action download info 2023-07-01T19:43:26.3265492Z Download action repository 'actions/cache@v3' (SHA:88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8) 2023-07-01T19:43:27.2760425Z Uses: ghostwriter/compliance/.github/workflows/automation.yml@refs/heads/v1 (3bf14b28b941722c423f8171861d927f41466e4b) 2023-07-01T19:43:27.2762221Z Complete job name: automation / ECS on PHP 8.1 with highest dependencies 2023-07-01T19:43:27.3560121Z ##[group]Run actions/checkout@v3 2023-07-01T19:43:27.3560414Z with: 2023-07-01T19:43:27.3560722Z repository: ghostwriter/psalm-plugin-tester 2023-07-01T19:43:27.3561249Z token: *** 2023-07-01T19:43:27.3561451Z ssh-strict: true 2023-07-01T19:43:27.3561706Z persist-credentials: true 2023-07-01T19:43:27.3561951Z clean: true 2023-07-01T19:43:27.3562194Z sparse-checkout-cone-mode: true 2023-07-01T19:43:27.3562452Z fetch-depth: 1 2023-07-01T19:43:27.3562681Z lfs: false 2023-07-01T19:43:27.3562883Z submodules: false 2023-07-01T19:43:27.3563149Z set-safe-directory: true 2023-07-01T19:43:27.3563452Z ##[endgroup] 2023-07-01T19:43:27.6367598Z Syncing repository: ghostwriter/psalm-plugin-tester 2023-07-01T19:43:27.6369345Z ##[group]Getting Git version info 2023-07-01T19:43:27.6369917Z Working directory is '/home/runner/work/psalm-plugin-tester/psalm-plugin-tester' 2023-07-01T19:43:27.6371358Z [command]/usr/bin/git version 2023-07-01T19:43:27.6430417Z git version 2.41.0 2023-07-01T19:43:27.6457359Z ##[endgroup] 2023-07-01T19:43:27.6475212Z Temporarily overriding HOME='/home/runner/work/_temp/e1260041-712a-4c82-b995-fa68573df6ad' before making global git config changes 2023-07-01T19:43:27.6476858Z Adding repository directory to the temporary git global config as a safe directory 2023-07-01T19:43:27.6501252Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/psalm-plugin-tester/psalm-plugin-tester 2023-07-01T19:43:27.6537129Z Deleting the contents of '/home/runner/work/psalm-plugin-tester/psalm-plugin-tester' 2023-07-01T19:43:27.6542788Z ##[group]Initializing the repository 2023-07-01T19:43:27.6546702Z [command]/usr/bin/git init /home/runner/work/psalm-plugin-tester/psalm-plugin-tester 2023-07-01T19:43:27.6633273Z hint: Using 'master' as the name for the initial branch. This default branch name 2023-07-01T19:43:27.6634176Z hint: is subject to change. To configure the initial branch name to use in all 2023-07-01T19:43:27.6634993Z hint: of your new repositories, which will suppress this warning, call: 2023-07-01T19:43:27.6635285Z hint: 2023-07-01T19:43:27.6635745Z hint: git config --global init.defaultBranchEnvironment details
Additional context