Skip to content
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

Failing tests don't fail build when warningsAsErrors is false #1589

Open
Tracked by #1002
ryanbrandenburg opened this issue Dec 14, 2018 · 8 comments
Open
Tracked by #1002

Failing tests don't fail build when warningsAsErrors is false #1589

ryanbrandenburg opened this issue Dec 14, 2018 · 8 comments
Milestone

Comments

@ryanbrandenburg
Copy link
Contributor

We've started setting warningsAsErrors to false in our builds of Arcade projects because that's what we did before, and we have some warnings that would currently cause us to start failing, but when we do this test failures don't fail the build because they're only logged as warnings. I suspect this is caused by this line, where LogStandardErrorAsError="false". I've noticed that that's set that way in a couple different Exec's, so possibly this is not the only area affected.

Repro:

  1. Clone git@github.com:aspnet/Extensions.git
  2. git checkout rybrande/Arcade
  3. .\build.cmd

That takes a while to run, but if I'm right it should replicated against any arcade repo with a failing test against which warnaserrors=false was passed.

@ryanbrandenburg
Copy link
Contributor Author

Here is an example of this in the wild.

CC @markwilkie

@tmat
Copy link
Member

tmat commented Dec 14, 2018

@ryanbrandenburg
Copy link
Contributor Author

That line is output, but as a warning. You can see it at the very bottom of the log I linked above.

@natemcmaster
Copy link
Contributor

+1 to what Ryan said. It's clearly a bug.

image

@nguerrera
Copy link
Contributor

It's behaving as though there's a ContinueOnError=WarnAndContinue in effect when that Error is logged.

@nguerrera
Copy link
Contributor

@rainersigwald

@tmat
Copy link
Member

tmat commented Dec 16, 2018

Yeah, seems like a bug in msbuild to me.

@markwilkie
Copy link
Member

Next step is to find and reference the tracking msbuild bug (assuming there is one)

@missymessa missymessa added this to the Arcade SDK milestone Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants