-
Notifications
You must be signed in to change notification settings - Fork 1
Initial Content #1
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR introduces the initial content for a GitHub Action that provides fast disk cleanup for Ubuntu runners (22.04 & 24.04). The action offers 4 configurable cleanup levels that balance space freed against time taken, using direct rm -rf deletion for speed.
Changes:
- Implements a Node.js-based GitHub Action with 4 cleanup levels (3.7-22.2 GiB in 1-40s)
- Adds comprehensive benchmarking workflow comparing this action against 4 alternatives
- Includes detailed documentation explaining design decisions and trade-offs
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| action.yml | Defines the action metadata and input parameters (level 1-4) |
| index.js | Main action logic that performs cleanup based on level selection |
| post.js | Post-action reporting and suggestions based on remaining space |
| scripts/aggregate.py | Python script to aggregate benchmark metrics and generate summary |
| .github/workflows/benchmark-disk-space.yml | Workflow for benchmarking cleanup performance |
| .github/workflows/PR.yml | PR validation workflow to test the action |
| .github/actions/measure-before/action.yml | Composite action to capture baseline metrics |
| .github/actions/measure-after/action.yml | Composite action to measure cleanup results |
| README.md | User-facing documentation with usage examples |
| docs/alternatives.md | Detailed comparison with alternative cleanup actions |
| benchmark.md | Documentation for the benchmark workflow |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Actually... I just realized... every second action will install/remove stuff on your runners. You should not rely on this one action having a check for that. |

After this is merged I would delete the v1 branch, and instead tag this commit as v1.
Tested in eclipse-score/reference_integration#76: