Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow to clear GitHub action cache #524

Closed
phongvhd93 opened this issue Sep 19, 2023 · 2 comments · Fixed by #554
Closed

Add workflow to clear GitHub action cache #524

phongvhd93 opened this issue Sep 19, 2023 · 2 comments · Fixed by #554
Assignees
Milestone

Comments

@phongvhd93
Copy link
Contributor

Why

The workflow of testing a PR has to cache the steps to cache pods and gems. Each PR will have 3 cache folders and around 20 ~ 30 MB each, and they will soon pile up when we create more and more PR. Thus, we should have a workflow to remove the cache of closed PR to free up the space on the hosting machine.

Screenshot 2023-09-18 at 08 42 38

Acceptance Criteria

  • Create a workflow that will be triggered when PR get merged or closed)
  • The caches related to the PR must be remove after that PR get merged or closed

Resources

@blyscuit
Copy link
Collaborator

blyscuit commented Oct 4, 2023

@phongvhd93 This is a very interesting find. I read further on this and it seems that

When using self-hosted runners, caches from workflow runs are stored on GitHub-owned cloud storage. A customer-owned storage solution is only available with GitHub Enterprise Server.

So it's nothing to worry about on the self hosted machine. However; when using self-hosted machine, we remove the caching completely since pods are also cached on self-hosted machine with pod install.

@blyscuit
Copy link
Collaborator

blyscuit commented Oct 4, 2023

On the other hand, if the concern is with GitHub's provided storage, we do not need to worry as well because GitHub automatically manage the storage for the users.

@nkhanh44 nkhanh44 assigned nkhanh44 and unassigned nkhanh44 Dec 29, 2023
@nkhanh44 nkhanh44 self-assigned this Jan 16, 2024
nkhanh44 added a commit that referenced this issue Jan 16, 2024
nkhanh44 added a commit that referenced this issue Jun 3, 2024
nkhanh44 added a commit that referenced this issue Jun 24, 2024
github-merge-queue bot pushed a commit that referenced this issue Jun 24, 2024
…ar-github-action-cache

[#524] Add workflow to clear GitHub action cache
@nkhanh44 nkhanh44 added this to the 4.11.0 milestone Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants