Skip to content

Commit 575df8e

Browse files
redsun82Copilot
andcommitted
Skip mono/nuget C# integration tests on Ubuntu 26.04
Ubuntu dropped the `mono-complete` package in 26.04, and mono's own apt repository publishes nothing newer than `stable-focal`, so there is nothing to fall back on. 25.04 and 25.10 still ship it, so 26.04 is the cutoff. 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. Uses the new `runs_on` version comparisons, which also lets the macOS clause collapse to `runs_on.macos < 15`. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 9567f1a commit 575df8e

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

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

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,10 @@ 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).
9-
macOS ARM runners (macos-15 and macos-26) are excluded due to issues with Mono and nuget.
8+
Returns True on Ubuntu before 26.04 and on macOS x86_64 before macOS 15. Linux other than
9+
Ubuntu is not selected, as we do not test on it.
10+
Ubuntu dropped the `mono-complete` package in 26.04, and mono is end-of-life, its own apt
11+
repository publishing nothing newer than Ubuntu 20.04, so there is nothing to fall back on.
12+
macOS 15 and later are ARM runners, which have issues with Mono and nuget.
1013
"""
11-
return (
12-
runs_on.linux
13-
or (
14-
runs_on.macos
15-
and runs_on.x86_64
16-
and not runs_on.macos_15
17-
and not runs_on.macos_26
18-
)
19-
)
14+
return runs_on.ubuntu < 2604 or (runs_on.macos < 15 and runs_on.x86_64)

0 commit comments

Comments
 (0)