@@ -159,6 +159,26 @@ jobs:
159159 python-version : " 3.13"
160160 - name : Install dependencies
161161 run : python -m pip install -r examples/passport-unity6/Tests/requirements-desktop.txt
162+ - name : Check AltTester port (diagnostic)
163+ working-directory : examples/passport-unity6/Tests
164+ run : |
165+ echo "=== macOS firewall status ==="
166+ /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate || true
167+ echo "=== Firewall allow list ==="
168+ /usr/libexec/ApplicationFirewall/socketfilterfw --listapps || true
169+ echo "=== Launching app to check AltTester port ==="
170+ open 'Sample Unity 6 macOS.app'
171+ echo "Waiting 15s for app to initialise..."
172+ sleep 15
173+ echo "=== Checking port 13000 (AltTester default) ==="
174+ lsof -i :13000 || echo "⚠️ Nothing listening on port 13000"
175+ echo "=== All listening TCP ports ==="
176+ lsof -i -P -n | grep LISTEN || echo "No listening ports found"
177+ echo "=== Unity process check ==="
178+ ps aux | grep -i "[S]ample Unity 6" || echo "No Unity process found"
179+ echo "=== Killing diagnostic app instance ==="
180+ pkill -f "Sample Unity 6 macOS" || true
181+ sleep 3
162182 - name : Run UI tests
163183 env :
164184 UNITY_APP_PATH : Sample Unity 6 macOS.app
@@ -329,6 +349,28 @@ jobs:
329349 if : always()
330350 run : |
331351 Get-Process | Where-Object { $_.Name -like "*brave*" -or $_.Name -eq "chromedriver" } | Stop-Process -Force -ErrorAction SilentlyContinue
352+ - name : Check AltTester port (diagnostic)
353+ working-directory : examples/passport-unity6/Tests
354+ run : |
355+ Write-Output "=== Windows Firewall status ==="
356+ Get-NetFirewallProfile | Format-Table Name, Enabled -AutoSize
357+ Write-Output "=== Firewall rules for Unity/AltTester (inbound allow) ==="
358+ Get-NetFirewallRule -Direction Inbound -Action Allow -Enabled True | Where-Object { $_.DisplayName -match "Unity|AltTester|Sample|Immutable" } | Format-Table DisplayName, Profile, Direction, Action -AutoSize
359+ Write-Output "=== All inbound allow rules on port 13000 ==="
360+ Get-NetFirewallPortFilter | Where-Object { $_.LocalPort -eq "13000" } | ForEach-Object { Get-NetFirewallRule -AssociatedNetFirewallPortFilter $_ } | Format-Table DisplayName, Enabled, Action, Direction -AutoSize
361+ Write-Output "=== Launching app to check AltTester port ==="
362+ Start-Process -FilePath ".\Sample Unity 6 Windows.exe"
363+ Write-Output "Waiting 15s for app to initialise..."
364+ Start-Sleep -Seconds 15
365+ Write-Output "=== Checking port 13000 (AltTester default) ==="
366+ netstat -ano | Select-String "13000" || Write-Output "Nothing found on port 13000"
367+ Write-Output "=== All listening TCP ports ==="
368+ netstat -ano | Select-String "LISTENING"
369+ Write-Output "=== Unity process check ==="
370+ Get-Process | Where-Object { $_.Name -like "*Sample Unity 6*" } | Format-Table Id, ProcessName, MainWindowTitle -AutoSize
371+ Write-Output "=== Killing diagnostic app instance ==="
372+ Get-Process | Where-Object { $_.Name -like "*Sample Unity 6*" } | Stop-Process -Force -ErrorAction SilentlyContinue
373+ Start-Sleep -Seconds 3
332374 - name : Run UI tests
333375 env :
334376 UNITY_APP_PATH : Sample Unity 6 Windows.exe
@@ -419,6 +461,50 @@ jobs:
419461 if : matrix.targetPlatform == 'StandaloneWindows64' && always()
420462 run : |
421463 Get-Process | Where-Object { $_.Name -like "*brave*" -or $_.Name -eq "chromedriver" } | Stop-Process -Force -ErrorAction SilentlyContinue
464+ - name : Check AltTester port - macOS (diagnostic)
465+ if : contains(matrix.targetPlatform, 'StandaloneOSX') && (github.event_name != 'workflow_dispatch' || github.event.inputs.targetPlatform == 'All' || github.event.inputs.targetPlatform == matrix.targetPlatform)
466+ working-directory : ${{ matrix.projectPath }}/Tests
467+ run : |
468+ echo "=== macOS firewall status ==="
469+ /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate || true
470+ echo "=== Firewall allow list ==="
471+ /usr/libexec/ApplicationFirewall/socketfilterfw --listapps || true
472+ echo "=== Launching app to check AltTester port ==="
473+ open '${{ matrix.unityAppName }}${{ matrix.unityAppExtension }}'
474+ echo "Waiting 15s for app to initialise..."
475+ sleep 15
476+ echo "=== Checking port 13000 (AltTester default) ==="
477+ lsof -i :13000 || echo "⚠️ Nothing listening on port 13000"
478+ echo "=== All listening TCP ports ==="
479+ lsof -i -P -n | grep LISTEN || echo "No listening ports found"
480+ echo "=== Unity process check ==="
481+ ps aux | grep -i "[S]ampleApp\|[I]mmutable" || echo "No Unity process found"
482+ echo "=== Killing diagnostic app instance ==="
483+ pkill -f "${{ matrix.unityAppName }}" || true
484+ sleep 3
485+ - name : Check AltTester port - Windows (diagnostic)
486+ if : matrix.targetPlatform == 'StandaloneWindows64' && (github.event_name != 'workflow_dispatch' || github.event.inputs.targetPlatform == 'All' || github.event.inputs.targetPlatform == 'StandaloneWindows64')
487+ working-directory : ${{ matrix.projectPath }}/Tests
488+ run : |
489+ Write-Output "=== Windows Firewall status ==="
490+ Get-NetFirewallProfile | Format-Table Name, Enabled -AutoSize
491+ Write-Output "=== Firewall rules for Unity/AltTester (inbound allow) ==="
492+ Get-NetFirewallRule -Direction Inbound -Action Allow -Enabled True | Where-Object { $_.DisplayName -match "Unity|AltTester|Sample|Immutable" } | Format-Table DisplayName, Profile, Direction, Action -AutoSize
493+ Write-Output "=== All inbound allow rules on port 13000 ==="
494+ Get-NetFirewallPortFilter | Where-Object { $_.LocalPort -eq "13000" } | ForEach-Object { Get-NetFirewallRule -AssociatedNetFirewallPortFilter $_ } | Format-Table DisplayName, Enabled, Action, Direction -AutoSize
495+ Write-Output "=== Launching app to check AltTester port ==="
496+ Start-Process -FilePath ".\${{ matrix.unityAppName }}${{ matrix.unityAppExtension }}"
497+ Write-Output "Waiting 15s for app to initialise..."
498+ Start-Sleep -Seconds 15
499+ Write-Output "=== Checking port 13000 (AltTester default) ==="
500+ netstat -ano | Select-String "13000" || Write-Output "Nothing found on port 13000"
501+ Write-Output "=== All listening TCP ports ==="
502+ netstat -ano | Select-String "LISTENING"
503+ Write-Output "=== Unity process check ==="
504+ Get-Process | Where-Object { $_.Name -like "*${{ matrix.unityAppName }}*" } | Format-Table Id, ProcessName, MainWindowTitle -AutoSize
505+ Write-Output "=== Killing diagnostic app instance ==="
506+ Get-Process | Where-Object { $_.Name -like "*${{ matrix.unityAppName }}*" } | Stop-Process -Force -ErrorAction SilentlyContinue
507+ Start-Sleep -Seconds 3
422508 - name : Run UI tests
423509 if : github.event_name != 'workflow_dispatch' || github.event.inputs.targetPlatform == 'All' || github.event.inputs.targetPlatform == matrix.targetPlatform
424510 env :
0 commit comments