You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"ErrorMessage": ["bufferSize ('-1') must be a non-negative and non-zero value"],
"BuildRetry": false,
"ExcludeConsoleLog": false
}
Summary
System.IO.Tests.StreamReader_StringCtorTests.NegativeOneBufferSize_ShouldNotThrowException fails under PGO (libraries-pgo pipeline). The test expects that new StreamReader(path, Encoding.UTF8, true, -1) does not throw, but under PGO it throws ArgumentOutOfRangeException: bufferSize ('-1') must be a non-negative and non-zero value.
The StreamReader(string, Encoding, bool, int) constructor calls ValidateArgsAndOpenPath(path, bufferSize) which skips validation for -1, then chains to the Stream-based constructor which converts -1 to DefaultBufferSize. Under normal execution this works; the PGO-compiled code path may be reordering or inlining in a way that hits validation before the -1 → default conversion.
System.IO.Tests.StreamReader_StringCtorTests.NegativeOneBufferSize_ShouldNotThrowException [FAIL]
System.ArgumentOutOfRangeException : bufferSize ('-1') must be a non-negative and non-zero value. (Parameter 'bufferSize')
Stack Trace:
at System.ArgumentOutOfRangeException.ThrowNegativeOrZero[T](T value, String paramName)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.Tests.StreamReader_StringCtorTests.NegativeOneBufferSize_ShouldNotThrowException()
Present in builds 1414905 (May 10) and 1414533 (May 9). ≥2 occurrences.
Recommended action
Investigate whether PGO-guided inlining/optimization is changing the evaluation order of ValidateArgsAndOpenPath and the Stream ctor's bufferSize check. The -1 sentinel value should be converted to DefaultBufferSize before ThrowIfNegativeOrZero runs.
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
dotnet.github.io
To allow these domains, add them to the network.allowed list in your workflow frontmatter:
Build: 🔎https://dev.azure.com/dnceng-public/public/_build/results?buildId=1414905 Error message validated:[NegativeOneBufferSize_ShouldNotThrowException System.ArgumentOutOfRangeException] Result validation: ✅ Known issue matched with the provided build. Validation performed at: 5/12/2026 11:31:36 AM UTC
Build: 🔎https://dev.azure.com/dnceng-public/public/_build/results?buildId=1414905 Error message validated:[NegativeOneBufferSize_ShouldNotThrowException System.ArgumentOutOfRangeException] Result validation: ✅ Known issue matched with the provided build. Validation performed at: 5/12/2026 11:31:36 AM UTC
Build: 🔎https://dev.azure.com/dnceng-public/public/_build/results?buildId=1414905 Error message validated:[NegativeOneBufferSize_ShouldNotThrowException System.ArgumentOutOfRangeException] Result validation: ✅ Known issue matched with the provided build. Validation performed at: 5/12/2026 11:31:36 AM UTC
Build Information
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1414905
Pipeline: runtime-coreclr libraries-pgo (definition 145)
Affected leg: linux-x64 Release
Error Message
{ "ErrorMessage": ["bufferSize ('-1') must be a non-negative and non-zero value"], "BuildRetry": false, "ExcludeConsoleLog": false }Summary
System.IO.Tests.StreamReader_StringCtorTests.NegativeOneBufferSize_ShouldNotThrowExceptionfails under PGO (libraries-pgo pipeline). The test expects thatnew StreamReader(path, Encoding.UTF8, true, -1)does not throw, but under PGO it throwsArgumentOutOfRangeException: bufferSize ('-1') must be a non-negative and non-zero value.The
StreamReader(string, Encoding, bool, int)constructor callsValidateArgsAndOpenPath(path, bufferSize)which skips validation for-1, then chains to theStream-based constructor which converts-1toDefaultBufferSize. Under normal execution this works; the PGO-compiled code path may be reordering or inlining in a way that hits validation before the-1→ default conversion.Impact on platforms
runtime-coreclr libraries-pgo(def 145) ·linux-x64 Release· exit code 1Console log
Console log
First build it occurred
Present in builds 1414905 (May 10) and 1414533 (May 9). ≥2 occurrences.
Recommended action
Investigate whether PGO-guided inlining/optimization is changing the evaluation order of
ValidateArgsAndOpenPathand the Stream ctor's bufferSize check. The-1sentinel value should be converted toDefaultBufferSizebeforeThrowIfNegativeOrZeroruns.Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
dotnet.github.ioSee Network Configuration for more information.
Note
🔒 Integrity filter blocked 4 items
The following items were blocked because they don't meet the GitHub integrity level.
search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".To allow these resources, lower
min-integrityin your GitHub frontmatter:Report
Summary
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1414905
Error message validated:
[NegativeOneBufferSize_ShouldNotThrowException System.ArgumentOutOfRangeException]Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 5/12/2026 11:31:36 AM UTC
Report
Summary
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1414905
Error message validated:
[NegativeOneBufferSize_ShouldNotThrowException System.ArgumentOutOfRangeException]Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 5/12/2026 11:31:36 AM UTC
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1414905
Error message validated:
[bufferSize ('-1') must be a non-negative and non-zero value]Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 5/13/2026 8:12:07 AM UTC
Report
Summary
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1414905
Error message validated:
[NegativeOneBufferSize_ShouldNotThrowException System.ArgumentOutOfRangeException]Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 5/12/2026 11:31:36 AM UTC
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1414905
Error message validated:
[bufferSize ('-1') must be a non-negative and non-zero value]Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 5/13/2026 8:12:07 AM UTC