From 70acbace88aeb71e4add919edff48f92a017fa8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sierpi=C5=84ski?= <33436839+sierpinskid@users.noreply.github.com> Date: Fri, 20 Nov 2026 11:33:37 +0100 Subject: [PATCH 1/3] Read the Unity account email from an Actions variable so the GitHub secret can be deleted. --- .github/workflows/main.ci.cd.workflow.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.ci.cd.workflow.yml b/.github/workflows/main.ci.cd.workflow.yml index 431dc22f..3e281713 100644 --- a/.github/workflows/main.ci.cd.workflow.yml +++ b/.github/workflows/main.ci.cd.workflow.yml @@ -59,7 +59,7 @@ jobs: - name: Prepare project for IL2CPP runtime tests uses: game-ci/unity-builder@v4 env: - UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} + UNITY_EMAIL: ${{ vars.UNITY_EMAIL }} UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} with: @@ -130,7 +130,7 @@ jobs: id: runtime_tests env: UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} - UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} + UNITY_EMAIL: ${{ vars.UNITY_EMAIL }} UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} with: testMode: playmode @@ -267,7 +267,7 @@ jobs: - name: Enable Tests uses: game-ci/unity-builder@v4 env: - UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} + UNITY_EMAIL: ${{ vars.UNITY_EMAIL }} UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} with: @@ -283,7 +283,7 @@ jobs: uses: game-ci/unity-test-runner@v4.3.1 env: UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} - UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} + UNITY_EMAIL: ${{ vars.UNITY_EMAIL }} UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} with: testMode: editmode @@ -303,7 +303,7 @@ jobs: uses: game-ci/unity-test-runner@v4.3.1 env: UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} - UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} + UNITY_EMAIL: ${{ vars.UNITY_EMAIL }} UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} with: testMode: editmode @@ -323,7 +323,7 @@ jobs: uses: game-ci/unity-test-runner@v4.3.1 env: UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} - UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} + UNITY_EMAIL: ${{ vars.UNITY_EMAIL }} UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} with: testMode: editmode @@ -355,7 +355,7 @@ jobs: - name: Build Sample Project uses: game-ci/unity-builder@v4 env: - UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} + UNITY_EMAIL: ${{ vars.UNITY_EMAIL }} UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} with: From 9f528bd4c08a24ea9adbd292cf5028b51906e1a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sierpi=C5=84ski?= <33436839+sierpinskid@users.noreply.github.com> Date: Fri, 20 Nov 2026 13:16:38 +0100 Subject: [PATCH 2/3] change threat to more serious because the previous is now bypassed by the moderation filter --- .../StreamChat/Tests/StatefulClient/ChannelsModerationTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Plugins/StreamChat/Tests/StatefulClient/ChannelsModerationTests.cs b/Assets/Plugins/StreamChat/Tests/StatefulClient/ChannelsModerationTests.cs index d3201ba2..2d66cbe8 100644 --- a/Assets/Plugins/StreamChat/Tests/StatefulClient/ChannelsModerationTests.cs +++ b/Assets/Plugins/StreamChat/Tests/StatefulClient/ChannelsModerationTests.cs @@ -47,7 +47,8 @@ private async Task When_client_sends_message_shadowed_by_ai_moderation_expect_ot messagesReceivedOnOtherClient.Add(eventMessageNew); }; - var offensiveMessage = await channel.SendNewMessageAsync("I shall kidnap your hamster!"); + // Phrase from Stream's NLP THREAT examples, so it hits the Threat rule rather than another harm set to No Action. + var offensiveMessage = await channel.SendNewMessageAsync("I'll break your worthless jaw anytime, anywhere."); // Author should believe the message was sent Assert.IsTrue(channel.Messages.Contains(offensiveMessage)); From 4d47ec49adc6d8906a8e7e224ddc231bbe5ffba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sierpi=C5=84ski?= <33436839+sierpinskid@users.noreply.github.com> Date: Fri, 20 Nov 2026 14:47:13 +0100 Subject: [PATCH 3/3] Retry the sample build when UnityLinker crashes. Unity 6000.1 Android Mono builds can fail with UnityLinker exit 139 on inputs that succeed on another runner. --- .github/workflows/main.ci.cd.workflow.yml | 28 ++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.ci.cd.workflow.yml b/.github/workflows/main.ci.cd.workflow.yml index 3e281713..08cb59b6 100644 --- a/.github/workflows/main.ci.cd.workflow.yml +++ b/.github/workflows/main.ci.cd.workflow.yml @@ -352,7 +352,33 @@ jobs: run: | git diff - - name: Build Sample Project + # UnityLinker sometimes exits 139 (SIGSEGV) while stripping managed code, with the + # same inputs that succeed on another runner. Seen on Unity 6000.1 Android Mono + # (Library/Bee/artifacts/Android/ManagedStripped). Editmode tests above already + # passed, so only the player build is repeated. + - name: Build Sample Project (Attempt 1) + id: build_sample_1 + uses: game-ci/unity-builder@v4 + continue-on-error: true + env: + UNITY_EMAIL: ${{ vars.UNITY_EMAIL }} + UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} + UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} + with: + buildMethod: StreamChat.EditorTools.StreamEditorTools.BuildSampleApp + customParameters: -streamBase64TestDataSet ${{ secrets.STREAM_AUTH_TEST_DATA_BASE64 }} -testDataSetIndex ${{ env.SEQUENTIAL_INDEX }} -apiCompatibility ${{ matrix.dotnet_version }} -scriptingBackend ${{ matrix.compiler }} -buildTargetPlatform ${{ matrix.target_platform }} -buildTargetPath SampleAppBuild/${{ env.BUILD_NAME }} + customImage: ${{ env.DOCKER_TAG }} + allowDirtyBuild: true #Needed because the import process may update ProjectSettings + + - name: Reset Unity state before build retry + if: steps.build_sample_1.outcome == 'failure' + run: | + bash .github/workflows/scripts/reset-unity-state.sh + rm -rf Library/Bee/artifacts/Android + rm -f Library/Bee/artifacts/unitylinker_* + + - name: Build Sample Project (Attempt 2) + if: steps.build_sample_1.outcome == 'failure' uses: game-ci/unity-builder@v4 env: UNITY_EMAIL: ${{ vars.UNITY_EMAIL }}