Skip to content

Fix charm integration tests failing on self-hosted runners due to uv version fetch#1108

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-charm-integration-tests
Draft

Fix charm integration tests failing on self-hosted runners due to uv version fetch#1108
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-charm-integration-tests

Conversation

Copy link
Copy Markdown

Copilot AI commented May 19, 2026

Description

astral-sh/setup-uv without a pinned version falls back to fetching the latest version manifest from raw.githubusercontent.com, which is blocked on the self-hosted runners. This causes the "Install uv and set up Python" step to time out and fail, skipping all subsequent steps.

Fix: pin an explicit version: "0.11.15" in the setup-uv step for both self-hosted test_charm_integration jobs. With an exact version, the action downloads directly from github.com/astral-sh/uv/releases/... (accessible) instead of resolving via the manifest.

Affected workflows:

  • .github/workflows/server-tox.ymltest_charm_integration job
  • .github/workflows/agent-tox.ymltest_charm_integration job
- name: Install uv and set up Python
  uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
  with:
    version: "0.11.15"

Resolved issues

Documentation

No documentation impact. No new tests needed — this is a CI configuration fix.

Web service API changes

N/A

Tests

The fix is validated by the CI job passing. The root cause was confirmed from the job logs: Could not determine uv version from uv.toml or pyproject.toml. Falling back to latest. followed by fetch failed after a 10-second timeout attempting https://raw.githubusercontent.com/astral-sh/versions/main/v1/uv.ndjson.

Copilot AI changed the title [WIP] Fix failing GitHub Actions job 'Run charm integration tests' Fix charm integration tests failing on self-hosted runners due to uv version fetch May 19, 2026
Copilot AI requested a review from ajzobro May 19, 2026 21:57
@ajzobro ajzobro requested a review from rene-oromtz May 19, 2026 22:02
@rene-oromtz
Copy link
Copy Markdown
Contributor

@ajzobro just a heads up, I'm not against pining the version (probably for the best) but this is not the cause of the failure, for some reason the self hosted runners on PS6 can't fetch uv resources. PS7 are working as intended.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.63%. Comparing base (55a2a58) to head (96b25ee).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1108   +/-   ##
=======================================
  Coverage   77.63%   77.63%           
=======================================
  Files         117      117           
  Lines       12282    12282           
  Branches     1005     1005           
=======================================
  Hits         9535     9535           
  Misses       2525     2525           
  Partials      222      222           
Flag Coverage Δ *Carryforward flag
agent 75.78% <ø> (ø)
cli 91.85% <ø> (ø) Carriedforward from 55a2a58
device 63.76% <ø> (ø) Carriedforward from 55a2a58
server 87.75% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

Components Coverage Δ
Agent 75.78% <ø> (ø)
CLI 91.85% <ø> (ø)
Common ∅ <ø> (∅)
Device Connectors 63.76% <ø> (ø)
Server 87.75% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants