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

Replace INFO with FINE logging in CoverageOutputGenerator #22257

Closed
wants to merge 1 commit into from

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented May 6, 2024

This reduces unconditional log spam for coverage report actions. If needed, users can configure the loglevel by wrapping the CoverageOutputGenerator jar into a java_binary with appropriate jvmopts.

This reduces unconditional log spam for coverage report actions. If needed, users can configure the loglevel by wrapping the `CoverageOutputGenerator` jar into a `java_binary` with appropriate `jvmopts`.
@fmeum fmeum requested a review from lberki as a code owner May 6, 2024 19:22
@fmeum fmeum requested a review from c-mita May 6, 2024 19:22
@github-actions github-actions bot added the awaiting-review PR is awaiting review from an assigned reviewer label May 6, 2024
@fmeum fmeum removed the request for review from lberki May 6, 2024 19:23
@iancha1992 iancha1992 added the team-Rules-Server Issues for serverside rules included with Bazel label May 6, 2024
@fmeum fmeum mentioned this pull request May 7, 2024
@c-mita
Copy link
Member

c-mita commented May 7, 2024

If needed, users can configure the loglevel by wrapping the CoverageOutputGenerator jar into a java_binary with appropriate jvmopts

I don't think this is a good way to configure logging levels, although I don't see much of an alternative without adding to Bazel's large collection of flags...

@c-mita c-mita added the coverage label May 7, 2024
@c-mita c-mita added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels May 7, 2024
@fmeum
Copy link
Collaborator Author

fmeum commented May 7, 2024

@c-mita Are you going to create a new release after the merge?

@c-mita
Copy link
Member

c-mita commented May 7, 2024

Yes, although I might need to review (or actually formalize) the process first. There's a long standing issue re. provenance (#15459).

@copybara-service copybara-service bot closed this in 39115b9 May 8, 2024
@github-actions github-actions bot removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label May 8, 2024
@fmeum fmeum deleted the coverage-output-logs branch May 8, 2024 19:13
Kila2 pushed a commit to Kila2/bazel that referenced this pull request May 13, 2024
This reduces unconditional log spam for coverage report actions. If needed, users can configure the loglevel by wrapping the `CoverageOutputGenerator` jar into a `java_binary` with appropriate `jvmopts`.

Closes bazelbuild#22257.

PiperOrigin-RevId: 631849225
Change-Id: I3c656216b81f6a5920edf46e7ae1b8afe970faef
@lalten
Copy link
Contributor

lalten commented Aug 30, 2024

Would it be possible to release a remote_coverage_tools with this fix? The coverage log spam is still making our build logs pretty hard to read.

@fmeum
Copy link
Collaborator Author

fmeum commented Aug 30, 2024

@keertk

@keertk
Copy link
Member

keertk commented Aug 30, 2024

@c-mita can you take a look?

@lalten
Copy link
Contributor

lalten commented Sep 18, 2024

friendly bump on this

@lalten
Copy link
Contributor

lalten commented Oct 9, 2024

@c-mita any chance this fix could make it into Bazel 8?

c-mita added a commit to c-mita/bazel that referenced this pull request Dec 6, 2024
Built at commit 93e76f2.

Relevant changes:
 * Log level for many messages changed from INFO to FINE (bazelbuild#22257).
 * IOExceptions are no longer ignored (bazelbuild#21987).
 * Baseline coverage files are not ignored (bazelbuild#24563).

RELNOTES: Baseline coverage files are no longer ignored.
c-mita added a commit to c-mita/bazel that referenced this pull request Dec 6, 2024
Built at commit 93e76f2.

Relevant changes:
 * Log level for many messages changed from INFO to FINE (bazelbuild#22257).
 * IOExceptions are no longer ignored (bazelbuild#21987).
 * Baseline coverage files are not ignored (bazelbuild#24563).

RELNOTES: Baseline coverage files are no longer ignored.
c-mita added a commit to c-mita/bazel that referenced this pull request Dec 6, 2024
Built at commit 93e76f2.

Relevant changes:
 * Log level for many messages changed from INFO to FINE (bazelbuild#22257).
 * IOExceptions are no longer ignored (bazelbuild#21987).
 * Baseline coverage files are not ignored (bazelbuild#24563).

RELNOTES: Baseline coverage files are no longer ignored.
c-mita added a commit to c-mita/bazel that referenced this pull request Dec 10, 2024
Built at commit 93e76f2.

Relevant changes:
 * Log level for many messages changed from INFO to FINE (bazelbuild#22257).
 * IOExceptions are no longer ignored (bazelbuild#21987).
 * Baseline coverage files are not ignored (bazelbuild#24563).

RELNOTES: Baseline coverage files are no longer ignored.
c-mita added a commit to c-mita/bazel that referenced this pull request Dec 10, 2024
Built at commit 93e76f2.

Relevant changes:
 * Log level for many messages changed from INFO to FINE (bazelbuild#22257).
 * IOExceptions are no longer ignored (bazelbuild#21987).
 * Baseline coverage files are not ignored (bazelbuild#24563).

RELNOTES: Baseline coverage files are no longer ignored.
c-mita added a commit to c-mita/bazel that referenced this pull request Dec 10, 2024
Built at commit 93e76f2.

Relevant changes:
 * Log level for many messages changed from INFO to FINE (bazelbuild#22257).
 * IOExceptions are no longer ignored (bazelbuild#21987).
 * Baseline coverage files are not ignored (bazelbuild#24563).

RELNOTES: Baseline coverage files are no longer ignored.
c-mita added a commit to c-mita/bazel that referenced this pull request Dec 10, 2024
Built at commit b09335b.

Relevant changes:
 * Log level for many messages changed from INFO to FINE (bazelbuild#22257).
 * IOExceptions are no longer ignored (bazelbuild#21987).
 * Baseline coverage files are not ignored (bazelbuild#24563).

RELNOTES: Baseline coverage files are no longer ignored.
c-mita added a commit to c-mita/bazel that referenced this pull request Dec 12, 2024
Built at commit 82c1ff7.

Relevant changes:
 * Log level for many messages changed from INFO to FINE (bazelbuild#22257).
 * IOExceptions are no longer ignored (bazelbuild#21987).
 * Baseline coverage files are not ignored (bazelbuild#24563).

RELNOTES: Baseline coverage files are no longer ignored.
copybara-service bot pushed a commit that referenced this pull request Dec 12, 2024
Built at commit 82c1ff7.

Relevant changes:
 * Log level for many messages changed from INFO to FINE (#22257).
 * IOExceptions are no longer ignored (#21987).
 * Baseline coverage files are not ignored (#24563).

RELNOTES: Baseline coverage files are no longer ignored.

Closes #24593.

PiperOrigin-RevId: 705492845
Change-Id: I6f7b99ec0f040f93cc148c9c8448d4395729adac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
coverage team-Rules-Server Issues for serverside rules included with Bazel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants