Skip to content

Claude/fix slow tests 0y2wj#401

Merged
Krilliac merged 3 commits into
Workingfrom
claude/fix-slow-tests-0y2wj
Apr 6, 2026
Merged

Claude/fix slow tests 0y2wj#401
Krilliac merged 3 commits into
Workingfrom
claude/fix-slow-tests-0y2wj

Conversation

@Krilliac

@Krilliac Krilliac commented Apr 6, 2026

Copy link
Copy Markdown
Owner

No description provided.

claude added 3 commits April 6, 2026 14:24
Add missing EditorPanel.cpp and ARPGDungeonSystem.cpp to test sources,
fix format specifier for uint64_t, suppress unused-variable warnings
from disabled debug draw macros, and fix unsigned >= 0 comparisons.

https://claude.ai/code/session_01GWZkHNsStxny6ZNZjFosjY
EditorLogger::Initialize() held m_mutex then called AddTarget() and Log(),
both of which try to acquire m_mutex again. Since std::mutex is not recursive,
this deadlocked on the first EditorLogger test (test #92), blocking all
remaining ~3970 tests and making the suite appear to run "over an hour."

Fix: push targets directly in Initialize() instead of calling AddTarget(),
and move the Log() call outside the locked section. Remove the Log() call
from Shutdown() which had the same deadlock pattern.

Result: full test suite (4060 tests) now completes in ~14 seconds.

https://claude.ai/code/session_01A9dweScVNKtmEFiSBdupKX
…bugs

- OW systems (7 files): Remove overzealous null-context guards from
  Initialize() — none of the init logic uses the context pointer, so
  passing nullptr from tests is valid
- MMO ChatSystem, Racing VehicleSystem: Same null-context fix
- RTS KillUnit/DestroyBuilding: Actually remove entities from the map
  instead of just zeroing health, so GetUnitCount() reflects the kill
- EditorLogger_ExportLogs: Write to CWD instead of missing TestLogs/ dir
- CrashHandler_SaveAndHasRecoveryData: Create TestCrashes/ dir before use
- Gated_VCS_SceneMergeHandler: Use correct .sparkscene extension

All 4060 tests now pass in ~8.5 seconds.

https://claude.ai/code/session_01A9dweScVNKtmEFiSBdupKX
@Krilliac
Krilliac merged commit 5fff531 into Working Apr 6, 2026
37 of 39 checks passed
@Krilliac
Krilliac deleted the claude/fix-slow-tests-0y2wj branch April 6, 2026 22:57
@github-actions

github-actions Bot commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

Code Coverage (GCC + lcov)

Utils/MemoryDebugger.h                         |13.3%   150| 0.0%  20|    -    0
Utils/MemoryMonitor.cpp                        | 9.6%   229| 0.0%  19|    -    0
Utils/MemoryMonitor.h                          |85.7%    14| 0.0%  12|    -    0
Utils/MultiISA.h                               |42.9%    14| 0.0%   6|    -    0
Utils/NetworkHealthMonitor.cpp                 | 113%    15| 0.0%   2|    -    0
Utils/NetworkHealthMonitor.h                   |    -     0|    -   0|    -    0
Utils/OpaqueHandle.h                           | 282%    11| 0.0%  15|    -    0
Utils/Profiler.cpp                             |14.2%   113| 0.0%  15|    -    0
Utils/Profiler.h                               |36.4%    33| 0.0%  12|    -    0
Utils/RandomEngine.h                           |29.3%    41| 0.0%  12|    -    0
Utils/Result.h                                 | 100%    29| 0.0%  28|    -    0
Utils/RingBuffer.h                             | 108%    59| 0.0%  64|    -    0
Utils/ScopeGuard.h                             | 142%    36| 0.0%  51|    -    0
Utils/ScopedTimer.h                            |25.0%    12| 0.0%   3|    -    0
Utils/Serializer.h                             | 100%    48| 0.0%  42|    -    0
Utils/SparkConsole.cpp                         |28.5%   144| 0.0%  17|    -    0
Utils/SparkConsole.h                           | 100%     2| 0.0%   2|    -    0
Utils/SparkError.h                             |10.9%    55| 0.0%   6|    -    0
Utils/SplinePath.h                             |    -     0|    -   0|    -    0
Utils/StackTrace.h                             |10.8%    74| 0.0%   8|    -    0
Utils/StateMachine.h                           |54.0%    63| 0.0%  32|    -    0
Utils/StringUtils.h                            |18.8%   112| 0.0%  21|    -    0
Utils/Telemetry.h                              |21.8%    87| 0.0%  16|    -    0
Utils/ThreadDebugger.h                         |12.8%   148| 0.0%  19|    -    0
Utils/ThreadSafeQueue.h                        |27.5%    40| 0.0%  11|    -    0
Utils/TimerManager.h                           |19.8%    96| 0.0%  19|    -    0
Utils/UUID.h                                   |43.2%    37| 0.0%  16|    -    0
Utils/Validate.h                               |    -     0|    -   0|    -    0

[/home/runner/work/SparkEngine/SparkEngine/SparkSDK/Include/Spark/]
IEngineContext.h                               |6700%     1| 0.0%   1|    -    0
Version.h                                      |    -     0|    -   0|    -    0
================================================================================
                                         Total:|30.0% 22621| 0.0%  3k|    -    0

@github-actions

github-actions Bot commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

❌ CI Error Report

Failed jobs: windows-vs2022-Release
Errors: 0 | Test failures: 11 | Warnings: 0

Test Failures

Test Jobs
1/1 Test #1: SparkEngineTests .................***Failed 12.54 sec windows-vs2022-Release
[ FAILED ] Racing_TrackSystem_Initialize (555us, 1 assertions) windows-vs2022-Release
[ FAILED ] Racing_TrackSystem_LoadDemoTrack (543us, 1 assertions) windows-vs2022-Release
[ FAILED ] Racing_TrackSystem_GetTrackCount (852us, 1 assertions) windows-vs2022-Release
[ FAILED ] Racing_TrackSystem_GetCheckpointCount (837us, 1 assertions) windows-vs2022-Release
[ FAILED ] Racing_RaceManager_Initialize (526us, 1 assertions) windows-vs2022-Release
[ FAILED ] Platformer_Checkpoint_Initialize (490us, 1 assertions) windows-vs2022-Release
[ FAILED ] Platformer_Checkpoint_CountAndActivated (900us, 2 assertions) windows-vs2022-Release
[ FAILED ] Platformer_Player_Initialize (515us, 2 assertions) windows-vs2022-Release
[ FAILED ] Platformer_Player_RespawnRestoresPosition (2.6ms, 3 assertions) windows-vs2022-Release
0% tests passed, 1 tests failed out of 1 windows-vs2022-Release

Updated: 2026-04-06T23:28:17Z — this comment is updated in-place, not duplicated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants