Skip to content

Enable the flow of NoWarns to inner build #3903

Closed
@mthalman

Description

@mthalman

There can often be cases where Roslyn analyzer warnings (which typically get treated as errors) show up in the stage 2 build of source build. This is because the stage 2 build makes use of the most recent SDK to build the repos and those repos can have source which isn't compliant with new analyzers included in that SDK.

To unblock the build, it was often useful to simply add a NoWarn entry for the specific analyzer type. (It's up to the underlying repo to fix the issue and these analyzer issues shouldn't block a build of the VMR.) But the ability to set a NoWarn entry for a repo was removed as part of the changes in dotnet/installer#17712.

In the absence of ignoring the error, the only resolution is to apply the fix. Some fixes for analyzer issues can be quite extensive in some cases; others can be simple. The most expedient way to unblock the VMR build is to create a patch. But depending on the changes involved, this may not be a great solution. As we got closer to a release cutoff date, there's a need to have a quick turnaround to resolve these issues. Therefore, we should reconsider having a mechanism that allows us to flow NoWarn entries to the inner build of repos.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-infraSource-build infrastructure and reporting

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions