Fix Ubuntu 24.04 compatibility issues in test workflows #736
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.
This PR addresses compatibility issues with Ubuntu 24.04 ("noble") that were causing test failures in the CI matrix. The root cause was that GitHub's
ubuntu-latestrunners were updated to Ubuntu 24.04, but some dependencies weren't yet compatible with this version.Changes Made
Ubuntu Version Pinning
Changed all workflow files from
ubuntu-latesttoubuntu-22.04to ensure a stable, well-supported environment. This affects:Simplified Mono Installation
Replaced the complex external Mono repository setup with Ubuntu's built-in packages:
Before:
After:
Why This Fixes the Issue
The original error was:
While Microsoft repositories now support Ubuntu 24.04, pinning to Ubuntu 22.04 provides:
Verification
This is a minimal change that maintains full backward compatibility while ensuring stable CI/CD operation.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
download.mono-project.com/usr/lib/apt/methods/https(dns block)curl -s REDACTED(dns block)ping -c 1 download.mono-project.com(dns block)esm.ubuntu.com/usr/lib/apt/methods/https(dns block)google.com/usr/share/dotnet/dotnet exec --runtimeconfig /home/REDACTED/work/Harmony/Harmony/HarmonyTests/bin/Debug/net8.0/HarmonyTests.runtimeconfig.json --depsfile /home/REDACTED/work/Harmony/Harmony/HarmonyTests/bin/Debug/net8.0/HarmonyTests.deps.json /home/REDACTED/work/Harmony/Harmony/HarmonyTests/bin/Debug/net8.0/testhost.dll --port 40459 --endpoint 127.0.0.1:040459 --role client --parentprocessid 4630 --telemetryoptedin false(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.