← Back to issue list

Add pristine-ubuntu-action to hosted runners

View original Github issue

Metadata

Project
starflow
Number
#101
Type
pull request
State
open
Author
Copilot
Labels
Created
Updated
Closed

Current evaluation

Adds lengau/pristine-ubuntu-action@v0 as first step of setup-python-runner/action.yaml, gated to GitHub-hosted Linux runners, to free disk and prevent runner-update breakage. 3-line change, 268 days old, no review, CI partially failing.

Suggested action: needs review

Reason: The PR is 268 days old with 0 comments and 0 reviewers, but it is still applicable: setup-python-runner/action.yaml exists at HEAD without the pristine step, no commit in history implements it, and issue canonical/starflow#100 remains open. It's a small, well-scoped change that just needs a maintainer to review it and address the failing CI checks (including Conventional Commits and many Default inputs/LXD 6 jobs).

Impact: 40 Quick Win: 36.0 Staleness: 75 Complexity: 10 Confidence: 80

Issue body

Prevent GitHub-hosted runner updates from breaking workflows by cleaning up pre-installed bloat (15-20 GiB freed). ## Changes - Added `lengau/pristine-ubuntu-action@v0` as first step in `setup-python-runner/action.yaml` - Conditionally runs only on GitHub-hosted Linux runners: `runner.os == 'Linux' && runner.environment == 'github-hosted'` - Self-hosted runners automatically skip this step ## Affected Workflows Applies to all workflows using `setup-python-runner`: - `test-python.yaml` (reusable workflow) - `self-test-setup.yaml` - Any downstream callers ```yaml steps: - name: Pristine Ubuntu if: ${{ runner.os == 'Linux' && runner.environment == 'github-hosted' }} uses: lengau/pristine-ubuntu-action@v0 - name: Start apt update # ... rest of setup ``` > [!WARNING] > > <details> > <summary>Firewall rules blocked me from connecting to one or more addresses (expand for details)</summary> > > #### I tried to connect to the following addresses, but was blocked by firewall rules: > > - `https://api.github.com/repos/lengau/pristine-ubuntu-action` > - Triggering command: `/usr/bin/curl curl -s REDACTED` (http block) > - `https://api.github.com/repos/lengau/pristine-ubuntu-action/tags` > - Triggering command: `/usr/bin/curl curl -s REDACTED` (http block) > > If you need me to access, download, or install something from one of these locations, you can either: > > - Configure [Actions setup steps](https://gh.io/copilot/actions-setup-steps) to set up my environment, which run before the firewall is enabled > - Add the appropriate URLs or hosts to the custom allowlist in this repository's [Copilot coding agent settings](https://github.com/canonical/starflow/settings/copilot/coding_agent) (admins only) > > </details> <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > > ---- > > *This section details on the original issue you should resolve* > > <issue_title>Use the pristine-ubuntu action on hosted runners</issue_title> > <issue_description>### What needs to get done > > On hosted runners we should use a version of https://github.com/lengau/pristine-ubuntu-action/. > > ### Why it needs to get done > > Prevent updated runners from breaking us yet again. </issue_description> > > <agent_instructions>That action should be the first thing that's run on the github-hosted runners. It should not run on self-hosted runners at all.</agent_instructions> > > ## Comments on the Issue (you are @copilot in this section) > > <comments> > </comments> > </details> <!-- START COPILOT CODING AGENT SUFFIX --> - Fixes canonical/starflow#100 <!-- START COPILOT CODING AGENT TIPS --> --- 💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 40
Quick Win: 36.0
Staleness: 75
Complexity: 10
Confidence: 80
needs review Adds lengau/pristine-ubuntu-action@v0 as first step of setup-python-runner/action.yaml, gated to GitHub-hosted Linux runners, to free disk and prevent runner-update breakage. 3-line change, 268 days old, no review, CI partially failing.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 15
Confidence: 75
close stale Introduces lengau/pristine-ubuntu-action to setup-python-runner to free 15-20 GiB on GitHub-hosted Linux runners. Currently 228 days old, zero reviews, and CI checks are failing.
qwen3.6-35b-a3b-mtp-q6
Staleness: 60
Complexity: 10
Confidence: 65
needs review Adds lengau/pristine-ubuntu-action to setup-python-runner to reclaim disk space on GitHub-hosted Linux runners. Currently inactive for over seven months with no comments or maintainer feedback.
qwen3.6-35b-a3b-mtp-q6
Staleness: 75
Complexity: 10
Confidence: 65
needs review Integrates pristine-ubuntu-action into GitHub-hosted Linux runners to reclaim 15-20 GiB and prevent workflow breakage. Open 193 days ago with zero comments, currently stale and awaiting triage or review.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/starflow#100 (confidence 90%)

    PR body explicitly states 'Fixes canonical/starflow#100'; the issue (adopt pristine-ubuntu action on hosted runners) is still open and this PR implements exactly that with the requested github-hosted-only condition.

Related issues

Issue Project State Summary Similarity
#100 Use the pristine-ubuntu action on hosted runners starflow open Feature request to use lengau/pristine-ubuntu-action on GitHub-hosted runners to prevent runner updates from breaking CI. Open 268 days, no labels, no comments; a related PR (starflow#101) exists but is open with failing CI.
87%