XNU as a loadable kernel module inside Linux (macOS personality for arm64 Linux)
C
Alamofire's network tests in the hosted macOS: Firewalk pinned at 0.12.3 (the release whose /payloads/:count and chunked /stream Alamofire 5.10.2's tests expect; 0.13 added :delay), rerun and flakiness scripts. 800 tests: data streaming 32/32; remaining failures are the suite's expired test certificates (2025-07-09) and two timing-dependent tests
Heyang Zhou815db0dd98bd
diff --git a/tools/hosted/tests/af2err.sh b/tools/hosted/tests/af2err.shnew file mode 100644index 0000000..c833e71--- /dev/null+++ b/tools/hosted/tests/af2err.sh@@ -0,0 +1 @@+grep -a "error: -\[" /tmp/afall2.log | grep -a "AuthenticationInterceptor\|DownloadResponseTests" | sed "s/.*error: -\[Alamofire_macOS_Tests\.//" | cut -c1-220 | head -10diff --git a/tools/hosted/tests/afall2.sh b/tools/hosted/tests/afall2.shnew file mode 100644index 0000000..fc718dd--- /dev/null+++ b/tools/hosted/tests/afall2.sh@@ -0,0 +1,4 @@+cd /var/root/src/Alamofire-5.10.2+launchctl asuser 0 xcodebuild -project Alamofire.xcodeproj -scheme "Alamofire macOS" -configuration Debug -destination "platform=macOS" -derivedDataPath /tmp/afdd7 CODE_SIGNING_ALLOWED=NO MACOSX_DEPLOYMENT_TARGET=12.0 ENABLE_THREAD_SANITIZER=NO test > /tmp/afall2.log 2>&1+echo "AF2 rc=$?"; grep -a -E "Executed [0-9]+ tests" /tmp/afall2.log | tail -1+grep -a "error: -\[" /tmp/afall2.log | sed "s/.*error: -\[Alamofire_macOS_Tests\.//" | cut -d" " -f1 | sort | uniq -c | sort -nrdiff --git a/tools/hosted/tests/afflaky.sh b/tools/hosted/tests/afflaky.shnew file mode 100644index 0000000..b5392da--- /dev/null+++ b/tools/hosted/tests/afflaky.sh@@ -0,0 +1,5 @@+cd /var/root/src/Alamofire-5.10.2+for i in 1 2 3; do+launchctl asuser 0 xcodebuild -project Alamofire.xcodeproj -scheme "Alamofire macOS" -configuration Debug -destination "platform=macOS" -derivedDataPath /tmp/afdd7 CODE_SIGNING_ALLOWED=NO MACOSX_DEPLOYMENT_TARGET=12.0 ENABLE_THREAD_SANITIZER=NO -only-testing:"Alamofire macOS Tests/DownloadResponseTests/testCancelledDownloadRequest" -only-testing:"Alamofire macOS Tests/AuthenticationInterceptorTestCase/testThatInterceptorTriggersRefreshWithMultipleParallelRequestsReturning401Responses" test-without-building > /tmp/afflaky$i.log 2>&1+printf "run $i: "; grep -a -E "Executed [0-9]+ tests" /tmp/afflaky$i.log | tail -1+donediff --git a/tools/hosted/tests/fw.sh b/tools/hosted/tests/fw.shindex bba0db7..6191c0a 100644--- a/tools/hosted/tests/fw.sh+++ b/tools/hosted/tests/fw.sh@@ -1,6 +1,7 @@# Build and start Alamofire's local test server Firewalk (Vapor, SwiftPM dependencies fetched over the network)+# Firewalk 0.12.3: the last release whose /payloads/:count and chunked /stream match Alamofire 5.10.2 tests (0.13 added :delay)cd /var/root/src-[ -d Firewalk ] || git clone --depth 1 https://github.com/Alamofire/Firewalk.git > /tmp/fw-clone.log 2>&1-cd Firewalk && echo "clone rc=$? $(git log --oneline -1 2>/dev/null)"+[ -d Firewalk ] || git clone https://github.com/Alamofire/Firewalk.git > /tmp/fw-clone.log 2>&1+cd Firewalk && git checkout -q 0.12.3 && echo "clone rc=$? $(git log --oneline -1 2>/dev/null)"( time swift build -c release ) > /tmp/fw-build.log 2>&1echo "FWBUILD rc=$?" >> /tmp/fw-build.logdiff --git a/tools/hosted/tests/fw12.sh b/tools/hosted/tests/fw12.shnew file mode 100644index 0000000..3d37cbc--- /dev/null+++ b/tools/hosted/tests/fw12.sh@@ -0,0 +1,10 @@+export GIT_PAGER=cat PAGER=cat+cd /var/root/src/Firewalk && git checkout -q 0.12.3 && git log -1 --format="%h %ad %s" --date=short+pkill -x firewalk 2>/dev/null; sleep 1+( time swift build -c release ) > /tmp/fw12-build.log 2>&1; echo "FW12 rc=$?"; tail -3 /tmp/fw12-build.log+(./.build/release/firewalk < /dev/null > /tmp/firewalk.log 2>&1 &); sleep 5+for p in /payloads/2 /stream/2; do curl -s -o /dev/null -w "$p -> %{http_code}\n" http://127.0.0.1:8080$p; done+cd /var/root/src/Alamofire-5.10.2+launchctl asuser 0 xcodebuild -project Alamofire.xcodeproj -scheme "Alamofire macOS" -configuration Debug -destination "platform=macOS" -derivedDataPath /tmp/afdd7 CODE_SIGNING_ALLOWED=NO MACOSX_DEPLOYMENT_TARGET=12.0 ENABLE_THREAD_SANITIZER=NO -only-testing:"Alamofire macOS Tests/DataStreamTests" -only-testing:"Alamofire macOS Tests/DataStreamConcurrencyTests" -only-testing:"Alamofire macOS Tests/DataStreamIntegrationTests" test > /tmp/afds.log 2>&1+echo "AFDS rc=$?"; grep -a -E "Executed [0-9]+ tests" /tmp/afds.log | tail -1+grep -a "error: -\[" /tmp/afds.log | sed "s/.*error: -\[Alamofire_macOS_Tests\.//" | cut -c1-200 | head -8diff --git a/tools/hosted/tests/fw14.sh b/tools/hosted/tests/fw14.shnew file mode 100644index 0000000..72da8e7--- /dev/null+++ b/tools/hosted/tests/fw14.sh@@ -0,0 +1,10 @@+export GIT_PAGER=cat PAGER=cat+cd /var/root/src/Firewalk && git checkout -q 0.14.0 && git log -1 --format="%h %ad %s" --date=short+pkill -x firewalk 2>/dev/null; sleep 1+( time swift build -c release ) > /tmp/fw14-build.log 2>&1; echo "FW14 rc=$?"; tail -3 /tmp/fw14-build.log+(./.build/release/firewalk < /dev/null > /tmp/firewalk.log 2>&1 &); sleep 5+for p in /payloads/2 /stream/2; do curl -s -o /dev/null -w "$p -> %{http_code}\n" http://127.0.0.1:8080$p; done+cd /var/root/src/Alamofire-5.10.2+launchctl asuser 0 xcodebuild -project Alamofire.xcodeproj -scheme "Alamofire macOS" -configuration Debug -destination "platform=macOS" -derivedDataPath /tmp/afdd7 CODE_SIGNING_ALLOWED=NO MACOSX_DEPLOYMENT_TARGET=12.0 ENABLE_THREAD_SANITIZER=NO -only-testing:"Alamofire macOS Tests/DataStreamTests" -only-testing:"Alamofire macOS Tests/DataStreamConcurrencyTests" -only-testing:"Alamofire macOS Tests/DataStreamIntegrationTests" test > /tmp/afds.log 2>&1+echo "AFDS rc=$?"; grep -a -E "Executed [0-9]+ tests" /tmp/afds.log | tail -1+grep -a "error: -\[" /tmp/afds.log | sed "s/.*error: -\[Alamofire_macOS_Tests\.//" | cut -c1-200 | head -8diff --git a/tools/hosted/tests/fwtags.sh b/tools/hosted/tests/fwtags.shnew file mode 100644index 0000000..4a59a48--- /dev/null+++ b/tools/hosted/tests/fwtags.sh@@ -0,0 +1,5 @@+export GIT_PAGER=cat PAGER=cat+cd /var/root/src/Firewalk && git fetch -q --tags --unshallow 2>/dev/null || git fetch -q --tags+git tag --sort=-creatordate | head -8+for t in $(git tag --sort=-creatordate | head -6); do printf "%s: " $t; git grep -c "payloads" $t -- Sources 2>/dev/null | head -1 || echo none; echo; done+grep -rn "firewalk" /var/root/src/Alamofire-5.10.2/.github 2>/dev/null | head -5