Commit cb9ca5f
committed
Fix Windows CI compiler heap exhaustion by splitting interactions.cpp
Split tests/server/interactions.cpp (5,548 lines, 193KB) into 3 smaller
files to avoid MSVC C1060 "compiler is out of heap space" error on GitHub
Actions Windows CI.
Issue: Windows CI failed at interactions.cpp:2307 with C1060 during both
Debug and Release builds. The file was too large for MSVC to compile in
CI's constrained environment, despite compiling fine locally with the same
compiler version (MSVC 14.44.35207).
Solution: Split into 3 parts following the same pattern as commit 54dc027
which explicitly "split large test files for maintainability":
- interactions_part1.cpp (55 tests, 1,989 lines) - Core Tools/Resources/Prompts
- interactions_part2.cpp (59 tests, 2,104 lines) - Data types/Validation
- interactions_part3.cpp (50 tests, 1,741 lines) - Server capabilities/Notifications
All 164 tests accounted for and passing locally (3/3 tests, 0.04s).
Related: PR #11 (43e5e64) which introduced the large interactions.cpp file.
This change maintains all test coverage while fixing Windows CI builds.1 parent ff439e4 commit cb9ca5f
5 files changed
Lines changed: 5849 additions & 5551 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | | - | |
234 | | - | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
235 | 244 | | |
236 | 245 | | |
237 | 246 | | |
| |||
0 commit comments