Skip to content

Commit 85794cd

Browse files
committed
fix(ci): exclude LongIndexingBroadcastTest from CI (HighMemory)
LongIndexingBroadcastTest iterates over 2.36 billion elements per test. Even though memory is minimal (broadcast arrays), TUnit runs tests in parallel, causing excessive CPU/memory pressure that triggers the OOM killer on Ubuntu CI runners. Mark class with [HighMemory] to exclude from CI.
1 parent d643481 commit 85794cd

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/NumSharp.UnitTest/LongIndexing/LongIndexingBroadcastTest.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ namespace NumSharp.UnitTest.LongIndexing;
2020
/// - SliceDef is limited to int indices (cannot slice broadcast arrays with long indices)
2121
/// - Operations that produce output (add, multiply, etc.) allocate full-size output arrays
2222
/// even when input is broadcast, causing OutOfMemoryException
23+
///
24+
/// NOTE: Marked [HighMemory] because iterating over 2.36 billion elements causes
25+
/// excessive CPU/memory pressure when TUnit runs tests in parallel, leading to
26+
/// OOM kills on Ubuntu CI runners.
2327
/// </summary>
28+
[HighMemory]
2429
public class LongIndexingBroadcastTest
2530
{
2631
/// <summary>

0 commit comments

Comments
 (0)