Skip to content

Truncate "Detecting cycles with roots" log to avoid huge java.log entries#29380

Open
hauserx wants to merge 1 commit intobazelbuild:masterfrom
hauserx:truncate-cycle-roots-log
Open

Truncate "Detecting cycles with roots" log to avoid huge java.log entries#29380
hauserx wants to merge 1 commit intobazelbuild:masterfrom
hauserx:truncate-cycle-roots-log

Conversation

@hauserx
Copy link
Copy Markdown
Contributor

@hauserx hauserx commented Apr 23, 2026

Description

When a build has tens or hundreds of thousands of top-level keys, the full cycleRoots collection could be serialized into a single log line. Cap the logged sample at 100 entries and include the total count.

Motivation

Our java.log grew to ~200MB in some cases due to this single log for builds with pre-selected targets.

Build API Changes

No

Checklist

  • I have added tests for the new use cases (if any).
  • I have updated the documentation (if applicable).

Release Notes

RELNOTES: None

…ries.

When a build has tens or hundreds of thousands of top-level keys, the
full cycleRoots collection could be serialized into a single log line.
Cap the logged sample at 100 entries and include the total count.
@github-actions github-actions Bot added the awaiting-review PR is awaiting review from an assigned reviewer label Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR is awaiting review from an assigned reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant