← 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 the first step of setup-python-runner/action.yaml, gated to GitHub-hosted Linux runners, to stop runner-image updates from breaking CI (fixes #100). Idle 300 days, no reviews, many self-test checks failing.

Suggested action: keep open

Reason: The change is still wanted — issue starflow#100 remains open and no commit touching setup-python-runner/action.yaml since #176 adds the step (grep for 'pristine' in history returns nothing), so it is not superseded or obsolete. But it cannot land as-is: it uses a floating `@v0` tag, violating the repo's later SHA-pinning convention introduced by commit 871da43 'ci: pin all actions to SHAs (#173)', and the self-test-setup checks ('Default inputs', 'LXD 6/5.0 (...)') are reported failing, plausibly because pristine-ubuntu removes pre-installed packages. With 0 comments, 0 reviewers and 300 days of inactivity by the Copilot agent (whose run logged firewall-blocked access, so the action was never verified), it needs an author to rebase and re-pin before review; confidence is capped because the CI status data is self-contradictory (identical check names appear in both passing and failing lists).

Evaluated by: mr-cal-bot

Impact: 45 Quick Win: 6 Complexity: 30 Confidence: 62 Actionability: 20

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
stealth/space-bunny-alpha
Impact: 45
Quick Win: 6
Complexity: 30
Confidence: 62
Actionability: 20
keep open Adds lengau/pristine-ubuntu-action@v0 as the first step of setup-python-runner/action.yaml, gated to GitHub-hosted Linux runners, to stop runner-image updates from breaking CI (fixes #100). Idle 300 days, no reviews, many self-test checks failing.
qwen/qwen3.6-35b-a3b
Impact: 55
Quick Win: 12
Complexity: 15
Confidence: 70
Actionability: 25
close stale Adds lengau/pristine-ubuntu-action to setup-python-runner to clean up pre-installed bloat on GitHub-hosted Linux runners. PR is 289 days old with 0 reviewers, 0 comments, and multiple failing CI checks including Conventional Commits and LXD 6/Default inputs tests.
qwen/qwen3.8-27b
Impact: 40
Quick Win: 36
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.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/starflow#100 (confidence 95%)

    Issue this PR claims to fix ('Fixes canonical/starflow#100'); the issue is still open, confirming the change never landed.

  • Blocked By: canonical/starflow#173 (confidence 70%)

    Commit 871da43 'ci: pin all actions to SHAs (#173)' landed after this PR was opened; the PR's unpinned @v0 reference conflicts with that policy.

Related issues

Issue Project State Summary Similarity
#100 Use the pristine-ubuntu action on hosted runners starflow open Maintainer task: use lengau/pristine-ubuntu-action on GitHub-hosted Ubuntu runners to stop runner image updates breaking CI. Still unimplemented; PR #101 open 300 days with failing checks.
91%