Skip to content

Commit 1fe0cb5

Browse files
authored
Merge pull request #22450 from github/redsun82-skip-mono-integration-tests-on-ubuntu-26-04
Skip mono/nuget C# integration tests on Ubuntu 26.04
2 parents ed2b77e + 575df8e commit 1fe0cb5

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)