Skip to content

Commit ec313d1

Browse files
redsun82Copilot
andcommitted
Skip mono/nuget C# integration tests on Ubuntu 26.04
Mono is end-of-life and its apt repository only ships Ubuntu 18.04 packages, whose gtk2-era dependencies cannot be satisfied on 26.04. Without mono the legacy `packages.config` restore silently yields nothing and the buildless extractor falls back to downloading .NET Framework reference assemblies, so these four tests fail rather than being skipped. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 9567f1a commit ec313d1

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

csharp/ql/integration-tests/posix/conftest.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ def _supports_mono_nuget():
55
"""
66
Helper function to determine if the current platform supports Mono and nuget.
77
8-
Returns True if running on Linux or on macOS x86_64 (excluding macos-15 and macos-26).
8+
Returns True if running on Linux (excluding Ubuntu 26.04) or on macOS x86_64 (excluding
9+
macos-15 and macos-26).
10+
Mono is end-of-life and only publishes packages up to Ubuntu 18.04, whose dependencies are
11+
unsatisfiable from Ubuntu 26.04 on.
912
macOS ARM runners (macos-15 and macos-26) are excluded due to issues with Mono and nuget.
1013
"""
1114
return (
12-
runs_on.linux
15+
(runs_on.linux and not runs_on.ubuntu_26_04)
1316
or (
1417
runs_on.macos
1518
and runs_on.x86_64

0 commit comments

Comments
 (0)