Skip to content

Commit 5806341

Browse files
ci(audience): capture standalone test player log on Linux (SDK-317)
- PlayMode tests on StandaloneLinux64 build a separate player binary that runs the suite. The editor stdout the workflow tees never sees the player's HTTP traces, OnError callbacks, or cert failures. - Without this capture, "39 passed" only tells us FlushAsync returned without throwing. Whether events reached CDP cannot be verified, and any silent OnError-class failure is invisible. - Adds a find + cp inside the docker bash that copies every Player.log under /root/.config/unity3d/<Company>/<Product>/ into artifacts/Player-<Company>-<Product>.log before the container exits. - upload-artifact now includes artifacts/Player-*.log alongside playmode.log and activation.log. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 354b52d commit 5806341

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/test-audience-sample-app.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,22 @@ jobs:
512512
-logFile - 2>&1 | tee /github/workspace/artifacts/playmode.log
513513
test_rc=${PIPESTATUS[0]}
514514
515+
# Capture the standalone test player log. PlayMode tests on
516+
# StandaloneLinux64 build a player binary that runs the suite
517+
# in its own process; the editor stdout we tee above never
518+
# sees the player'\''s HTTP traces, OnError callbacks, or cert
519+
# failures. Without this, "39 passed" tells us FlushAsync
520+
# returned without throwing but says nothing about whether
521+
# events actually reached CDP.
522+
# Linux convention: ~/.config/unity3d/<Company>/<Product>/Player.log.
523+
# Glob across companies / products so the capture survives any
524+
# rename of the sample app.
525+
find /root/.config/unity3d -name "Player.log" 2>/dev/null | while IFS= read -r f; do
526+
co=$(basename "$(dirname "$(dirname "$f")")")
527+
pr=$(basename "$(dirname "$f")")
528+
cp "$f" "/github/workspace/artifacts/Player-${co}-${pr}.log" 2>/dev/null || true
529+
done
530+
515531
# Always return the seat so reruns and parallel cells do not
516532
# exhaust the activation pool. Tolerate non-zero in case the
517533
# editor process is still mid-shutdown.
@@ -583,6 +599,7 @@ jobs:
583599
artifacts/playmode-results.xml
584600
artifacts/playmode.log
585601
artifacts/activation.log
602+
artifacts/Player-*.log
586603
examples/audience/Logs/**
587604
588605
# Mobile IL2CPP build validation — runs on GitHub-hosted Ubuntu via GameCI Docker

0 commit comments

Comments
 (0)