From ab7e907779f3ab92802c0cdabaa29d57f6502591 Mon Sep 17 00:00:00 2001 From: Simba Zhang Date: Tue, 3 Nov 2026 14:51:15 -0800 Subject: [PATCH] ci: run ClientDisconnectTests again in the Release SwiftLM job SwiftLM#256 (69bc71c) replaced Task.sleep(for:) in its tests. On Swift 6.2.4 in Release that call aborts the XCTest process ('freed pointer was not the last allocation'); the suite now passes there (7 tests, 464 in the whole bundle, checked locally). Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/ci.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f09a625c5a..1b9eb7fa7c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -260,15 +260,12 @@ jobs: run: | cd SwiftLM # --no-parallel: GPU tests are not safe to overlap (the library lane does the same). - # --skip ClientDisconnectTests: tests in this SwiftLM suite abort the whole XCTest process in Release ("freed - # pointer was not the last allocation", signal 6; they pass in Debug), which hides every test after them. With - # the suite skipped, the other 127 SwiftLM tests pass in Release (checked locally). It is a SwiftLM Release-only - # bug unrelated to this repository (tracked as SL-71); remove the --skip once it is fixed in SwiftLM. # --disable-swift-testing: SwiftLM has only XCTest tests. With Swift 6.2 in Release, the Swift Testing phase that # follows the XCTest run starts SwiftLM's own entry point ("Missing expected argument '--model'") and the step # exits 1 although all XCTest tests passed. - swift test -c release --no-parallel --skip-build --disable-swift-testing \ - --skip ClientDisconnectTests + # ClientDisconnectTests runs again: SwiftLM#256 replaced Task.sleep(for:), which aborts the XCTest process in + # Release on Swift 6.2.4, with Task.sleep(nanoseconds:) in its tests (tracked as SL-71). + swift test -c release --no-parallel --skip-build --disable-swift-testing # SwiftLM/.build is cached at job end, so keep SwiftLM unless space is short; the clean copy is always removed. - name: "[swiftlm] Free disk (only if short)"