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

MSBuild errors are not reported as errors to TeamCity #2252

Closed
otto-gebb opened this issue Feb 14, 2019 · 3 comments
Closed

MSBuild errors are not reported as errors to TeamCity #2252

otto-gebb opened this issue Feb 14, 2019 · 3 comments

Comments

@otto-gebb
Copy link
Contributor

When a build breaks because of a compilation error, too much work needs to be done to discover the error reported by the compiler.

Looks like FAKE doesn't report compiler error messages as errors to TeamCity, although these messages are red in the log.

The image below illustrates what I mean.
2019-02-14_22-44-27

When I filter the build log to show only "Important messages", I don't see compiler errors:
2019-02-14_22-55-19

Repro steps

  1. Have a build in TeamCity broken because a C# file doesn't compile.
  2. Open the build log.
  3. Try to discover the root cause.
  4. Suffer.

Expected behavior

The compiler error message is recorded as an error, and you can quickly find out why the build is broken.

Actual behavior

See screenshots above.

Known workarounds

None.

Related information

  • Don't know if related, but if I try to log anything in the FAKE script with Trace.traceImportant, the message doesn't appear in TeamCity build log.
  • FAKE 5.12
  • TeamCity Professional 2018.2.2 (build 61245)
@matthid
Copy link
Member

matthid commented Feb 14, 2019

Yes it looks a lot better on other CI systems. TeamCity is a special piece of pain for me because I already invested a lot of time (while not using it myself) to get it running with https://teamcity.jetbrains.com (which I'm glad that they provide free hosting). However, it seems to fail randomly when then build gets queued on random agents. For example look at the current build failure: #2234

image

I think best would be if someone actually using the thing could help there actively as I'm probably not able to do it anymore.

To be completely honest I'm thinking about disabling TeamCity in this repository again (as I really don't like red builds).

@otto-gebb
Copy link
Contributor Author

@BlythMeister as I remember, you have done something related to TeamCity recently. Maybe you could take a look at this?

@otto-gebb
Copy link
Contributor Author

Fixed by #2258.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants