game-ci / unity-test-runner

Run tests for any Unity project
https://github.com/marketplace/actions/unity-test-runner
MIT License
206 stars 135 forks source link

`Warning: Not able to find annotation point for failed test!` #277

Closed 12joan closed 1 month ago

12joan commented 1 month ago

I'm trying to debug some playmode tests that recently became flaky on CI after adding FMOD to our game, but I can't find the error message that's causing the tests to fail.

Near the bottom of the GitHub workflow logs I've got:

Start analyzing results: playmode-results.xml
Warning: Not able to find annotation point for failed test! Test trace: FMODUnity.RuntimeUtils:DebugLogError (string) (at Assets/Plugins/FMOD/src/RuntimeUtils.cs:580)
FMODUnity.RuntimeManager:DEBUG_CALLBACK (FMOD.DEBUG_FLAGS,intptr,int,intptr,intptr) (at Assets/Plugins/FMOD/src/RuntimeManager.cs:104)
FMOD.System:setOutput (FMOD.OUTPUTTYPE) (at Assets/Plugins/FMOD/src/fmod.cs:1048)
FMODUnity.RuntimeManager:Initialize () (at Assets/Plugins/FMOD/src/RuntimeManager.cs:330)
FMODUnity.RuntimeManager:get_Instance () (at Assets/Plugins/FMOD/src/RuntimeManager.cs:207)
FMODUnity.RuntimeManager:get_StudioSystem () (at Assets/Plugins/FMOD/src/RuntimeManager.cs:225)
FMODUnity.StudioListener:AddListener (FMODUnity.StudioListener) (at Assets/Plugins/FMOD/src/StudioListener.cs:72)
FMODUnity.StudioListener:OnEnable () (at Assets/Plugins/FMOD/src/StudioListener.cs:90)

❌️ playmode-results.xml - 16/17, failed: 1 - Failed in 479.620s

Based on the stack trace and the code for the FMOD plugin, RuntimeUtils.cs:580 should be outputting an error log message starting with [FMOD], but I've searched the workflow logs and I can't find any lines starting with that. There's nothing in the test results either except for that fact that one test failed without explanation.

How do I resolve the Warning: Not able to find annotation point for failed test! issue so that I can investigate why FMOD caused the test to fail?

https://github.com/anderbellstudios/pop-pixie/actions/runs/9996941037/job/27633424055#step:4:21789

Tangentially related: #275

12joan commented 1 month ago

Closing in favour of #278