Skip to content

Conversation

dougbu
Copy link
Contributor

@dougbu dougbu commented Jun 18, 2020

  • Allow some warnings related to closed issues

@dougbu
Copy link
Contributor Author

dougbu commented Jun 18, 2020

/fyi will run an internal pipeline once we drive warnings down enough for PR validation to succeed. We have a small amount of site extensions code that doesn't build in PR validation.

@dougbu
Copy link
Contributor Author

dougbu commented Jun 18, 2020

As expected, #22992 blocks this. Warnings mentioned there are visible in all test builds.


# Disable node reuse - Workaround perpetual issues in node reuse and custom task assemblies
$nodeReuse = $false
$env:MSBUILDDISABLENODEREUSE=1

# Our build often has warnings that we can't fix, like "MSB3026: Could not copy" due to race
# conditions in building C++
# Fixing this is tracked by https://github.com/dotnet/aspnetcore-internal/issues/601
Copy link
Contributor Author

@dougbu dougbu Jun 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reminder to self: Close dotnet/aspnetcore-internal#601 when this PR goes in 😺

@Pilchie Pilchie added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Jun 18, 2020
dougbu added 3 commits June 18, 2020 12:30
- already enabled in non-Windows builds because override existed only in build.ps1
- common `<NoWarn>$(NoWarn);CS1591</NoWarn>` case unchanged
    - /Directory.Build.props ensures that warning remains a warning but doesn't hide it
- variable eng/common/tools.sh uses named `warn_as_error`
@dougbu dougbu force-pushed the dougbu/warn.as.error branch from 7abb247 to 2738e1e Compare June 18, 2020 19:31
@dougbu dougbu marked this pull request as ready for review June 18, 2020 19:32
@dougbu dougbu requested a review from a team June 18, 2020 19:32
@dougbu dougbu changed the title Enable /warnAsError in Windows builds Enable /warnAsError Jun 18, 2020
@dougbu
Copy link
Contributor Author

dougbu commented Jun 18, 2020

Internal build https://dev.azure.com/dnceng/internal/_build/results?buildId=694625 built all product code, including site extensions. That build did not compile any test code but PR validation build https://dev.azure.com/dnceng/public/_build/results?buildId=694621 covered that. Both hit only the expected (for now) 8 or 9 per-build non-msbuild warnings.

@dougbu dougbu merged commit ab7f3f2 into master Jun 18, 2020
@dougbu dougbu deleted the dougbu/warn.as.error branch June 18, 2020 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants