Skip to content

SBRP forward flow fails on meaningful change analysis #5299

Description

@premun

Pull request

N/A

Type of problem

Codeflow PRs not getting created

Description of the issue

"Problem": System.ArgumentOutOfRangeException at System.String.ThrowSubstringArgumentOutOfRange:35,
"Message": startIndex cannot be larger than length of string. (Parameter 'startIndex'),
"line": 102,
"fileName": "/src/Microsoft.DotNet.Darc/DarcLib/VirtualMonoRepo/CodeflowChangeAnalyzer.cs"

The exception is thrown on a substring operation where we don't explicitly make sure the base string is long enough. However, the existence of strings that are too short for the substring operation implies that there are file names there that should maybe not be there - this needs to be looked into.

Logs: https://dataexplorer.azure.com/dashboards/83ee5d57-8e86-454e-b0ee-69568a6c10e7?p-_startTime=2025-09-22T15-59-00Z&p-_endTime=2025-09-23T15-59-00Z&p-_operationId=v-2daab3d9b0a5eecaa7f5408bbfa62351#8a5bc9bb-f9b8-4876-bbfa-94046fdf0174

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions