Skip to content

Commit c1fb47e

Browse files
committed
Split hanging macOS .NET test shard
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4e94289c-90c8-4664-a878-056539754908
1 parent e4dd4b6 commit c1fb47e

1 file changed

Lines changed: 33 additions & 10 deletions

File tree

.github/workflows/dotnet-sdk-tests.yml

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ jobs:
4444
# 1.0.81-2 bump it stopped finishing: the job ran 50+ minutes until
4545
# the runner lost communication with the server, and a runner that
4646
# dies that way uploads no logs at all, so the failure could not be
47-
# diagnosed from CI output. Split it across two hosts the same way
48-
# the Windows default suite is split below.
47+
# diagnosed from CI output. Split it across isolated hosts so one
48+
# poisoned runtime cannot consume the entire job without diagnostics.
4949
- os: macos-latest
5050
transport: default
5151
shard: full
@@ -69,7 +69,15 @@ jobs:
6969
- os: macos-latest
7070
transport: default
7171
backend: capi
72-
shard: "2"
72+
shard: "2a"
73+
- os: macos-latest
74+
transport: default
75+
backend: capi
76+
shard: "2b"
77+
- os: macos-latest
78+
transport: default
79+
backend: capi
80+
shard: "2c"
7381
- os: ubuntu-latest
7482
transport: inprocess
7583
backend: anthropic-messages
@@ -149,13 +157,28 @@ jobs:
149157
150158
filter="$DOTNET_TEST_FILTER"
151159
if [[ "$DOTNET_TEST_SHARD" != "full" ]]; then
152-
if [[ "$DOTNET_TEST_SHARD" == "1" ]]; then
153-
initials=(A C D H I J K L N Q S U W Y)
154-
shard_filter="FullyQualifiedName~GitHub.Copilot.Test.ConnectionToken"
155-
else
156-
initials=(B E F G M O P R T V X Z)
157-
shard_filter=""
158-
fi
160+
case "$DOTNET_TEST_SHARD" in
161+
1)
162+
initials=(A C D H I J K L N Q S U W Y)
163+
shard_filter="FullyQualifiedName~GitHub.Copilot.Test.ConnectionToken"
164+
;;
165+
2)
166+
initials=(B E F G M O P R T V X Z)
167+
shard_filter=""
168+
;;
169+
2a)
170+
initials=(B E F G)
171+
shard_filter=""
172+
;;
173+
2b)
174+
initials=(M O P R)
175+
shard_filter=""
176+
;;
177+
2c)
178+
initials=(T V X Z)
179+
shard_filter=""
180+
;;
181+
esac
159182
160183
for namespace in E2E Unit; do
161184
for initial in "${initials[@]}"; do

0 commit comments

Comments
 (0)