Repository navigation
fix: store the final Drain3 template, not the first line a cluster saw - #14
Merged
Merged
Conversation
extract_patterns captured cluster.get_template() when a cluster first appeared, before later lines widened its slots to <*>, so LogPattern.template was the raw first line for any cluster whose lines vary and the <*> priority boost ran on that stale text. The template is now re-read from the live cluster once the feed ends; a cluster the LRU cap evicted keeps its snapshot. TemporalProcessor had the same shape per entry and now reads each template once its window is fed. Closes #5. reduce() and process_file() gain overloads, so return_metadata=True types as a dict and the default as list[str]. Runtime behaviour is unchanged. Dependencies: uv lock --upgrade under a 7-day exclude-newer cooldown, which semgrep now requires in [tool.uv]. Floors move to what the lock resolves: typer 0.27.3, ruff 0.16.10 (the format gate needs 0.15.21 for --extend-exclude), testcontainers 4.15.0. xxhash 4 and datasketch 2 are the versions every consumer already resolved under the open floors, so the floors say so. The release run's quality job would have warned on all of these, now clean: - ty: the overloads clear the test diagnostics; the rest are test typing fixes. - ruff S and D passes: they select rules on the command line, which drops the repo ignore list, so the deliberate S608/S311 exemptions and the D105/D107 house rule move to per-file-ignores. The remaining docstrings are fixed. - vulture: min_confidence 80, as scalo-py runs it, so public API is not reported as unused. - markdownlint: bare URLs and an unspaced list. - semgrep: every Renovate packageRule sets minimumReleaseAge. - testcontainers 4.15 moved its modules under testcontainers.community and deprecated string wait predicates.
|
Released in v3.5.2 -- https://github.com/hyperi-io/logreducer/releases/tag/v3.5.2 |
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.
Fixes #5 and clears everything the release run's quality job would have warned on.
Done when CI is green and the release run on main emits no warnings.