Skip to content

Fix linker errors and compiler warnings in CI#399

Merged
Krilliac merged 3 commits intoWorkingfrom
claude/fix-linker-warnings-I1sB7
Apr 6, 2026
Merged

Fix linker errors and compiler warnings in CI#399
Krilliac merged 3 commits intoWorkingfrom
claude/fix-linker-warnings-I1sB7

Conversation

@Krilliac
Copy link
Copy Markdown
Owner

@Krilliac Krilliac commented Apr 6, 2026

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

claude and others 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
Fix EditorLogger self-deadlock that caused test suite to hang forever
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

❌ CI Error Report

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

Test Failures

Test Jobs
1/1 Test #1: SparkEngineTests .................***Failed 12.34 sec windows-vs2022-Release
[ FAILED ] EditorLogger_ExportLogs (577us, 1 assertions) windows-vs2022-Release
[ FAILED ] CrashHandler_SaveAndHasRecoveryData (1.1ms, 2 assertions) windows-vs2022-Release
[ FAILED ] Gated_VCS_SceneMergeHandler (607us, 3 assertions) windows-vs2022-Release
[ FAILED ] Gated_OWPlayer_Initialize (537us, 1 assertions) windows-vs2022-Release
[ FAILED ] Gated_OWExploration_Initialize (967us, 2 assertions) windows-vs2022-Release
[ FAILED ] Gated_OWGathering_Initialize (1.4ms, 3 assertions) windows-vs2022-Release
[ FAILED ] Gated_OWGathering_HarvestNode (505us, 1 assertions) windows-vs2022-Release
[ FAILED ] Gated_OWWildlife_Initialize (1.4ms, 3 assertions) windows-vs2022-Release
[ FAILED ] Gated_OWWildlife_UpdateBehavior (499us, 1 assertions) windows-vs2022-Release
[ FAILED ] Gated_OWSettlement_Initialize (941us, 2 assertions) windows-vs2022-Release
[ FAILED ] Gated_OWDynamicEvents_Initialize (946us, 2 assertions) windows-vs2022-Release
[ FAILED ] Gated_OWDynamicEvents_TriggerEvent (955us, 2 assertions) windows-vs2022-Release
[ FAILED ] Gated_OWDynamicEvents_JoinEvent (493us, 1 assertions) windows-vs2022-Release
[ FAILED ] Gated_OWWorldSetup_Initialize (943us, 2 assertions) windows-vs2022-Release
[ FAILED ] Gated_OWWorldSetup_Regions (965us, 2 assertions) windows-vs2022-Release
[ FAILED ] RTS_Unit_KillRemovesFromCount (1.2ms, 2 assertions) windows-vs2022-Release
[ FAILED ] RTS_Building_DestroyDecrementsCount (844us, 1 assertions) windows-vs2022-Release
[ FAILED ] MMO_ChatSystem_Initialize (515us, 1 assertions) windows-vs2022-Release
[ FAILED ] Racing_VehicleSystem_Initialize (483us, 1 assertions) windows-vs2022-Release

Updated: 2026-04-06T17:35:19Z — this comment is updated in-place, not duplicated.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

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:|31.3% 21714| 0.0%  3k|    -    0

@Krilliac Krilliac merged commit c89c03a into Working Apr 6, 2026
39 of 42 checks passed
@Krilliac Krilliac deleted the claude/fix-linker-warnings-I1sB7 branch April 6, 2026 22:57
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