Skip to content

Add HeadlessTestRunner with simulated MultiThreaded mode #1734

Add HeadlessTestRunner with simulated MultiThreaded mode

Add HeadlessTestRunner with simulated MultiThreaded mode #1734

Triggered via push July 17, 2024 09:06
Status Failure
Total duration 10m 25s
Artifacts 8

ci.yml

on: push
Matrix: Test
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 17 warnings
Test (Windows, windows-latest, Debug, SingleThread)
Process completed with exit code 1.
Test (macOS, macos-latest, Debug, SingleThread)
Process completed with exit code 1.
Test (Windows, windows-latest, Debug, MultiThreaded)
Process completed with exit code 1.
osu.Framework.Tests.Platform.GameHostSuspendTest ► TestPauseResume(MultiThreaded): osu.Framework.Tests/Platform/GameHostSuspendTest.cs#L84
Failed test found in: TestResults-Windows-SingleThread-Debug.trx Error: Expected: Exited But was: Running
osu.Framework.Tests.Platform.GameHostSuspendTest ► TestPauseResume(MultiThreaded): osu.Framework.Tests/Platform/GameHostSuspendTest.cs#L79
Failed test found in: TestResults-Windows-MultiThreaded-Debug.trx Error: Expected: True But was: False
osu.Framework.Tests.Platform.HeadlessGameHostTest ► TestGameHostExceptionDuringAsynchronousChildLoad: osu.Framework.Tests/Platform/HeadlessGameHostTest.cs#L44
Failed test found in: TestResults-Windows-MultiThreaded-Debug.trx Error: Expected: <System.InvalidOperationException> But was: <System.TimeoutException: This GameHost could not start HeadlessGameHostTest+ExceptionDuringAsynchronousLoadTestGame because another GameHost was already running. at osu.Framework.Platform.GameHost.Run(Game game) in D:\a\osu-framework\osu-framework\osu.Framework\Platform\GameHost.cs:line 707 at osu.Framework.Tests.Platform.HeadlessGameHostTest.<>c__DisplayClass1_0.<TestGameHostExceptionDuringAsynchronousChildLoad>b__0() in D:\a\osu-framework\osu-framework\osu.Framework.Tests\Platform\HeadlessGameHostTest.cs:line 44 at NUnit.Framework.Assert.Throws(IResolveConstraint expression, TestDelegate code, String message, Object[] args)>
osu.Framework.Tests.Visual.Drawables.TestSceneDrawNodeDisposal ► TestBasicDrawNodeReferencesRemovedAfterDisposal: osu.Framework/Testing/TestScene.cs#L502
Failed test found in: TestResults-Windows-MultiThreaded-Debug.trx Error: System.AggregateException : One or more errors occurred. (Game stuck in runnning state.) ----> System.InvalidOperationException : Game stuck in runnning state.
osu.Framework.Tests.Visual.Drawables.TestSceneDrawNodeDisposal ► TestBufferedDrawNodeReferencesRemovedAfterDisposal: osu.Framework/Testing/TestScene.cs#L502
Failed test found in: TestResults-Windows-MultiThreaded-Debug.trx Error: System.AggregateException : One or more errors occurred. (Game stuck in runnning state.) ----> System.InvalidOperationException : Game stuck in runnning state.
osu.Framework.Tests.Visual.Drawables.TestSceneDrawNodeDisposal ► TestCompositeDrawNodeReferencesRemovedAfterDisposal: osu.Framework/Testing/TestScene.cs#L502
Failed test found in: TestResults-Windows-MultiThreaded-Debug.trx Error: System.AggregateException : One or more errors occurred. (Game stuck in runnning state.) ----> System.InvalidOperationException : Game stuck in runnning state.
osu.Framework.Tests.Platform.GameHostSuspendTest ► TestPauseResume(MultiThreaded): osu.Framework/Threading/GameThread.cs#L244
Failed test found in: TestResults-macOS-SingleThread-Debug.trx Error: System.InvalidOperationException : Cannot exit when thread is Paused.
osu.Framework.Tests.Platform.HeadlessGameHostTest ► TestGameHostExceptionDuringAsynchronousChildLoad: osu.Framework.Tests/Platform/HeadlessGameHostTest.cs#L44
Failed test found in: TestResults-macOS-SingleThread-Debug.trx Error: Expected: <System.InvalidOperationException> But was: <System.TimeoutException: This GameHost could not start HeadlessGameHostTest+ExceptionDuringAsynchronousLoadTestGame because another GameHost was already running. at osu.Framework.Platform.GameHost.Run(Game game) in /Users/runner/work/osu-framework/osu-framework/osu.Framework/Platform/GameHost.cs:line 707 at osu.Framework.Tests.Platform.HeadlessGameHostTest.<>c__DisplayClass1_0.<TestGameHostExceptionDuringAsynchronousChildLoad>b__0() in /Users/runner/work/osu-framework/osu-framework/osu.Framework.Tests/Platform/HeadlessGameHostTest.cs:line 44 at NUnit.Framework.Assert.Throws(IResolveConstraint expression, TestDelegate code, String message, Object[] args)>
osu.Framework.Tests.Visual.Testing.TestSceneGlobalStatisticsDisplay ► TestConstructor: osu.Framework/Testing/TestScene.cs#L502
Failed test found in: TestResults-macOS-SingleThread-Debug.trx Error: System.AggregateException : One or more errors occurred. (Stack empty.) ----> System.InvalidOperationException : Stack empty.
osu.Framework.Tests.Visual.Testing.TestSceneGlobalStatisticsDisplay ► TestUpdateStats: osu.Framework/Testing/TestScene.cs#L502
Failed test found in: TestResults-macOS-SingleThread-Debug.trx Error: System.AggregateException : One or more errors occurred. (Stack empty.) ----> System.InvalidOperationException : Stack empty.
Test (Linux, ubuntu-latest, Release, SingleThread)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Test (Linux, ubuntu-latest, Release, SingleThread)
Restore cache failed: Dependencies file is not found in /home/runner/work/osu-framework/osu-framework. Supported file pattern: go.sum
Test (Linux, ubuntu-latest, Debug, SingleThread)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Test (Linux, ubuntu-latest, Debug, SingleThread)
Restore cache failed: Dependencies file is not found in /home/runner/work/osu-framework/osu-framework. Supported file pattern: go.sum
Test (Linux, ubuntu-latest, Release, MultiThreaded)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Test (Linux, ubuntu-latest, Release, MultiThreaded)
Restore cache failed: Dependencies file is not found in /home/runner/work/osu-framework/osu-framework. Supported file pattern: go.sum
Test (Linux, ubuntu-latest, Debug, MultiThreaded)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Test (Linux, ubuntu-latest, Debug, MultiThreaded)
Restore cache failed: Dependencies file is not found in /home/runner/work/osu-framework/osu-framework. Supported file pattern: go.sum
Test (Windows, windows-latest, Debug, SingleThread)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Test (Windows, windows-latest, Debug, SingleThread)
Restore cache failed: Dependencies file is not found in D:\a\osu-framework\osu-framework. Supported file pattern: go.sum
Test (macOS, macos-latest, Debug, SingleThread)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Test (macOS, macos-latest, Debug, SingleThread)
Restore cache failed: Dependencies file is not found in /Users/runner/work/osu-framework/osu-framework. Supported file pattern: go.sum
Test (macOS, macos-latest, Debug, MultiThreaded)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Test (macOS, macos-latest, Debug, MultiThreaded)
Restore cache failed: Dependencies file is not found in /Users/runner/work/osu-framework/osu-framework. Supported file pattern: go.sum
Test (Windows, windows-latest, Debug, MultiThreaded)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Test (Windows, windows-latest, Debug, MultiThreaded)
Restore cache failed: Dependencies file is not found in D:\a\osu-framework\osu-framework. Supported file pattern: go.sum
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "osu-framework-test-results-Linux-MultiThreaded-Debug", "osu-framework-test-results-Linux-MultiThreaded-Release", "osu-framework-test-results-Linux-SingleThread-Debug", "osu-framework-test-results-Linux-SingleThread-Release", "osu-framework-test-results-macOS-MultiThreaded-Debug", "osu-framework-test-results-macOS-SingleThread-Debug", "osu-framework-test-results-Windows-MultiThreaded-Debug", "osu-framework-test-results-Windows-SingleThread-Debug". Please update your workflow to use v4 of the artifact actions. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/

Artifacts

Produced during runtime
Name Size
osu-framework-test-results-Linux-MultiThreaded-Debug Expired
6.89 MB
osu-framework-test-results-Linux-MultiThreaded-Release Expired
3.85 MB
osu-framework-test-results-Linux-SingleThread-Debug Expired
6.71 MB
osu-framework-test-results-Linux-SingleThread-Release Expired
3.85 MB
osu-framework-test-results-Windows-MultiThreaded-Debug Expired
7.29 MB
osu-framework-test-results-Windows-SingleThread-Debug Expired
7.24 MB
osu-framework-test-results-macOS-MultiThreaded-Debug Expired
7.22 MB
osu-framework-test-results-macOS-SingleThread-Debug Expired
6.87 MB