Repository navigation
Log the decisions of a range bundle in batches - #4472
Merged
Merged
Conversation
A unified bundle run printed a line for every excluded pull request, every filtered entry and every optional release note: 3,754 hints and 165 warnings for Elasticsearch and Kibana, plus a 600-line report. A decision log now groups them per section and logs when a section holds 50 decisions or is 4 seconds old, and once more on flush or dispose. The log shows what was decided and why, such as "exclude (>non-issue) #1 #2". The full report moves to debug level, with a one-line summary at info. Other commands keep their messages. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
theletterf
approved these changes
Oct 15, 2026
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4472/ |
An exclusion that a valid configuration asks for is not a warning or a hint, so the choice between a diagnostic and a decision line no longer depends on whether a decision log was passed in. Every service has one, unbatched where nothing groups. The warnings and hints for excluded pull requests, filtered entries and optional release notes are gone, and the lines show what was decided and why. The log has no locks and no timer: a section is a concurrent queue, a flush drains it, and the age of a section is checked when a decision is added. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
A decision that Record's own flush has taken from a section is not in the section any more, so a Dispose on another thread saw nothing pending and returned while the line was still being logged. Flushes are counted from before the first decision is taken until the line is logged, and Flush waits for the count to reach zero without a lock. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
theletterf
added a commit
that referenced
this pull request
Oct 15, 2026
Resolve the conflict in GitRangeEntryResolver: keep the labels-then-defaults product resolution of this branch and pass the decision log to the skip check, as #4472 does on main. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01RyiyHmDHcUFt8rjMNR8TBm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
release unified bundlelogs the per-pull-request decisions of a range in a few batched lines instead of one line each. A Kibana run's log goes from 706 lines to 47.Affects: Release notes, CLI
Prompt summary: The output of the unified bundle run is too noisy to read. Log what was decided for each pull request in batches, every few seconds or after a number of items, grouped by outcome and reason. The optional "no release note" message is not worth a hint.
Why
A run over the Elastic Stack ranges printed a line for every excluded pull request, every entry a bundle rule left out, and every missing optional release note. The first workflow run logged 3,754 hints and 165 warnings, and the full run report added hundreds of lines more. The lines that matter, such as an error or a skipped product, were buried.
What
Decision log
DecisionLogcollects decisions per section and logs a section when it holds 50 decisions or its oldest decision is 4 seconds old. Disposing it, or callingFlush(), logs what is left, so a run never loses the tail. A line groups a section by outcome and reason:It has no locks and no timer. A section is a concurrent queue and a flush drains it, so every decision is logged exactly once even from several threads. Age is checked when a decision is added, so the timing is approximate, and a section that stops receiving decisions waits for the next flush.
Decisions are not diagnostics
An exclusion that a valid configuration asks for is not a warning or a hint. The excluded pull requests (
rules.create), the entries a bundle rule leaves out, the entries inferred from pull request metadata, and the optional release-note hints are now decisions in every command, not diagnostics.DecisionLog.Immediatelogs each one at once for a command with nothing to group, such aschangelog add. Warnings and errors for something that needs attention, such as a pull request whose metadata could not be fetched, are still reported at once.release unified bundlepasses a batching log in.Report
The full run report has a row per pull request. A normal run logs a one-line summary (
339 commits, 331 pull requests: 0 from the pool, 91 inferred, 240 excluded, 0 missing) and the report at debug level.--dry-runstill prints the whole report.Verify
Out of scope: The cache. The
cachedoutcome will use this log when the cache lands.🤖 Generated with Claude Code