_tool directory does not run clean up
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 1.4k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 24
Description
Describe the bug
_work/_tool is growing in space and does not remove old versions.,
To Reproduce
Steps to reproduce the behavior:
- Check the size of _tool directory especially gcloud and CodeQL
Expected behavior
Post install of a newer version of tool/runner the old versions should be removed.
Runner Version and Platform
Version of your runner? 2.303.0
OS of the machine running the runner? Linux x86
What's not working?
Size of the _tool directory is nearly 100GB.
Job Log Output
root@imvbuild10:/home/ghrunner1/actions-runner/_work/_tool# du -sh *
32G CodeQL
63G gcloud
3.6G ndk
359M node
root@imvbuild10:/home/ghrunner1/actions-runner/_work/_tool# cd gcloud/
root@imvbuild10:/home/ghrunner1/actions-runner/_work/_tool/gcloud# ll
total 176
drwxr-xr-x 44 root root 4096 Apr 4 17:11 ./
drwxr-xr-x 6 root root 4096 Nov 25 23:22 ../
drwxr-xr-x 3 root root 4096 May 27 2022 387.0.0/
drwxr-xr-x 3 root root 4096 Jun 3 2022 388.0.0/
drwxr-xr-x 3 root root 4096 Jun 8 2022 389.0.0/
drwxr-xr-x 3 root root 4096 Jun 16 2022 390.0.0/
drwxr-xr-x 3 root root 4096 Jun 22 2022 391.0.0/
drwxr-xr-x 3 root root 4096 Jun 28 2022 392.0.0/
drwxr-xr-x 3 root root 4096 Jul 12 2022 393.0.0/
drwxr-xr-x 3 root root 4096 Jul 20 2022 394.0.0/
drwxr-xr-x 3 root root 4096 Jul 26 2022 395.0.0/
drwxr-xr-x 3 root root 4096 Aug 2 2022 396.0.0/
drwxr-xr-x 3 root root 4096 Aug 9 2022 397.0.0/
drwxr-xr-x 3 root root 4096 Aug 17 2022 398.0.0/
drwxr-xr-x 3 root root 4096 Aug 24 2022 399.0.0/
drwxr-xr-x 3 root root 4096 Aug 30 2022 400.0.0/
drwxr-xr-x 3 root root 4096 Sep 7 2022 401.0.0/
drwxr-xr-x 3 root root 4096 Sep 13 2022 402.0.0/
drwxr-xr-x 3 root root 4096 Sep 21 2022 403.0.0/
drwxr-xr-x 3 root root 4096 Sep 27 2022 404.0.0/
drwxr-xr-x 3 root root 4096 Oct 4 2022 405.0.0/
drwxr-xr-x 3 root root 4096 Oct 15 05:05 405.0.1/
drwxr-xr-x 3 root root 4096 Oct 18 07:26 406.0.0/
drwxr-xr-x 3 root root 4096 Oct 25 19:34 407.0.0/
drwxr-xr-x 3 root root 4096 Nov 1 18:46 408.0.0/
drwxr-xr-x 3 root root 4096 Nov 3 05:40 408.0.1/
drwxr-xr-x 3 root root 4096 Nov 8 21:04 409.0.0/
drwxr-xr-x 3 root root 4096 Nov 16 06:41 410.0.0/
drwxr-xr-x 3 root root 4096 Dec 6 20:02 411.0.0/
drwxr-xr-x 3 root root 4096 Dec 13 17:47 412.0.0/
drwxr-xr-x 3 root root 4096 Jan 10 15:03 413.0.0/
drwxr-xr-x 3 root root 4096 Jan 18 18:22 414.0.0/
drwxr-xr-x 3 root root 4096 Jan 24 17:59 415.0.0/
drwxr-xr-x 3 root root 4096 Jan 31 16:36 416.0.0/
drwxr-xr-x 3 root root 4096 Feb 7 17:33 417.0.0/
drwxr-xr-x 3 root root 4096 Feb 8 21:21 417.0.1/
drwxr-xr-x 3 root root 4096 Feb 15 07:49 418.0.0/
drwxr-xr-x 3 root root 4096 Feb 22 19:45 419.0.0/
drwxr-xr-x 3 root root 4096 Feb 28 16:41 420.0.0/
drwxr-xr-x 3 root root 4096 Mar 8 07:59 421.0.0/
drwxr-xr-x 3 root root 4096 Mar 14 15:41 422.0.0/
drwxr-xr-x 3 root root 4096 Mar 21 13:51 423.0.0/
drwxr-xr-x 3 root root 4096 Mar 29 04:03 424.0.0/
drwxr-xr-x 3 root root 4096 Apr 4 17:11 425.0.0/
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the growth under the runner's _work/_tool directory, focusing on the gcloud and CodeQL version directories shown in the report. Trace how tool installation and cleanup are handled; done means installing newer versions no longer leaves obsolete versions consuming the directory, while current tools remain usable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, github-actions
- Domain
- ci-cd
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100