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

Bazel coverage is not producing coverage reports for 6.1.2 #18896

Closed
darrenrabbs opened this issue Jul 11, 2023 · 7 comments
Closed

Bazel coverage is not producing coverage reports for 6.1.2 #18896

darrenrabbs opened this issue Jul 11, 2023 · 7 comments

Comments

@darrenrabbs
Copy link

Description of the bug:

I am having issues running bazel coverage with the 6.1.2 version of Bazel
This was working fine on 5.4.1 but for some reason now , the _coverage_report.dat files are appearing empty.

Is there anything broken with coverage between the two versions and has anyone discovered any workarounds to resolve?

Thanks

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

I can see if the steps are reproducible with a simple repo

Which operating system are you running Bazel on?

ubuntu

What is the output of bazel info release?

release 6.1.2

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?

No response

Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

@sgowroji
Copy link
Member

Hi @darrenrabbs, Can you provide complete steps to reproduce the above scenario. Thanks!

@coeuvre
Copy link
Member

coeuvre commented Jul 12, 2023

It should be fixed in up coming 6.3 release by #18791. Would you mind verifying whether that PR fixes your case?

@darrenrabbs
Copy link
Author

Hi guys,
I am currently testing to see with Bazel 6.2.0 resolves my issues. If it does then I will happy to close the bug, will keep you posted and if I am still seeing issues , I'll give some more steps on how to reproduce.. ( however, it is a private repo but I will attempt on another sample repo if the issue persists)

@coeuvre
Copy link
Member

coeuvre commented Jul 13, 2023

Bazel 6.2 doesn't have the fix so it's likely you will still have the issue with it. Can you try with a custom binary with #18791 patched, or wait for 6.3.0 RCs?

@darrenrabbs
Copy link
Author

hmm strange , as I was able to get my coverage.dat created with 6.2.0 for one of my targets. But have not completed testing across all as of yet.

@sgowroji
Copy link
Member

Hi @darrenrabbs, Can you please verify the above with latest 6.3.0. release. Let us know if you still have any queries. Thanks!

@darrenrabbs
Copy link
Author

Hi, we haven't upgraded to this version as of yet . However, coverage is working for us on 6.2.1 version so we are content for now. Happy to close this also

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

4 participants