Skip to content

Reduce memory pressure in CI tests for HP package #3350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ public void Test_ReadOnlySpanExtensions_RandomCountManaged()
{
var value = new Int(37438941);

foreach (var count in TestCounts)
// We can skip the most expensive test in this case, as we're not testing
// a SIMD enabled path. The last test requires a very high memory usage which
// sometimes causes the CI test runner to fail with an out of memory exception.
// Since we don't need to double check overflows in the managed case, which is
// just a classic linear loop with some optimizations, omitting this case is fine.
foreach (var count in TestCounts.Slice(0, TestCounts.Length - 1))
{
var random = new Random(count);

Expand Down