Fix charm integration tests failing on self-hosted runners due to uv version fetch#1108
Draft
Copilot wants to merge 2 commits into
Draft
Fix charm integration tests failing on self-hosted runners due to uv version fetch#1108Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
… action Agent-Logs-Url: https://github.com/canonical/testflinger/sessions/7cbe58c0-4c6d-4a96-9d1b-e185825fada1 Co-authored-by: ajzobro <241730435+ajzobro@users.noreply.github.com>
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
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 Report✅ All modified and coverable lines are covered by tests. 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
*This pull request uses carry forward flags. Click here to find out more.
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
astral-sh/setup-uvwithout a pinned version falls back to fetching the latest version manifest fromraw.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 thesetup-uvstep for both self-hostedtest_charm_integrationjobs. With an exact version, the action downloads directly fromgithub.com/astral-sh/uv/releases/...(accessible) instead of resolving via the manifest.Affected workflows:
.github/workflows/server-tox.yml—test_charm_integrationjob.github/workflows/agent-tox.yml—test_charm_integrationjobResolved 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 byfetch failedafter a 10-second timeout attemptinghttps://raw.githubusercontent.com/astral-sh/versions/main/v1/uv.ndjson.