-
Notifications
You must be signed in to change notification settings - Fork 6
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
Tests are not passed to TeamCity with Bazel remote caching #9
Comments
Could you please attach a screenshot of the tab Before this fix you had a state But a build reports that it has failed tests. We had a discussion about that there. But anyway another TeamCity build runners work the same way. Bazel provides a tests report after a build. You could select |
Thank you. It looks good. Could you attach a build log file with diagnostics verbosity level? |
Which version of TeamCity and Bazel are you using? |
Diag build log attached. TeamCity Enterprise 2019.2.2 (build 71923) Bazel 2.2.0 |
Thanks. Could you attach a screenshot of Overview page for this build? |
So you have no information about tests at all? |
Unless I open Build Log I have no way to see test failures. |
And what about passed tests? Do you have |
No tests tab for the build. |
To answer your question
which come in as tests are passing or failing, while the build is still going, so it is possible to have that info in real time. |
Are you using Bazel Remote caching? |
Thank you, Nikolay! |
Indeed it seems to be remote caching which makes the difference! When I turned remote caching off everything test related started to behave as it should. Here is diagnostic log without remote caching: |
I've added #10 task |
The last fix made things substantially worse, by hiding test failures. When we have a build with some unit tests failed we want to see the build failed with the indication that it failed because of the tests, like this:
What we actually see is a completely green successful build:
with no indication that there is anything wrong with it! This is very misleading and error-prone.
At the very least please make the build fail if not all tests are passing, as it was before the last fix.
But ideally, we should see tests failed and passed stats, as in the picture.
And this stat should show up during the build, not only after the completion, as it happens for other build runners.
The text was updated successfully, but these errors were encountered: